From 0500f01b0c3e88b669e9227eabbf3aaf8cc754d0 Mon Sep 17 00:00:00 2001 From: hanzjk Date: Wed, 15 Jul 2026 19:17:33 +0530 Subject: [PATCH 1/6] Add openchoreo secret manager implementation --- agent-manager-service/.env.example | 10 +- agent-manager-service/Makefile | 4 +- agent-manager-service/app/app.go | 2 +- .../clientmocks/openchoreo_client_fake.go | 230 + .../clients/openchoreosvc/client/client.go | 8 + .../clients/openchoreosvc/client/secrets.go | 216 + .../clients/openchoreosvc/client/types.go | 2 +- .../clients/openchoreosvc/gen/client.gen.go | 18443 ++++++++++------ .../clients/openchoreosvc/gen/types.gen.go | 834 +- .../clients/secretmanagersvc/client.go | 167 +- .../clients/secretmanagersvc/provider.go | 24 +- .../providers/openbao/client.go | 372 - .../providers/openchoreo/client.go | 276 + .../{openbao => openchoreo}/provider.go | 56 +- .../clients/secretmanagersvc/types.go | 37 +- agent-manager-service/config/config.go | 13 +- agent-manager-service/config/config_loader.go | 7 +- .../controllers/gateway_controller.go | 2 +- agent-manager-service/main.go | 6 +- .../services/agent_configuration_service.go | 6 +- .../services/agent_manager.go | 64 +- .../services/llm_proxy_provisioner.go | 2 +- .../services/monitor_executor.go | 2 +- agent-manager-service/wiring/wire.go | 26 +- agent-manager-service/wiring/wire_gen.go | 26 +- console/apps/web-ui/public/config.js | 83 +- deployments/single-cluster/values-cp.yaml | 4 + 27 files changed, 13919 insertions(+), 7003 deletions(-) create mode 100644 agent-manager-service/clients/openchoreosvc/client/secrets.go delete mode 100644 agent-manager-service/clients/secretmanagersvc/providers/openbao/client.go create mode 100644 agent-manager-service/clients/secretmanagersvc/providers/openchoreo/client.go rename agent-manager-service/clients/secretmanagersvc/providers/{openbao => openchoreo}/provider.go (55%) diff --git a/agent-manager-service/.env.example b/agent-manager-service/.env.example index 30419c6a6..c3fba668f 100644 --- a/agent-manager-service/.env.example +++ b/agent-manager-service/.env.example @@ -159,9 +159,15 @@ OPEN_CHOREO_BASE_URL=http://api.openchoreo.localhost:8195 # API_PLATFORM_ENABLED=false # ----------------------------------------------------------------------------- -# Secret Management Service Configuration (Data Plane) +# Secret Management Service Configuration (via OpenChoreo secret API) +# ----------------------------------------------------------------------------- +# SECRET_MANAGER_PROVIDER=openchoreo +# SECRET_MANAGER_TARGET_PLANE_KIND=ClusterDataPlane +# SECRET_MANAGER_TARGET_PLANE_NAME=default + +# ----------------------------------------------------------------------------- +# OpenBao Configuration (AgentID Thunder provisioning only) # ----------------------------------------------------------------------------- -# SECRET_MANAGER_PROVIDER=openbao # OPENBAO_URL=http://localhost:8200 # OPENBAO_TOKEN= # OPENBAO_PATH=secret diff --git a/agent-manager-service/Makefile b/agent-manager-service/Makefile index d812b1250..95c5bc05d 100644 --- a/agent-manager-service/Makefile +++ b/agent-manager-service/Makefile @@ -77,7 +77,7 @@ OAPI_CODEGEN := go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@ .PHONY: gen-oc-client gen-oc-client: ## Generate OpenChoreo API client from upstream OpenAPI spec. @echo "Generating OpenChoreo client from upstream spec" - @curl -sL "https://raw.githubusercontent.com/openchoreo/openchoreo/v1.0.1/openapi/openchoreo-api.yaml" -o /tmp/openchoreo-api.yaml + @curl -sL "https://raw.githubusercontent.com/openchoreo/openchoreo/v1.1.1/openapi/openchoreo-api.yaml" -o /tmp/openchoreo-api.yaml @$(OAPI_CODEGEN) -config clients/openchoreosvc/gen/oapi-codegen.yaml /tmp/openchoreo-api.yaml @$(OAPI_CODEGEN) -config clients/openchoreosvc/gen/oapi-codegen-client.yaml /tmp/openchoreo-api.yaml @rm /tmp/openchoreo-api.yaml @@ -87,7 +87,7 @@ gen-oc-client: ## Generate OpenChoreo API client from upstream OpenAPI spec. .PHONY: gen-observer-client gen-observer-client: ## Generate Observer API client from upstream OpenAPI spec. @echo "Generating Observer client from upstream spec" - @curl -sL "https://raw.githubusercontent.com/openchoreo/openchoreo/v1.0.1/openapi/observer-api.yaml" -o /tmp/observer-api.yaml + @curl -sL "https://raw.githubusercontent.com/openchoreo/openchoreo/v1.1.1/openapi/observer-api.yaml" -o /tmp/observer-api.yaml @$(OAPI_CODEGEN) -config clients/observabilitysvc/gen/oapi-codegen.yaml /tmp/observer-api.yaml @$(OAPI_CODEGEN) -config clients/observabilitysvc/gen/oapi-codegen-client.yaml /tmp/observer-api.yaml @rm /tmp/observer-api.yaml diff --git a/agent-manager-service/app/app.go b/agent-manager-service/app/app.go index 1da7fce5a..ab7037930 100644 --- a/agent-manager-service/app/app.go +++ b/agent-manager-service/app/app.go @@ -73,7 +73,7 @@ type Options struct { // The authProvider parameter allows different deployments to inject their own // authentication mechanism (e.g., OAuth2 for open-source, workload identity for cloud). // The secretProvider parameter allows different deployments to inject their own -// secret management backend (e.g., OpenBao for open-source, cloud-specific for cloud). +// secret management backend (e.g., the OpenChoreo secret API for open-source, cloud-specific for cloud). func Run(authProvider occlient.AuthProvider, secretProvider secretmanagersvc.Provider, opts Options) { cfg := config.GetConfig() diff --git a/agent-manager-service/clients/clientmocks/openchoreo_client_fake.go b/agent-manager-service/clients/clientmocks/openchoreo_client_fake.go index f0178f78f..6b2ecfac2 100644 --- a/agent-manager-service/clients/clientmocks/openchoreo_client_fake.go +++ b/agent-manager-service/clients/clientmocks/openchoreo_client_fake.go @@ -42,6 +42,9 @@ import ( // CreateProjectFunc: func(ctx context.Context, ouID string, req client.CreateProjectRequest) error { // panic("mock out the CreateProject method") // }, +// CreateSecretFunc: func(ctx context.Context, ouID string, req client.CreateSecretRequest) (*client.SecretInfo, error) { +// panic("mock out the CreateSecret method") +// }, // CreateSecretReferenceFunc: func(ctx context.Context, ouID string, req client.CreateSecretReferenceRequest) (*client.SecretReferenceInfo, error) { // panic("mock out the CreateSecretReference method") // }, @@ -63,6 +66,9 @@ import ( // DeleteProjectFunc: func(ctx context.Context, ouID string, projectName string) error { // panic("mock out the DeleteProject method") // }, +// DeleteSecretFunc: func(ctx context.Context, ouID string, secretName string) error { +// panic("mock out the DeleteSecret method") +// }, // DeleteSecretReferenceFunc: func(ctx context.Context, ouID string, secretRefName string) error { // panic("mock out the DeleteSecretReference method") // }, @@ -111,6 +117,9 @@ import ( // GetProjectDeploymentPipelineFunc: func(ctx context.Context, ouID string, projectName string) (*models.DeploymentPipelineResponse, error) { // panic("mock out the GetProjectDeploymentPipeline method") // }, +// GetSecretFunc: func(ctx context.Context, ouID string, secretName string) (*client.SecretInfo, error) { +// panic("mock out the GetSecret method") +// }, // GetSecretReferenceFunc: func(ctx context.Context, ouID string, secretRefName string) (*client.SecretReferenceInfo, error) { // panic("mock out the GetSecretReference method") // }, @@ -222,6 +231,9 @@ import ( // UpdateReleaseBindingTraitConfigsFunc: func(ctx context.Context, ouID string, componentName string, environment string, traitConfigs map[string]interface{}) error { // panic("mock out the UpdateReleaseBindingTraitConfigs method") // }, +// UpdateSecretFunc: func(ctx context.Context, ouID string, secretName string, req client.UpdateSecretRequest) (*client.SecretInfo, error) { +// panic("mock out the UpdateSecret method") +// }, // UpdateSecretReferenceFunc: func(ctx context.Context, ouID string, secretRefName string, req client.CreateSecretReferenceRequest) (*client.SecretReferenceInfo, error) { // panic("mock out the UpdateSecretReference method") // }, @@ -256,6 +268,9 @@ type OpenChoreoClientMock struct { // CreateProjectFunc mocks the CreateProject method. CreateProjectFunc func(ctx context.Context, ouID string, req client.CreateProjectRequest) error + // CreateSecretFunc mocks the CreateSecret method. + CreateSecretFunc func(ctx context.Context, ouID string, req client.CreateSecretRequest) (*client.SecretInfo, error) + // CreateSecretReferenceFunc mocks the CreateSecretReference method. CreateSecretReferenceFunc func(ctx context.Context, ouID string, req client.CreateSecretReferenceRequest) (*client.SecretReferenceInfo, error) @@ -277,6 +292,9 @@ type OpenChoreoClientMock struct { // DeleteProjectFunc mocks the DeleteProject method. DeleteProjectFunc func(ctx context.Context, ouID string, projectName string) error + // DeleteSecretFunc mocks the DeleteSecret method. + DeleteSecretFunc func(ctx context.Context, ouID string, secretName string) error + // DeleteSecretReferenceFunc mocks the DeleteSecretReference method. DeleteSecretReferenceFunc func(ctx context.Context, ouID string, secretRefName string) error @@ -325,6 +343,9 @@ type OpenChoreoClientMock struct { // GetProjectDeploymentPipelineFunc mocks the GetProjectDeploymentPipeline method. GetProjectDeploymentPipelineFunc func(ctx context.Context, ouID string, projectName string) (*models.DeploymentPipelineResponse, error) + // GetSecretFunc mocks the GetSecret method. + GetSecretFunc func(ctx context.Context, ouID string, secretName string) (*client.SecretInfo, error) + // GetSecretReferenceFunc mocks the GetSecretReference method. GetSecretReferenceFunc func(ctx context.Context, ouID string, secretRefName string) (*client.SecretReferenceInfo, error) @@ -436,6 +457,9 @@ type OpenChoreoClientMock struct { // UpdateReleaseBindingTraitConfigsFunc mocks the UpdateReleaseBindingTraitConfigs method. UpdateReleaseBindingTraitConfigsFunc func(ctx context.Context, ouID string, componentName string, environment string, traitConfigs map[string]interface{}) error + // UpdateSecretFunc mocks the UpdateSecret method. + UpdateSecretFunc func(ctx context.Context, ouID string, secretName string, req client.UpdateSecretRequest) (*client.SecretInfo, error) + // UpdateSecretReferenceFunc mocks the UpdateSecretReference method. UpdateSecretReferenceFunc func(ctx context.Context, ouID string, secretRefName string, req client.CreateSecretReferenceRequest) (*client.SecretReferenceInfo, error) @@ -531,6 +555,15 @@ type OpenChoreoClientMock struct { // Req is the req argument value. Req client.CreateProjectRequest } + // CreateSecret holds details about calls to the CreateSecret method. + CreateSecret []struct { + // Ctx is the ctx argument value. + Ctx context.Context + // OuID is the ouID argument value. + OuID string + // Req is the req argument value. + Req client.CreateSecretRequest + } // CreateSecretReference holds details about calls to the CreateSecretReference method. CreateSecretReference []struct { // Ctx is the ctx argument value. @@ -596,6 +629,15 @@ type OpenChoreoClientMock struct { // ProjectName is the projectName argument value. ProjectName string } + // DeleteSecret holds details about calls to the DeleteSecret method. + DeleteSecret []struct { + // Ctx is the ctx argument value. + Ctx context.Context + // OuID is the ouID argument value. + OuID string + // SecretName is the secretName argument value. + SecretName string + } // DeleteSecretReference holds details about calls to the DeleteSecretReference method. DeleteSecretReference []struct { // Ctx is the ctx argument value. @@ -772,6 +814,15 @@ type OpenChoreoClientMock struct { // ProjectName is the projectName argument value. ProjectName string } + // GetSecret holds details about calls to the GetSecret method. + GetSecret []struct { + // Ctx is the ctx argument value. + Ctx context.Context + // OuID is the ouID argument value. + OuID string + // SecretName is the secretName argument value. + SecretName string + } // GetSecretReference holds details about calls to the GetSecretReference method. GetSecretReference []struct { // Ctx is the ctx argument value. @@ -1197,6 +1248,17 @@ type OpenChoreoClientMock struct { // TraitConfigs is the traitConfigs argument value. TraitConfigs map[string]interface{} } + // UpdateSecret holds details about calls to the UpdateSecret method. + UpdateSecret []struct { + // Ctx is the ctx argument value. + Ctx context.Context + // OuID is the ouID argument value. + OuID string + // SecretName is the secretName argument value. + SecretName string + // Req is the req argument value. + Req client.UpdateSecretRequest + } // UpdateSecretReference holds details about calls to the UpdateSecretReference method. UpdateSecretReference []struct { // Ctx is the ctx argument value. @@ -1217,6 +1279,7 @@ type OpenChoreoClientMock struct { lockCreateGitSecret sync.RWMutex lockCreateInternalAgentFromKindWorkload sync.RWMutex lockCreateProject sync.RWMutex + lockCreateSecret sync.RWMutex lockCreateSecretReference sync.RWMutex lockCreateWorkflowRun sync.RWMutex lockDeleteComponent sync.RWMutex @@ -1224,6 +1287,7 @@ type OpenChoreoClientMock struct { lockDeleteGitSecret sync.RWMutex lockDeleteOrgDeploymentPipeline sync.RWMutex lockDeleteProject sync.RWMutex + lockDeleteSecret sync.RWMutex lockDeleteSecretReference sync.RWMutex lockDeploy sync.RWMutex lockDetachTrait sync.RWMutex @@ -1240,6 +1304,7 @@ type OpenChoreoClientMock struct { lockGetOrganization sync.RWMutex lockGetProject sync.RWMutex lockGetProjectDeploymentPipeline sync.RWMutex + lockGetSecret sync.RWMutex lockGetSecretReference sync.RWMutex lockGetSourceEnvWorkloadOverrides sync.RWMutex lockGetWorkflowRun sync.RWMutex @@ -1277,6 +1342,7 @@ type OpenChoreoClientMock struct { lockUpdateEnvironment sync.RWMutex lockUpdateReleaseBindingEnvVars sync.RWMutex lockUpdateReleaseBindingTraitConfigs sync.RWMutex + lockUpdateSecret sync.RWMutex lockUpdateSecretReference sync.RWMutex } @@ -1636,6 +1702,46 @@ func (mock *OpenChoreoClientMock) CreateProjectCalls() []struct { return calls } +// CreateSecret calls CreateSecretFunc. +func (mock *OpenChoreoClientMock) CreateSecret(ctx context.Context, ouID string, req client.CreateSecretRequest) (*client.SecretInfo, error) { + if mock.CreateSecretFunc == nil { + panic("OpenChoreoClientMock.CreateSecretFunc: method is nil but OpenChoreoClient.CreateSecret was just called") + } + callInfo := struct { + Ctx context.Context + OuID string + Req client.CreateSecretRequest + }{ + Ctx: ctx, + OuID: ouID, + Req: req, + } + mock.lockCreateSecret.Lock() + mock.calls.CreateSecret = append(mock.calls.CreateSecret, callInfo) + mock.lockCreateSecret.Unlock() + return mock.CreateSecretFunc(ctx, ouID, req) +} + +// CreateSecretCalls gets all the calls that were made to CreateSecret. +// Check the length with: +// +// len(mockedOpenChoreoClient.CreateSecretCalls()) +func (mock *OpenChoreoClientMock) CreateSecretCalls() []struct { + Ctx context.Context + OuID string + Req client.CreateSecretRequest +} { + var calls []struct { + Ctx context.Context + OuID string + Req client.CreateSecretRequest + } + mock.lockCreateSecret.RLock() + calls = mock.calls.CreateSecret + mock.lockCreateSecret.RUnlock() + return calls +} + // CreateSecretReference calls CreateSecretReferenceFunc. func (mock *OpenChoreoClientMock) CreateSecretReference(ctx context.Context, ouID string, req client.CreateSecretReferenceRequest) (*client.SecretReferenceInfo, error) { if mock.CreateSecretReferenceFunc == nil { @@ -1920,6 +2026,46 @@ func (mock *OpenChoreoClientMock) DeleteProjectCalls() []struct { return calls } +// DeleteSecret calls DeleteSecretFunc. +func (mock *OpenChoreoClientMock) DeleteSecret(ctx context.Context, ouID string, secretName string) error { + if mock.DeleteSecretFunc == nil { + panic("OpenChoreoClientMock.DeleteSecretFunc: method is nil but OpenChoreoClient.DeleteSecret was just called") + } + callInfo := struct { + Ctx context.Context + OuID string + SecretName string + }{ + Ctx: ctx, + OuID: ouID, + SecretName: secretName, + } + mock.lockDeleteSecret.Lock() + mock.calls.DeleteSecret = append(mock.calls.DeleteSecret, callInfo) + mock.lockDeleteSecret.Unlock() + return mock.DeleteSecretFunc(ctx, ouID, secretName) +} + +// DeleteSecretCalls gets all the calls that were made to DeleteSecret. +// Check the length with: +// +// len(mockedOpenChoreoClient.DeleteSecretCalls()) +func (mock *OpenChoreoClientMock) DeleteSecretCalls() []struct { + Ctx context.Context + OuID string + SecretName string +} { + var calls []struct { + Ctx context.Context + OuID string + SecretName string + } + mock.lockDeleteSecret.RLock() + calls = mock.calls.DeleteSecret + mock.lockDeleteSecret.RUnlock() + return calls +} + // DeleteSecretReference calls DeleteSecretReferenceFunc. func (mock *OpenChoreoClientMock) DeleteSecretReference(ctx context.Context, ouID string, secretRefName string) error { if mock.DeleteSecretReferenceFunc == nil { @@ -2624,6 +2770,46 @@ func (mock *OpenChoreoClientMock) GetProjectDeploymentPipelineCalls() []struct { return calls } +// GetSecret calls GetSecretFunc. +func (mock *OpenChoreoClientMock) GetSecret(ctx context.Context, ouID string, secretName string) (*client.SecretInfo, error) { + if mock.GetSecretFunc == nil { + panic("OpenChoreoClientMock.GetSecretFunc: method is nil but OpenChoreoClient.GetSecret was just called") + } + callInfo := struct { + Ctx context.Context + OuID string + SecretName string + }{ + Ctx: ctx, + OuID: ouID, + SecretName: secretName, + } + mock.lockGetSecret.Lock() + mock.calls.GetSecret = append(mock.calls.GetSecret, callInfo) + mock.lockGetSecret.Unlock() + return mock.GetSecretFunc(ctx, ouID, secretName) +} + +// GetSecretCalls gets all the calls that were made to GetSecret. +// Check the length with: +// +// len(mockedOpenChoreoClient.GetSecretCalls()) +func (mock *OpenChoreoClientMock) GetSecretCalls() []struct { + Ctx context.Context + OuID string + SecretName string +} { + var calls []struct { + Ctx context.Context + OuID string + SecretName string + } + mock.lockGetSecret.RLock() + calls = mock.calls.GetSecret + mock.lockGetSecret.RUnlock() + return calls +} + // GetSecretReference calls GetSecretReferenceFunc. func (mock *OpenChoreoClientMock) GetSecretReference(ctx context.Context, ouID string, secretRefName string) (*client.SecretReferenceInfo, error) { if mock.GetSecretReferenceFunc == nil { @@ -4288,6 +4474,50 @@ func (mock *OpenChoreoClientMock) UpdateReleaseBindingTraitConfigsCalls() []stru return calls } +// UpdateSecret calls UpdateSecretFunc. +func (mock *OpenChoreoClientMock) UpdateSecret(ctx context.Context, ouID string, secretName string, req client.UpdateSecretRequest) (*client.SecretInfo, error) { + if mock.UpdateSecretFunc == nil { + panic("OpenChoreoClientMock.UpdateSecretFunc: method is nil but OpenChoreoClient.UpdateSecret was just called") + } + callInfo := struct { + Ctx context.Context + OuID string + SecretName string + Req client.UpdateSecretRequest + }{ + Ctx: ctx, + OuID: ouID, + SecretName: secretName, + Req: req, + } + mock.lockUpdateSecret.Lock() + mock.calls.UpdateSecret = append(mock.calls.UpdateSecret, callInfo) + mock.lockUpdateSecret.Unlock() + return mock.UpdateSecretFunc(ctx, ouID, secretName, req) +} + +// UpdateSecretCalls gets all the calls that were made to UpdateSecret. +// Check the length with: +// +// len(mockedOpenChoreoClient.UpdateSecretCalls()) +func (mock *OpenChoreoClientMock) UpdateSecretCalls() []struct { + Ctx context.Context + OuID string + SecretName string + Req client.UpdateSecretRequest +} { + var calls []struct { + Ctx context.Context + OuID string + SecretName string + Req client.UpdateSecretRequest + } + mock.lockUpdateSecret.RLock() + calls = mock.calls.UpdateSecret + mock.lockUpdateSecret.RUnlock() + return calls +} + // UpdateSecretReference calls UpdateSecretReferenceFunc. func (mock *OpenChoreoClientMock) UpdateSecretReference(ctx context.Context, ouID string, secretRefName string, req client.CreateSecretReferenceRequest) (*client.SecretReferenceInfo, error) { if mock.UpdateSecretReferenceFunc == nil { diff --git a/agent-manager-service/clients/openchoreosvc/client/client.go b/agent-manager-service/clients/openchoreosvc/client/client.go index a5c8b1c25..7c8be6131 100644 --- a/agent-manager-service/clients/openchoreosvc/client/client.go +++ b/agent-manager-service/clients/openchoreosvc/client/client.go @@ -139,6 +139,14 @@ type OpenChoreoClient interface { // Workload Operations GetWorkloadSecretRefNames(ctx context.Context, ouID, projectName, componentName string) ([]string, error) + // Secret Operations (OpenChoreo-managed secret storage; the API stores + // values in the target plane's secret store and manages the underlying + // SecretReference internally) + CreateSecret(ctx context.Context, ouID string, req CreateSecretRequest) (*SecretInfo, error) + GetSecret(ctx context.Context, ouID, secretName string) (*SecretInfo, error) + UpdateSecret(ctx context.Context, ouID, secretName string, req UpdateSecretRequest) (*SecretInfo, error) + DeleteSecret(ctx context.Context, ouID, secretName string) error + // Git Secret Operations CreateGitSecret(ctx context.Context, ouID string, req CreateGitSecretRequest) (*GitSecretInfo, error) ListGitSecrets(ctx context.Context, ouID string) ([]*GitSecretInfo, error) diff --git a/agent-manager-service/clients/openchoreosvc/client/secrets.go b/agent-manager-service/clients/openchoreosvc/client/secrets.go new file mode 100644 index 000000000..f0e571e7a --- /dev/null +++ b/agent-manager-service/clients/openchoreosvc/client/secrets.go @@ -0,0 +1,216 @@ +// Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com). +// +// WSO2 LLC. licenses this file to you under the Apache License, +// Version 2.0 (the "License"); you may not use this file except +// in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package client + +import ( + "context" + "fmt" + "net/http" + "time" + + "github.com/wso2/agent-manager/agent-manager-service/clients/openchoreosvc/gen" + "github.com/wso2/agent-manager/agent-manager-service/utils" +) + +// Default target plane for secrets when the caller does not specify one. +const ( + DefaultSecretTargetPlaneKind = string(gen.TargetPlaneRefKindClusterDataPlane) + DefaultSecretTargetPlaneName = "default" +) + +// CreateSecretRequest contains data for creating a secret via the OpenChoreo +// secret management API. The API stores the values in the plane's secret store +// and manages the underlying SecretReference internally. +type CreateSecretRequest struct { + Name string // Name of the secret + Data map[string]string // Map of secret keys to plaintext values + Labels map[string]string // Labels applied to the underlying SecretReference + TargetPlaneKind string // Kind of the plane hosting the secret data (defaults to DefaultSecretTargetPlaneKind) + TargetPlaneName string // Name of the plane hosting the secret data (defaults to DefaultSecretTargetPlaneName) +} + +// UpdateSecretRequest contains data for replacing a secret's data via the +// OpenChoreo secret management API. The data map is the final state; keys +// absent from it are pruned. The labels map replaces all user-set labels. +type UpdateSecretRequest struct { + Data map[string]string // Map of secret keys to plaintext values + Labels map[string]string // Labels applied to the underlying SecretReference +} + +// SecretInfo contains info about a secret managed via the OpenChoreo API. +type SecretInfo struct { + Name string // Name of the secret + Namespace string // Namespace of the secret + Data map[string][]byte // Map of secret keys to values + Labels map[string]string // Labels on the underlying SecretReference + CreatedAt string // Creation timestamp (RFC3339), empty if unknown +} + +// ----------------------------------------------------------------------------- +// Secret Operations (OpenChoreo-managed secret storage) +// ----------------------------------------------------------------------------- + +// CreateSecret creates a new secret via the OpenChoreo secret management API +func (c *openChoreoClient) CreateSecret(ctx context.Context, ouID string, req CreateSecretRequest) (*SecretInfo, error) { + namespaceName := c.NamespaceFor(ouID) + + targetPlaneKind := req.TargetPlaneKind + if targetPlaneKind == "" { + targetPlaneKind = DefaultSecretTargetPlaneKind + } + targetPlaneName := req.TargetPlaneName + if targetPlaneName == "" { + targetPlaneName = DefaultSecretTargetPlaneName + } + + body := gen.CreateSecretJSONRequestBody{ + SecretName: req.Name, + SecretType: gen.SecretTypeOpaque, + Data: req.Data, + TargetPlane: gen.TargetPlaneRef{ + Kind: gen.TargetPlaneRefKind(targetPlaneKind), + Name: targetPlaneName, + }, + } + if len(req.Labels) > 0 { + labels := req.Labels + body.Labels = &labels + } + + resp, err := c.ocClient.CreateSecretWithResponse(ctx, namespaceName, body) + if err != nil { + return nil, fmt.Errorf("failed to create secret: %w", err) + } + + if resp.StatusCode() != http.StatusCreated { + return nil, handleErrorResponse(resp.StatusCode(), ErrorResponses{ + JSON400: resp.JSON400, + JSON401: resp.JSON401, + JSON403: resp.JSON403, + JSON409: resp.JSON409, + JSON500: resp.JSON500, + }) + } + + if resp.JSON201 == nil { + return nil, fmt.Errorf("empty response from create secret") + } + + return convertSecretToInfo(resp.JSON201), nil +} + +// GetSecret retrieves a secret by name via the OpenChoreo secret management API +func (c *openChoreoClient) GetSecret(ctx context.Context, ouID, secretName string) (*SecretInfo, error) { + namespaceName := c.NamespaceFor(ouID) + resp, err := c.ocClient.GetSecretWithResponse(ctx, namespaceName, secretName) + if err != nil { + return nil, fmt.Errorf("failed to get secret: %w", err) + } + + if resp.StatusCode() != http.StatusOK { + return nil, handleErrorResponse(resp.StatusCode(), ErrorResponses{ + JSON401: resp.JSON401, + JSON403: resp.JSON403, + JSON404: resp.JSON404, + JSON500: resp.JSON500, + }) + } + + if resp.JSON200 == nil { + return nil, fmt.Errorf("empty response from get secret") + } + + return convertSecretToInfo(resp.JSON200), nil +} + +// UpdateSecret replaces a secret's data via the OpenChoreo secret management API +func (c *openChoreoClient) UpdateSecret(ctx context.Context, ouID, secretName string, req UpdateSecretRequest) (*SecretInfo, error) { + namespaceName := c.NamespaceFor(ouID) + + body := gen.UpdateSecretJSONRequestBody{ + Data: req.Data, + } + if len(req.Labels) > 0 { + labels := req.Labels + body.Labels = &labels + } + + resp, err := c.ocClient.UpdateSecretWithResponse(ctx, namespaceName, secretName, body) + if err != nil { + return nil, fmt.Errorf("failed to update secret: %w", err) + } + + if resp.StatusCode() != http.StatusOK { + return nil, handleErrorResponse(resp.StatusCode(), ErrorResponses{ + JSON400: resp.JSON400, + JSON401: resp.JSON401, + JSON403: resp.JSON403, + JSON404: resp.JSON404, + JSON500: resp.JSON500, + }) + } + + if resp.JSON200 == nil { + return nil, fmt.Errorf("empty response from update secret") + } + + return convertSecretToInfo(resp.JSON200), nil +} + +// DeleteSecret deletes a secret by name via the OpenChoreo secret management API +func (c *openChoreoClient) DeleteSecret(ctx context.Context, ouID, secretName string) error { + namespaceName := c.NamespaceFor(ouID) + resp, err := c.ocClient.DeleteSecretWithResponse(ctx, namespaceName, secretName) + if err != nil { + return fmt.Errorf("failed to delete secret: %w", err) + } + + if resp.StatusCode() != http.StatusOK && resp.StatusCode() != http.StatusNoContent { + return handleErrorResponse(resp.StatusCode(), ErrorResponses{ + JSON401: resp.JSON401, + JSON403: resp.JSON403, + JSON404: resp.JSON404, + JSON500: resp.JSON500, + }) + } + + return nil +} + +// convertSecretToInfo converts a gen.Secret to SecretInfo +func convertSecretToInfo(s *gen.Secret) *SecretInfo { + if s == nil { + return nil + } + + info := &SecretInfo{ + Name: s.Metadata.Name, + Namespace: utils.StrPointerAsStr(s.Metadata.Namespace, ""), + } + + if s.Data != nil { + info.Data = *s.Data + } + if s.Metadata.Labels != nil { + info.Labels = *s.Metadata.Labels + } + if s.Metadata.CreationTimestamp != nil { + info.CreatedAt = s.Metadata.CreationTimestamp.Format(time.RFC3339) + } + + return info +} diff --git a/agent-manager-service/clients/openchoreosvc/client/types.go b/agent-manager-service/clients/openchoreosvc/client/types.go index b060c33fa..02dcb0ebd 100644 --- a/agent-manager-service/clients/openchoreosvc/client/types.go +++ b/agent-manager-service/clients/openchoreosvc/client/types.go @@ -309,7 +309,7 @@ type CreateSecretReferenceRequest struct { Name string // Name of the SecretReference ProjectName string // Project name for labels ComponentName string // Component name for labels - KVPath string // Path in OpenBao KV store + KVPath string // Path in the backing KV store SecretKeys []string // Keys to extract from KV path RefreshInterval string // How often to refresh (e.g., "1h", "15s") } diff --git a/agent-manager-service/clients/openchoreosvc/gen/client.gen.go b/agent-manager-service/clients/openchoreosvc/gen/client.gen.go index 2a8394b3e..b3fad6679 100644 --- a/agent-manager-service/clients/openchoreosvc/gen/client.gen.go +++ b/agent-manager-service/clients/openchoreosvc/gen/client.gen.go @@ -204,6 +204,28 @@ type ClientInterface interface { UpdateClusterObservabilityPlane(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, body UpdateClusterObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListClusterResourceTypes request + ListClusterResourceTypes(ctx context.Context, params *ListClusterResourceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateClusterResourceTypeWithBody request with any body + CreateClusterResourceTypeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateClusterResourceType(ctx context.Context, body CreateClusterResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteClusterResourceType request + DeleteClusterResourceType(ctx context.Context, crtName ClusterResourceTypeNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetClusterResourceType request + GetClusterResourceType(ctx context.Context, crtName ClusterResourceTypeNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateClusterResourceTypeWithBody request with any body + UpdateClusterResourceTypeWithBody(ctx context.Context, crtName ClusterResourceTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateClusterResourceType(ctx context.Context, crtName ClusterResourceTypeNameParam, body UpdateClusterResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetClusterResourceTypeSchema request + GetClusterResourceTypeSchema(ctx context.Context, crtName ClusterResourceTypeNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListClusterTraits request ListClusterTraits(ctx context.Context, params *ListClusterTraitsParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -529,6 +551,80 @@ type ClientInterface interface { // GetReleaseBindingK8sResourceTree request GetReleaseBindingK8sResourceTree(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListResourceReleaseBindings request + ListResourceReleaseBindings(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourceReleaseBindingsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateResourceReleaseBindingWithBody request with any body + CreateResourceReleaseBindingWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateResourceReleaseBinding(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteResourceReleaseBinding request + DeleteResourceReleaseBinding(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetResourceReleaseBinding request + GetResourceReleaseBinding(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateResourceReleaseBindingWithBody request with any body + UpdateResourceReleaseBindingWithBody(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateResourceReleaseBinding(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, body UpdateResourceReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListResourceReleases request + ListResourceReleases(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourceReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateResourceReleaseWithBody request with any body + CreateResourceReleaseWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateResourceRelease(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteResourceRelease request + DeleteResourceRelease(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseName ResourceReleaseNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetResourceRelease request + GetResourceRelease(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseName ResourceReleaseNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListResources request + ListResources(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateResourceWithBody request with any body + CreateResourceWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateResource(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteResource request + DeleteResource(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetResource request + GetResource(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateResourceWithBody request with any body + UpdateResourceWithBody(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateResource(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, body UpdateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListResourceTypes request + ListResourceTypes(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateResourceTypeWithBody request with any body + CreateResourceTypeWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateResourceType(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteResourceType request + DeleteResourceType(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetResourceType request + GetResourceType(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateResourceTypeWithBody request with any body + UpdateResourceTypeWithBody(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateResourceType(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, body UpdateResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetResourceTypeSchema request + GetResourceTypeSchema(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListSecretReferences request ListSecretReferences(ctx context.Context, namespaceName NamespaceNameParam, params *ListSecretReferencesParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -597,6 +693,9 @@ type ClientInterface interface { CreateWorkflowRun(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteWorkflowRun request + DeleteWorkflowRun(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetWorkflowRun request GetWorkflowRun(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -671,6 +770,25 @@ type ClientInterface interface { // DeleteGitSecret request DeleteGitSecret(ctx context.Context, namespaceName NamespaceNameParam, gitSecretName GitSecretNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListSecrets request + ListSecrets(ctx context.Context, namespaceName NamespaceNameParam, params *ListSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateSecretWithBody request with any body + CreateSecretWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateSecret(ctx context.Context, namespaceName NamespaceNameParam, body CreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteSecret request + DeleteSecret(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSecret request + GetSecret(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSecretWithBody request with any body + UpdateSecretWithBody(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSecret(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, body UpdateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetHealth request GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -1188,6 +1306,102 @@ func (c *Client) UpdateClusterObservabilityPlane(ctx context.Context, clusterObs return c.Client.Do(req) } +func (c *Client) ListClusterResourceTypes(ctx context.Context, params *ListClusterResourceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListClusterResourceTypesRequest(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) CreateClusterResourceTypeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateClusterResourceTypeRequestWithBody(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) +} + +func (c *Client) CreateClusterResourceType(ctx context.Context, body CreateClusterResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateClusterResourceTypeRequest(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) +} + +func (c *Client) DeleteClusterResourceType(ctx context.Context, crtName ClusterResourceTypeNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteClusterResourceTypeRequest(c.Server, crtName) + 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) GetClusterResourceType(ctx context.Context, crtName ClusterResourceTypeNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetClusterResourceTypeRequest(c.Server, crtName) + 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) UpdateClusterResourceTypeWithBody(ctx context.Context, crtName ClusterResourceTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateClusterResourceTypeRequestWithBody(c.Server, crtName, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateClusterResourceType(ctx context.Context, crtName ClusterResourceTypeNameParam, body UpdateClusterResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateClusterResourceTypeRequest(c.Server, crtName, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetClusterResourceTypeSchema(ctx context.Context, crtName ClusterResourceTypeNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetClusterResourceTypeSchemaRequest(c.Server, crtName) + 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) ListClusterTraits(ctx context.Context, params *ListClusterTraitsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewListClusterTraitsRequest(c.Server, params) if err != nil { @@ -2616,8 +2830,8 @@ func (c *Client) GetReleaseBindingK8sResourceTree(ctx context.Context, namespace return c.Client.Do(req) } -func (c *Client) ListSecretReferences(ctx context.Context, namespaceName NamespaceNameParam, params *ListSecretReferencesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListSecretReferencesRequest(c.Server, namespaceName, params) +func (c *Client) ListResourceReleaseBindings(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourceReleaseBindingsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListResourceReleaseBindingsRequest(c.Server, namespaceName, params) if err != nil { return nil, err } @@ -2628,8 +2842,8 @@ func (c *Client) ListSecretReferences(ctx context.Context, namespaceName Namespa return c.Client.Do(req) } -func (c *Client) CreateSecretReferenceWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSecretReferenceRequestWithBody(c.Server, namespaceName, contentType, body) +func (c *Client) CreateResourceReleaseBindingWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateResourceReleaseBindingRequestWithBody(c.Server, namespaceName, contentType, body) if err != nil { return nil, err } @@ -2640,8 +2854,8 @@ func (c *Client) CreateSecretReferenceWithBody(ctx context.Context, namespaceNam return c.Client.Do(req) } -func (c *Client) CreateSecretReference(ctx context.Context, namespaceName NamespaceNameParam, body CreateSecretReferenceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateSecretReferenceRequest(c.Server, namespaceName, body) +func (c *Client) CreateResourceReleaseBinding(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateResourceReleaseBindingRequest(c.Server, namespaceName, body) if err != nil { return nil, err } @@ -2652,8 +2866,8 @@ func (c *Client) CreateSecretReference(ctx context.Context, namespaceName Namesp return c.Client.Do(req) } -func (c *Client) DeleteSecretReference(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSecretReferenceRequest(c.Server, namespaceName, secretReferenceName) +func (c *Client) DeleteResourceReleaseBinding(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteResourceReleaseBindingRequest(c.Server, namespaceName, resourceReleaseBindingName) if err != nil { return nil, err } @@ -2664,8 +2878,8 @@ func (c *Client) DeleteSecretReference(ctx context.Context, namespaceName Namesp return c.Client.Do(req) } -func (c *Client) GetSecretReference(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSecretReferenceRequest(c.Server, namespaceName, secretReferenceName) +func (c *Client) GetResourceReleaseBinding(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetResourceReleaseBindingRequest(c.Server, namespaceName, resourceReleaseBindingName) if err != nil { return nil, err } @@ -2676,8 +2890,8 @@ func (c *Client) GetSecretReference(ctx context.Context, namespaceName Namespace return c.Client.Do(req) } -func (c *Client) UpdateSecretReferenceWithBody(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSecretReferenceRequestWithBody(c.Server, namespaceName, secretReferenceName, contentType, body) +func (c *Client) UpdateResourceReleaseBindingWithBody(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateResourceReleaseBindingRequestWithBody(c.Server, namespaceName, resourceReleaseBindingName, contentType, body) if err != nil { return nil, err } @@ -2688,8 +2902,8 @@ func (c *Client) UpdateSecretReferenceWithBody(ctx context.Context, namespaceNam return c.Client.Do(req) } -func (c *Client) UpdateSecretReference(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, body UpdateSecretReferenceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateSecretReferenceRequest(c.Server, namespaceName, secretReferenceName, body) +func (c *Client) UpdateResourceReleaseBinding(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, body UpdateResourceReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateResourceReleaseBindingRequest(c.Server, namespaceName, resourceReleaseBindingName, body) if err != nil { return nil, err } @@ -2700,8 +2914,8 @@ func (c *Client) UpdateSecretReference(ctx context.Context, namespaceName Namesp return c.Client.Do(req) } -func (c *Client) ListTraits(ctx context.Context, namespaceName NamespaceNameParam, params *ListTraitsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListTraitsRequest(c.Server, namespaceName, params) +func (c *Client) ListResourceReleases(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourceReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListResourceReleasesRequest(c.Server, namespaceName, params) if err != nil { return nil, err } @@ -2712,8 +2926,8 @@ func (c *Client) ListTraits(ctx context.Context, namespaceName NamespaceNamePara return c.Client.Do(req) } -func (c *Client) CreateTraitWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateTraitRequestWithBody(c.Server, namespaceName, contentType, body) +func (c *Client) CreateResourceReleaseWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateResourceReleaseRequestWithBody(c.Server, namespaceName, contentType, body) if err != nil { return nil, err } @@ -2724,8 +2938,8 @@ func (c *Client) CreateTraitWithBody(ctx context.Context, namespaceName Namespac return c.Client.Do(req) } -func (c *Client) CreateTrait(ctx context.Context, namespaceName NamespaceNameParam, body CreateTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateTraitRequest(c.Server, namespaceName, body) +func (c *Client) CreateResourceRelease(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateResourceReleaseRequest(c.Server, namespaceName, body) if err != nil { return nil, err } @@ -2736,8 +2950,8 @@ func (c *Client) CreateTrait(ctx context.Context, namespaceName NamespaceNamePar return c.Client.Do(req) } -func (c *Client) DeleteTrait(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteTraitRequest(c.Server, namespaceName, traitName) +func (c *Client) DeleteResourceRelease(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseName ResourceReleaseNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteResourceReleaseRequest(c.Server, namespaceName, resourceReleaseName) if err != nil { return nil, err } @@ -2748,8 +2962,8 @@ func (c *Client) DeleteTrait(ctx context.Context, namespaceName NamespaceNamePar return c.Client.Do(req) } -func (c *Client) GetTrait(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTraitRequest(c.Server, namespaceName, traitName) +func (c *Client) GetResourceRelease(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseName ResourceReleaseNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetResourceReleaseRequest(c.Server, namespaceName, resourceReleaseName) if err != nil { return nil, err } @@ -2760,8 +2974,8 @@ func (c *Client) GetTrait(ctx context.Context, namespaceName NamespaceNameParam, return c.Client.Do(req) } -func (c *Client) UpdateTraitWithBody(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateTraitRequestWithBody(c.Server, namespaceName, traitName, contentType, body) +func (c *Client) ListResources(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListResourcesRequest(c.Server, namespaceName, params) if err != nil { return nil, err } @@ -2772,8 +2986,8 @@ func (c *Client) UpdateTraitWithBody(ctx context.Context, namespaceName Namespac return c.Client.Do(req) } -func (c *Client) UpdateTrait(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, body UpdateTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateTraitRequest(c.Server, namespaceName, traitName, body) +func (c *Client) CreateResourceWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateResourceRequestWithBody(c.Server, namespaceName, contentType, body) if err != nil { return nil, err } @@ -2784,8 +2998,8 @@ func (c *Client) UpdateTrait(ctx context.Context, namespaceName NamespaceNamePar return c.Client.Do(req) } -func (c *Client) GetTraitSchema(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTraitSchemaRequest(c.Server, namespaceName, traitName) +func (c *Client) CreateResource(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateResourceRequest(c.Server, namespaceName, body) if err != nil { return nil, err } @@ -2796,8 +3010,8 @@ func (c *Client) GetTraitSchema(ctx context.Context, namespaceName NamespaceName return c.Client.Do(req) } -func (c *Client) ListWorkflowPlanes(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowPlanesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListWorkflowPlanesRequest(c.Server, namespaceName, params) +func (c *Client) DeleteResource(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteResourceRequest(c.Server, namespaceName, resourceName) if err != nil { return nil, err } @@ -2808,8 +3022,8 @@ func (c *Client) ListWorkflowPlanes(ctx context.Context, namespaceName Namespace return c.Client.Do(req) } -func (c *Client) CreateWorkflowPlaneWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateWorkflowPlaneRequestWithBody(c.Server, namespaceName, contentType, body) +func (c *Client) GetResource(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetResourceRequest(c.Server, namespaceName, resourceName) if err != nil { return nil, err } @@ -2820,8 +3034,8 @@ func (c *Client) CreateWorkflowPlaneWithBody(ctx context.Context, namespaceName return c.Client.Do(req) } -func (c *Client) CreateWorkflowPlane(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateWorkflowPlaneRequest(c.Server, namespaceName, body) +func (c *Client) UpdateResourceWithBody(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateResourceRequestWithBody(c.Server, namespaceName, resourceName, contentType, body) if err != nil { return nil, err } @@ -2832,8 +3046,8 @@ func (c *Client) CreateWorkflowPlane(ctx context.Context, namespaceName Namespac return c.Client.Do(req) } -func (c *Client) DeleteWorkflowPlane(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteWorkflowPlaneRequest(c.Server, namespaceName, workflowPlaneName) +func (c *Client) UpdateResource(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, body UpdateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateResourceRequest(c.Server, namespaceName, resourceName, body) if err != nil { return nil, err } @@ -2844,8 +3058,8 @@ func (c *Client) DeleteWorkflowPlane(ctx context.Context, namespaceName Namespac return c.Client.Do(req) } -func (c *Client) GetWorkflowPlane(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetWorkflowPlaneRequest(c.Server, namespaceName, workflowPlaneName) +func (c *Client) ListResourceTypes(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListResourceTypesRequest(c.Server, namespaceName, params) if err != nil { return nil, err } @@ -2856,8 +3070,8 @@ func (c *Client) GetWorkflowPlane(ctx context.Context, namespaceName NamespaceNa return c.Client.Do(req) } -func (c *Client) UpdateWorkflowPlaneWithBody(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateWorkflowPlaneRequestWithBody(c.Server, namespaceName, workflowPlaneName, contentType, body) +func (c *Client) CreateResourceTypeWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateResourceTypeRequestWithBody(c.Server, namespaceName, contentType, body) if err != nil { return nil, err } @@ -2868,8 +3082,8 @@ func (c *Client) UpdateWorkflowPlaneWithBody(ctx context.Context, namespaceName return c.Client.Do(req) } -func (c *Client) UpdateWorkflowPlane(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, body UpdateWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateWorkflowPlaneRequest(c.Server, namespaceName, workflowPlaneName, body) +func (c *Client) CreateResourceType(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateResourceTypeRequest(c.Server, namespaceName, body) if err != nil { return nil, err } @@ -2880,8 +3094,8 @@ func (c *Client) UpdateWorkflowPlane(ctx context.Context, namespaceName Namespac return c.Client.Do(req) } -func (c *Client) ListWorkflowRuns(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListWorkflowRunsRequest(c.Server, namespaceName, params) +func (c *Client) DeleteResourceType(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteResourceTypeRequest(c.Server, namespaceName, rtName) if err != nil { return nil, err } @@ -2892,8 +3106,8 @@ func (c *Client) ListWorkflowRuns(ctx context.Context, namespaceName NamespaceNa return c.Client.Do(req) } -func (c *Client) CreateWorkflowRunWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateWorkflowRunRequestWithBody(c.Server, namespaceName, contentType, body) +func (c *Client) GetResourceType(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetResourceTypeRequest(c.Server, namespaceName, rtName) if err != nil { return nil, err } @@ -2904,8 +3118,8 @@ func (c *Client) CreateWorkflowRunWithBody(ctx context.Context, namespaceName Na return c.Client.Do(req) } -func (c *Client) CreateWorkflowRun(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateWorkflowRunRequest(c.Server, namespaceName, body) +func (c *Client) UpdateResourceTypeWithBody(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateResourceTypeRequestWithBody(c.Server, namespaceName, rtName, contentType, body) if err != nil { return nil, err } @@ -2916,8 +3130,8 @@ func (c *Client) CreateWorkflowRun(ctx context.Context, namespaceName NamespaceN return c.Client.Do(req) } -func (c *Client) GetWorkflowRun(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetWorkflowRunRequest(c.Server, namespaceName, runName) +func (c *Client) UpdateResourceType(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, body UpdateResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateResourceTypeRequest(c.Server, namespaceName, rtName, body) if err != nil { return nil, err } @@ -2928,8 +3142,8 @@ func (c *Client) GetWorkflowRun(ctx context.Context, namespaceName NamespaceName return c.Client.Do(req) } -func (c *Client) UpdateWorkflowRunWithBody(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateWorkflowRunRequestWithBody(c.Server, namespaceName, runName, contentType, body) +func (c *Client) GetResourceTypeSchema(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetResourceTypeSchemaRequest(c.Server, namespaceName, rtName) if err != nil { return nil, err } @@ -2940,8 +3154,8 @@ func (c *Client) UpdateWorkflowRunWithBody(ctx context.Context, namespaceName Na return c.Client.Do(req) } -func (c *Client) UpdateWorkflowRun(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, body UpdateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateWorkflowRunRequest(c.Server, namespaceName, runName, body) +func (c *Client) ListSecretReferences(ctx context.Context, namespaceName NamespaceNameParam, params *ListSecretReferencesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSecretReferencesRequest(c.Server, namespaceName, params) if err != nil { return nil, err } @@ -2952,8 +3166,8 @@ func (c *Client) UpdateWorkflowRun(ctx context.Context, namespaceName NamespaceN return c.Client.Do(req) } -func (c *Client) GetWorkflowRunEvents(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetWorkflowRunEventsRequest(c.Server, namespaceName, runName, params) +func (c *Client) CreateSecretReferenceWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSecretReferenceRequestWithBody(c.Server, namespaceName, contentType, body) if err != nil { return nil, err } @@ -2964,8 +3178,8 @@ func (c *Client) GetWorkflowRunEvents(ctx context.Context, namespaceName Namespa return c.Client.Do(req) } -func (c *Client) GetWorkflowRunLogs(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetWorkflowRunLogsRequest(c.Server, namespaceName, runName, params) +func (c *Client) CreateSecretReference(ctx context.Context, namespaceName NamespaceNameParam, body CreateSecretReferenceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSecretReferenceRequest(c.Server, namespaceName, body) if err != nil { return nil, err } @@ -2976,8 +3190,8 @@ func (c *Client) GetWorkflowRunLogs(ctx context.Context, namespaceName Namespace return c.Client.Do(req) } -func (c *Client) GetWorkflowRunStatus(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetWorkflowRunStatusRequest(c.Server, namespaceName, runName) +func (c *Client) DeleteSecretReference(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSecretReferenceRequest(c.Server, namespaceName, secretReferenceName) if err != nil { return nil, err } @@ -2988,8 +3202,8 @@ func (c *Client) GetWorkflowRunStatus(ctx context.Context, namespaceName Namespa return c.Client.Do(req) } -func (c *Client) ListWorkflows(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListWorkflowsRequest(c.Server, namespaceName, params) +func (c *Client) GetSecretReference(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSecretReferenceRequest(c.Server, namespaceName, secretReferenceName) if err != nil { return nil, err } @@ -3000,8 +3214,8 @@ func (c *Client) ListWorkflows(ctx context.Context, namespaceName NamespaceNameP return c.Client.Do(req) } -func (c *Client) CreateWorkflowWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateWorkflowRequestWithBody(c.Server, namespaceName, contentType, body) +func (c *Client) UpdateSecretReferenceWithBody(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSecretReferenceRequestWithBody(c.Server, namespaceName, secretReferenceName, contentType, body) if err != nil { return nil, err } @@ -3012,8 +3226,8 @@ func (c *Client) CreateWorkflowWithBody(ctx context.Context, namespaceName Names return c.Client.Do(req) } -func (c *Client) CreateWorkflow(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateWorkflowRequest(c.Server, namespaceName, body) +func (c *Client) UpdateSecretReference(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, body UpdateSecretReferenceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSecretReferenceRequest(c.Server, namespaceName, secretReferenceName, body) if err != nil { return nil, err } @@ -3024,8 +3238,8 @@ func (c *Client) CreateWorkflow(ctx context.Context, namespaceName NamespaceName return c.Client.Do(req) } -func (c *Client) DeleteWorkflow(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteWorkflowRequest(c.Server, namespaceName, workflowName) +func (c *Client) ListTraits(ctx context.Context, namespaceName NamespaceNameParam, params *ListTraitsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListTraitsRequest(c.Server, namespaceName, params) if err != nil { return nil, err } @@ -3036,8 +3250,8 @@ func (c *Client) DeleteWorkflow(ctx context.Context, namespaceName NamespaceName return c.Client.Do(req) } -func (c *Client) GetWorkflow(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetWorkflowRequest(c.Server, namespaceName, workflowName) +func (c *Client) CreateTraitWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateTraitRequestWithBody(c.Server, namespaceName, contentType, body) if err != nil { return nil, err } @@ -3048,8 +3262,8 @@ func (c *Client) GetWorkflow(ctx context.Context, namespaceName NamespaceNamePar return c.Client.Do(req) } -func (c *Client) UpdateWorkflowWithBody(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateWorkflowRequestWithBody(c.Server, namespaceName, workflowName, contentType, body) +func (c *Client) CreateTrait(ctx context.Context, namespaceName NamespaceNameParam, body CreateTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateTraitRequest(c.Server, namespaceName, body) if err != nil { return nil, err } @@ -3060,8 +3274,8 @@ func (c *Client) UpdateWorkflowWithBody(ctx context.Context, namespaceName Names return c.Client.Do(req) } -func (c *Client) UpdateWorkflow(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, body UpdateWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateWorkflowRequest(c.Server, namespaceName, workflowName, body) +func (c *Client) DeleteTrait(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteTraitRequest(c.Server, namespaceName, traitName) if err != nil { return nil, err } @@ -3072,8 +3286,8 @@ func (c *Client) UpdateWorkflow(ctx context.Context, namespaceName NamespaceName return c.Client.Do(req) } -func (c *Client) GetWorkflowSchema(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetWorkflowSchemaRequest(c.Server, namespaceName, workflowName) +func (c *Client) GetTrait(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTraitRequest(c.Server, namespaceName, traitName) if err != nil { return nil, err } @@ -3084,8 +3298,8 @@ func (c *Client) GetWorkflowSchema(ctx context.Context, namespaceName NamespaceN return c.Client.Do(req) } -func (c *Client) ListWorkloads(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkloadsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListWorkloadsRequest(c.Server, namespaceName, params) +func (c *Client) UpdateTraitWithBody(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTraitRequestWithBody(c.Server, namespaceName, traitName, contentType, body) if err != nil { return nil, err } @@ -3096,8 +3310,8 @@ func (c *Client) ListWorkloads(ctx context.Context, namespaceName NamespaceNameP return c.Client.Do(req) } -func (c *Client) CreateWorkloadWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateWorkloadRequestWithBody(c.Server, namespaceName, contentType, body) +func (c *Client) UpdateTrait(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, body UpdateTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTraitRequest(c.Server, namespaceName, traitName, body) if err != nil { return nil, err } @@ -3108,8 +3322,8 @@ func (c *Client) CreateWorkloadWithBody(ctx context.Context, namespaceName Names return c.Client.Do(req) } -func (c *Client) CreateWorkload(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateWorkloadRequest(c.Server, namespaceName, body) +func (c *Client) GetTraitSchema(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTraitSchemaRequest(c.Server, namespaceName, traitName) if err != nil { return nil, err } @@ -3120,8 +3334,8 @@ func (c *Client) CreateWorkload(ctx context.Context, namespaceName NamespaceName return c.Client.Do(req) } -func (c *Client) DeleteWorkload(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteWorkloadRequest(c.Server, namespaceName, workloadName) +func (c *Client) ListWorkflowPlanes(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowPlanesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListWorkflowPlanesRequest(c.Server, namespaceName, params) if err != nil { return nil, err } @@ -3132,8 +3346,8 @@ func (c *Client) DeleteWorkload(ctx context.Context, namespaceName NamespaceName return c.Client.Do(req) } -func (c *Client) GetWorkload(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetWorkloadRequest(c.Server, namespaceName, workloadName) +func (c *Client) CreateWorkflowPlaneWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateWorkflowPlaneRequestWithBody(c.Server, namespaceName, contentType, body) if err != nil { return nil, err } @@ -3144,8 +3358,8 @@ func (c *Client) GetWorkload(ctx context.Context, namespaceName NamespaceNamePar return c.Client.Do(req) } -func (c *Client) UpdateWorkloadWithBody(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateWorkloadRequestWithBody(c.Server, namespaceName, workloadName, contentType, body) +func (c *Client) CreateWorkflowPlane(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateWorkflowPlaneRequest(c.Server, namespaceName, body) if err != nil { return nil, err } @@ -3156,8 +3370,8 @@ func (c *Client) UpdateWorkloadWithBody(ctx context.Context, namespaceName Names return c.Client.Do(req) } -func (c *Client) UpdateWorkload(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, body UpdateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateWorkloadRequest(c.Server, namespaceName, workloadName, body) +func (c *Client) DeleteWorkflowPlane(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteWorkflowPlaneRequest(c.Server, namespaceName, workflowPlaneName) if err != nil { return nil, err } @@ -3168,9 +3382,9 @@ func (c *Client) UpdateWorkload(ctx context.Context, namespaceName NamespaceName return c.Client.Do(req) } -func (c *Client) HandleAutoBuildWithBody(ctx context.Context, params *HandleAutoBuildParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewHandleAutoBuildRequestWithBody(c.Server, params, contentType, body) - if err != nil { +func (c *Client) GetWorkflowPlane(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkflowPlaneRequest(c.Server, namespaceName, workflowPlaneName) + if err != nil { return nil, err } req = req.WithContext(ctx) @@ -3180,8 +3394,8 @@ func (c *Client) HandleAutoBuildWithBody(ctx context.Context, params *HandleAuto return c.Client.Do(req) } -func (c *Client) HandleAutoBuild(ctx context.Context, params *HandleAutoBuildParams, body HandleAutoBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewHandleAutoBuildRequest(c.Server, params, body) +func (c *Client) UpdateWorkflowPlaneWithBody(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateWorkflowPlaneRequestWithBody(c.Server, namespaceName, workflowPlaneName, contentType, body) if err != nil { return nil, err } @@ -3192,8 +3406,8 @@ func (c *Client) HandleAutoBuild(ctx context.Context, params *HandleAutoBuildPar return c.Client.Do(req) } -func (c *Client) ListGitSecrets(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewListGitSecretsRequest(c.Server, namespaceName) +func (c *Client) UpdateWorkflowPlane(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, body UpdateWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateWorkflowPlaneRequest(c.Server, namespaceName, workflowPlaneName, body) if err != nil { return nil, err } @@ -3204,8 +3418,8 @@ func (c *Client) ListGitSecrets(ctx context.Context, namespaceName NamespaceName return c.Client.Do(req) } -func (c *Client) CreateGitSecretWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateGitSecretRequestWithBody(c.Server, namespaceName, contentType, body) +func (c *Client) ListWorkflowRuns(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListWorkflowRunsRequest(c.Server, namespaceName, params) if err != nil { return nil, err } @@ -3216,8 +3430,8 @@ func (c *Client) CreateGitSecretWithBody(ctx context.Context, namespaceName Name return c.Client.Do(req) } -func (c *Client) CreateGitSecret(ctx context.Context, namespaceName NamespaceNameParam, body CreateGitSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateGitSecretRequest(c.Server, namespaceName, body) +func (c *Client) CreateWorkflowRunWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateWorkflowRunRequestWithBody(c.Server, namespaceName, contentType, body) if err != nil { return nil, err } @@ -3228,8 +3442,8 @@ func (c *Client) CreateGitSecret(ctx context.Context, namespaceName NamespaceNam return c.Client.Do(req) } -func (c *Client) DeleteGitSecret(ctx context.Context, namespaceName NamespaceNameParam, gitSecretName GitSecretNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteGitSecretRequest(c.Server, namespaceName, gitSecretName) +func (c *Client) CreateWorkflowRun(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateWorkflowRunRequest(c.Server, namespaceName, body) if err != nil { return nil, err } @@ -3240,8 +3454,8 @@ func (c *Client) DeleteGitSecret(ctx context.Context, namespaceName NamespaceNam return c.Client.Do(req) } -func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetHealthRequest(c.Server) +func (c *Client) DeleteWorkflowRun(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteWorkflowRunRequest(c.Server, namespaceName, runName) if err != nil { return nil, err } @@ -3252,8 +3466,8 @@ func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) ( return c.Client.Do(req) } -func (c *Client) GetOpenAPISpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOpenAPISpecRequest(c.Server) +func (c *Client) GetWorkflowRun(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkflowRunRequest(c.Server, namespaceName, runName) if err != nil { return nil, err } @@ -3264,8 +3478,8 @@ func (c *Client) GetOpenAPISpec(ctx context.Context, reqEditors ...RequestEditor return c.Client.Do(req) } -func (c *Client) GetReady(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetReadyRequest(c.Server) +func (c *Client) UpdateWorkflowRunWithBody(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateWorkflowRunRequestWithBody(c.Server, namespaceName, runName, contentType, body) if err != nil { return nil, err } @@ -3276,8 +3490,8 @@ func (c *Client) GetReady(ctx context.Context, reqEditors ...RequestEditorFn) (* return c.Client.Do(req) } -func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetVersionRequest(c.Server) +func (c *Client) UpdateWorkflowRun(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, body UpdateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateWorkflowRunRequest(c.Server, namespaceName, runName, body) if err != nil { return nil, err } @@ -3288,538 +3502,428 @@ func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) return c.Client.Do(req) } -// NewGetOAuthProtectedResourceMetadataRequest generates requests for GetOAuthProtectedResourceMetadata -func NewGetOAuthProtectedResourceMetadataRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) GetWorkflowRunEvents(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkflowRunEventsRequest(c.Server, namespaceName, runName, params) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/.well-known/oauth-protected-resource") - 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) GetWorkflowRunLogs(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkflowRunLogsRequest(c.Server, namespaceName, runName, 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("GET", queryURL.String(), nil) +func (c *Client) GetWorkflowRunStatus(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkflowRunStatusRequest(c.Server, namespaceName, runName) 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) } -// NewListSubjectTypesRequest generates requests for ListSubjectTypes -func NewListSubjectTypesRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) ListWorkflows(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListWorkflowsRequest(c.Server, namespaceName, params) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/api/v1/authn/subject-types") - 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) CreateWorkflowWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateWorkflowRequestWithBody(c.Server, namespaceName, 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) +} - req, err := http.NewRequest("GET", queryURL.String(), nil) +func (c *Client) CreateWorkflow(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateWorkflowRequest(c.Server, namespaceName, 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) } -// NewListActionsRequest generates requests for ListActions -func NewListActionsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) DeleteWorkflow(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteWorkflowRequest(c.Server, namespaceName, workflowName) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/api/v1/authz/actions") - 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) GetWorkflow(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkflowRequest(c.Server, namespaceName, workflowName) 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) UpdateWorkflowWithBody(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateWorkflowRequestWithBody(c.Server, namespaceName, workflowName, 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) } -// NewEvaluatesRequest calls the generic Evaluates builder with application/json body -func NewEvaluatesRequest(server string, body EvaluatesJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) UpdateWorkflow(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, body UpdateWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateWorkflowRequest(c.Server, namespaceName, workflowName, body) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewEvaluatesRequestWithBody(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) } -// NewEvaluatesRequestWithBody generates requests for Evaluates with any type of body -func NewEvaluatesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) GetWorkflowSchema(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkflowSchemaRequest(c.Server, namespaceName, workflowName) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/api/v1/authz/evaluates") - 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) ListWorkloads(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkloadsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListWorkloadsRequest(c.Server, namespaceName, 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(), body) +func (c *Client) CreateWorkloadWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateWorkloadRequestWithBody(c.Server, namespaceName, contentType, body) 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) } -// NewGetSubjectProfileRequest generates requests for GetSubjectProfile -func NewGetSubjectProfileRequest(server string, params *GetSubjectProfileParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) CreateWorkload(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateWorkloadRequest(c.Server, namespaceName, 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) +} - operationPath := fmt.Sprintf("/api/v1/authz/profile") - if operationPath[0] == '/' { - operationPath = "." + operationPath +func (c *Client) DeleteWorkload(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteWorkloadRequest(c.Server, namespaceName, workloadName) + 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) GetWorkload(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkloadRequest(c.Server, namespaceName, workloadName) 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) +} - if params != nil { - queryValues := queryURL.Query() +func (c *Client) UpdateWorkloadWithBody(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateWorkloadRequestWithBody(c.Server, namespaceName, workloadName, 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) +} - if params.Namespace != nil { +func (c *Client) UpdateWorkload(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, body UpdateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateWorkloadRequest(c.Server, namespaceName, workloadName, 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) +} - 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.Project != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); 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.Component != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "component", runtime.ParamLocationQuery, *params.Component); 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) +func (c *Client) HandleAutoBuildWithBody(ctx context.Context, params *HandleAutoBuildParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHandleAutoBuildRequestWithBody(c.Server, params, 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) } -// NewListClusterRoleBindingsRequest generates requests for ListClusterRoleBindings -func NewListClusterRoleBindingsRequest(server string, params *ListClusterRoleBindingsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) HandleAutoBuild(ctx context.Context, params *HandleAutoBuildParams, body HandleAutoBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHandleAutoBuildRequest(c.Server, params, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/api/v1/clusterauthzrolebindings") - 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) ListGitSecrets(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListGitSecretsRequest(c.Server, namespaceName) if err != nil { return nil, err } - - if params != nil { - queryValues := queryURL.Query() - - if params.LabelSelector != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); 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.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 = 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) CreateGitSecretWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateGitSecretRequestWithBody(c.Server, namespaceName, 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) } -// NewCreateClusterRoleBindingRequest calls the generic CreateClusterRoleBinding builder with application/json body -func NewCreateClusterRoleBindingRequest(server string, body CreateClusterRoleBindingJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) CreateGitSecret(ctx context.Context, namespaceName NamespaceNameParam, body CreateGitSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateGitSecretRequest(c.Server, namespaceName, body) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewCreateClusterRoleBindingRequestWithBody(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) } -// NewCreateClusterRoleBindingRequestWithBody generates requests for CreateClusterRoleBinding with any type of body -func NewCreateClusterRoleBindingRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) DeleteGitSecret(ctx context.Context, namespaceName NamespaceNameParam, gitSecretName GitSecretNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteGitSecretRequest(c.Server, namespaceName, gitSecretName) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/api/v1/clusterauthzrolebindings") - 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) ListSecrets(ctx context.Context, namespaceName NamespaceNameParam, params *ListSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSecretsRequest(c.Server, namespaceName, params) 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) } -// NewDeleteClusterRoleBindingRequest generates requests for DeleteClusterRoleBinding -func NewDeleteClusterRoleBindingRequest(server string, name string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) +func (c *Client) CreateSecretWithBody(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSecretRequestWithBody(c.Server, namespaceName, 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) CreateSecret(ctx context.Context, namespaceName NamespaceNameParam, body CreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSecretRequest(c.Server, namespaceName, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/api/v1/clusterauthzrolebindings/%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) DeleteSecret(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSecretRequest(c.Server, namespaceName, secretName) 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) } -// NewGetClusterRoleBindingRequest generates requests for GetClusterRoleBinding -func NewGetClusterRoleBindingRequest(server string, name string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) +func (c *Client) GetSecret(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSecretRequest(c.Server, namespaceName, secretName) 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) UpdateSecretWithBody(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSecretRequestWithBody(c.Server, namespaceName, secretName, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/api/v1/clusterauthzrolebindings/%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) UpdateSecret(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, body UpdateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSecretRequest(c.Server, namespaceName, secretName, 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) } -// NewUpdateClusterRoleBindingRequest calls the generic UpdateClusterRoleBinding builder with application/json body -func NewUpdateClusterRoleBindingRequest(server string, name string, body UpdateClusterRoleBindingJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetHealthRequest(c.Server) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewUpdateClusterRoleBindingRequestWithBody(server, name, "application/json", bodyReader) -} - -// NewUpdateClusterRoleBindingRequestWithBody generates requests for UpdateClusterRoleBinding with any type of body -func NewUpdateClusterRoleBindingRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) - 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("/api/v1/clusterauthzrolebindings/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) GetOpenAPISpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOpenAPISpecRequest(c.Server) 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) } -// NewListClusterRolesRequest generates requests for ListClusterRoles -func NewListClusterRolesRequest(server string, params *ListClusterRolesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) GetReady(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReadyRequest(c.Server) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/api/v1/clusterauthzroles") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - if params != nil { - queryValues := queryURL.Query() - - if params.LabelSelector != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); 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.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) +func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetVersionRequest(c.Server) if err != nil { return nil, err } - - return req, nil -} - -// NewCreateClusterRoleRequest calls the generic CreateClusterRole builder with application/json body -func NewCreateClusterRoleRequest(server string, body CreateClusterRoleJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewCreateClusterRoleRequestWithBody(server, "application/json", bodyReader) + return c.Client.Do(req) } -// NewCreateClusterRoleRequestWithBody generates requests for CreateClusterRole with any type of body -func NewCreateClusterRoleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetOAuthProtectedResourceMetadataRequest generates requests for GetOAuthProtectedResourceMetadata +func NewGetOAuthProtectedResourceMetadataRequest(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -3827,7 +3931,7 @@ func NewCreateClusterRoleRequestWithBody(server string, contentType string, body return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterauthzroles") + operationPath := fmt.Sprintf("/.well-known/oauth-protected-resource") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3837,33 +3941,24 @@ func NewCreateClusterRoleRequestWithBody(server string, contentType string, body return nil, err } - 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 } -// NewDeleteClusterRoleRequest generates requests for DeleteClusterRole -func NewDeleteClusterRoleRequest(server string, name string) (*http.Request, error) { +// NewListSubjectTypesRequest generates requests for ListSubjectTypes +func NewListSubjectTypesRequest(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterauthzroles/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/authn/subject-types") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3873,7 +3968,7 @@ func NewDeleteClusterRoleRequest(server string, name string) (*http.Request, err return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -3881,23 +3976,16 @@ func NewDeleteClusterRoleRequest(server string, name string) (*http.Request, err return req, nil } -// NewGetClusterRoleRequest generates requests for GetClusterRole -func NewGetClusterRoleRequest(server string, name string) (*http.Request, error) { +// NewListActionsRequest generates requests for ListActions +func NewListActionsRequest(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterauthzroles/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/authz/actions") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3915,34 +4003,27 @@ func NewGetClusterRoleRequest(server string, name string) (*http.Request, error) return req, nil } -// NewUpdateClusterRoleRequest calls the generic UpdateClusterRole builder with application/json body -func NewUpdateClusterRoleRequest(server string, name string, body UpdateClusterRoleJSONRequestBody) (*http.Request, error) { +// NewEvaluatesRequest calls the generic Evaluates builder with application/json body +func NewEvaluatesRequest(server string, body EvaluatesJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateClusterRoleRequestWithBody(server, name, "application/json", bodyReader) + return NewEvaluatesRequestWithBody(server, "application/json", bodyReader) } -// NewUpdateClusterRoleRequestWithBody generates requests for UpdateClusterRole with any type of body -func NewUpdateClusterRoleRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) { +// NewEvaluatesRequestWithBody generates requests for Evaluates with any type of body +func NewEvaluatesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterauthzroles/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/authz/evaluates") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3952,7 +4033,7 @@ func NewUpdateClusterRoleRequestWithBody(server string, name string, contentType return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -3962,8 +4043,8 @@ func NewUpdateClusterRoleRequestWithBody(server string, name string, contentType return req, nil } -// NewListClusterComponentTypesRequest generates requests for ListClusterComponentTypes -func NewListClusterComponentTypesRequest(server string, params *ListClusterComponentTypesParams) (*http.Request, error) { +// NewGetSubjectProfileRequest generates requests for GetSubjectProfile +func NewGetSubjectProfileRequest(server string, params *GetSubjectProfileParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -3971,7 +4052,7 @@ func NewListClusterComponentTypesRequest(server string, params *ListClusterCompo return nil, err } - operationPath := fmt.Sprintf("/api/v1/clustercomponenttypes") + operationPath := fmt.Sprintf("/api/v1/authz/profile") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -3984,9 +4065,9 @@ func NewListClusterComponentTypesRequest(server string, params *ListClusterCompo if params != nil { queryValues := queryURL.Query() - if params.LabelSelector != nil { + if params.Namespace != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); err != 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 @@ -4000,9 +4081,9 @@ func NewListClusterComponentTypesRequest(server string, params *ListClusterCompo } - if params.Limit != nil { + if params.Project != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4016,9 +4097,25 @@ func NewListClusterComponentTypesRequest(server string, params *ListClusterCompo } - if params.Cursor != nil { + if params.Component != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cursor", runtime.ParamLocationQuery, *params.Cursor); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "component", runtime.ParamLocationQuery, *params.Component); 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.Resource != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "resource", runtime.ParamLocationQuery, *params.Resource); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4043,19 +4140,8 @@ func NewListClusterComponentTypesRequest(server string, params *ListClusterCompo return req, nil } -// NewCreateClusterComponentTypeRequest calls the generic CreateClusterComponentType builder with application/json body -func NewCreateClusterComponentTypeRequest(server string, body CreateClusterComponentTypeJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateClusterComponentTypeRequestWithBody(server, "application/json", bodyReader) -} - -// NewCreateClusterComponentTypeRequestWithBody generates requests for CreateClusterComponentType with any type of body -func NewCreateClusterComponentTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewListClusterRoleBindingsRequest generates requests for ListClusterRoleBindings +func NewListClusterRoleBindingsRequest(server string, params *ListClusterRoleBindingsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -4063,7 +4149,7 @@ func NewCreateClusterComponentTypeRequestWithBody(server string, contentType str return nil, err } - operationPath := fmt.Sprintf("/api/v1/clustercomponenttypes") + operationPath := fmt.Sprintf("/api/v1/clusterauthzrolebindings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4073,33 +4159,89 @@ func NewCreateClusterComponentTypeRequestWithBody(server string, contentType str return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - req.Header.Add("Content-Type", contentType) + if params.LabelSelector != nil { - return req, nil -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); 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) + } + } + } -// NewDeleteClusterComponentTypeRequest generates requests for DeleteClusterComponentType -func NewDeleteClusterComponentTypeRequest(server string, cctName ClusterComponentTypeNameParam) (*http.Request, error) { - var err error + } - var pathParam0 string + if params.Limit != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cctName", runtime.ParamLocationPath, cctName) + 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 +} + +// NewCreateClusterRoleBindingRequest calls the generic CreateClusterRoleBinding builder with application/json body +func NewCreateClusterRoleBindingRequest(server string, body CreateClusterRoleBindingJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewCreateClusterRoleBindingRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateClusterRoleBindingRequestWithBody generates requests for CreateClusterRoleBinding with any type of body +func NewCreateClusterRoleBindingRequestWithBody(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("/api/v1/clustercomponenttypes/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterauthzrolebindings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4109,21 +4251,23 @@ func NewDeleteClusterComponentTypeRequest(server string, cctName ClusterComponen 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 } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetClusterComponentTypeRequest generates requests for GetClusterComponentType -func NewGetClusterComponentTypeRequest(server string, cctName ClusterComponentTypeNameParam) (*http.Request, error) { +// NewDeleteClusterRoleBindingRequest generates requests for DeleteClusterRoleBinding +func NewDeleteClusterRoleBindingRequest(server string, name string) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cctName", runtime.ParamLocationPath, cctName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -4133,7 +4277,7 @@ func NewGetClusterComponentTypeRequest(server string, cctName ClusterComponentTy return nil, err } - operationPath := fmt.Sprintf("/api/v1/clustercomponenttypes/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterauthzrolebindings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4143,7 +4287,7 @@ func NewGetClusterComponentTypeRequest(server string, cctName ClusterComponentTy 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 } @@ -4151,24 +4295,13 @@ func NewGetClusterComponentTypeRequest(server string, cctName ClusterComponentTy return req, nil } -// NewUpdateClusterComponentTypeRequest calls the generic UpdateClusterComponentType builder with application/json body -func NewUpdateClusterComponentTypeRequest(server string, cctName ClusterComponentTypeNameParam, body UpdateClusterComponentTypeJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateClusterComponentTypeRequestWithBody(server, cctName, "application/json", bodyReader) -} - -// NewUpdateClusterComponentTypeRequestWithBody generates requests for UpdateClusterComponentType with any type of body -func NewUpdateClusterComponentTypeRequestWithBody(server string, cctName ClusterComponentTypeNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewGetClusterRoleBindingRequest generates requests for GetClusterRoleBinding +func NewGetClusterRoleBindingRequest(server string, name string) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cctName", runtime.ParamLocationPath, cctName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -4178,7 +4311,7 @@ func NewUpdateClusterComponentTypeRequestWithBody(server string, cctName Cluster return nil, err } - operationPath := fmt.Sprintf("/api/v1/clustercomponenttypes/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterauthzrolebindings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4188,23 +4321,32 @@ func NewUpdateClusterComponentTypeRequestWithBody(server string, cctName Cluster return nil, err } - 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 } -// NewGetClusterComponentTypeSchemaRequest generates requests for GetClusterComponentTypeSchema -func NewGetClusterComponentTypeSchemaRequest(server string, cctName ClusterComponentTypeNameParam) (*http.Request, error) { +// NewUpdateClusterRoleBindingRequest calls the generic UpdateClusterRoleBinding builder with application/json body +func NewUpdateClusterRoleBindingRequest(server string, name string, body UpdateClusterRoleBindingJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateClusterRoleBindingRequestWithBody(server, name, "application/json", bodyReader) +} + +// NewUpdateClusterRoleBindingRequestWithBody generates requests for UpdateClusterRoleBinding with any type of body +func NewUpdateClusterRoleBindingRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cctName", runtime.ParamLocationPath, cctName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -4214,7 +4356,7 @@ func NewGetClusterComponentTypeSchemaRequest(server string, cctName ClusterCompo return nil, err } - operationPath := fmt.Sprintf("/api/v1/clustercomponenttypes/%s/schema", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterauthzrolebindings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4224,16 +4366,18 @@ func NewGetClusterComponentTypeSchemaRequest(server string, cctName ClusterCompo return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewListClusterDataPlanesRequest generates requests for ListClusterDataPlanes -func NewListClusterDataPlanesRequest(server string, params *ListClusterDataPlanesParams) (*http.Request, error) { +// NewListClusterRolesRequest generates requests for ListClusterRoles +func NewListClusterRolesRequest(server string, params *ListClusterRolesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -4241,7 +4385,7 @@ func NewListClusterDataPlanesRequest(server string, params *ListClusterDataPlane return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterdataplanes") + operationPath := fmt.Sprintf("/api/v1/clusterauthzroles") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4313,19 +4457,19 @@ func NewListClusterDataPlanesRequest(server string, params *ListClusterDataPlane return req, nil } -// NewCreateClusterDataPlaneRequest calls the generic CreateClusterDataPlane builder with application/json body -func NewCreateClusterDataPlaneRequest(server string, body CreateClusterDataPlaneJSONRequestBody) (*http.Request, error) { +// NewCreateClusterRoleRequest calls the generic CreateClusterRole builder with application/json body +func NewCreateClusterRoleRequest(server string, body CreateClusterRoleJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateClusterDataPlaneRequestWithBody(server, "application/json", bodyReader) + return NewCreateClusterRoleRequestWithBody(server, "application/json", bodyReader) } -// NewCreateClusterDataPlaneRequestWithBody generates requests for CreateClusterDataPlane with any type of body -func NewCreateClusterDataPlaneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateClusterRoleRequestWithBody generates requests for CreateClusterRole with any type of body +func NewCreateClusterRoleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -4333,7 +4477,7 @@ func NewCreateClusterDataPlaneRequestWithBody(server string, contentType string, return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterdataplanes") + operationPath := fmt.Sprintf("/api/v1/clusterauthzroles") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4353,13 +4497,13 @@ func NewCreateClusterDataPlaneRequestWithBody(server string, contentType string, return req, nil } -// NewDeleteClusterDataPlaneRequest generates requests for DeleteClusterDataPlane -func NewDeleteClusterDataPlaneRequest(server string, cdpName ClusterDataPlaneNameParam) (*http.Request, error) { +// NewDeleteClusterRoleRequest generates requests for DeleteClusterRole +func NewDeleteClusterRoleRequest(server string, name string) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cdpName", runtime.ParamLocationPath, cdpName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -4369,7 +4513,7 @@ func NewDeleteClusterDataPlaneRequest(server string, cdpName ClusterDataPlaneNam return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterdataplanes/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterauthzroles/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4387,13 +4531,13 @@ func NewDeleteClusterDataPlaneRequest(server string, cdpName ClusterDataPlaneNam return req, nil } -// NewGetClusterDataPlaneRequest generates requests for GetClusterDataPlane -func NewGetClusterDataPlaneRequest(server string, cdpName ClusterDataPlaneNameParam) (*http.Request, error) { +// NewGetClusterRoleRequest generates requests for GetClusterRole +func NewGetClusterRoleRequest(server string, name string) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cdpName", runtime.ParamLocationPath, cdpName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -4403,7 +4547,7 @@ func NewGetClusterDataPlaneRequest(server string, cdpName ClusterDataPlaneNamePa return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterdataplanes/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterauthzroles/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4421,24 +4565,24 @@ func NewGetClusterDataPlaneRequest(server string, cdpName ClusterDataPlaneNamePa return req, nil } -// NewUpdateClusterDataPlaneRequest calls the generic UpdateClusterDataPlane builder with application/json body -func NewUpdateClusterDataPlaneRequest(server string, cdpName ClusterDataPlaneNameParam, body UpdateClusterDataPlaneJSONRequestBody) (*http.Request, error) { +// NewUpdateClusterRoleRequest calls the generic UpdateClusterRole builder with application/json body +func NewUpdateClusterRoleRequest(server string, name string, body UpdateClusterRoleJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateClusterDataPlaneRequestWithBody(server, cdpName, "application/json", bodyReader) + return NewUpdateClusterRoleRequestWithBody(server, name, "application/json", bodyReader) } -// NewUpdateClusterDataPlaneRequestWithBody generates requests for UpdateClusterDataPlane with any type of body -func NewUpdateClusterDataPlaneRequestWithBody(server string, cdpName ClusterDataPlaneNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateClusterRoleRequestWithBody generates requests for UpdateClusterRole with any type of body +func NewUpdateClusterRoleRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cdpName", runtime.ParamLocationPath, cdpName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -4448,7 +4592,7 @@ func NewUpdateClusterDataPlaneRequestWithBody(server string, cdpName ClusterData return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterdataplanes/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterauthzroles/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4468,8 +4612,8 @@ func NewUpdateClusterDataPlaneRequestWithBody(server string, cdpName ClusterData return req, nil } -// NewListClusterObservabilityPlanesRequest generates requests for ListClusterObservabilityPlanes -func NewListClusterObservabilityPlanesRequest(server string, params *ListClusterObservabilityPlanesParams) (*http.Request, error) { +// NewListClusterComponentTypesRequest generates requests for ListClusterComponentTypes +func NewListClusterComponentTypesRequest(server string, params *ListClusterComponentTypesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -4477,7 +4621,7 @@ func NewListClusterObservabilityPlanesRequest(server string, params *ListCluster return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterobservabilityplanes") + operationPath := fmt.Sprintf("/api/v1/clustercomponenttypes") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4549,19 +4693,19 @@ func NewListClusterObservabilityPlanesRequest(server string, params *ListCluster return req, nil } -// NewCreateClusterObservabilityPlaneRequest calls the generic CreateClusterObservabilityPlane builder with application/json body -func NewCreateClusterObservabilityPlaneRequest(server string, body CreateClusterObservabilityPlaneJSONRequestBody) (*http.Request, error) { +// NewCreateClusterComponentTypeRequest calls the generic CreateClusterComponentType builder with application/json body +func NewCreateClusterComponentTypeRequest(server string, body CreateClusterComponentTypeJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateClusterObservabilityPlaneRequestWithBody(server, "application/json", bodyReader) + return NewCreateClusterComponentTypeRequestWithBody(server, "application/json", bodyReader) } -// NewCreateClusterObservabilityPlaneRequestWithBody generates requests for CreateClusterObservabilityPlane with any type of body -func NewCreateClusterObservabilityPlaneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateClusterComponentTypeRequestWithBody generates requests for CreateClusterComponentType with any type of body +func NewCreateClusterComponentTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -4569,7 +4713,7 @@ func NewCreateClusterObservabilityPlaneRequestWithBody(server string, contentTyp return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterobservabilityplanes") + operationPath := fmt.Sprintf("/api/v1/clustercomponenttypes") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4589,13 +4733,13 @@ func NewCreateClusterObservabilityPlaneRequestWithBody(server string, contentTyp return req, nil } -// NewDeleteClusterObservabilityPlaneRequest generates requests for DeleteClusterObservabilityPlane -func NewDeleteClusterObservabilityPlaneRequest(server string, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam) (*http.Request, error) { +// NewDeleteClusterComponentTypeRequest generates requests for DeleteClusterComponentType +func NewDeleteClusterComponentTypeRequest(server string, cctName ClusterComponentTypeNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterObservabilityPlaneName", runtime.ParamLocationPath, clusterObservabilityPlaneName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cctName", runtime.ParamLocationPath, cctName) if err != nil { return nil, err } @@ -4605,7 +4749,7 @@ func NewDeleteClusterObservabilityPlaneRequest(server string, clusterObservabili return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterobservabilityplanes/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clustercomponenttypes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4623,13 +4767,13 @@ func NewDeleteClusterObservabilityPlaneRequest(server string, clusterObservabili return req, nil } -// NewGetClusterObservabilityPlaneRequest generates requests for GetClusterObservabilityPlane -func NewGetClusterObservabilityPlaneRequest(server string, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam) (*http.Request, error) { +// NewGetClusterComponentTypeRequest generates requests for GetClusterComponentType +func NewGetClusterComponentTypeRequest(server string, cctName ClusterComponentTypeNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterObservabilityPlaneName", runtime.ParamLocationPath, clusterObservabilityPlaneName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cctName", runtime.ParamLocationPath, cctName) if err != nil { return nil, err } @@ -4639,7 +4783,7 @@ func NewGetClusterObservabilityPlaneRequest(server string, clusterObservabilityP return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterobservabilityplanes/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clustercomponenttypes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4657,24 +4801,24 @@ func NewGetClusterObservabilityPlaneRequest(server string, clusterObservabilityP return req, nil } -// NewUpdateClusterObservabilityPlaneRequest calls the generic UpdateClusterObservabilityPlane builder with application/json body -func NewUpdateClusterObservabilityPlaneRequest(server string, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, body UpdateClusterObservabilityPlaneJSONRequestBody) (*http.Request, error) { +// NewUpdateClusterComponentTypeRequest calls the generic UpdateClusterComponentType builder with application/json body +func NewUpdateClusterComponentTypeRequest(server string, cctName ClusterComponentTypeNameParam, body UpdateClusterComponentTypeJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateClusterObservabilityPlaneRequestWithBody(server, clusterObservabilityPlaneName, "application/json", bodyReader) + return NewUpdateClusterComponentTypeRequestWithBody(server, cctName, "application/json", bodyReader) } -// NewUpdateClusterObservabilityPlaneRequestWithBody generates requests for UpdateClusterObservabilityPlane with any type of body -func NewUpdateClusterObservabilityPlaneRequestWithBody(server string, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateClusterComponentTypeRequestWithBody generates requests for UpdateClusterComponentType with any type of body +func NewUpdateClusterComponentTypeRequestWithBody(server string, cctName ClusterComponentTypeNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterObservabilityPlaneName", runtime.ParamLocationPath, clusterObservabilityPlaneName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cctName", runtime.ParamLocationPath, cctName) if err != nil { return nil, err } @@ -4684,7 +4828,7 @@ func NewUpdateClusterObservabilityPlaneRequestWithBody(server string, clusterObs return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterobservabilityplanes/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clustercomponenttypes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4704,8 +4848,42 @@ func NewUpdateClusterObservabilityPlaneRequestWithBody(server string, clusterObs return req, nil } -// NewListClusterTraitsRequest generates requests for ListClusterTraits -func NewListClusterTraitsRequest(server string, params *ListClusterTraitsParams) (*http.Request, error) { +// NewGetClusterComponentTypeSchemaRequest generates requests for GetClusterComponentTypeSchema +func NewGetClusterComponentTypeSchemaRequest(server string, cctName ClusterComponentTypeNameParam) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cctName", runtime.ParamLocationPath, cctName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/clustercomponenttypes/%s/schema", 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 +} + +// NewListClusterDataPlanesRequest generates requests for ListClusterDataPlanes +func NewListClusterDataPlanesRequest(server string, params *ListClusterDataPlanesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -4713,7 +4891,7 @@ func NewListClusterTraitsRequest(server string, params *ListClusterTraitsParams) return nil, err } - operationPath := fmt.Sprintf("/api/v1/clustertraits") + operationPath := fmt.Sprintf("/api/v1/clusterdataplanes") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4785,19 +4963,19 @@ func NewListClusterTraitsRequest(server string, params *ListClusterTraitsParams) return req, nil } -// NewCreateClusterTraitRequest calls the generic CreateClusterTrait builder with application/json body -func NewCreateClusterTraitRequest(server string, body CreateClusterTraitJSONRequestBody) (*http.Request, error) { +// NewCreateClusterDataPlaneRequest calls the generic CreateClusterDataPlane builder with application/json body +func NewCreateClusterDataPlaneRequest(server string, body CreateClusterDataPlaneJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateClusterTraitRequestWithBody(server, "application/json", bodyReader) + return NewCreateClusterDataPlaneRequestWithBody(server, "application/json", bodyReader) } -// NewCreateClusterTraitRequestWithBody generates requests for CreateClusterTrait with any type of body -func NewCreateClusterTraitRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateClusterDataPlaneRequestWithBody generates requests for CreateClusterDataPlane with any type of body +func NewCreateClusterDataPlaneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -4805,7 +4983,7 @@ func NewCreateClusterTraitRequestWithBody(server string, contentType string, bod return nil, err } - operationPath := fmt.Sprintf("/api/v1/clustertraits") + operationPath := fmt.Sprintf("/api/v1/clusterdataplanes") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4825,13 +5003,13 @@ func NewCreateClusterTraitRequestWithBody(server string, contentType string, bod return req, nil } -// NewDeleteClusterTraitRequest generates requests for DeleteClusterTrait -func NewDeleteClusterTraitRequest(server string, clusterTraitName ClusterTraitNameParam) (*http.Request, error) { +// NewDeleteClusterDataPlaneRequest generates requests for DeleteClusterDataPlane +func NewDeleteClusterDataPlaneRequest(server string, cdpName ClusterDataPlaneNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterTraitName", runtime.ParamLocationPath, clusterTraitName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cdpName", runtime.ParamLocationPath, cdpName) if err != nil { return nil, err } @@ -4841,7 +5019,7 @@ func NewDeleteClusterTraitRequest(server string, clusterTraitName ClusterTraitNa return nil, err } - operationPath := fmt.Sprintf("/api/v1/clustertraits/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterdataplanes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4859,13 +5037,13 @@ func NewDeleteClusterTraitRequest(server string, clusterTraitName ClusterTraitNa return req, nil } -// NewGetClusterTraitRequest generates requests for GetClusterTrait -func NewGetClusterTraitRequest(server string, clusterTraitName ClusterTraitNameParam) (*http.Request, error) { +// NewGetClusterDataPlaneRequest generates requests for GetClusterDataPlane +func NewGetClusterDataPlaneRequest(server string, cdpName ClusterDataPlaneNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterTraitName", runtime.ParamLocationPath, clusterTraitName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cdpName", runtime.ParamLocationPath, cdpName) if err != nil { return nil, err } @@ -4875,7 +5053,7 @@ func NewGetClusterTraitRequest(server string, clusterTraitName ClusterTraitNameP return nil, err } - operationPath := fmt.Sprintf("/api/v1/clustertraits/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterdataplanes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4893,24 +5071,24 @@ func NewGetClusterTraitRequest(server string, clusterTraitName ClusterTraitNameP return req, nil } -// NewUpdateClusterTraitRequest calls the generic UpdateClusterTrait builder with application/json body -func NewUpdateClusterTraitRequest(server string, clusterTraitName ClusterTraitNameParam, body UpdateClusterTraitJSONRequestBody) (*http.Request, error) { +// NewUpdateClusterDataPlaneRequest calls the generic UpdateClusterDataPlane builder with application/json body +func NewUpdateClusterDataPlaneRequest(server string, cdpName ClusterDataPlaneNameParam, body UpdateClusterDataPlaneJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateClusterTraitRequestWithBody(server, clusterTraitName, "application/json", bodyReader) + return NewUpdateClusterDataPlaneRequestWithBody(server, cdpName, "application/json", bodyReader) } -// NewUpdateClusterTraitRequestWithBody generates requests for UpdateClusterTrait with any type of body -func NewUpdateClusterTraitRequestWithBody(server string, clusterTraitName ClusterTraitNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateClusterDataPlaneRequestWithBody generates requests for UpdateClusterDataPlane with any type of body +func NewUpdateClusterDataPlaneRequestWithBody(server string, cdpName ClusterDataPlaneNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterTraitName", runtime.ParamLocationPath, clusterTraitName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cdpName", runtime.ParamLocationPath, cdpName) if err != nil { return nil, err } @@ -4920,7 +5098,7 @@ func NewUpdateClusterTraitRequestWithBody(server string, clusterTraitName Cluste return nil, err } - operationPath := fmt.Sprintf("/api/v1/clustertraits/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterdataplanes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -4940,42 +5118,8 @@ func NewUpdateClusterTraitRequestWithBody(server string, clusterTraitName Cluste return req, nil } -// NewGetClusterTraitSchemaRequest generates requests for GetClusterTraitSchema -func NewGetClusterTraitSchemaRequest(server string, clusterTraitName ClusterTraitNameParam) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterTraitName", runtime.ParamLocationPath, clusterTraitName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/v1/clustertraits/%s/schema", 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 -} - -// NewListClusterWorkflowPlanesRequest generates requests for ListClusterWorkflowPlanes -func NewListClusterWorkflowPlanesRequest(server string, params *ListClusterWorkflowPlanesParams) (*http.Request, error) { +// NewListClusterObservabilityPlanesRequest generates requests for ListClusterObservabilityPlanes +func NewListClusterObservabilityPlanesRequest(server string, params *ListClusterObservabilityPlanesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -4983,7 +5127,7 @@ func NewListClusterWorkflowPlanesRequest(server string, params *ListClusterWorkf return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterworkflowplanes") + operationPath := fmt.Sprintf("/api/v1/clusterobservabilityplanes") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5055,19 +5199,19 @@ func NewListClusterWorkflowPlanesRequest(server string, params *ListClusterWorkf return req, nil } -// NewCreateClusterWorkflowPlaneRequest calls the generic CreateClusterWorkflowPlane builder with application/json body -func NewCreateClusterWorkflowPlaneRequest(server string, body CreateClusterWorkflowPlaneJSONRequestBody) (*http.Request, error) { +// NewCreateClusterObservabilityPlaneRequest calls the generic CreateClusterObservabilityPlane builder with application/json body +func NewCreateClusterObservabilityPlaneRequest(server string, body CreateClusterObservabilityPlaneJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateClusterWorkflowPlaneRequestWithBody(server, "application/json", bodyReader) + return NewCreateClusterObservabilityPlaneRequestWithBody(server, "application/json", bodyReader) } -// NewCreateClusterWorkflowPlaneRequestWithBody generates requests for CreateClusterWorkflowPlane with any type of body -func NewCreateClusterWorkflowPlaneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateClusterObservabilityPlaneRequestWithBody generates requests for CreateClusterObservabilityPlane with any type of body +func NewCreateClusterObservabilityPlaneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -5075,7 +5219,7 @@ func NewCreateClusterWorkflowPlaneRequestWithBody(server string, contentType str return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterworkflowplanes") + operationPath := fmt.Sprintf("/api/v1/clusterobservabilityplanes") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5095,13 +5239,13 @@ func NewCreateClusterWorkflowPlaneRequestWithBody(server string, contentType str return req, nil } -// NewDeleteClusterWorkflowPlaneRequest generates requests for DeleteClusterWorkflowPlane -func NewDeleteClusterWorkflowPlaneRequest(server string, clusterWorkflowPlaneName string) (*http.Request, error) { +// NewDeleteClusterObservabilityPlaneRequest generates requests for DeleteClusterObservabilityPlane +func NewDeleteClusterObservabilityPlaneRequest(server string, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowPlaneName", runtime.ParamLocationPath, clusterWorkflowPlaneName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterObservabilityPlaneName", runtime.ParamLocationPath, clusterObservabilityPlaneName) if err != nil { return nil, err } @@ -5111,7 +5255,7 @@ func NewDeleteClusterWorkflowPlaneRequest(server string, clusterWorkflowPlaneNam return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterworkflowplanes/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterobservabilityplanes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5129,13 +5273,13 @@ func NewDeleteClusterWorkflowPlaneRequest(server string, clusterWorkflowPlaneNam return req, nil } -// NewGetClusterWorkflowPlaneRequest generates requests for GetClusterWorkflowPlane -func NewGetClusterWorkflowPlaneRequest(server string, clusterWorkflowPlaneName string) (*http.Request, error) { +// NewGetClusterObservabilityPlaneRequest generates requests for GetClusterObservabilityPlane +func NewGetClusterObservabilityPlaneRequest(server string, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowPlaneName", runtime.ParamLocationPath, clusterWorkflowPlaneName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterObservabilityPlaneName", runtime.ParamLocationPath, clusterObservabilityPlaneName) if err != nil { return nil, err } @@ -5145,7 +5289,7 @@ func NewGetClusterWorkflowPlaneRequest(server string, clusterWorkflowPlaneName s return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterworkflowplanes/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterobservabilityplanes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5163,24 +5307,24 @@ func NewGetClusterWorkflowPlaneRequest(server string, clusterWorkflowPlaneName s return req, nil } -// NewUpdateClusterWorkflowPlaneRequest calls the generic UpdateClusterWorkflowPlane builder with application/json body -func NewUpdateClusterWorkflowPlaneRequest(server string, clusterWorkflowPlaneName string, body UpdateClusterWorkflowPlaneJSONRequestBody) (*http.Request, error) { +// NewUpdateClusterObservabilityPlaneRequest calls the generic UpdateClusterObservabilityPlane builder with application/json body +func NewUpdateClusterObservabilityPlaneRequest(server string, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, body UpdateClusterObservabilityPlaneJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateClusterWorkflowPlaneRequestWithBody(server, clusterWorkflowPlaneName, "application/json", bodyReader) + return NewUpdateClusterObservabilityPlaneRequestWithBody(server, clusterObservabilityPlaneName, "application/json", bodyReader) } -// NewUpdateClusterWorkflowPlaneRequestWithBody generates requests for UpdateClusterWorkflowPlane with any type of body -func NewUpdateClusterWorkflowPlaneRequestWithBody(server string, clusterWorkflowPlaneName string, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateClusterObservabilityPlaneRequestWithBody generates requests for UpdateClusterObservabilityPlane with any type of body +func NewUpdateClusterObservabilityPlaneRequestWithBody(server string, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowPlaneName", runtime.ParamLocationPath, clusterWorkflowPlaneName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterObservabilityPlaneName", runtime.ParamLocationPath, clusterObservabilityPlaneName) if err != nil { return nil, err } @@ -5190,7 +5334,7 @@ func NewUpdateClusterWorkflowPlaneRequestWithBody(server string, clusterWorkflow return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterworkflowplanes/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterobservabilityplanes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5210,8 +5354,8 @@ func NewUpdateClusterWorkflowPlaneRequestWithBody(server string, clusterWorkflow return req, nil } -// NewListClusterWorkflowsRequest generates requests for ListClusterWorkflows -func NewListClusterWorkflowsRequest(server string, params *ListClusterWorkflowsParams) (*http.Request, error) { +// NewListClusterResourceTypesRequest generates requests for ListClusterResourceTypes +func NewListClusterResourceTypesRequest(server string, params *ListClusterResourceTypesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -5219,7 +5363,7 @@ func NewListClusterWorkflowsRequest(server string, params *ListClusterWorkflowsP return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterworkflows") + operationPath := fmt.Sprintf("/api/v1/clusterresourcetypes") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5291,19 +5435,19 @@ func NewListClusterWorkflowsRequest(server string, params *ListClusterWorkflowsP return req, nil } -// NewCreateClusterWorkflowRequest calls the generic CreateClusterWorkflow builder with application/json body -func NewCreateClusterWorkflowRequest(server string, body CreateClusterWorkflowJSONRequestBody) (*http.Request, error) { +// NewCreateClusterResourceTypeRequest calls the generic CreateClusterResourceType builder with application/json body +func NewCreateClusterResourceTypeRequest(server string, body CreateClusterResourceTypeJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateClusterWorkflowRequestWithBody(server, "application/json", bodyReader) + return NewCreateClusterResourceTypeRequestWithBody(server, "application/json", bodyReader) } -// NewCreateClusterWorkflowRequestWithBody generates requests for CreateClusterWorkflow with any type of body -func NewCreateClusterWorkflowRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateClusterResourceTypeRequestWithBody generates requests for CreateClusterResourceType with any type of body +func NewCreateClusterResourceTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -5311,7 +5455,7 @@ func NewCreateClusterWorkflowRequestWithBody(server string, contentType string, return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterworkflows") + operationPath := fmt.Sprintf("/api/v1/clusterresourcetypes") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5331,13 +5475,13 @@ func NewCreateClusterWorkflowRequestWithBody(server string, contentType string, return req, nil } -// NewDeleteClusterWorkflowRequest generates requests for DeleteClusterWorkflow -func NewDeleteClusterWorkflowRequest(server string, clusterWorkflowName ClusterWorkflowNameParam) (*http.Request, error) { +// NewDeleteClusterResourceTypeRequest generates requests for DeleteClusterResourceType +func NewDeleteClusterResourceTypeRequest(server string, crtName ClusterResourceTypeNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowName", runtime.ParamLocationPath, clusterWorkflowName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "crtName", runtime.ParamLocationPath, crtName) if err != nil { return nil, err } @@ -5347,7 +5491,7 @@ func NewDeleteClusterWorkflowRequest(server string, clusterWorkflowName ClusterW return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterworkflows/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterresourcetypes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5365,13 +5509,13 @@ func NewDeleteClusterWorkflowRequest(server string, clusterWorkflowName ClusterW return req, nil } -// NewGetClusterWorkflowRequest generates requests for GetClusterWorkflow -func NewGetClusterWorkflowRequest(server string, clusterWorkflowName ClusterWorkflowNameParam) (*http.Request, error) { +// NewGetClusterResourceTypeRequest generates requests for GetClusterResourceType +func NewGetClusterResourceTypeRequest(server string, crtName ClusterResourceTypeNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowName", runtime.ParamLocationPath, clusterWorkflowName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "crtName", runtime.ParamLocationPath, crtName) if err != nil { return nil, err } @@ -5381,7 +5525,7 @@ func NewGetClusterWorkflowRequest(server string, clusterWorkflowName ClusterWork return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterworkflows/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterresourcetypes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5399,24 +5543,24 @@ func NewGetClusterWorkflowRequest(server string, clusterWorkflowName ClusterWork return req, nil } -// NewUpdateClusterWorkflowRequest calls the generic UpdateClusterWorkflow builder with application/json body -func NewUpdateClusterWorkflowRequest(server string, clusterWorkflowName ClusterWorkflowNameParam, body UpdateClusterWorkflowJSONRequestBody) (*http.Request, error) { +// NewUpdateClusterResourceTypeRequest calls the generic UpdateClusterResourceType builder with application/json body +func NewUpdateClusterResourceTypeRequest(server string, crtName ClusterResourceTypeNameParam, body UpdateClusterResourceTypeJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateClusterWorkflowRequestWithBody(server, clusterWorkflowName, "application/json", bodyReader) + return NewUpdateClusterResourceTypeRequestWithBody(server, crtName, "application/json", bodyReader) } -// NewUpdateClusterWorkflowRequestWithBody generates requests for UpdateClusterWorkflow with any type of body -func NewUpdateClusterWorkflowRequestWithBody(server string, clusterWorkflowName ClusterWorkflowNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateClusterResourceTypeRequestWithBody generates requests for UpdateClusterResourceType with any type of body +func NewUpdateClusterResourceTypeRequestWithBody(server string, crtName ClusterResourceTypeNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowName", runtime.ParamLocationPath, clusterWorkflowName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "crtName", runtime.ParamLocationPath, crtName) if err != nil { return nil, err } @@ -5426,7 +5570,7 @@ func NewUpdateClusterWorkflowRequestWithBody(server string, clusterWorkflowName return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterworkflows/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterresourcetypes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5446,13 +5590,13 @@ func NewUpdateClusterWorkflowRequestWithBody(server string, clusterWorkflowName return req, nil } -// NewGetClusterWorkflowSchemaRequest generates requests for GetClusterWorkflowSchema -func NewGetClusterWorkflowSchemaRequest(server string, clusterWorkflowName ClusterWorkflowNameParam) (*http.Request, error) { +// NewGetClusterResourceTypeSchemaRequest generates requests for GetClusterResourceTypeSchema +func NewGetClusterResourceTypeSchemaRequest(server string, crtName ClusterResourceTypeNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowName", runtime.ParamLocationPath, clusterWorkflowName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "crtName", runtime.ParamLocationPath, crtName) if err != nil { return nil, err } @@ -5462,7 +5606,7 @@ func NewGetClusterWorkflowSchemaRequest(server string, clusterWorkflowName Clust return nil, err } - operationPath := fmt.Sprintf("/api/v1/clusterworkflows/%s/schema", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterresourcetypes/%s/schema", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5480,8 +5624,8 @@ func NewGetClusterWorkflowSchemaRequest(server string, clusterWorkflowName Clust return req, nil } -// NewListNamespacesRequest generates requests for ListNamespaces -func NewListNamespacesRequest(server string, params *ListNamespacesParams) (*http.Request, error) { +// NewListClusterTraitsRequest generates requests for ListClusterTraits +func NewListClusterTraitsRequest(server string, params *ListClusterTraitsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -5489,7 +5633,7 @@ func NewListNamespacesRequest(server string, params *ListNamespacesParams) (*htt return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces") + operationPath := fmt.Sprintf("/api/v1/clustertraits") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5561,19 +5705,19 @@ func NewListNamespacesRequest(server string, params *ListNamespacesParams) (*htt return req, nil } -// NewCreateNamespaceRequest calls the generic CreateNamespace builder with application/json body -func NewCreateNamespaceRequest(server string, body CreateNamespaceJSONRequestBody) (*http.Request, error) { +// NewCreateClusterTraitRequest calls the generic CreateClusterTrait builder with application/json body +func NewCreateClusterTraitRequest(server string, body CreateClusterTraitJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateNamespaceRequestWithBody(server, "application/json", bodyReader) + return NewCreateClusterTraitRequestWithBody(server, "application/json", bodyReader) } -// NewCreateNamespaceRequestWithBody generates requests for CreateNamespace with any type of body -func NewCreateNamespaceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateClusterTraitRequestWithBody generates requests for CreateClusterTrait with any type of body +func NewCreateClusterTraitRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -5581,7 +5725,7 @@ func NewCreateNamespaceRequestWithBody(server string, contentType string, body i return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces") + operationPath := fmt.Sprintf("/api/v1/clustertraits") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5601,13 +5745,13 @@ func NewCreateNamespaceRequestWithBody(server string, contentType string, body i return req, nil } -// NewDeleteNamespaceRequest generates requests for DeleteNamespace -func NewDeleteNamespaceRequest(server string, namespaceName NamespaceNameParam) (*http.Request, error) { +// NewDeleteClusterTraitRequest generates requests for DeleteClusterTrait +func NewDeleteClusterTraitRequest(server string, clusterTraitName ClusterTraitNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterTraitName", runtime.ParamLocationPath, clusterTraitName) if err != nil { return nil, err } @@ -5617,7 +5761,7 @@ func NewDeleteNamespaceRequest(server string, namespaceName NamespaceNameParam) return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clustertraits/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5635,13 +5779,13 @@ func NewDeleteNamespaceRequest(server string, namespaceName NamespaceNameParam) return req, nil } -// NewGetNamespaceRequest generates requests for GetNamespace -func NewGetNamespaceRequest(server string, namespaceName NamespaceNameParam) (*http.Request, error) { +// NewGetClusterTraitRequest generates requests for GetClusterTrait +func NewGetClusterTraitRequest(server string, clusterTraitName ClusterTraitNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterTraitName", runtime.ParamLocationPath, clusterTraitName) if err != nil { return nil, err } @@ -5651,7 +5795,7 @@ func NewGetNamespaceRequest(server string, namespaceName NamespaceNameParam) (*h return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clustertraits/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5669,24 +5813,24 @@ func NewGetNamespaceRequest(server string, namespaceName NamespaceNameParam) (*h return req, nil } -// NewUpdateNamespaceRequest calls the generic UpdateNamespace builder with application/json body -func NewUpdateNamespaceRequest(server string, namespaceName NamespaceNameParam, body UpdateNamespaceJSONRequestBody) (*http.Request, error) { +// NewUpdateClusterTraitRequest calls the generic UpdateClusterTrait builder with application/json body +func NewUpdateClusterTraitRequest(server string, clusterTraitName ClusterTraitNameParam, body UpdateClusterTraitJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateNamespaceRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewUpdateClusterTraitRequestWithBody(server, clusterTraitName, "application/json", bodyReader) } -// NewUpdateNamespaceRequestWithBody generates requests for UpdateNamespace with any type of body -func NewUpdateNamespaceRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateClusterTraitRequestWithBody generates requests for UpdateClusterTrait with any type of body +func NewUpdateClusterTraitRequestWithBody(server string, clusterTraitName ClusterTraitNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterTraitName", runtime.ParamLocationPath, clusterTraitName) if err != nil { return nil, err } @@ -5696,7 +5840,7 @@ func NewUpdateNamespaceRequestWithBody(server string, namespaceName NamespaceNam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clustertraits/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5716,13 +5860,13 @@ func NewUpdateNamespaceRequestWithBody(server string, namespaceName NamespaceNam return req, nil } -// NewListNamespaceRoleBindingsRequest generates requests for ListNamespaceRoleBindings -func NewListNamespaceRoleBindingsRequest(server string, namespaceName NamespaceNameParam, params *ListNamespaceRoleBindingsParams) (*http.Request, error) { +// NewGetClusterTraitSchemaRequest generates requests for GetClusterTraitSchema +func NewGetClusterTraitSchemaRequest(server string, clusterTraitName ClusterTraitNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterTraitName", runtime.ParamLocationPath, clusterTraitName) if err != nil { return nil, err } @@ -5732,7 +5876,34 @@ func NewListNamespaceRoleBindingsRequest(server string, namespaceName NamespaceN return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzrolebindings", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clustertraits/%s/schema", 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 +} + +// NewListClusterWorkflowPlanesRequest generates requests for ListClusterWorkflowPlanes +func NewListClusterWorkflowPlanesRequest(server string, params *ListClusterWorkflowPlanesParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/clusterworkflowplanes") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5804,34 +5975,27 @@ func NewListNamespaceRoleBindingsRequest(server string, namespaceName NamespaceN return req, nil } -// NewCreateNamespaceRoleBindingRequest calls the generic CreateNamespaceRoleBinding builder with application/json body -func NewCreateNamespaceRoleBindingRequest(server string, namespaceName NamespaceNameParam, body CreateNamespaceRoleBindingJSONRequestBody) (*http.Request, error) { +// NewCreateClusterWorkflowPlaneRequest calls the generic CreateClusterWorkflowPlane builder with application/json body +func NewCreateClusterWorkflowPlaneRequest(server string, body CreateClusterWorkflowPlaneJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateNamespaceRoleBindingRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateClusterWorkflowPlaneRequestWithBody(server, "application/json", bodyReader) } -// NewCreateNamespaceRoleBindingRequestWithBody generates requests for CreateNamespaceRoleBinding with any type of body -func NewCreateNamespaceRoleBindingRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateClusterWorkflowPlaneRequestWithBody generates requests for CreateClusterWorkflowPlane with any type of body +func NewCreateClusterWorkflowPlaneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzrolebindings", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterworkflowplanes") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5851,20 +6015,13 @@ func NewCreateNamespaceRoleBindingRequestWithBody(server string, namespaceName N return req, nil } -// NewDeleteNamespaceRoleBindingRequest generates requests for DeleteNamespaceRoleBinding -func NewDeleteNamespaceRoleBindingRequest(server string, namespaceName NamespaceNameParam, name string) (*http.Request, error) { - var err error +// NewDeleteClusterWorkflowPlaneRequest generates requests for DeleteClusterWorkflowPlane +func NewDeleteClusterWorkflowPlaneRequest(server string, clusterWorkflowPlaneName string) (*http.Request, error) { + var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowPlaneName", runtime.ParamLocationPath, clusterWorkflowPlaneName) if err != nil { return nil, err } @@ -5874,7 +6031,7 @@ func NewDeleteNamespaceRoleBindingRequest(server string, namespaceName Namespace return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzrolebindings/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/clusterworkflowplanes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5892,20 +6049,13 @@ func NewDeleteNamespaceRoleBindingRequest(server string, namespaceName Namespace return req, nil } -// NewGetNamespaceRoleBindingRequest generates requests for GetNamespaceRoleBinding -func NewGetNamespaceRoleBindingRequest(server string, namespaceName NamespaceNameParam, name string) (*http.Request, error) { +// NewGetClusterWorkflowPlaneRequest generates requests for GetClusterWorkflowPlane +func NewGetClusterWorkflowPlaneRequest(server string, clusterWorkflowPlaneName string) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowPlaneName", runtime.ParamLocationPath, clusterWorkflowPlaneName) if err != nil { return nil, err } @@ -5915,7 +6065,7 @@ func NewGetNamespaceRoleBindingRequest(server string, namespaceName NamespaceNam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzrolebindings/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/clusterworkflowplanes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5933,31 +6083,24 @@ func NewGetNamespaceRoleBindingRequest(server string, namespaceName NamespaceNam return req, nil } -// NewUpdateNamespaceRoleBindingRequest calls the generic UpdateNamespaceRoleBinding builder with application/json body -func NewUpdateNamespaceRoleBindingRequest(server string, namespaceName NamespaceNameParam, name string, body UpdateNamespaceRoleBindingJSONRequestBody) (*http.Request, error) { +// NewUpdateClusterWorkflowPlaneRequest calls the generic UpdateClusterWorkflowPlane builder with application/json body +func NewUpdateClusterWorkflowPlaneRequest(server string, clusterWorkflowPlaneName string, body UpdateClusterWorkflowPlaneJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateNamespaceRoleBindingRequestWithBody(server, namespaceName, name, "application/json", bodyReader) + return NewUpdateClusterWorkflowPlaneRequestWithBody(server, clusterWorkflowPlaneName, "application/json", bodyReader) } -// NewUpdateNamespaceRoleBindingRequestWithBody generates requests for UpdateNamespaceRoleBinding with any type of body -func NewUpdateNamespaceRoleBindingRequestWithBody(server string, namespaceName NamespaceNameParam, name string, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateClusterWorkflowPlaneRequestWithBody generates requests for UpdateClusterWorkflowPlane with any type of body +func NewUpdateClusterWorkflowPlaneRequestWithBody(server string, clusterWorkflowPlaneName string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowPlaneName", runtime.ParamLocationPath, clusterWorkflowPlaneName) if err != nil { return nil, err } @@ -5967,7 +6110,7 @@ func NewUpdateNamespaceRoleBindingRequestWithBody(server string, namespaceName N return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzrolebindings/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/clusterworkflowplanes/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5987,23 +6130,16 @@ func NewUpdateNamespaceRoleBindingRequestWithBody(server string, namespaceName N return req, nil } -// NewListNamespaceRolesRequest generates requests for ListNamespaceRoles -func NewListNamespaceRolesRequest(server string, namespaceName NamespaceNameParam, params *ListNamespaceRolesParams) (*http.Request, error) { +// NewListClusterWorkflowsRequest generates requests for ListClusterWorkflows +func NewListClusterWorkflowsRequest(server string, params *ListClusterWorkflowsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzroles", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterworkflows") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6075,34 +6211,27 @@ func NewListNamespaceRolesRequest(server string, namespaceName NamespaceNamePara return req, nil } -// NewCreateNamespaceRoleRequest calls the generic CreateNamespaceRole builder with application/json body -func NewCreateNamespaceRoleRequest(server string, namespaceName NamespaceNameParam, body CreateNamespaceRoleJSONRequestBody) (*http.Request, error) { +// NewCreateClusterWorkflowRequest calls the generic CreateClusterWorkflow builder with application/json body +func NewCreateClusterWorkflowRequest(server string, body CreateClusterWorkflowJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateNamespaceRoleRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateClusterWorkflowRequestWithBody(server, "application/json", bodyReader) } -// NewCreateNamespaceRoleRequestWithBody generates requests for CreateNamespaceRole with any type of body -func NewCreateNamespaceRoleRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateClusterWorkflowRequestWithBody generates requests for CreateClusterWorkflow with any type of body +func NewCreateClusterWorkflowRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzroles", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterworkflows") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6122,20 +6251,13 @@ func NewCreateNamespaceRoleRequestWithBody(server string, namespaceName Namespac return req, nil } -// NewDeleteNamespaceRoleRequest generates requests for DeleteNamespaceRole -func NewDeleteNamespaceRoleRequest(server string, namespaceName NamespaceNameParam, name string) (*http.Request, error) { +// NewDeleteClusterWorkflowRequest generates requests for DeleteClusterWorkflow +func NewDeleteClusterWorkflowRequest(server string, clusterWorkflowName ClusterWorkflowNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowName", runtime.ParamLocationPath, clusterWorkflowName) if err != nil { return nil, err } @@ -6145,7 +6267,7 @@ func NewDeleteNamespaceRoleRequest(server string, namespaceName NamespaceNamePar return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzroles/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/clusterworkflows/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6163,20 +6285,13 @@ func NewDeleteNamespaceRoleRequest(server string, namespaceName NamespaceNamePar return req, nil } -// NewGetNamespaceRoleRequest generates requests for GetNamespaceRole -func NewGetNamespaceRoleRequest(server string, namespaceName NamespaceNameParam, name string) (*http.Request, error) { +// NewGetClusterWorkflowRequest generates requests for GetClusterWorkflow +func NewGetClusterWorkflowRequest(server string, clusterWorkflowName ClusterWorkflowNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowName", runtime.ParamLocationPath, clusterWorkflowName) if err != nil { return nil, err } @@ -6186,7 +6301,7 @@ func NewGetNamespaceRoleRequest(server string, namespaceName NamespaceNameParam, return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzroles/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/clusterworkflows/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6204,31 +6319,24 @@ func NewGetNamespaceRoleRequest(server string, namespaceName NamespaceNameParam, return req, nil } -// NewUpdateNamespaceRoleRequest calls the generic UpdateNamespaceRole builder with application/json body -func NewUpdateNamespaceRoleRequest(server string, namespaceName NamespaceNameParam, name string, body UpdateNamespaceRoleJSONRequestBody) (*http.Request, error) { +// NewUpdateClusterWorkflowRequest calls the generic UpdateClusterWorkflow builder with application/json body +func NewUpdateClusterWorkflowRequest(server string, clusterWorkflowName ClusterWorkflowNameParam, body UpdateClusterWorkflowJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateNamespaceRoleRequestWithBody(server, namespaceName, name, "application/json", bodyReader) + return NewUpdateClusterWorkflowRequestWithBody(server, clusterWorkflowName, "application/json", bodyReader) } -// NewUpdateNamespaceRoleRequestWithBody generates requests for UpdateNamespaceRole with any type of body -func NewUpdateNamespaceRoleRequestWithBody(server string, namespaceName NamespaceNameParam, name string, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateClusterWorkflowRequestWithBody generates requests for UpdateClusterWorkflow with any type of body +func NewUpdateClusterWorkflowRequestWithBody(server string, clusterWorkflowName ClusterWorkflowNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowName", runtime.ParamLocationPath, clusterWorkflowName) if err != nil { return nil, err } @@ -6238,7 +6346,7 @@ func NewUpdateNamespaceRoleRequestWithBody(server string, namespaceName Namespac return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzroles/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/clusterworkflows/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6258,13 +6366,13 @@ func NewUpdateNamespaceRoleRequestWithBody(server string, namespaceName Namespac return req, nil } -// NewListComponentReleasesRequest generates requests for ListComponentReleases -func NewListComponentReleasesRequest(server string, namespaceName NamespaceNameParam, params *ListComponentReleasesParams) (*http.Request, error) { +// NewGetClusterWorkflowSchemaRequest generates requests for GetClusterWorkflowSchema +func NewGetClusterWorkflowSchemaRequest(server string, clusterWorkflowName ClusterWorkflowNameParam) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "clusterWorkflowName", runtime.ParamLocationPath, clusterWorkflowName) if err != nil { return nil, err } @@ -6274,7 +6382,7 @@ func NewListComponentReleasesRequest(server string, namespaceName NamespaceNameP return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componentreleases", pathParam0) + operationPath := fmt.Sprintf("/api/v1/clusterworkflows/%s/schema", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6284,24 +6392,35 @@ func NewListComponentReleasesRequest(server string, namespaceName NamespaceNameP return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - if params.Component != nil { + return req, nil +} - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "component", runtime.ParamLocationQuery, *params.Component); 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) - } - } - } +// NewListNamespacesRequest generates requests for ListNamespaces +func NewListNamespacesRequest(server string, params *ListNamespacesParams) (*http.Request, error) { + var err error - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() if params.LabelSelector != nil { @@ -6362,34 +6481,27 @@ func NewListComponentReleasesRequest(server string, namespaceName NamespaceNameP return req, nil } -// NewCreateComponentReleaseRequest calls the generic CreateComponentRelease builder with application/json body -func NewCreateComponentReleaseRequest(server string, namespaceName NamespaceNameParam, body CreateComponentReleaseJSONRequestBody) (*http.Request, error) { +// NewCreateNamespaceRequest calls the generic CreateNamespace builder with application/json body +func NewCreateNamespaceRequest(server string, body CreateNamespaceJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateComponentReleaseRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateNamespaceRequestWithBody(server, "application/json", bodyReader) } -// NewCreateComponentReleaseRequestWithBody generates requests for CreateComponentRelease with any type of body -func NewCreateComponentReleaseRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateNamespaceRequestWithBody generates requests for CreateNamespace with any type of body +func NewCreateNamespaceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componentreleases", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6409,8 +6521,8 @@ func NewCreateComponentReleaseRequestWithBody(server string, namespaceName Names return req, nil } -// NewDeleteComponentReleaseRequest generates requests for DeleteComponentRelease -func NewDeleteComponentReleaseRequest(server string, namespaceName NamespaceNameParam, componentReleaseName ComponentReleaseNameParam) (*http.Request, error) { +// NewDeleteNamespaceRequest generates requests for DeleteNamespace +func NewDeleteNamespaceRequest(server string, namespaceName NamespaceNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -6420,19 +6532,12 @@ func NewDeleteComponentReleaseRequest(server string, namespaceName NamespaceName return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentReleaseName", runtime.ParamLocationPath, componentReleaseName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componentreleases/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6450,8 +6555,8 @@ func NewDeleteComponentReleaseRequest(server string, namespaceName NamespaceName return req, nil } -// NewGetComponentReleaseRequest generates requests for GetComponentRelease -func NewGetComponentReleaseRequest(server string, namespaceName NamespaceNameParam, componentReleaseName ComponentReleaseNameParam) (*http.Request, error) { +// NewGetNamespaceRequest generates requests for GetNamespace +func NewGetNamespaceRequest(server string, namespaceName NamespaceNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -6461,19 +6566,12 @@ func NewGetComponentReleaseRequest(server string, namespaceName NamespaceNamePar return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentReleaseName", runtime.ParamLocationPath, componentReleaseName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componentreleases/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6491,8 +6589,19 @@ func NewGetComponentReleaseRequest(server string, namespaceName NamespaceNamePar return req, nil } -// NewListComponentsRequest generates requests for ListComponents -func NewListComponentsRequest(server string, namespaceName NamespaceNameParam, params *ListComponentsParams) (*http.Request, error) { +// NewUpdateNamespaceRequest calls the generic UpdateNamespace builder with application/json body +func NewUpdateNamespaceRequest(server string, namespaceName NamespaceNameParam, body UpdateNamespaceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateNamespaceRequestWithBody(server, namespaceName, "application/json", bodyReader) +} + +// NewUpdateNamespaceRequestWithBody generates requests for UpdateNamespace with any type of body +func NewUpdateNamespaceRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6507,7 +6616,7 @@ func NewListComponentsRequest(server string, namespaceName NamespaceNameParam, p return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6517,24 +6626,44 @@ func NewListComponentsRequest(server string, namespaceName NamespaceNameParam, p return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } - if params.Project != nil { + req.Header.Add("Content-Type", contentType) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); 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 +} - } +// NewListNamespaceRoleBindingsRequest generates requests for ListNamespaceRoleBindings +func NewListNamespaceRoleBindingsRequest(server string, namespaceName NamespaceNameParam, params *ListNamespaceRoleBindingsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzrolebindings", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() if params.LabelSelector != nil { @@ -6595,19 +6724,19 @@ func NewListComponentsRequest(server string, namespaceName NamespaceNameParam, p return req, nil } -// NewCreateComponentRequest calls the generic CreateComponent builder with application/json body -func NewCreateComponentRequest(server string, namespaceName NamespaceNameParam, body CreateComponentJSONRequestBody) (*http.Request, error) { +// NewCreateNamespaceRoleBindingRequest calls the generic CreateNamespaceRoleBinding builder with application/json body +func NewCreateNamespaceRoleBindingRequest(server string, namespaceName NamespaceNameParam, body CreateNamespaceRoleBindingJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateComponentRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateNamespaceRoleBindingRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateComponentRequestWithBody generates requests for CreateComponent with any type of body -func NewCreateComponentRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateNamespaceRoleBindingRequestWithBody generates requests for CreateNamespaceRoleBinding with any type of body +func NewCreateNamespaceRoleBindingRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6622,7 +6751,7 @@ func NewCreateComponentRequestWithBody(server string, namespaceName NamespaceNam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzrolebindings", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6642,8 +6771,8 @@ func NewCreateComponentRequestWithBody(server string, namespaceName NamespaceNam return req, nil } -// NewDeleteComponentRequest generates requests for DeleteComponent -func NewDeleteComponentRequest(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam) (*http.Request, error) { +// NewDeleteNamespaceRoleBindingRequest generates requests for DeleteNamespaceRoleBinding +func NewDeleteNamespaceRoleBindingRequest(server string, namespaceName NamespaceNameParam, name string) (*http.Request, error) { var err error var pathParam0 string @@ -6655,7 +6784,7 @@ func NewDeleteComponentRequest(server string, namespaceName NamespaceNameParam, var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentName", runtime.ParamLocationPath, componentName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -6665,7 +6794,7 @@ func NewDeleteComponentRequest(server string, namespaceName NamespaceNameParam, return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzrolebindings/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6683,8 +6812,8 @@ func NewDeleteComponentRequest(server string, namespaceName NamespaceNameParam, return req, nil } -// NewGetComponentRequest generates requests for GetComponent -func NewGetComponentRequest(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam) (*http.Request, error) { +// NewGetNamespaceRoleBindingRequest generates requests for GetNamespaceRoleBinding +func NewGetNamespaceRoleBindingRequest(server string, namespaceName NamespaceNameParam, name string) (*http.Request, error) { var err error var pathParam0 string @@ -6696,7 +6825,7 @@ func NewGetComponentRequest(server string, namespaceName NamespaceNameParam, com var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentName", runtime.ParamLocationPath, componentName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -6706,7 +6835,7 @@ func NewGetComponentRequest(server string, namespaceName NamespaceNameParam, com return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzrolebindings/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6724,19 +6853,19 @@ func NewGetComponentRequest(server string, namespaceName NamespaceNameParam, com return req, nil } -// NewUpdateComponentRequest calls the generic UpdateComponent builder with application/json body -func NewUpdateComponentRequest(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam, body UpdateComponentJSONRequestBody) (*http.Request, error) { +// NewUpdateNamespaceRoleBindingRequest calls the generic UpdateNamespaceRoleBinding builder with application/json body +func NewUpdateNamespaceRoleBindingRequest(server string, namespaceName NamespaceNameParam, name string, body UpdateNamespaceRoleBindingJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateComponentRequestWithBody(server, namespaceName, componentName, "application/json", bodyReader) + return NewUpdateNamespaceRoleBindingRequestWithBody(server, namespaceName, name, "application/json", bodyReader) } -// NewUpdateComponentRequestWithBody generates requests for UpdateComponent with any type of body -func NewUpdateComponentRequestWithBody(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateNamespaceRoleBindingRequestWithBody generates requests for UpdateNamespaceRoleBinding with any type of body +func NewUpdateNamespaceRoleBindingRequestWithBody(server string, namespaceName NamespaceNameParam, name string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6748,7 +6877,7 @@ func NewUpdateComponentRequestWithBody(server string, namespaceName NamespaceNam var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentName", runtime.ParamLocationPath, componentName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -6758,7 +6887,7 @@ func NewUpdateComponentRequestWithBody(server string, namespaceName NamespaceNam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzrolebindings/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6778,103 +6907,8 @@ func NewUpdateComponentRequestWithBody(server string, namespaceName NamespaceNam return req, nil } -// NewGenerateReleaseRequest calls the generic GenerateRelease builder with application/json body -func NewGenerateReleaseRequest(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam, body GenerateReleaseJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewGenerateReleaseRequestWithBody(server, namespaceName, componentName, "application/json", bodyReader) -} - -// NewGenerateReleaseRequestWithBody generates requests for GenerateRelease with any type of body -func NewGenerateReleaseRequestWithBody(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentName", runtime.ParamLocationPath, componentName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components/%s/generate-release", 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 -} - -// NewGetComponentSchemaRequest generates requests for GetComponentSchema -func NewGetComponentSchemaRequest(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentName", runtime.ParamLocationPath, componentName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components/%s/schema", 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 -} - -// NewListComponentTypesRequest generates requests for ListComponentTypes -func NewListComponentTypesRequest(server string, namespaceName NamespaceNameParam, params *ListComponentTypesParams) (*http.Request, error) { +// NewListNamespaceRolesRequest generates requests for ListNamespaceRoles +func NewListNamespaceRolesRequest(server string, namespaceName NamespaceNameParam, params *ListNamespaceRolesParams) (*http.Request, error) { var err error var pathParam0 string @@ -6889,7 +6923,7 @@ func NewListComponentTypesRequest(server string, namespaceName NamespaceNamePara return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componenttypes", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzroles", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6961,19 +6995,19 @@ func NewListComponentTypesRequest(server string, namespaceName NamespaceNamePara return req, nil } -// NewCreateComponentTypeRequest calls the generic CreateComponentType builder with application/json body -func NewCreateComponentTypeRequest(server string, namespaceName NamespaceNameParam, body CreateComponentTypeJSONRequestBody) (*http.Request, error) { +// NewCreateNamespaceRoleRequest calls the generic CreateNamespaceRole builder with application/json body +func NewCreateNamespaceRoleRequest(server string, namespaceName NamespaceNameParam, body CreateNamespaceRoleJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateComponentTypeRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateNamespaceRoleRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateComponentTypeRequestWithBody generates requests for CreateComponentType with any type of body -func NewCreateComponentTypeRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateNamespaceRoleRequestWithBody generates requests for CreateNamespaceRole with any type of body +func NewCreateNamespaceRoleRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6988,7 +7022,7 @@ func NewCreateComponentTypeRequestWithBody(server string, namespaceName Namespac return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componenttypes", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzroles", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7008,8 +7042,8 @@ func NewCreateComponentTypeRequestWithBody(server string, namespaceName Namespac return req, nil } -// NewDeleteComponentTypeRequest generates requests for DeleteComponentType -func NewDeleteComponentTypeRequest(server string, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam) (*http.Request, error) { +// NewDeleteNamespaceRoleRequest generates requests for DeleteNamespaceRole +func NewDeleteNamespaceRoleRequest(server string, namespaceName NamespaceNameParam, name string) (*http.Request, error) { var err error var pathParam0 string @@ -7021,7 +7055,7 @@ func NewDeleteComponentTypeRequest(server string, namespaceName NamespaceNamePar var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "ctName", runtime.ParamLocationPath, ctName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -7031,7 +7065,7 @@ func NewDeleteComponentTypeRequest(server string, namespaceName NamespaceNamePar return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componenttypes/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzroles/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7049,8 +7083,8 @@ func NewDeleteComponentTypeRequest(server string, namespaceName NamespaceNamePar return req, nil } -// NewGetComponentTypeRequest generates requests for GetComponentType -func NewGetComponentTypeRequest(server string, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam) (*http.Request, error) { +// NewGetNamespaceRoleRequest generates requests for GetNamespaceRole +func NewGetNamespaceRoleRequest(server string, namespaceName NamespaceNameParam, name string) (*http.Request, error) { var err error var pathParam0 string @@ -7062,7 +7096,7 @@ func NewGetComponentTypeRequest(server string, namespaceName NamespaceNameParam, var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "ctName", runtime.ParamLocationPath, ctName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -7072,7 +7106,7 @@ func NewGetComponentTypeRequest(server string, namespaceName NamespaceNameParam, return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componenttypes/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzroles/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7090,19 +7124,19 @@ func NewGetComponentTypeRequest(server string, namespaceName NamespaceNameParam, return req, nil } -// NewUpdateComponentTypeRequest calls the generic UpdateComponentType builder with application/json body -func NewUpdateComponentTypeRequest(server string, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, body UpdateComponentTypeJSONRequestBody) (*http.Request, error) { +// NewUpdateNamespaceRoleRequest calls the generic UpdateNamespaceRole builder with application/json body +func NewUpdateNamespaceRoleRequest(server string, namespaceName NamespaceNameParam, name string, body UpdateNamespaceRoleJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateComponentTypeRequestWithBody(server, namespaceName, ctName, "application/json", bodyReader) + return NewUpdateNamespaceRoleRequestWithBody(server, namespaceName, name, "application/json", bodyReader) } -// NewUpdateComponentTypeRequestWithBody generates requests for UpdateComponentType with any type of body -func NewUpdateComponentTypeRequestWithBody(server string, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateNamespaceRoleRequestWithBody generates requests for UpdateNamespaceRole with any type of body +func NewUpdateNamespaceRoleRequestWithBody(server string, namespaceName NamespaceNameParam, name string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7114,7 +7148,7 @@ func NewUpdateComponentTypeRequestWithBody(server string, namespaceName Namespac var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "ctName", runtime.ParamLocationPath, ctName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -7124,7 +7158,7 @@ func NewUpdateComponentTypeRequestWithBody(server string, namespaceName Namespac return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componenttypes/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/authzroles/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7144,8 +7178,8 @@ func NewUpdateComponentTypeRequestWithBody(server string, namespaceName Namespac return req, nil } -// NewGetComponentTypeSchemaRequest generates requests for GetComponentTypeSchema -func NewGetComponentTypeSchemaRequest(server string, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam) (*http.Request, error) { +// NewListComponentReleasesRequest generates requests for ListComponentReleases +func NewListComponentReleasesRequest(server string, namespaceName NamespaceNameParam, params *ListComponentReleasesParams) (*http.Request, error) { var err error var pathParam0 string @@ -7155,19 +7189,12 @@ func NewGetComponentTypeSchemaRequest(server string, namespaceName NamespaceName return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "ctName", runtime.ParamLocationPath, ctName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componenttypes/%s/schema", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componentreleases", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7177,42 +7204,24 @@ func NewGetComponentTypeSchemaRequest(server string, namespaceName NamespaceName return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewListDataPlanesRequest generates requests for ListDataPlanes -func NewListDataPlanesRequest(server string, namespaceName NamespaceNameParam, params *ListDataPlanesParams) (*http.Request, error) { - var err error - - var pathParam0 string + if params != nil { + queryValues := queryURL.Query() - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } + if params.Component != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/dataplanes", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "component", runtime.ParamLocationQuery, *params.Component); 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 != nil { - queryValues := queryURL.Query() + } if params.LabelSelector != nil { @@ -7273,19 +7282,19 @@ func NewListDataPlanesRequest(server string, namespaceName NamespaceNameParam, p return req, nil } -// NewCreateDataPlaneRequest calls the generic CreateDataPlane builder with application/json body -func NewCreateDataPlaneRequest(server string, namespaceName NamespaceNameParam, body CreateDataPlaneJSONRequestBody) (*http.Request, error) { +// NewCreateComponentReleaseRequest calls the generic CreateComponentRelease builder with application/json body +func NewCreateComponentReleaseRequest(server string, namespaceName NamespaceNameParam, body CreateComponentReleaseJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateDataPlaneRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateComponentReleaseRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateDataPlaneRequestWithBody generates requests for CreateDataPlane with any type of body -func NewCreateDataPlaneRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateComponentReleaseRequestWithBody generates requests for CreateComponentRelease with any type of body +func NewCreateComponentReleaseRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7300,7 +7309,7 @@ func NewCreateDataPlaneRequestWithBody(server string, namespaceName NamespaceNam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/dataplanes", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componentreleases", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7320,8 +7329,8 @@ func NewCreateDataPlaneRequestWithBody(server string, namespaceName NamespaceNam return req, nil } -// NewDeleteDataPlaneRequest generates requests for DeleteDataPlane -func NewDeleteDataPlaneRequest(server string, namespaceName NamespaceNameParam, dpName DataPlaneNameParam) (*http.Request, error) { +// NewDeleteComponentReleaseRequest generates requests for DeleteComponentRelease +func NewDeleteComponentReleaseRequest(server string, namespaceName NamespaceNameParam, componentReleaseName ComponentReleaseNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -7333,7 +7342,7 @@ func NewDeleteDataPlaneRequest(server string, namespaceName NamespaceNameParam, var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "dpName", runtime.ParamLocationPath, dpName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentReleaseName", runtime.ParamLocationPath, componentReleaseName) if err != nil { return nil, err } @@ -7343,7 +7352,7 @@ func NewDeleteDataPlaneRequest(server string, namespaceName NamespaceNameParam, return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/dataplanes/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componentreleases/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7361,8 +7370,8 @@ func NewDeleteDataPlaneRequest(server string, namespaceName NamespaceNameParam, return req, nil } -// NewGetDataPlaneRequest generates requests for GetDataPlane -func NewGetDataPlaneRequest(server string, namespaceName NamespaceNameParam, dpName DataPlaneNameParam) (*http.Request, error) { +// NewGetComponentReleaseRequest generates requests for GetComponentRelease +func NewGetComponentReleaseRequest(server string, namespaceName NamespaceNameParam, componentReleaseName ComponentReleaseNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -7374,7 +7383,7 @@ func NewGetDataPlaneRequest(server string, namespaceName NamespaceNameParam, dpN var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "dpName", runtime.ParamLocationPath, dpName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentReleaseName", runtime.ParamLocationPath, componentReleaseName) if err != nil { return nil, err } @@ -7384,7 +7393,7 @@ func NewGetDataPlaneRequest(server string, namespaceName NamespaceNameParam, dpN return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/dataplanes/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componentreleases/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7402,19 +7411,8 @@ func NewGetDataPlaneRequest(server string, namespaceName NamespaceNameParam, dpN return req, nil } -// NewUpdateDataPlaneRequest calls the generic UpdateDataPlane builder with application/json body -func NewUpdateDataPlaneRequest(server string, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, body UpdateDataPlaneJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateDataPlaneRequestWithBody(server, namespaceName, dpName, "application/json", bodyReader) -} - -// NewUpdateDataPlaneRequestWithBody generates requests for UpdateDataPlane with any type of body -func NewUpdateDataPlaneRequestWithBody(server string, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewListComponentsRequest generates requests for ListComponents +func NewListComponentsRequest(server string, namespaceName NamespaceNameParam, params *ListComponentsParams) (*http.Request, error) { var err error var pathParam0 string @@ -7424,19 +7422,12 @@ func NewUpdateDataPlaneRequestWithBody(server string, namespaceName NamespaceNam return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "dpName", runtime.ParamLocationPath, dpName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/dataplanes/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7446,44 +7437,24 @@ func NewUpdateDataPlaneRequestWithBody(server string, namespaceName NamespaceNam 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 -} - -// NewListDeploymentPipelinesRequest generates requests for ListDeploymentPipelines -func NewListDeploymentPipelinesRequest(server string, namespaceName NamespaceNameParam, params *ListDeploymentPipelinesParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/deploymentpipelines", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if params.Project != nil { - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); 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 != nil { - queryValues := queryURL.Query() + } if params.LabelSelector != nil { @@ -7544,19 +7515,19 @@ func NewListDeploymentPipelinesRequest(server string, namespaceName NamespaceNam return req, nil } -// NewCreateDeploymentPipelineRequest calls the generic CreateDeploymentPipeline builder with application/json body -func NewCreateDeploymentPipelineRequest(server string, namespaceName NamespaceNameParam, body CreateDeploymentPipelineJSONRequestBody) (*http.Request, error) { +// NewCreateComponentRequest calls the generic CreateComponent builder with application/json body +func NewCreateComponentRequest(server string, namespaceName NamespaceNameParam, body CreateComponentJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateDeploymentPipelineRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateComponentRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateDeploymentPipelineRequestWithBody generates requests for CreateDeploymentPipeline with any type of body -func NewCreateDeploymentPipelineRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateComponentRequestWithBody generates requests for CreateComponent with any type of body +func NewCreateComponentRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7571,7 +7542,7 @@ func NewCreateDeploymentPipelineRequestWithBody(server string, namespaceName Nam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/deploymentpipelines", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7591,8 +7562,8 @@ func NewCreateDeploymentPipelineRequestWithBody(server string, namespaceName Nam return req, nil } -// NewDeleteDeploymentPipelineRequest generates requests for DeleteDeploymentPipeline -func NewDeleteDeploymentPipelineRequest(server string, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam) (*http.Request, error) { +// NewDeleteComponentRequest generates requests for DeleteComponent +func NewDeleteComponentRequest(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -7604,7 +7575,7 @@ func NewDeleteDeploymentPipelineRequest(server string, namespaceName NamespaceNa var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "deploymentPipelineName", runtime.ParamLocationPath, deploymentPipelineName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentName", runtime.ParamLocationPath, componentName) if err != nil { return nil, err } @@ -7614,7 +7585,7 @@ func NewDeleteDeploymentPipelineRequest(server string, namespaceName NamespaceNa return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/deploymentpipelines/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7632,8 +7603,8 @@ func NewDeleteDeploymentPipelineRequest(server string, namespaceName NamespaceNa return req, nil } -// NewGetDeploymentPipelineRequest generates requests for GetDeploymentPipeline -func NewGetDeploymentPipelineRequest(server string, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam) (*http.Request, error) { +// NewGetComponentRequest generates requests for GetComponent +func NewGetComponentRequest(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -7645,7 +7616,7 @@ func NewGetDeploymentPipelineRequest(server string, namespaceName NamespaceNameP var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "deploymentPipelineName", runtime.ParamLocationPath, deploymentPipelineName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentName", runtime.ParamLocationPath, componentName) if err != nil { return nil, err } @@ -7655,7 +7626,7 @@ func NewGetDeploymentPipelineRequest(server string, namespaceName NamespaceNameP return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/deploymentpipelines/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7673,19 +7644,19 @@ func NewGetDeploymentPipelineRequest(server string, namespaceName NamespaceNameP return req, nil } -// NewUpdateDeploymentPipelineRequest calls the generic UpdateDeploymentPipeline builder with application/json body -func NewUpdateDeploymentPipelineRequest(server string, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, body UpdateDeploymentPipelineJSONRequestBody) (*http.Request, error) { +// NewUpdateComponentRequest calls the generic UpdateComponent builder with application/json body +func NewUpdateComponentRequest(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam, body UpdateComponentJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateDeploymentPipelineRequestWithBody(server, namespaceName, deploymentPipelineName, "application/json", bodyReader) + return NewUpdateComponentRequestWithBody(server, namespaceName, componentName, "application/json", bodyReader) } -// NewUpdateDeploymentPipelineRequestWithBody generates requests for UpdateDeploymentPipeline with any type of body -func NewUpdateDeploymentPipelineRequestWithBody(server string, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateComponentRequestWithBody generates requests for UpdateComponent with any type of body +func NewUpdateComponentRequestWithBody(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7697,7 +7668,7 @@ func NewUpdateDeploymentPipelineRequestWithBody(server string, namespaceName Nam var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "deploymentPipelineName", runtime.ParamLocationPath, deploymentPipelineName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentName", runtime.ParamLocationPath, componentName) if err != nil { return nil, err } @@ -7707,7 +7678,7 @@ func NewUpdateDeploymentPipelineRequestWithBody(server string, namespaceName Nam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/deploymentpipelines/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7727,8 +7698,19 @@ func NewUpdateDeploymentPipelineRequestWithBody(server string, namespaceName Nam return req, nil } -// NewListEnvironmentsRequest generates requests for ListEnvironments -func NewListEnvironmentsRequest(server string, namespaceName NamespaceNameParam, params *ListEnvironmentsParams) (*http.Request, error) { +// NewGenerateReleaseRequest calls the generic GenerateRelease builder with application/json body +func NewGenerateReleaseRequest(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam, body GenerateReleaseJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGenerateReleaseRequestWithBody(server, namespaceName, componentName, "application/json", bodyReader) +} + +// NewGenerateReleaseRequestWithBody generates requests for GenerateRelease with any type of body +func NewGenerateReleaseRequestWithBody(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7738,12 +7720,19 @@ func NewListEnvironmentsRequest(server string, namespaceName NamespaceNameParam, return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentName", runtime.ParamLocationPath, componentName) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/environments", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components/%s/generate-release", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7753,54 +7742,131 @@ func NewListEnvironmentsRequest(server string, namespaceName NamespaceNameParam, return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - if params.LabelSelector != nil { + req.Header.Add("Content-Type", contentType) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); 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 +} - } +// NewGetComponentSchemaRequest generates requests for GetComponentSchema +func NewGetComponentSchemaRequest(server string, namespaceName NamespaceNameParam, componentName ComponentNameParam) (*http.Request, error) { + var err error - if params.Limit != nil { + var pathParam0 string - 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) - } - } - } + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - } + var pathParam1 string - if params.Cursor != nil { + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "componentName", runtime.ParamLocationPath, componentName) + if err != nil { + return nil, err + } - 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) - } - } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/components/%s/schema", 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 +} + +// NewListComponentTypesRequest generates requests for ListComponentTypes +func NewListComponentTypesRequest(server string, namespaceName NamespaceNameParam, params *ListComponentTypesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componenttypes", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.LabelSelector != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); 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.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) + } + } + } } @@ -7815,19 +7881,19 @@ func NewListEnvironmentsRequest(server string, namespaceName NamespaceNameParam, return req, nil } -// NewCreateEnvironmentRequest calls the generic CreateEnvironment builder with application/json body -func NewCreateEnvironmentRequest(server string, namespaceName NamespaceNameParam, body CreateEnvironmentJSONRequestBody) (*http.Request, error) { +// NewCreateComponentTypeRequest calls the generic CreateComponentType builder with application/json body +func NewCreateComponentTypeRequest(server string, namespaceName NamespaceNameParam, body CreateComponentTypeJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateEnvironmentRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateComponentTypeRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateEnvironmentRequestWithBody generates requests for CreateEnvironment with any type of body -func NewCreateEnvironmentRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateComponentTypeRequestWithBody generates requests for CreateComponentType with any type of body +func NewCreateComponentTypeRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7842,7 +7908,7 @@ func NewCreateEnvironmentRequestWithBody(server string, namespaceName NamespaceN return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/environments", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componenttypes", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7862,8 +7928,8 @@ func NewCreateEnvironmentRequestWithBody(server string, namespaceName NamespaceN return req, nil } -// NewDeleteEnvironmentRequest generates requests for DeleteEnvironment -func NewDeleteEnvironmentRequest(server string, namespaceName NamespaceNameParam, envName EnvironmentNameParam) (*http.Request, error) { +// NewDeleteComponentTypeRequest generates requests for DeleteComponentType +func NewDeleteComponentTypeRequest(server string, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -7875,7 +7941,7 @@ func NewDeleteEnvironmentRequest(server string, namespaceName NamespaceNameParam var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envName", runtime.ParamLocationPath, envName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "ctName", runtime.ParamLocationPath, ctName) if err != nil { return nil, err } @@ -7885,7 +7951,7 @@ func NewDeleteEnvironmentRequest(server string, namespaceName NamespaceNameParam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/environments/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componenttypes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7903,8 +7969,8 @@ func NewDeleteEnvironmentRequest(server string, namespaceName NamespaceNameParam return req, nil } -// NewGetEnvironmentRequest generates requests for GetEnvironment -func NewGetEnvironmentRequest(server string, namespaceName NamespaceNameParam, envName EnvironmentNameParam) (*http.Request, error) { +// NewGetComponentTypeRequest generates requests for GetComponentType +func NewGetComponentTypeRequest(server string, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -7916,7 +7982,7 @@ func NewGetEnvironmentRequest(server string, namespaceName NamespaceNameParam, e var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envName", runtime.ParamLocationPath, envName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "ctName", runtime.ParamLocationPath, ctName) if err != nil { return nil, err } @@ -7926,7 +7992,7 @@ func NewGetEnvironmentRequest(server string, namespaceName NamespaceNameParam, e return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/environments/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componenttypes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7944,19 +8010,19 @@ func NewGetEnvironmentRequest(server string, namespaceName NamespaceNameParam, e return req, nil } -// NewUpdateEnvironmentRequest calls the generic UpdateEnvironment builder with application/json body -func NewUpdateEnvironmentRequest(server string, namespaceName NamespaceNameParam, envName EnvironmentNameParam, body UpdateEnvironmentJSONRequestBody) (*http.Request, error) { +// NewUpdateComponentTypeRequest calls the generic UpdateComponentType builder with application/json body +func NewUpdateComponentTypeRequest(server string, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, body UpdateComponentTypeJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateEnvironmentRequestWithBody(server, namespaceName, envName, "application/json", bodyReader) + return NewUpdateComponentTypeRequestWithBody(server, namespaceName, ctName, "application/json", bodyReader) } -// NewUpdateEnvironmentRequestWithBody generates requests for UpdateEnvironment with any type of body -func NewUpdateEnvironmentRequestWithBody(server string, namespaceName NamespaceNameParam, envName EnvironmentNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateComponentTypeRequestWithBody generates requests for UpdateComponentType with any type of body +func NewUpdateComponentTypeRequestWithBody(server string, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -7968,7 +8034,7 @@ func NewUpdateEnvironmentRequestWithBody(server string, namespaceName NamespaceN var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envName", runtime.ParamLocationPath, envName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "ctName", runtime.ParamLocationPath, ctName) if err != nil { return nil, err } @@ -7978,7 +8044,7 @@ func NewUpdateEnvironmentRequestWithBody(server string, namespaceName NamespaceN return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/environments/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componenttypes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -7998,8 +8064,8 @@ func NewUpdateEnvironmentRequestWithBody(server string, namespaceName NamespaceN return req, nil } -// NewListObservabilityAlertsNotificationChannelsRequest generates requests for ListObservabilityAlertsNotificationChannels -func NewListObservabilityAlertsNotificationChannelsRequest(server string, namespaceName NamespaceNameParam, params *ListObservabilityAlertsNotificationChannelsParams) (*http.Request, error) { +// NewGetComponentTypeSchemaRequest generates requests for GetComponentTypeSchema +func NewGetComponentTypeSchemaRequest(server string, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -8009,12 +8075,53 @@ func NewListObservabilityAlertsNotificationChannelsRequest(server string, namesp return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "ctName", runtime.ParamLocationPath, ctName) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityalertsnotificationchannels", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/componenttypes/%s/schema", 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 +} + +// NewListDataPlanesRequest generates requests for ListDataPlanes +func NewListDataPlanesRequest(server string, namespaceName NamespaceNameParam, params *ListDataPlanesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/dataplanes", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8086,19 +8193,19 @@ func NewListObservabilityAlertsNotificationChannelsRequest(server string, namesp return req, nil } -// NewCreateObservabilityAlertsNotificationChannelRequest calls the generic CreateObservabilityAlertsNotificationChannel builder with application/json body -func NewCreateObservabilityAlertsNotificationChannelRequest(server string, namespaceName NamespaceNameParam, body CreateObservabilityAlertsNotificationChannelJSONRequestBody) (*http.Request, error) { +// NewCreateDataPlaneRequest calls the generic CreateDataPlane builder with application/json body +func NewCreateDataPlaneRequest(server string, namespaceName NamespaceNameParam, body CreateDataPlaneJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateObservabilityAlertsNotificationChannelRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateDataPlaneRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateObservabilityAlertsNotificationChannelRequestWithBody generates requests for CreateObservabilityAlertsNotificationChannel with any type of body -func NewCreateObservabilityAlertsNotificationChannelRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateDataPlaneRequestWithBody generates requests for CreateDataPlane with any type of body +func NewCreateDataPlaneRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8113,7 +8220,7 @@ func NewCreateObservabilityAlertsNotificationChannelRequestWithBody(server strin return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityalertsnotificationchannels", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/dataplanes", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8133,8 +8240,8 @@ func NewCreateObservabilityAlertsNotificationChannelRequestWithBody(server strin return req, nil } -// NewDeleteObservabilityAlertsNotificationChannelRequest generates requests for DeleteObservabilityAlertsNotificationChannel -func NewDeleteObservabilityAlertsNotificationChannelRequest(server string, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam) (*http.Request, error) { +// NewDeleteDataPlaneRequest generates requests for DeleteDataPlane +func NewDeleteDataPlaneRequest(server string, namespaceName NamespaceNameParam, dpName DataPlaneNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -8146,7 +8253,7 @@ func NewDeleteObservabilityAlertsNotificationChannelRequest(server string, names var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "observabilityAlertsNotificationChannelName", runtime.ParamLocationPath, observabilityAlertsNotificationChannelName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "dpName", runtime.ParamLocationPath, dpName) if err != nil { return nil, err } @@ -8156,7 +8263,7 @@ func NewDeleteObservabilityAlertsNotificationChannelRequest(server string, names return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityalertsnotificationchannels/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/dataplanes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8174,8 +8281,8 @@ func NewDeleteObservabilityAlertsNotificationChannelRequest(server string, names return req, nil } -// NewGetObservabilityAlertsNotificationChannelRequest generates requests for GetObservabilityAlertsNotificationChannel -func NewGetObservabilityAlertsNotificationChannelRequest(server string, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam) (*http.Request, error) { +// NewGetDataPlaneRequest generates requests for GetDataPlane +func NewGetDataPlaneRequest(server string, namespaceName NamespaceNameParam, dpName DataPlaneNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -8187,7 +8294,7 @@ func NewGetObservabilityAlertsNotificationChannelRequest(server string, namespac var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "observabilityAlertsNotificationChannelName", runtime.ParamLocationPath, observabilityAlertsNotificationChannelName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "dpName", runtime.ParamLocationPath, dpName) if err != nil { return nil, err } @@ -8197,7 +8304,7 @@ func NewGetObservabilityAlertsNotificationChannelRequest(server string, namespac return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityalertsnotificationchannels/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/dataplanes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8215,19 +8322,19 @@ func NewGetObservabilityAlertsNotificationChannelRequest(server string, namespac return req, nil } -// NewUpdateObservabilityAlertsNotificationChannelRequest calls the generic UpdateObservabilityAlertsNotificationChannel builder with application/json body -func NewUpdateObservabilityAlertsNotificationChannelRequest(server string, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, body UpdateObservabilityAlertsNotificationChannelJSONRequestBody) (*http.Request, error) { +// NewUpdateDataPlaneRequest calls the generic UpdateDataPlane builder with application/json body +func NewUpdateDataPlaneRequest(server string, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, body UpdateDataPlaneJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateObservabilityAlertsNotificationChannelRequestWithBody(server, namespaceName, observabilityAlertsNotificationChannelName, "application/json", bodyReader) + return NewUpdateDataPlaneRequestWithBody(server, namespaceName, dpName, "application/json", bodyReader) } -// NewUpdateObservabilityAlertsNotificationChannelRequestWithBody generates requests for UpdateObservabilityAlertsNotificationChannel with any type of body -func NewUpdateObservabilityAlertsNotificationChannelRequestWithBody(server string, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateDataPlaneRequestWithBody generates requests for UpdateDataPlane with any type of body +func NewUpdateDataPlaneRequestWithBody(server string, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8239,7 +8346,7 @@ func NewUpdateObservabilityAlertsNotificationChannelRequestWithBody(server strin var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "observabilityAlertsNotificationChannelName", runtime.ParamLocationPath, observabilityAlertsNotificationChannelName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "dpName", runtime.ParamLocationPath, dpName) if err != nil { return nil, err } @@ -8249,7 +8356,7 @@ func NewUpdateObservabilityAlertsNotificationChannelRequestWithBody(server strin return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityalertsnotificationchannels/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/dataplanes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8269,8 +8376,8 @@ func NewUpdateObservabilityAlertsNotificationChannelRequestWithBody(server strin return req, nil } -// NewListObservabilityPlanesRequest generates requests for ListObservabilityPlanes -func NewListObservabilityPlanesRequest(server string, namespaceName NamespaceNameParam, params *ListObservabilityPlanesParams) (*http.Request, error) { +// NewListDeploymentPipelinesRequest generates requests for ListDeploymentPipelines +func NewListDeploymentPipelinesRequest(server string, namespaceName NamespaceNameParam, params *ListDeploymentPipelinesParams) (*http.Request, error) { var err error var pathParam0 string @@ -8285,7 +8392,7 @@ func NewListObservabilityPlanesRequest(server string, namespaceName NamespaceNam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityplanes", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/deploymentpipelines", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8357,19 +8464,19 @@ func NewListObservabilityPlanesRequest(server string, namespaceName NamespaceNam return req, nil } -// NewCreateObservabilityPlaneRequest calls the generic CreateObservabilityPlane builder with application/json body -func NewCreateObservabilityPlaneRequest(server string, namespaceName NamespaceNameParam, body CreateObservabilityPlaneJSONRequestBody) (*http.Request, error) { +// NewCreateDeploymentPipelineRequest calls the generic CreateDeploymentPipeline builder with application/json body +func NewCreateDeploymentPipelineRequest(server string, namespaceName NamespaceNameParam, body CreateDeploymentPipelineJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateObservabilityPlaneRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateDeploymentPipelineRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateObservabilityPlaneRequestWithBody generates requests for CreateObservabilityPlane with any type of body -func NewCreateObservabilityPlaneRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateDeploymentPipelineRequestWithBody generates requests for CreateDeploymentPipeline with any type of body +func NewCreateDeploymentPipelineRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8384,7 +8491,7 @@ func NewCreateObservabilityPlaneRequestWithBody(server string, namespaceName Nam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityplanes", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/deploymentpipelines", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8404,8 +8511,8 @@ func NewCreateObservabilityPlaneRequestWithBody(server string, namespaceName Nam return req, nil } -// NewDeleteObservabilityPlaneRequest generates requests for DeleteObservabilityPlane -func NewDeleteObservabilityPlaneRequest(server string, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam) (*http.Request, error) { +// NewDeleteDeploymentPipelineRequest generates requests for DeleteDeploymentPipeline +func NewDeleteDeploymentPipelineRequest(server string, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -8417,7 +8524,7 @@ func NewDeleteObservabilityPlaneRequest(server string, namespaceName NamespaceNa var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "observabilityPlaneName", runtime.ParamLocationPath, observabilityPlaneName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "deploymentPipelineName", runtime.ParamLocationPath, deploymentPipelineName) if err != nil { return nil, err } @@ -8427,7 +8534,7 @@ func NewDeleteObservabilityPlaneRequest(server string, namespaceName NamespaceNa return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityplanes/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/deploymentpipelines/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8445,8 +8552,8 @@ func NewDeleteObservabilityPlaneRequest(server string, namespaceName NamespaceNa return req, nil } -// NewGetObservabilityPlaneRequest generates requests for GetObservabilityPlane -func NewGetObservabilityPlaneRequest(server string, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam) (*http.Request, error) { +// NewGetDeploymentPipelineRequest generates requests for GetDeploymentPipeline +func NewGetDeploymentPipelineRequest(server string, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -8458,7 +8565,7 @@ func NewGetObservabilityPlaneRequest(server string, namespaceName NamespaceNameP var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "observabilityPlaneName", runtime.ParamLocationPath, observabilityPlaneName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "deploymentPipelineName", runtime.ParamLocationPath, deploymentPipelineName) if err != nil { return nil, err } @@ -8468,7 +8575,7 @@ func NewGetObservabilityPlaneRequest(server string, namespaceName NamespaceNameP return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityplanes/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/deploymentpipelines/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8486,19 +8593,19 @@ func NewGetObservabilityPlaneRequest(server string, namespaceName NamespaceNameP return req, nil } -// NewUpdateObservabilityPlaneRequest calls the generic UpdateObservabilityPlane builder with application/json body -func NewUpdateObservabilityPlaneRequest(server string, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, body UpdateObservabilityPlaneJSONRequestBody) (*http.Request, error) { +// NewUpdateDeploymentPipelineRequest calls the generic UpdateDeploymentPipeline builder with application/json body +func NewUpdateDeploymentPipelineRequest(server string, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, body UpdateDeploymentPipelineJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateObservabilityPlaneRequestWithBody(server, namespaceName, observabilityPlaneName, "application/json", bodyReader) + return NewUpdateDeploymentPipelineRequestWithBody(server, namespaceName, deploymentPipelineName, "application/json", bodyReader) } -// NewUpdateObservabilityPlaneRequestWithBody generates requests for UpdateObservabilityPlane with any type of body -func NewUpdateObservabilityPlaneRequestWithBody(server string, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateDeploymentPipelineRequestWithBody generates requests for UpdateDeploymentPipeline with any type of body +func NewUpdateDeploymentPipelineRequestWithBody(server string, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8510,7 +8617,7 @@ func NewUpdateObservabilityPlaneRequestWithBody(server string, namespaceName Nam var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "observabilityPlaneName", runtime.ParamLocationPath, observabilityPlaneName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "deploymentPipelineName", runtime.ParamLocationPath, deploymentPipelineName) if err != nil { return nil, err } @@ -8520,7 +8627,7 @@ func NewUpdateObservabilityPlaneRequestWithBody(server string, namespaceName Nam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityplanes/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/deploymentpipelines/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8540,8 +8647,8 @@ func NewUpdateObservabilityPlaneRequestWithBody(server string, namespaceName Nam return req, nil } -// NewListProjectsRequest generates requests for ListProjects -func NewListProjectsRequest(server string, namespaceName NamespaceNameParam, params *ListProjectsParams) (*http.Request, error) { +// NewListEnvironmentsRequest generates requests for ListEnvironments +func NewListEnvironmentsRequest(server string, namespaceName NamespaceNameParam, params *ListEnvironmentsParams) (*http.Request, error) { var err error var pathParam0 string @@ -8556,7 +8663,7 @@ func NewListProjectsRequest(server string, namespaceName NamespaceNameParam, par return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/projects", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/environments", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8628,19 +8735,19 @@ func NewListProjectsRequest(server string, namespaceName NamespaceNameParam, par return req, nil } -// NewCreateProjectRequest calls the generic CreateProject builder with application/json body -func NewCreateProjectRequest(server string, namespaceName NamespaceNameParam, body CreateProjectJSONRequestBody) (*http.Request, error) { +// NewCreateEnvironmentRequest calls the generic CreateEnvironment builder with application/json body +func NewCreateEnvironmentRequest(server string, namespaceName NamespaceNameParam, body CreateEnvironmentJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateProjectRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateEnvironmentRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body -func NewCreateProjectRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateEnvironmentRequestWithBody generates requests for CreateEnvironment with any type of body +func NewCreateEnvironmentRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8655,7 +8762,7 @@ func NewCreateProjectRequestWithBody(server string, namespaceName NamespaceNameP return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/projects", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/environments", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8675,8 +8782,8 @@ func NewCreateProjectRequestWithBody(server string, namespaceName NamespaceNameP return req, nil } -// NewDeleteProjectRequest generates requests for DeleteProject -func NewDeleteProjectRequest(server string, namespaceName NamespaceNameParam, projectName ProjectNameParam) (*http.Request, error) { +// NewDeleteEnvironmentRequest generates requests for DeleteEnvironment +func NewDeleteEnvironmentRequest(server string, namespaceName NamespaceNameParam, envName EnvironmentNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -8688,7 +8795,7 @@ func NewDeleteProjectRequest(server string, namespaceName NamespaceNameParam, pr var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectName", runtime.ParamLocationPath, projectName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envName", runtime.ParamLocationPath, envName) if err != nil { return nil, err } @@ -8698,7 +8805,7 @@ func NewDeleteProjectRequest(server string, namespaceName NamespaceNameParam, pr return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/projects/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/environments/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8716,8 +8823,8 @@ func NewDeleteProjectRequest(server string, namespaceName NamespaceNameParam, pr return req, nil } -// NewGetProjectRequest generates requests for GetProject -func NewGetProjectRequest(server string, namespaceName NamespaceNameParam, projectName ProjectNameParam) (*http.Request, error) { +// NewGetEnvironmentRequest generates requests for GetEnvironment +func NewGetEnvironmentRequest(server string, namespaceName NamespaceNameParam, envName EnvironmentNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -8729,7 +8836,7 @@ func NewGetProjectRequest(server string, namespaceName NamespaceNameParam, proje var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectName", runtime.ParamLocationPath, projectName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envName", runtime.ParamLocationPath, envName) if err != nil { return nil, err } @@ -8739,7 +8846,7 @@ func NewGetProjectRequest(server string, namespaceName NamespaceNameParam, proje return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/projects/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/environments/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8757,19 +8864,19 @@ func NewGetProjectRequest(server string, namespaceName NamespaceNameParam, proje return req, nil } -// NewUpdateProjectRequest calls the generic UpdateProject builder with application/json body -func NewUpdateProjectRequest(server string, namespaceName NamespaceNameParam, projectName ProjectNameParam, body UpdateProjectJSONRequestBody) (*http.Request, error) { +// NewUpdateEnvironmentRequest calls the generic UpdateEnvironment builder with application/json body +func NewUpdateEnvironmentRequest(server string, namespaceName NamespaceNameParam, envName EnvironmentNameParam, body UpdateEnvironmentJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateProjectRequestWithBody(server, namespaceName, projectName, "application/json", bodyReader) + return NewUpdateEnvironmentRequestWithBody(server, namespaceName, envName, "application/json", bodyReader) } -// NewUpdateProjectRequestWithBody generates requests for UpdateProject with any type of body -func NewUpdateProjectRequestWithBody(server string, namespaceName NamespaceNameParam, projectName ProjectNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateEnvironmentRequestWithBody generates requests for UpdateEnvironment with any type of body +func NewUpdateEnvironmentRequestWithBody(server string, namespaceName NamespaceNameParam, envName EnvironmentNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8781,7 +8888,7 @@ func NewUpdateProjectRequestWithBody(server string, namespaceName NamespaceNameP var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectName", runtime.ParamLocationPath, projectName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envName", runtime.ParamLocationPath, envName) if err != nil { return nil, err } @@ -8791,7 +8898,7 @@ func NewUpdateProjectRequestWithBody(server string, namespaceName NamespaceNameP return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/projects/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/environments/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8811,8 +8918,8 @@ func NewUpdateProjectRequestWithBody(server string, namespaceName NamespaceNameP return req, nil } -// NewListReleaseBindingsRequest generates requests for ListReleaseBindings -func NewListReleaseBindingsRequest(server string, namespaceName NamespaceNameParam, params *ListReleaseBindingsParams) (*http.Request, error) { +// NewListObservabilityAlertsNotificationChannelsRequest generates requests for ListObservabilityAlertsNotificationChannels +func NewListObservabilityAlertsNotificationChannelsRequest(server string, namespaceName NamespaceNameParam, params *ListObservabilityAlertsNotificationChannelsParams) (*http.Request, error) { var err error var pathParam0 string @@ -8827,7 +8934,7 @@ func NewListReleaseBindingsRequest(server string, namespaceName NamespaceNamePar return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityalertsnotificationchannels", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8840,22 +8947,6 @@ func NewListReleaseBindingsRequest(server string, namespaceName NamespaceNamePar if params != nil { queryValues := queryURL.Query() - if params.Component != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "component", runtime.ParamLocationQuery, *params.Component); 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.LabelSelector != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); err != nil { @@ -8915,19 +9006,19 @@ func NewListReleaseBindingsRequest(server string, namespaceName NamespaceNamePar return req, nil } -// NewCreateReleaseBindingRequest calls the generic CreateReleaseBinding builder with application/json body -func NewCreateReleaseBindingRequest(server string, namespaceName NamespaceNameParam, body CreateReleaseBindingJSONRequestBody) (*http.Request, error) { +// NewCreateObservabilityAlertsNotificationChannelRequest calls the generic CreateObservabilityAlertsNotificationChannel builder with application/json body +func NewCreateObservabilityAlertsNotificationChannelRequest(server string, namespaceName NamespaceNameParam, body CreateObservabilityAlertsNotificationChannelJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateReleaseBindingRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateObservabilityAlertsNotificationChannelRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateReleaseBindingRequestWithBody generates requests for CreateReleaseBinding with any type of body -func NewCreateReleaseBindingRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateObservabilityAlertsNotificationChannelRequestWithBody generates requests for CreateObservabilityAlertsNotificationChannel with any type of body +func NewCreateObservabilityAlertsNotificationChannelRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8942,7 +9033,7 @@ func NewCreateReleaseBindingRequestWithBody(server string, namespaceName Namespa return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityalertsnotificationchannels", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8962,8 +9053,8 @@ func NewCreateReleaseBindingRequestWithBody(server string, namespaceName Namespa return req, nil } -// NewDeleteReleaseBindingRequest generates requests for DeleteReleaseBinding -func NewDeleteReleaseBindingRequest(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam) (*http.Request, error) { +// NewDeleteObservabilityAlertsNotificationChannelRequest generates requests for DeleteObservabilityAlertsNotificationChannel +func NewDeleteObservabilityAlertsNotificationChannelRequest(server string, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -8975,7 +9066,7 @@ func NewDeleteReleaseBindingRequest(server string, namespaceName NamespaceNamePa var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "releaseBindingName", runtime.ParamLocationPath, releaseBindingName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "observabilityAlertsNotificationChannelName", runtime.ParamLocationPath, observabilityAlertsNotificationChannelName) if err != nil { return nil, err } @@ -8985,7 +9076,7 @@ func NewDeleteReleaseBindingRequest(server string, namespaceName NamespaceNamePa return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityalertsnotificationchannels/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9003,8 +9094,8 @@ func NewDeleteReleaseBindingRequest(server string, namespaceName NamespaceNamePa return req, nil } -// NewGetReleaseBindingRequest generates requests for GetReleaseBinding -func NewGetReleaseBindingRequest(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam) (*http.Request, error) { +// NewGetObservabilityAlertsNotificationChannelRequest generates requests for GetObservabilityAlertsNotificationChannel +func NewGetObservabilityAlertsNotificationChannelRequest(server string, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -9016,7 +9107,7 @@ func NewGetReleaseBindingRequest(server string, namespaceName NamespaceNameParam var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "releaseBindingName", runtime.ParamLocationPath, releaseBindingName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "observabilityAlertsNotificationChannelName", runtime.ParamLocationPath, observabilityAlertsNotificationChannelName) if err != nil { return nil, err } @@ -9026,7 +9117,7 @@ func NewGetReleaseBindingRequest(server string, namespaceName NamespaceNameParam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityalertsnotificationchannels/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9044,19 +9135,19 @@ func NewGetReleaseBindingRequest(server string, namespaceName NamespaceNameParam return req, nil } -// NewUpdateReleaseBindingRequest calls the generic UpdateReleaseBinding builder with application/json body -func NewUpdateReleaseBindingRequest(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, body UpdateReleaseBindingJSONRequestBody) (*http.Request, error) { +// NewUpdateObservabilityAlertsNotificationChannelRequest calls the generic UpdateObservabilityAlertsNotificationChannel builder with application/json body +func NewUpdateObservabilityAlertsNotificationChannelRequest(server string, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, body UpdateObservabilityAlertsNotificationChannelJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateReleaseBindingRequestWithBody(server, namespaceName, releaseBindingName, "application/json", bodyReader) + return NewUpdateObservabilityAlertsNotificationChannelRequestWithBody(server, namespaceName, observabilityAlertsNotificationChannelName, "application/json", bodyReader) } -// NewUpdateReleaseBindingRequestWithBody generates requests for UpdateReleaseBinding with any type of body -func NewUpdateReleaseBindingRequestWithBody(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateObservabilityAlertsNotificationChannelRequestWithBody generates requests for UpdateObservabilityAlertsNotificationChannel with any type of body +func NewUpdateObservabilityAlertsNotificationChannelRequestWithBody(server string, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -9068,7 +9159,7 @@ func NewUpdateReleaseBindingRequestWithBody(server string, namespaceName Namespa var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "releaseBindingName", runtime.ParamLocationPath, releaseBindingName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "observabilityAlertsNotificationChannelName", runtime.ParamLocationPath, observabilityAlertsNotificationChannelName) if err != nil { return nil, err } @@ -9078,7 +9169,7 @@ func NewUpdateReleaseBindingRequestWithBody(server string, namespaceName Namespa return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityalertsnotificationchannels/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9098,8 +9189,8 @@ func NewUpdateReleaseBindingRequestWithBody(server string, namespaceName Namespa return req, nil } -// NewGetReleaseBindingK8sResourceEventsRequest generates requests for GetReleaseBindingK8sResourceEvents -func NewGetReleaseBindingK8sResourceEventsRequest(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, params *GetReleaseBindingK8sResourceEventsParams) (*http.Request, error) { +// NewListObservabilityPlanesRequest generates requests for ListObservabilityPlanes +func NewListObservabilityPlanesRequest(server string, namespaceName NamespaceNameParam, params *ListObservabilityPlanesParams) (*http.Request, error) { var err error var pathParam0 string @@ -9109,19 +9200,12 @@ func NewGetReleaseBindingK8sResourceEventsRequest(server string, namespaceName N return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "releaseBindingName", runtime.ParamLocationPath, releaseBindingName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings/%s/k8sresources/events", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityplanes", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9134,9 +9218,9 @@ func NewGetReleaseBindingK8sResourceEventsRequest(server string, namespaceName N if params != nil { queryValues := queryURL.Query() - if params.Group != nil { + if params.LabelSelector != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -9150,40 +9234,36 @@ func NewGetReleaseBindingK8sResourceEventsRequest(server string, namespaceName N } - 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) - } - } - } + if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kind", runtime.ParamLocationQuery, params.Kind); 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, "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 queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, params.Name); 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() @@ -9197,8 +9277,55 @@ func NewGetReleaseBindingK8sResourceEventsRequest(server string, namespaceName N return req, nil } -// NewGetReleaseBindingK8sResourceLogsRequest generates requests for GetReleaseBindingK8sResourceLogs -func NewGetReleaseBindingK8sResourceLogsRequest(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, params *GetReleaseBindingK8sResourceLogsParams) (*http.Request, error) { +// NewCreateObservabilityPlaneRequest calls the generic CreateObservabilityPlane builder with application/json body +func NewCreateObservabilityPlaneRequest(server string, namespaceName NamespaceNameParam, body CreateObservabilityPlaneJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateObservabilityPlaneRequestWithBody(server, namespaceName, "application/json", bodyReader) +} + +// NewCreateObservabilityPlaneRequestWithBody generates requests for CreateObservabilityPlane with any type of body +func NewCreateObservabilityPlaneRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityplanes", 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 +} + +// NewDeleteObservabilityPlaneRequest generates requests for DeleteObservabilityPlane +func NewDeleteObservabilityPlaneRequest(server string, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -9210,7 +9337,7 @@ func NewGetReleaseBindingK8sResourceLogsRequest(server string, namespaceName Nam var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "releaseBindingName", runtime.ParamLocationPath, releaseBindingName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "observabilityPlaneName", runtime.ParamLocationPath, observabilityPlaneName) if err != nil { return nil, err } @@ -9220,7 +9347,7 @@ func NewGetReleaseBindingK8sResourceLogsRequest(server string, namespaceName Nam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings/%s/k8sresources/logs", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityplanes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9230,38 +9357,45 @@ func NewGetReleaseBindingK8sResourceLogsRequest(server string, namespaceName Nam return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "podName", runtime.ParamLocationQuery, params.PodName); 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.SinceSeconds != nil { +// NewGetObservabilityPlaneRequest generates requests for GetObservabilityPlane +func NewGetObservabilityPlaneRequest(server string, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam) (*http.Request, error) { + var err error - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sinceSeconds", runtime.ParamLocationQuery, *params.SinceSeconds); 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) - } - } - } + var pathParam0 string - } + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - queryURL.RawQuery = queryValues.Encode() + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "observabilityPlaneName", runtime.ParamLocationPath, observabilityPlaneName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityplanes/%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) @@ -9272,8 +9406,19 @@ func NewGetReleaseBindingK8sResourceLogsRequest(server string, namespaceName Nam return req, nil } -// NewGetReleaseBindingK8sResourceTreeRequest generates requests for GetReleaseBindingK8sResourceTree -func NewGetReleaseBindingK8sResourceTreeRequest(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam) (*http.Request, error) { +// NewUpdateObservabilityPlaneRequest calls the generic UpdateObservabilityPlane builder with application/json body +func NewUpdateObservabilityPlaneRequest(server string, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, body UpdateObservabilityPlaneJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateObservabilityPlaneRequestWithBody(server, namespaceName, observabilityPlaneName, "application/json", bodyReader) +} + +// NewUpdateObservabilityPlaneRequestWithBody generates requests for UpdateObservabilityPlane with any type of body +func NewUpdateObservabilityPlaneRequestWithBody(server string, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -9285,7 +9430,7 @@ func NewGetReleaseBindingK8sResourceTreeRequest(server string, namespaceName Nam var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "releaseBindingName", runtime.ParamLocationPath, releaseBindingName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "observabilityPlaneName", runtime.ParamLocationPath, observabilityPlaneName) if err != nil { return nil, err } @@ -9295,7 +9440,7 @@ func NewGetReleaseBindingK8sResourceTreeRequest(server string, namespaceName Nam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings/%s/k8sresources/tree", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/observabilityplanes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9305,16 +9450,18 @@ func NewGetReleaseBindingK8sResourceTreeRequest(server string, namespaceName Nam return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewListSecretReferencesRequest generates requests for ListSecretReferences -func NewListSecretReferencesRequest(server string, namespaceName NamespaceNameParam, params *ListSecretReferencesParams) (*http.Request, error) { +// NewListProjectsRequest generates requests for ListProjects +func NewListProjectsRequest(server string, namespaceName NamespaceNameParam, params *ListProjectsParams) (*http.Request, error) { var err error var pathParam0 string @@ -9329,7 +9476,7 @@ func NewListSecretReferencesRequest(server string, namespaceName NamespaceNamePa return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/secretreferences", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/projects", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9401,19 +9548,19 @@ func NewListSecretReferencesRequest(server string, namespaceName NamespaceNamePa return req, nil } -// NewCreateSecretReferenceRequest calls the generic CreateSecretReference builder with application/json body -func NewCreateSecretReferenceRequest(server string, namespaceName NamespaceNameParam, body CreateSecretReferenceJSONRequestBody) (*http.Request, error) { +// NewCreateProjectRequest calls the generic CreateProject builder with application/json body +func NewCreateProjectRequest(server string, namespaceName NamespaceNameParam, body CreateProjectJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateSecretReferenceRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateProjectRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateSecretReferenceRequestWithBody generates requests for CreateSecretReference with any type of body -func NewCreateSecretReferenceRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body +func NewCreateProjectRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -9428,7 +9575,7 @@ func NewCreateSecretReferenceRequestWithBody(server string, namespaceName Namesp return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/secretreferences", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/projects", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9448,8 +9595,8 @@ func NewCreateSecretReferenceRequestWithBody(server string, namespaceName Namesp return req, nil } -// NewDeleteSecretReferenceRequest generates requests for DeleteSecretReference -func NewDeleteSecretReferenceRequest(server string, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam) (*http.Request, error) { +// NewDeleteProjectRequest generates requests for DeleteProject +func NewDeleteProjectRequest(server string, namespaceName NamespaceNameParam, projectName ProjectNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -9461,7 +9608,7 @@ func NewDeleteSecretReferenceRequest(server string, namespaceName NamespaceNameP var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secretReferenceName", runtime.ParamLocationPath, secretReferenceName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectName", runtime.ParamLocationPath, projectName) if err != nil { return nil, err } @@ -9471,7 +9618,7 @@ func NewDeleteSecretReferenceRequest(server string, namespaceName NamespaceNameP return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/secretreferences/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/projects/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9489,8 +9636,8 @@ func NewDeleteSecretReferenceRequest(server string, namespaceName NamespaceNameP return req, nil } -// NewGetSecretReferenceRequest generates requests for GetSecretReference -func NewGetSecretReferenceRequest(server string, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam) (*http.Request, error) { +// NewGetProjectRequest generates requests for GetProject +func NewGetProjectRequest(server string, namespaceName NamespaceNameParam, projectName ProjectNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -9502,7 +9649,7 @@ func NewGetSecretReferenceRequest(server string, namespaceName NamespaceNamePara var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secretReferenceName", runtime.ParamLocationPath, secretReferenceName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectName", runtime.ParamLocationPath, projectName) if err != nil { return nil, err } @@ -9512,7 +9659,7 @@ func NewGetSecretReferenceRequest(server string, namespaceName NamespaceNamePara return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/secretreferences/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/projects/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9530,19 +9677,19 @@ func NewGetSecretReferenceRequest(server string, namespaceName NamespaceNamePara return req, nil } -// NewUpdateSecretReferenceRequest calls the generic UpdateSecretReference builder with application/json body -func NewUpdateSecretReferenceRequest(server string, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, body UpdateSecretReferenceJSONRequestBody) (*http.Request, error) { +// NewUpdateProjectRequest calls the generic UpdateProject builder with application/json body +func NewUpdateProjectRequest(server string, namespaceName NamespaceNameParam, projectName ProjectNameParam, body UpdateProjectJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSecretReferenceRequestWithBody(server, namespaceName, secretReferenceName, "application/json", bodyReader) + return NewUpdateProjectRequestWithBody(server, namespaceName, projectName, "application/json", bodyReader) } -// NewUpdateSecretReferenceRequestWithBody generates requests for UpdateSecretReference with any type of body -func NewUpdateSecretReferenceRequestWithBody(server string, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateProjectRequestWithBody generates requests for UpdateProject with any type of body +func NewUpdateProjectRequestWithBody(server string, namespaceName NamespaceNameParam, projectName ProjectNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -9554,7 +9701,7 @@ func NewUpdateSecretReferenceRequestWithBody(server string, namespaceName Namesp var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secretReferenceName", runtime.ParamLocationPath, secretReferenceName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectName", runtime.ParamLocationPath, projectName) if err != nil { return nil, err } @@ -9564,7 +9711,7 @@ func NewUpdateSecretReferenceRequestWithBody(server string, namespaceName Namesp return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/secretreferences/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/projects/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9584,8 +9731,8 @@ func NewUpdateSecretReferenceRequestWithBody(server string, namespaceName Namesp return req, nil } -// NewListTraitsRequest generates requests for ListTraits -func NewListTraitsRequest(server string, namespaceName NamespaceNameParam, params *ListTraitsParams) (*http.Request, error) { +// NewListReleaseBindingsRequest generates requests for ListReleaseBindings +func NewListReleaseBindingsRequest(server string, namespaceName NamespaceNameParam, params *ListReleaseBindingsParams) (*http.Request, error) { var err error var pathParam0 string @@ -9600,7 +9747,7 @@ func NewListTraitsRequest(server string, namespaceName NamespaceNameParam, param return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/traits", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9613,6 +9760,22 @@ func NewListTraitsRequest(server string, namespaceName NamespaceNameParam, param if params != nil { queryValues := queryURL.Query() + if params.Component != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "component", runtime.ParamLocationQuery, *params.Component); 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.LabelSelector != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); err != nil { @@ -9672,19 +9835,19 @@ func NewListTraitsRequest(server string, namespaceName NamespaceNameParam, param return req, nil } -// NewCreateTraitRequest calls the generic CreateTrait builder with application/json body -func NewCreateTraitRequest(server string, namespaceName NamespaceNameParam, body CreateTraitJSONRequestBody) (*http.Request, error) { +// NewCreateReleaseBindingRequest calls the generic CreateReleaseBinding builder with application/json body +func NewCreateReleaseBindingRequest(server string, namespaceName NamespaceNameParam, body CreateReleaseBindingJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateTraitRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateReleaseBindingRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateTraitRequestWithBody generates requests for CreateTrait with any type of body -func NewCreateTraitRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateReleaseBindingRequestWithBody generates requests for CreateReleaseBinding with any type of body +func NewCreateReleaseBindingRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -9699,7 +9862,7 @@ func NewCreateTraitRequestWithBody(server string, namespaceName NamespaceNamePar return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/traits", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9719,8 +9882,8 @@ func NewCreateTraitRequestWithBody(server string, namespaceName NamespaceNamePar return req, nil } -// NewDeleteTraitRequest generates requests for DeleteTrait -func NewDeleteTraitRequest(server string, namespaceName NamespaceNameParam, traitName TraitNameParam) (*http.Request, error) { +// NewDeleteReleaseBindingRequest generates requests for DeleteReleaseBinding +func NewDeleteReleaseBindingRequest(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -9732,7 +9895,7 @@ func NewDeleteTraitRequest(server string, namespaceName NamespaceNameParam, trai var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "traitName", runtime.ParamLocationPath, traitName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "releaseBindingName", runtime.ParamLocationPath, releaseBindingName) if err != nil { return nil, err } @@ -9742,7 +9905,7 @@ func NewDeleteTraitRequest(server string, namespaceName NamespaceNameParam, trai return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/traits/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9760,8 +9923,8 @@ func NewDeleteTraitRequest(server string, namespaceName NamespaceNameParam, trai return req, nil } -// NewGetTraitRequest generates requests for GetTrait -func NewGetTraitRequest(server string, namespaceName NamespaceNameParam, traitName TraitNameParam) (*http.Request, error) { +// NewGetReleaseBindingRequest generates requests for GetReleaseBinding +func NewGetReleaseBindingRequest(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -9773,7 +9936,7 @@ func NewGetTraitRequest(server string, namespaceName NamespaceNameParam, traitNa var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "traitName", runtime.ParamLocationPath, traitName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "releaseBindingName", runtime.ParamLocationPath, releaseBindingName) if err != nil { return nil, err } @@ -9783,7 +9946,7 @@ func NewGetTraitRequest(server string, namespaceName NamespaceNameParam, traitNa return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/traits/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9801,19 +9964,19 @@ func NewGetTraitRequest(server string, namespaceName NamespaceNameParam, traitNa return req, nil } -// NewUpdateTraitRequest calls the generic UpdateTrait builder with application/json body -func NewUpdateTraitRequest(server string, namespaceName NamespaceNameParam, traitName TraitNameParam, body UpdateTraitJSONRequestBody) (*http.Request, error) { +// NewUpdateReleaseBindingRequest calls the generic UpdateReleaseBinding builder with application/json body +func NewUpdateReleaseBindingRequest(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, body UpdateReleaseBindingJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateTraitRequestWithBody(server, namespaceName, traitName, "application/json", bodyReader) + return NewUpdateReleaseBindingRequestWithBody(server, namespaceName, releaseBindingName, "application/json", bodyReader) } -// NewUpdateTraitRequestWithBody generates requests for UpdateTrait with any type of body -func NewUpdateTraitRequestWithBody(server string, namespaceName NamespaceNameParam, traitName TraitNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateReleaseBindingRequestWithBody generates requests for UpdateReleaseBinding with any type of body +func NewUpdateReleaseBindingRequestWithBody(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -9825,7 +9988,7 @@ func NewUpdateTraitRequestWithBody(server string, namespaceName NamespaceNamePar var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "traitName", runtime.ParamLocationPath, traitName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "releaseBindingName", runtime.ParamLocationPath, releaseBindingName) if err != nil { return nil, err } @@ -9835,7 +9998,7 @@ func NewUpdateTraitRequestWithBody(server string, namespaceName NamespaceNamePar return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/traits/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9855,8 +10018,8 @@ func NewUpdateTraitRequestWithBody(server string, namespaceName NamespaceNamePar return req, nil } -// NewGetTraitSchemaRequest generates requests for GetTraitSchema -func NewGetTraitSchemaRequest(server string, namespaceName NamespaceNameParam, traitName TraitNameParam) (*http.Request, error) { +// NewGetReleaseBindingK8sResourceEventsRequest generates requests for GetReleaseBindingK8sResourceEvents +func NewGetReleaseBindingK8sResourceEventsRequest(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, params *GetReleaseBindingK8sResourceEventsParams) (*http.Request, error) { var err error var pathParam0 string @@ -9868,41 +10031,7 @@ func NewGetTraitSchemaRequest(server string, namespaceName NamespaceNameParam, t var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "traitName", runtime.ParamLocationPath, traitName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/traits/%s/schema", 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 -} - -// NewListWorkflowPlanesRequest generates requests for ListWorkflowPlanes -func NewListWorkflowPlanesRequest(server string, namespaceName NamespaceNameParam, params *ListWorkflowPlanesParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "releaseBindingName", runtime.ParamLocationPath, releaseBindingName) if err != nil { return nil, err } @@ -9912,7 +10041,7 @@ func NewListWorkflowPlanesRequest(server string, namespaceName NamespaceNamePara return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowplanes", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings/%s/k8sresources/events", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9925,9 +10054,9 @@ func NewListWorkflowPlanesRequest(server string, namespaceName NamespaceNamePara if params != nil { queryValues := queryURL.Query() - if params.LabelSelector != nil { + if params.Group != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -9941,12 +10070,236 @@ func NewListWorkflowPlanesRequest(server string, namespaceName NamespaceNamePara } - if params.Limit != 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) + } + } + } - 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 + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kind", runtime.ParamLocationQuery, params.Kind); 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, "name", runtime.ParamLocationQuery, params.Name); 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 +} + +// NewGetReleaseBindingK8sResourceLogsRequest generates requests for GetReleaseBindingK8sResourceLogs +func NewGetReleaseBindingK8sResourceLogsRequest(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, params *GetReleaseBindingK8sResourceLogsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "releaseBindingName", runtime.ParamLocationPath, releaseBindingName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings/%s/k8sresources/logs", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "podName", runtime.ParamLocationQuery, params.PodName); 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.SinceSeconds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sinceSeconds", runtime.ParamLocationQuery, *params.SinceSeconds); 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 +} + +// NewGetReleaseBindingK8sResourceTreeRequest generates requests for GetReleaseBindingK8sResourceTree +func NewGetReleaseBindingK8sResourceTreeRequest(server string, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "releaseBindingName", runtime.ParamLocationPath, releaseBindingName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/releasebindings/%s/k8sresources/tree", 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 +} + +// NewListResourceReleaseBindingsRequest generates requests for ListResourceReleaseBindings +func NewListResourceReleaseBindingsRequest(server string, namespaceName NamespaceNameParam, params *ListResourceReleaseBindingsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcereleasebindings", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Resource != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "resource", runtime.ParamLocationQuery, *params.Resource); 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.LabelSelector != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); 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.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 { @@ -9984,19 +10337,19 @@ func NewListWorkflowPlanesRequest(server string, namespaceName NamespaceNamePara return req, nil } -// NewCreateWorkflowPlaneRequest calls the generic CreateWorkflowPlane builder with application/json body -func NewCreateWorkflowPlaneRequest(server string, namespaceName NamespaceNameParam, body CreateWorkflowPlaneJSONRequestBody) (*http.Request, error) { +// NewCreateResourceReleaseBindingRequest calls the generic CreateResourceReleaseBinding builder with application/json body +func NewCreateResourceReleaseBindingRequest(server string, namespaceName NamespaceNameParam, body CreateResourceReleaseBindingJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateWorkflowPlaneRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateResourceReleaseBindingRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateWorkflowPlaneRequestWithBody generates requests for CreateWorkflowPlane with any type of body -func NewCreateWorkflowPlaneRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateResourceReleaseBindingRequestWithBody generates requests for CreateResourceReleaseBinding with any type of body +func NewCreateResourceReleaseBindingRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10011,7 +10364,7 @@ func NewCreateWorkflowPlaneRequestWithBody(server string, namespaceName Namespac return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowplanes", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcereleasebindings", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10031,8 +10384,8 @@ func NewCreateWorkflowPlaneRequestWithBody(server string, namespaceName Namespac return req, nil } -// NewDeleteWorkflowPlaneRequest generates requests for DeleteWorkflowPlane -func NewDeleteWorkflowPlaneRequest(server string, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam) (*http.Request, error) { +// NewDeleteResourceReleaseBindingRequest generates requests for DeleteResourceReleaseBinding +func NewDeleteResourceReleaseBindingRequest(server string, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -10044,7 +10397,7 @@ func NewDeleteWorkflowPlaneRequest(server string, namespaceName NamespaceNamePar var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowPlaneName", runtime.ParamLocationPath, workflowPlaneName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "resourceReleaseBindingName", runtime.ParamLocationPath, resourceReleaseBindingName) if err != nil { return nil, err } @@ -10054,7 +10407,7 @@ func NewDeleteWorkflowPlaneRequest(server string, namespaceName NamespaceNamePar return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowplanes/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcereleasebindings/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10072,8 +10425,8 @@ func NewDeleteWorkflowPlaneRequest(server string, namespaceName NamespaceNamePar return req, nil } -// NewGetWorkflowPlaneRequest generates requests for GetWorkflowPlane -func NewGetWorkflowPlaneRequest(server string, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam) (*http.Request, error) { +// NewGetResourceReleaseBindingRequest generates requests for GetResourceReleaseBinding +func NewGetResourceReleaseBindingRequest(server string, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -10085,7 +10438,7 @@ func NewGetWorkflowPlaneRequest(server string, namespaceName NamespaceNameParam, var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowPlaneName", runtime.ParamLocationPath, workflowPlaneName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "resourceReleaseBindingName", runtime.ParamLocationPath, resourceReleaseBindingName) if err != nil { return nil, err } @@ -10095,7 +10448,7 @@ func NewGetWorkflowPlaneRequest(server string, namespaceName NamespaceNameParam, return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowplanes/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcereleasebindings/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10113,19 +10466,19 @@ func NewGetWorkflowPlaneRequest(server string, namespaceName NamespaceNameParam, return req, nil } -// NewUpdateWorkflowPlaneRequest calls the generic UpdateWorkflowPlane builder with application/json body -func NewUpdateWorkflowPlaneRequest(server string, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, body UpdateWorkflowPlaneJSONRequestBody) (*http.Request, error) { +// NewUpdateResourceReleaseBindingRequest calls the generic UpdateResourceReleaseBinding builder with application/json body +func NewUpdateResourceReleaseBindingRequest(server string, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, body UpdateResourceReleaseBindingJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateWorkflowPlaneRequestWithBody(server, namespaceName, workflowPlaneName, "application/json", bodyReader) + return NewUpdateResourceReleaseBindingRequestWithBody(server, namespaceName, resourceReleaseBindingName, "application/json", bodyReader) } -// NewUpdateWorkflowPlaneRequestWithBody generates requests for UpdateWorkflowPlane with any type of body -func NewUpdateWorkflowPlaneRequestWithBody(server string, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateResourceReleaseBindingRequestWithBody generates requests for UpdateResourceReleaseBinding with any type of body +func NewUpdateResourceReleaseBindingRequestWithBody(server string, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10137,7 +10490,7 @@ func NewUpdateWorkflowPlaneRequestWithBody(server string, namespaceName Namespac var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowPlaneName", runtime.ParamLocationPath, workflowPlaneName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "resourceReleaseBindingName", runtime.ParamLocationPath, resourceReleaseBindingName) if err != nil { return nil, err } @@ -10147,7 +10500,7 @@ func NewUpdateWorkflowPlaneRequestWithBody(server string, namespaceName Namespac return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowplanes/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcereleasebindings/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10167,8 +10520,8 @@ func NewUpdateWorkflowPlaneRequestWithBody(server string, namespaceName Namespac return req, nil } -// NewListWorkflowRunsRequest generates requests for ListWorkflowRuns -func NewListWorkflowRunsRequest(server string, namespaceName NamespaceNameParam, params *ListWorkflowRunsParams) (*http.Request, error) { +// NewListResourceReleasesRequest generates requests for ListResourceReleases +func NewListResourceReleasesRequest(server string, namespaceName NamespaceNameParam, params *ListResourceReleasesParams) (*http.Request, error) { var err error var pathParam0 string @@ -10183,7 +10536,7 @@ func NewListWorkflowRunsRequest(server string, namespaceName NamespaceNameParam, return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcereleases", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10196,9 +10549,9 @@ func NewListWorkflowRunsRequest(server string, namespaceName NamespaceNameParam, if params != nil { queryValues := queryURL.Query() - if params.Workflow != nil { + if params.Resource != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "workflow", runtime.ParamLocationQuery, *params.Workflow); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "resource", runtime.ParamLocationQuery, *params.Resource); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -10271,19 +10624,19 @@ func NewListWorkflowRunsRequest(server string, namespaceName NamespaceNameParam, return req, nil } -// NewCreateWorkflowRunRequest calls the generic CreateWorkflowRun builder with application/json body -func NewCreateWorkflowRunRequest(server string, namespaceName NamespaceNameParam, body CreateWorkflowRunJSONRequestBody) (*http.Request, error) { +// NewCreateResourceReleaseRequest calls the generic CreateResourceRelease builder with application/json body +func NewCreateResourceReleaseRequest(server string, namespaceName NamespaceNameParam, body CreateResourceReleaseJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateWorkflowRunRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateResourceReleaseRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateWorkflowRunRequestWithBody generates requests for CreateWorkflowRun with any type of body -func NewCreateWorkflowRunRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateResourceReleaseRequestWithBody generates requests for CreateResourceRelease with any type of body +func NewCreateResourceReleaseRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10298,7 +10651,7 @@ func NewCreateWorkflowRunRequestWithBody(server string, namespaceName NamespaceN return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcereleases", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10318,8 +10671,8 @@ func NewCreateWorkflowRunRequestWithBody(server string, namespaceName NamespaceN return req, nil } -// NewGetWorkflowRunRequest generates requests for GetWorkflowRun -func NewGetWorkflowRunRequest(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam) (*http.Request, error) { +// NewDeleteResourceReleaseRequest generates requests for DeleteResourceRelease +func NewDeleteResourceReleaseRequest(server string, namespaceName NamespaceNameParam, resourceReleaseName ResourceReleaseNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -10331,7 +10684,7 @@ func NewGetWorkflowRunRequest(server string, namespaceName NamespaceNameParam, r var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "runName", runtime.ParamLocationPath, runName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "resourceReleaseName", runtime.ParamLocationPath, resourceReleaseName) if err != nil { return nil, err } @@ -10341,7 +10694,7 @@ func NewGetWorkflowRunRequest(server string, namespaceName NamespaceNameParam, r return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcereleases/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10351,7 +10704,7 @@ func NewGetWorkflowRunRequest(server string, namespaceName NamespaceNameParam, r 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 } @@ -10359,19 +10712,8 @@ func NewGetWorkflowRunRequest(server string, namespaceName NamespaceNameParam, r return req, nil } -// NewUpdateWorkflowRunRequest calls the generic UpdateWorkflowRun builder with application/json body -func NewUpdateWorkflowRunRequest(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, body UpdateWorkflowRunJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateWorkflowRunRequestWithBody(server, namespaceName, runName, "application/json", bodyReader) -} - -// NewUpdateWorkflowRunRequestWithBody generates requests for UpdateWorkflowRun with any type of body -func NewUpdateWorkflowRunRequestWithBody(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewGetResourceReleaseRequest generates requests for GetResourceRelease +func NewGetResourceReleaseRequest(server string, namespaceName NamespaceNameParam, resourceReleaseName ResourceReleaseNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -10383,7 +10725,7 @@ func NewUpdateWorkflowRunRequestWithBody(server string, namespaceName NamespaceN var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "runName", runtime.ParamLocationPath, runName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "resourceReleaseName", runtime.ParamLocationPath, resourceReleaseName) if err != nil { return nil, err } @@ -10393,7 +10735,7 @@ func NewUpdateWorkflowRunRequestWithBody(server string, namespaceName NamespaceN return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcereleases/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10403,18 +10745,16 @@ func NewUpdateWorkflowRunRequestWithBody(server string, namespaceName NamespaceN return nil, err } - 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 } -// NewGetWorkflowRunEventsRequest generates requests for GetWorkflowRunEvents -func NewGetWorkflowRunEventsRequest(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunEventsParams) (*http.Request, error) { +// NewListResourcesRequest generates requests for ListResources +func NewListResourcesRequest(server string, namespaceName NamespaceNameParam, params *ListResourcesParams) (*http.Request, error) { var err error var pathParam0 string @@ -10424,19 +10764,12 @@ func NewGetWorkflowRunEventsRequest(server string, namespaceName NamespaceNamePa return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "runName", runtime.ParamLocationPath, runName) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns/%s/events", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resources", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10449,9 +10782,57 @@ func NewGetWorkflowRunEventsRequest(server string, namespaceName NamespaceNamePa if params != nil { queryValues := queryURL.Query() - if params.Task != nil { + if params.Project != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "task", runtime.ParamLocationQuery, *params.Task); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); 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.LabelSelector != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); 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.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 @@ -10476,8 +10857,55 @@ func NewGetWorkflowRunEventsRequest(server string, namespaceName NamespaceNamePa return req, nil } -// NewGetWorkflowRunLogsRequest generates requests for GetWorkflowRunLogs -func NewGetWorkflowRunLogsRequest(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunLogsParams) (*http.Request, error) { +// NewCreateResourceRequest calls the generic CreateResource builder with application/json body +func NewCreateResourceRequest(server string, namespaceName NamespaceNameParam, body CreateResourceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateResourceRequestWithBody(server, namespaceName, "application/json", bodyReader) +} + +// NewCreateResourceRequestWithBody generates requests for CreateResource with any type of body +func NewCreateResourceRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resources", 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 +} + +// NewDeleteResourceRequest generates requests for DeleteResource +func NewDeleteResourceRequest(server string, namespaceName NamespaceNameParam, resourceName ResourceNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -10489,7 +10917,7 @@ func NewGetWorkflowRunLogsRequest(server string, namespaceName NamespaceNamePara var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "runName", runtime.ParamLocationPath, runName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "resourceName", runtime.ParamLocationPath, resourceName) if err != nil { return nil, err } @@ -10499,7 +10927,7 @@ func NewGetWorkflowRunLogsRequest(server string, namespaceName NamespaceNamePara return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns/%s/logs", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resources/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10509,42 +10937,45 @@ func NewGetWorkflowRunLogsRequest(server string, namespaceName NamespaceNamePara return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - if params.Task != nil { + return req, nil +} - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "task", runtime.ParamLocationQuery, *params.Task); 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) - } - } - } +// NewGetResourceRequest generates requests for GetResource +func NewGetResourceRequest(server string, namespaceName NamespaceNameParam, resourceName ResourceNameParam) (*http.Request, error) { + var err error - } + var pathParam0 string - if params.SinceSeconds != nil { + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sinceSeconds", runtime.ParamLocationQuery, *params.SinceSeconds); 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) - } - } - } + var pathParam1 string - } + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "resourceName", runtime.ParamLocationPath, resourceName) + if err != nil { + return nil, err + } - queryURL.RawQuery = queryValues.Encode() + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resources/%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) @@ -10555,8 +10986,19 @@ func NewGetWorkflowRunLogsRequest(server string, namespaceName NamespaceNamePara return req, nil } -// NewGetWorkflowRunStatusRequest generates requests for GetWorkflowRunStatus -func NewGetWorkflowRunStatusRequest(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam) (*http.Request, error) { +// NewUpdateResourceRequest calls the generic UpdateResource builder with application/json body +func NewUpdateResourceRequest(server string, namespaceName NamespaceNameParam, resourceName ResourceNameParam, body UpdateResourceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateResourceRequestWithBody(server, namespaceName, resourceName, "application/json", bodyReader) +} + +// NewUpdateResourceRequestWithBody generates requests for UpdateResource with any type of body +func NewUpdateResourceRequestWithBody(server string, namespaceName NamespaceNameParam, resourceName ResourceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10568,7 +11010,7 @@ func NewGetWorkflowRunStatusRequest(server string, namespaceName NamespaceNamePa var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "runName", runtime.ParamLocationPath, runName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "resourceName", runtime.ParamLocationPath, resourceName) if err != nil { return nil, err } @@ -10578,7 +11020,7 @@ func NewGetWorkflowRunStatusRequest(server string, namespaceName NamespaceNamePa return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns/%s/status", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resources/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10588,16 +11030,18 @@ func NewGetWorkflowRunStatusRequest(server string, namespaceName NamespaceNamePa return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewListWorkflowsRequest generates requests for ListWorkflows -func NewListWorkflowsRequest(server string, namespaceName NamespaceNameParam, params *ListWorkflowsParams) (*http.Request, error) { +// NewListResourceTypesRequest generates requests for ListResourceTypes +func NewListResourceTypesRequest(server string, namespaceName NamespaceNameParam, params *ListResourceTypesParams) (*http.Request, error) { var err error var pathParam0 string @@ -10612,7 +11056,7 @@ func NewListWorkflowsRequest(server string, namespaceName NamespaceNameParam, pa return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflows", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcetypes", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10684,19 +11128,19 @@ func NewListWorkflowsRequest(server string, namespaceName NamespaceNameParam, pa return req, nil } -// NewCreateWorkflowRequest calls the generic CreateWorkflow builder with application/json body -func NewCreateWorkflowRequest(server string, namespaceName NamespaceNameParam, body CreateWorkflowJSONRequestBody) (*http.Request, error) { +// NewCreateResourceTypeRequest calls the generic CreateResourceType builder with application/json body +func NewCreateResourceTypeRequest(server string, namespaceName NamespaceNameParam, body CreateResourceTypeJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateWorkflowRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateResourceTypeRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateWorkflowRequestWithBody generates requests for CreateWorkflow with any type of body -func NewCreateWorkflowRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateResourceTypeRequestWithBody generates requests for CreateResourceType with any type of body +func NewCreateResourceTypeRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10711,7 +11155,7 @@ func NewCreateWorkflowRequestWithBody(server string, namespaceName NamespaceName return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflows", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcetypes", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10731,8 +11175,8 @@ func NewCreateWorkflowRequestWithBody(server string, namespaceName NamespaceName return req, nil } -// NewDeleteWorkflowRequest generates requests for DeleteWorkflow -func NewDeleteWorkflowRequest(server string, namespaceName NamespaceNameParam, workflowName WorkflowNameParam) (*http.Request, error) { +// NewDeleteResourceTypeRequest generates requests for DeleteResourceType +func NewDeleteResourceTypeRequest(server string, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -10744,7 +11188,7 @@ func NewDeleteWorkflowRequest(server string, namespaceName NamespaceNameParam, w var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowName", runtime.ParamLocationPath, workflowName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "rtName", runtime.ParamLocationPath, rtName) if err != nil { return nil, err } @@ -10754,7 +11198,7 @@ func NewDeleteWorkflowRequest(server string, namespaceName NamespaceNameParam, w return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflows/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcetypes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10772,8 +11216,8 @@ func NewDeleteWorkflowRequest(server string, namespaceName NamespaceNameParam, w return req, nil } -// NewGetWorkflowRequest generates requests for GetWorkflow -func NewGetWorkflowRequest(server string, namespaceName NamespaceNameParam, workflowName WorkflowNameParam) (*http.Request, error) { +// NewGetResourceTypeRequest generates requests for GetResourceType +func NewGetResourceTypeRequest(server string, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -10785,7 +11229,7 @@ func NewGetWorkflowRequest(server string, namespaceName NamespaceNameParam, work var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowName", runtime.ParamLocationPath, workflowName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "rtName", runtime.ParamLocationPath, rtName) if err != nil { return nil, err } @@ -10795,7 +11239,7 @@ func NewGetWorkflowRequest(server string, namespaceName NamespaceNameParam, work return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflows/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcetypes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10813,19 +11257,19 @@ func NewGetWorkflowRequest(server string, namespaceName NamespaceNameParam, work return req, nil } -// NewUpdateWorkflowRequest calls the generic UpdateWorkflow builder with application/json body -func NewUpdateWorkflowRequest(server string, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, body UpdateWorkflowJSONRequestBody) (*http.Request, error) { +// NewUpdateResourceTypeRequest calls the generic UpdateResourceType builder with application/json body +func NewUpdateResourceTypeRequest(server string, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, body UpdateResourceTypeJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateWorkflowRequestWithBody(server, namespaceName, workflowName, "application/json", bodyReader) + return NewUpdateResourceTypeRequestWithBody(server, namespaceName, rtName, "application/json", bodyReader) } -// NewUpdateWorkflowRequestWithBody generates requests for UpdateWorkflow with any type of body -func NewUpdateWorkflowRequestWithBody(server string, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateResourceTypeRequestWithBody generates requests for UpdateResourceType with any type of body +func NewUpdateResourceTypeRequestWithBody(server string, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10837,7 +11281,7 @@ func NewUpdateWorkflowRequestWithBody(server string, namespaceName NamespaceName var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowName", runtime.ParamLocationPath, workflowName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "rtName", runtime.ParamLocationPath, rtName) if err != nil { return nil, err } @@ -10847,7 +11291,7 @@ func NewUpdateWorkflowRequestWithBody(server string, namespaceName NamespaceName return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflows/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcetypes/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10867,8 +11311,8 @@ func NewUpdateWorkflowRequestWithBody(server string, namespaceName NamespaceName return req, nil } -// NewGetWorkflowSchemaRequest generates requests for GetWorkflowSchema -func NewGetWorkflowSchemaRequest(server string, namespaceName NamespaceNameParam, workflowName WorkflowNameParam) (*http.Request, error) { +// NewGetResourceTypeSchemaRequest generates requests for GetResourceTypeSchema +func NewGetResourceTypeSchemaRequest(server string, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -10880,7 +11324,7 @@ func NewGetWorkflowSchemaRequest(server string, namespaceName NamespaceNameParam var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowName", runtime.ParamLocationPath, workflowName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "rtName", runtime.ParamLocationPath, rtName) if err != nil { return nil, err } @@ -10890,7 +11334,7 @@ func NewGetWorkflowSchemaRequest(server string, namespaceName NamespaceNameParam return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflows/%s/schema", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/resourcetypes/%s/schema", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10908,8 +11352,8 @@ func NewGetWorkflowSchemaRequest(server string, namespaceName NamespaceNameParam return req, nil } -// NewListWorkloadsRequest generates requests for ListWorkloads -func NewListWorkloadsRequest(server string, namespaceName NamespaceNameParam, params *ListWorkloadsParams) (*http.Request, error) { +// NewListSecretReferencesRequest generates requests for ListSecretReferences +func NewListSecretReferencesRequest(server string, namespaceName NamespaceNameParam, params *ListSecretReferencesParams) (*http.Request, error) { var err error var pathParam0 string @@ -10924,7 +11368,7 @@ func NewListWorkloadsRequest(server string, namespaceName NamespaceNameParam, pa return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workloads", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/secretreferences", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10937,22 +11381,6 @@ func NewListWorkloadsRequest(server string, namespaceName NamespaceNameParam, pa if params != nil { queryValues := queryURL.Query() - if params.Component != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "component", runtime.ParamLocationQuery, *params.Component); 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.LabelSelector != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); err != nil { @@ -11012,19 +11440,19 @@ func NewListWorkloadsRequest(server string, namespaceName NamespaceNameParam, pa return req, nil } -// NewCreateWorkloadRequest calls the generic CreateWorkload builder with application/json body -func NewCreateWorkloadRequest(server string, namespaceName NamespaceNameParam, body CreateWorkloadJSONRequestBody) (*http.Request, error) { +// NewCreateSecretReferenceRequest calls the generic CreateSecretReference builder with application/json body +func NewCreateSecretReferenceRequest(server string, namespaceName NamespaceNameParam, body CreateSecretReferenceJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateWorkloadRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateSecretReferenceRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateWorkloadRequestWithBody generates requests for CreateWorkload with any type of body -func NewCreateWorkloadRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateSecretReferenceRequestWithBody generates requests for CreateSecretReference with any type of body +func NewCreateSecretReferenceRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -11039,7 +11467,7 @@ func NewCreateWorkloadRequestWithBody(server string, namespaceName NamespaceName return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workloads", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/secretreferences", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11059,8 +11487,8 @@ func NewCreateWorkloadRequestWithBody(server string, namespaceName NamespaceName return req, nil } -// NewDeleteWorkloadRequest generates requests for DeleteWorkload -func NewDeleteWorkloadRequest(server string, namespaceName NamespaceNameParam, workloadName WorkloadNameParam) (*http.Request, error) { +// NewDeleteSecretReferenceRequest generates requests for DeleteSecretReference +func NewDeleteSecretReferenceRequest(server string, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -11072,7 +11500,7 @@ func NewDeleteWorkloadRequest(server string, namespaceName NamespaceNameParam, w var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workloadName", runtime.ParamLocationPath, workloadName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secretReferenceName", runtime.ParamLocationPath, secretReferenceName) if err != nil { return nil, err } @@ -11082,7 +11510,7 @@ func NewDeleteWorkloadRequest(server string, namespaceName NamespaceNameParam, w return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workloads/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/secretreferences/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11100,8 +11528,8 @@ func NewDeleteWorkloadRequest(server string, namespaceName NamespaceNameParam, w return req, nil } -// NewGetWorkloadRequest generates requests for GetWorkload -func NewGetWorkloadRequest(server string, namespaceName NamespaceNameParam, workloadName WorkloadNameParam) (*http.Request, error) { +// NewGetSecretReferenceRequest generates requests for GetSecretReference +func NewGetSecretReferenceRequest(server string, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -11113,7 +11541,7 @@ func NewGetWorkloadRequest(server string, namespaceName NamespaceNameParam, work var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workloadName", runtime.ParamLocationPath, workloadName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secretReferenceName", runtime.ParamLocationPath, secretReferenceName) if err != nil { return nil, err } @@ -11123,7 +11551,7 @@ func NewGetWorkloadRequest(server string, namespaceName NamespaceNameParam, work return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workloads/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/secretreferences/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11141,19 +11569,19 @@ func NewGetWorkloadRequest(server string, namespaceName NamespaceNameParam, work return req, nil } -// NewUpdateWorkloadRequest calls the generic UpdateWorkload builder with application/json body -func NewUpdateWorkloadRequest(server string, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, body UpdateWorkloadJSONRequestBody) (*http.Request, error) { +// NewUpdateSecretReferenceRequest calls the generic UpdateSecretReference builder with application/json body +func NewUpdateSecretReferenceRequest(server string, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, body UpdateSecretReferenceJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateWorkloadRequestWithBody(server, namespaceName, workloadName, "application/json", bodyReader) + return NewUpdateSecretReferenceRequestWithBody(server, namespaceName, secretReferenceName, "application/json", bodyReader) } -// NewUpdateWorkloadRequestWithBody generates requests for UpdateWorkload with any type of body -func NewUpdateWorkloadRequestWithBody(server string, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSecretReferenceRequestWithBody generates requests for UpdateSecretReference with any type of body +func NewUpdateSecretReferenceRequestWithBody(server string, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -11165,7 +11593,7 @@ func NewUpdateWorkloadRequestWithBody(server string, namespaceName NamespaceName var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workloadName", runtime.ParamLocationPath, workloadName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secretReferenceName", runtime.ParamLocationPath, secretReferenceName) if err != nil { return nil, err } @@ -11175,7 +11603,7 @@ func NewUpdateWorkloadRequestWithBody(server string, namespaceName NamespaceName return nil, err } - operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workloads/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/secretreferences/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11195,27 +11623,23 @@ func NewUpdateWorkloadRequestWithBody(server string, namespaceName NamespaceName return req, nil } -// NewHandleAutoBuildRequest calls the generic HandleAutoBuild builder with application/json body -func NewHandleAutoBuildRequest(server string, params *HandleAutoBuildParams, body HandleAutoBuildJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewListTraitsRequest generates requests for ListTraits +func NewListTraitsRequest(server string, namespaceName NamespaceNameParam, params *ListTraitsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewHandleAutoBuildRequestWithBody(server, params, "application/json", bodyReader) -} - -// NewHandleAutoBuildRequestWithBody generates requests for HandleAutoBuild with any type of body -func NewHandleAutoBuildRequestWithBody(server string, params *HandleAutoBuildParams, 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("/api/v1alpha1/autobuild") + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/traits", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11225,77 +11649,58 @@ func NewHandleAutoBuildRequestWithBody(server string, params *HandleAutoBuildPar return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - if params != nil { + queryValues := queryURL.Query() - if params.XHubSignature256 != nil { - var headerParam0 string + if params.LabelSelector != nil { - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Hub-Signature-256", runtime.ParamLocationHeader, *params.XHubSignature256) - if err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); 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.Set("X-Hub-Signature-256", headerParam0) } - if params.XGitlabToken != nil { - var headerParam1 string + if params.Limit != nil { - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Gitlab-Token", runtime.ParamLocationHeader, *params.XGitlabToken) - if err != 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) + } + } } - req.Header.Set("X-Gitlab-Token", headerParam1) } - if params.XEventKey != nil { - var headerParam2 string + if params.Cursor != nil { - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Event-Key", runtime.ParamLocationHeader, *params.XEventKey) - if err != 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) + } + } } - req.Header.Set("X-Event-Key", headerParam2) } - } - - return req, nil -} - -// NewListGitSecretsRequest generates requests for ListGitSecrets -func NewListGitSecretsRequest(server string, namespaceName NamespaceNameParam) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/v1alpha1/namespaces/%s/gitsecrets", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + queryURL.RawQuery = queryValues.Encode() } req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -11306,19 +11711,19 @@ func NewListGitSecretsRequest(server string, namespaceName NamespaceNameParam) ( return req, nil } -// NewCreateGitSecretRequest calls the generic CreateGitSecret builder with application/json body -func NewCreateGitSecretRequest(server string, namespaceName NamespaceNameParam, body CreateGitSecretJSONRequestBody) (*http.Request, error) { +// NewCreateTraitRequest calls the generic CreateTrait builder with application/json body +func NewCreateTraitRequest(server string, namespaceName NamespaceNameParam, body CreateTraitJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateGitSecretRequestWithBody(server, namespaceName, "application/json", bodyReader) + return NewCreateTraitRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// NewCreateGitSecretRequestWithBody generates requests for CreateGitSecret with any type of body -func NewCreateGitSecretRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateTraitRequestWithBody generates requests for CreateTrait with any type of body +func NewCreateTraitRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -11333,7 +11738,7 @@ func NewCreateGitSecretRequestWithBody(server string, namespaceName NamespaceNam return nil, err } - operationPath := fmt.Sprintf("/api/v1alpha1/namespaces/%s/gitsecrets", pathParam0) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/traits", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11353,8 +11758,8 @@ func NewCreateGitSecretRequestWithBody(server string, namespaceName NamespaceNam return req, nil } -// NewDeleteGitSecretRequest generates requests for DeleteGitSecret -func NewDeleteGitSecretRequest(server string, namespaceName NamespaceNameParam, gitSecretName GitSecretNameParam) (*http.Request, error) { +// NewDeleteTraitRequest generates requests for DeleteTrait +func NewDeleteTraitRequest(server string, namespaceName NamespaceNameParam, traitName TraitNameParam) (*http.Request, error) { var err error var pathParam0 string @@ -11366,7 +11771,7 @@ func NewDeleteGitSecretRequest(server string, namespaceName NamespaceNameParam, var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "gitSecretName", runtime.ParamLocationPath, gitSecretName) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "traitName", runtime.ParamLocationPath, traitName) if err != nil { return nil, err } @@ -11376,7 +11781,7 @@ func NewDeleteGitSecretRequest(server string, namespaceName NamespaceNameParam, return nil, err } - operationPath := fmt.Sprintf("/api/v1alpha1/namespaces/%s/gitsecrets/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/traits/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11394,16 +11799,30 @@ func NewDeleteGitSecretRequest(server string, namespaceName NamespaceNameParam, return req, nil } -// NewGetHealthRequest generates requests for GetHealth -func NewGetHealthRequest(server string) (*http.Request, error) { +// NewGetTraitRequest generates requests for GetTrait +func NewGetTraitRequest(server string, namespaceName NamespaceNameParam, traitName TraitNameParam) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "traitName", runtime.ParamLocationPath, traitName) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/health") + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/traits/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11421,16 +11840,41 @@ func NewGetHealthRequest(server string) (*http.Request, error) { return req, nil } -// NewGetOpenAPISpecRequest generates requests for GetOpenAPISpec -func NewGetOpenAPISpecRequest(server string) (*http.Request, error) { +// NewUpdateTraitRequest calls the generic UpdateTrait builder with application/json body +func NewUpdateTraitRequest(server string, namespaceName NamespaceNameParam, traitName TraitNameParam, body UpdateTraitJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateTraitRequestWithBody(server, namespaceName, traitName, "application/json", bodyReader) +} + +// NewUpdateTraitRequestWithBody generates requests for UpdateTrait with any type of body +func NewUpdateTraitRequestWithBody(server string, namespaceName NamespaceNameParam, traitName TraitNameParam, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "traitName", runtime.ParamLocationPath, traitName) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/openapi.json") + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/traits/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11440,24 +11884,40 @@ func NewGetOpenAPISpecRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetReadyRequest generates requests for GetReady -func NewGetReadyRequest(server string) (*http.Request, error) { +// NewGetTraitSchemaRequest generates requests for GetTraitSchema +func NewGetTraitSchemaRequest(server string, namespaceName NamespaceNameParam, traitName TraitNameParam) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "traitName", runtime.ParamLocationPath, traitName) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/ready") + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/traits/%s/schema", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11475,16 +11935,23 @@ func NewGetReadyRequest(server string) (*http.Request, error) { return req, nil } -// NewGetVersionRequest generates requests for GetVersion -func NewGetVersionRequest(server string) (*http.Request, error) { +// NewListWorkflowPlanesRequest generates requests for ListWorkflowPlanes +func NewListWorkflowPlanesRequest(server string, namespaceName NamespaceNameParam, params *ListWorkflowPlanesParams) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/version") + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowplanes", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11494,752 +11961,5067 @@ func NewGetVersionRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - return req, nil -} + if params.LabelSelector != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); 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) + } + } + } -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 -} + if params.Limit != nil { -// 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 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 &ClientWithResponses{client}, nil + + return req, 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 +// NewCreateWorkflowPlaneRequest calls the generic CreateWorkflowPlane builder with application/json body +func NewCreateWorkflowPlaneRequest(server string, namespaceName NamespaceNameParam, body CreateWorkflowPlaneJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } + bodyReader = bytes.NewReader(buf) + return NewCreateWorkflowPlaneRequestWithBody(server, namespaceName, "application/json", bodyReader) } -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - // GetOAuthProtectedResourceMetadataWithResponse request - GetOAuthProtectedResourceMetadataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOAuthProtectedResourceMetadataResp, error) +// NewCreateWorkflowPlaneRequestWithBody generates requests for CreateWorkflowPlane with any type of body +func NewCreateWorkflowPlaneRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error - // ListSubjectTypesWithResponse request - ListSubjectTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectTypesResp, error) + var pathParam0 string - // ListActionsWithResponse request - ListActionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListActionsResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // EvaluatesWithBodyWithResponse request with any body - EvaluatesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EvaluatesResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - EvaluatesWithResponse(ctx context.Context, body EvaluatesJSONRequestBody, reqEditors ...RequestEditorFn) (*EvaluatesResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowplanes", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetSubjectProfileWithResponse request - GetSubjectProfileWithResponse(ctx context.Context, params *GetSubjectProfileParams, reqEditors ...RequestEditorFn) (*GetSubjectProfileResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // ListClusterRoleBindingsWithResponse request - ListClusterRoleBindingsWithResponse(ctx context.Context, params *ListClusterRoleBindingsParams, reqEditors ...RequestEditorFn) (*ListClusterRoleBindingsResp, error) + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - // CreateClusterRoleBindingWithBodyWithResponse request with any body - CreateClusterRoleBindingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterRoleBindingResp, error) + req.Header.Add("Content-Type", contentType) - CreateClusterRoleBindingWithResponse(ctx context.Context, body CreateClusterRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterRoleBindingResp, error) + return req, nil +} - // DeleteClusterRoleBindingWithResponse request - DeleteClusterRoleBindingWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteClusterRoleBindingResp, error) +// NewDeleteWorkflowPlaneRequest generates requests for DeleteWorkflowPlane +func NewDeleteWorkflowPlaneRequest(server string, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam) (*http.Request, error) { + var err error - // GetClusterRoleBindingWithResponse request - GetClusterRoleBindingWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetClusterRoleBindingResp, error) + var pathParam0 string - // UpdateClusterRoleBindingWithBodyWithResponse request with any body - UpdateClusterRoleBindingWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterRoleBindingResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - UpdateClusterRoleBindingWithResponse(ctx context.Context, name string, body UpdateClusterRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterRoleBindingResp, error) + var pathParam1 string - // ListClusterRolesWithResponse request - ListClusterRolesWithResponse(ctx context.Context, params *ListClusterRolesParams, reqEditors ...RequestEditorFn) (*ListClusterRolesResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowPlaneName", runtime.ParamLocationPath, workflowPlaneName) + if err != nil { + return nil, err + } - // CreateClusterRoleWithBodyWithResponse request with any body - CreateClusterRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterRoleResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - CreateClusterRoleWithResponse(ctx context.Context, body CreateClusterRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterRoleResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowplanes/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteClusterRoleWithResponse request - DeleteClusterRoleWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteClusterRoleResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetClusterRoleWithResponse request - GetClusterRoleWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetClusterRoleResp, error) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - // UpdateClusterRoleWithBodyWithResponse request with any body - UpdateClusterRoleWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterRoleResp, error) + return req, nil +} - UpdateClusterRoleWithResponse(ctx context.Context, name string, body UpdateClusterRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterRoleResp, error) +// NewGetWorkflowPlaneRequest generates requests for GetWorkflowPlane +func NewGetWorkflowPlaneRequest(server string, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam) (*http.Request, error) { + var err error - // ListClusterComponentTypesWithResponse request - ListClusterComponentTypesWithResponse(ctx context.Context, params *ListClusterComponentTypesParams, reqEditors ...RequestEditorFn) (*ListClusterComponentTypesResp, error) + var pathParam0 string - // CreateClusterComponentTypeWithBodyWithResponse request with any body - CreateClusterComponentTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterComponentTypeResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - CreateClusterComponentTypeWithResponse(ctx context.Context, body CreateClusterComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterComponentTypeResp, error) + var pathParam1 string - // DeleteClusterComponentTypeWithResponse request - DeleteClusterComponentTypeWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterComponentTypeResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowPlaneName", runtime.ParamLocationPath, workflowPlaneName) + if err != nil { + return nil, err + } - // GetClusterComponentTypeWithResponse request - GetClusterComponentTypeWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetClusterComponentTypeResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // UpdateClusterComponentTypeWithBodyWithResponse request with any body - UpdateClusterComponentTypeWithBodyWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterComponentTypeResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowplanes/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - UpdateClusterComponentTypeWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, body UpdateClusterComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterComponentTypeResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetClusterComponentTypeSchemaWithResponse request - GetClusterComponentTypeSchemaWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetClusterComponentTypeSchemaResp, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // ListClusterDataPlanesWithResponse request - ListClusterDataPlanesWithResponse(ctx context.Context, params *ListClusterDataPlanesParams, reqEditors ...RequestEditorFn) (*ListClusterDataPlanesResp, error) + return req, nil +} - // CreateClusterDataPlaneWithBodyWithResponse request with any body - CreateClusterDataPlaneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterDataPlaneResp, error) +// NewUpdateWorkflowPlaneRequest calls the generic UpdateWorkflowPlane builder with application/json body +func NewUpdateWorkflowPlaneRequest(server string, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, body UpdateWorkflowPlaneJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateWorkflowPlaneRequestWithBody(server, namespaceName, workflowPlaneName, "application/json", bodyReader) +} - CreateClusterDataPlaneWithResponse(ctx context.Context, body CreateClusterDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterDataPlaneResp, error) +// NewUpdateWorkflowPlaneRequestWithBody generates requests for UpdateWorkflowPlane with any type of body +func NewUpdateWorkflowPlaneRequestWithBody(server string, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error - // DeleteClusterDataPlaneWithResponse request - DeleteClusterDataPlaneWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterDataPlaneResp, error) + var pathParam0 string - // GetClusterDataPlaneWithResponse request - GetClusterDataPlaneWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, reqEditors ...RequestEditorFn) (*GetClusterDataPlaneResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // UpdateClusterDataPlaneWithBodyWithResponse request with any body - UpdateClusterDataPlaneWithBodyWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterDataPlaneResp, error) + var pathParam1 string - UpdateClusterDataPlaneWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, body UpdateClusterDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterDataPlaneResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowPlaneName", runtime.ParamLocationPath, workflowPlaneName) + if err != nil { + return nil, err + } - // ListClusterObservabilityPlanesWithResponse request - ListClusterObservabilityPlanesWithResponse(ctx context.Context, params *ListClusterObservabilityPlanesParams, reqEditors ...RequestEditorFn) (*ListClusterObservabilityPlanesResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // CreateClusterObservabilityPlaneWithBodyWithResponse request with any body - CreateClusterObservabilityPlaneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterObservabilityPlaneResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowplanes/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - CreateClusterObservabilityPlaneWithResponse(ctx context.Context, body CreateClusterObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterObservabilityPlaneResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // DeleteClusterObservabilityPlaneWithResponse request - DeleteClusterObservabilityPlaneWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterObservabilityPlaneResp, error) + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } - // GetClusterObservabilityPlaneWithResponse request - GetClusterObservabilityPlaneWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*GetClusterObservabilityPlaneResp, error) + req.Header.Add("Content-Type", contentType) - // UpdateClusterObservabilityPlaneWithBodyWithResponse request with any body - UpdateClusterObservabilityPlaneWithBodyWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterObservabilityPlaneResp, error) + return req, nil +} - UpdateClusterObservabilityPlaneWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, body UpdateClusterObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterObservabilityPlaneResp, error) +// NewListWorkflowRunsRequest generates requests for ListWorkflowRuns +func NewListWorkflowRunsRequest(server string, namespaceName NamespaceNameParam, params *ListWorkflowRunsParams) (*http.Request, error) { + var err error - // ListClusterTraitsWithResponse request - ListClusterTraitsWithResponse(ctx context.Context, params *ListClusterTraitsParams, reqEditors ...RequestEditorFn) (*ListClusterTraitsResp, error) + var pathParam0 string - // CreateClusterTraitWithBodyWithResponse request with any body - CreateClusterTraitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterTraitResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - CreateClusterTraitWithResponse(ctx context.Context, body CreateClusterTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterTraitResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // DeleteClusterTraitWithResponse request - DeleteClusterTraitWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterTraitResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetClusterTraitWithResponse request - GetClusterTraitWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, reqEditors ...RequestEditorFn) (*GetClusterTraitResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // UpdateClusterTraitWithBodyWithResponse request with any body - UpdateClusterTraitWithBodyWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterTraitResp, error) + if params != nil { + queryValues := queryURL.Query() - UpdateClusterTraitWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, body UpdateClusterTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterTraitResp, error) + if params.Workflow != nil { - // GetClusterTraitSchemaWithResponse request - GetClusterTraitSchemaWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, reqEditors ...RequestEditorFn) (*GetClusterTraitSchemaResp, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "workflow", runtime.ParamLocationQuery, *params.Workflow); 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) + } + } + } - // ListClusterWorkflowPlanesWithResponse request - ListClusterWorkflowPlanesWithResponse(ctx context.Context, params *ListClusterWorkflowPlanesParams, reqEditors ...RequestEditorFn) (*ListClusterWorkflowPlanesResp, error) + } - // CreateClusterWorkflowPlaneWithBodyWithResponse request with any body - CreateClusterWorkflowPlaneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowPlaneResp, error) + if params.LabelSelector != nil { - CreateClusterWorkflowPlaneWithResponse(ctx context.Context, body CreateClusterWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowPlaneResp, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); 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) + } + } + } - // DeleteClusterWorkflowPlaneWithResponse request - DeleteClusterWorkflowPlaneWithResponse(ctx context.Context, clusterWorkflowPlaneName string, reqEditors ...RequestEditorFn) (*DeleteClusterWorkflowPlaneResp, error) + } - // GetClusterWorkflowPlaneWithResponse request - GetClusterWorkflowPlaneWithResponse(ctx context.Context, clusterWorkflowPlaneName string, reqEditors ...RequestEditorFn) (*GetClusterWorkflowPlaneResp, error) + if params.Limit != nil { - // UpdateClusterWorkflowPlaneWithBodyWithResponse request with any body - UpdateClusterWorkflowPlaneWithBodyWithResponse(ctx context.Context, clusterWorkflowPlaneName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowPlaneResp, error) + 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) + } + } + } - UpdateClusterWorkflowPlaneWithResponse(ctx context.Context, clusterWorkflowPlaneName string, body UpdateClusterWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowPlaneResp, error) + } - // ListClusterWorkflowsWithResponse request - ListClusterWorkflowsWithResponse(ctx context.Context, params *ListClusterWorkflowsParams, reqEditors ...RequestEditorFn) (*ListClusterWorkflowsResp, error) + if params.Cursor != nil { - // CreateClusterWorkflowWithBodyWithResponse request with any body - CreateClusterWorkflowWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowResp, error) + 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) + } + } + } - CreateClusterWorkflowWithResponse(ctx context.Context, body CreateClusterWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowResp, error) + } - // DeleteClusterWorkflowWithResponse request - DeleteClusterWorkflowWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterWorkflowResp, error) + queryURL.RawQuery = queryValues.Encode() + } - // GetClusterWorkflowWithResponse request - GetClusterWorkflowWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, reqEditors ...RequestEditorFn) (*GetClusterWorkflowResp, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // UpdateClusterWorkflowWithBodyWithResponse request with any body - UpdateClusterWorkflowWithBodyWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowResp, error) + return req, nil +} - UpdateClusterWorkflowWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, body UpdateClusterWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowResp, error) +// NewCreateWorkflowRunRequest calls the generic CreateWorkflowRun builder with application/json body +func NewCreateWorkflowRunRequest(server string, namespaceName NamespaceNameParam, body CreateWorkflowRunJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateWorkflowRunRequestWithBody(server, namespaceName, "application/json", bodyReader) +} - // GetClusterWorkflowSchemaWithResponse request - GetClusterWorkflowSchemaWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, reqEditors ...RequestEditorFn) (*GetClusterWorkflowSchemaResp, error) +// NewCreateWorkflowRunRequestWithBody generates requests for CreateWorkflowRun with any type of body +func NewCreateWorkflowRunRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error - // ListNamespacesWithResponse request - ListNamespacesWithResponse(ctx context.Context, params *ListNamespacesParams, reqEditors ...RequestEditorFn) (*ListNamespacesResp, error) + var pathParam0 string - // CreateNamespaceWithBodyWithResponse request with any body - CreateNamespaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - CreateNamespaceWithResponse(ctx context.Context, body CreateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // DeleteNamespaceWithResponse request - DeleteNamespaceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*DeleteNamespaceResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetNamespaceWithResponse request - GetNamespaceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*GetNamespaceResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // UpdateNamespaceWithBodyWithResponse request with any body - UpdateNamespaceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceResp, error) + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - UpdateNamespaceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body UpdateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceResp, error) + req.Header.Add("Content-Type", contentType) - // ListNamespaceRoleBindingsWithResponse request - ListNamespaceRoleBindingsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListNamespaceRoleBindingsParams, reqEditors ...RequestEditorFn) (*ListNamespaceRoleBindingsResp, error) + return req, nil +} - // CreateNamespaceRoleBindingWithBodyWithResponse request with any body - CreateNamespaceRoleBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleBindingResp, error) +// NewDeleteWorkflowRunRequest generates requests for DeleteWorkflowRun +func NewDeleteWorkflowRunRequest(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam) (*http.Request, error) { + var err error - CreateNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateNamespaceRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleBindingResp, error) + var pathParam0 string - // DeleteNamespaceRoleBindingWithResponse request - DeleteNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*DeleteNamespaceRoleBindingResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // GetNamespaceRoleBindingWithResponse request - GetNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*GetNamespaceRoleBindingResp, error) + var pathParam1 string - // UpdateNamespaceRoleBindingWithBodyWithResponse request with any body - UpdateNamespaceRoleBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleBindingResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "runName", runtime.ParamLocationPath, runName) + if err != nil { + return nil, err + } - UpdateNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, body UpdateNamespaceRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleBindingResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // ListNamespaceRolesWithResponse request - ListNamespaceRolesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListNamespaceRolesParams, reqEditors ...RequestEditorFn) (*ListNamespaceRolesResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // CreateNamespaceRoleWithBodyWithResponse request with any body - CreateNamespaceRoleWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - CreateNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateNamespaceRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleResp, error) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - // DeleteNamespaceRoleWithResponse request - DeleteNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*DeleteNamespaceRoleResp, error) + return req, nil +} - // GetNamespaceRoleWithResponse request - GetNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*GetNamespaceRoleResp, error) +// NewGetWorkflowRunRequest generates requests for GetWorkflowRun +func NewGetWorkflowRunRequest(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam) (*http.Request, error) { + var err error - // UpdateNamespaceRoleWithBodyWithResponse request with any body - UpdateNamespaceRoleWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleResp, error) + var pathParam0 string - UpdateNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, body UpdateNamespaceRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // ListComponentReleasesWithResponse request - ListComponentReleasesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListComponentReleasesParams, reqEditors ...RequestEditorFn) (*ListComponentReleasesResp, error) + var pathParam1 string - // CreateComponentReleaseWithBodyWithResponse request with any body - CreateComponentReleaseWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateComponentReleaseResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "runName", runtime.ParamLocationPath, runName) + if err != nil { + return nil, err + } - CreateComponentReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateComponentReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateComponentReleaseResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // DeleteComponentReleaseWithResponse request - DeleteComponentReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentReleaseName ComponentReleaseNameParam, reqEditors ...RequestEditorFn) (*DeleteComponentReleaseResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetComponentReleaseWithResponse request - GetComponentReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentReleaseName ComponentReleaseNameParam, reqEditors ...RequestEditorFn) (*GetComponentReleaseResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // ListComponentsWithResponse request - ListComponentsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListComponentsParams, reqEditors ...RequestEditorFn) (*ListComponentsResp, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // CreateComponentWithBodyWithResponse request with any body - CreateComponentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateComponentResp, error) + return req, nil +} - CreateComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateComponentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateComponentResp, error) +// NewUpdateWorkflowRunRequest calls the generic UpdateWorkflowRun builder with application/json body +func NewUpdateWorkflowRunRequest(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, body UpdateWorkflowRunJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateWorkflowRunRequestWithBody(server, namespaceName, runName, "application/json", bodyReader) +} - // DeleteComponentWithResponse request - DeleteComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, reqEditors ...RequestEditorFn) (*DeleteComponentResp, error) +// NewUpdateWorkflowRunRequestWithBody generates requests for UpdateWorkflowRun with any type of body +func NewUpdateWorkflowRunRequestWithBody(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error - // GetComponentWithResponse request - GetComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, reqEditors ...RequestEditorFn) (*GetComponentResp, error) + var pathParam0 string - // UpdateComponentWithBodyWithResponse request with any body - UpdateComponentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateComponentResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - UpdateComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, body UpdateComponentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateComponentResp, error) + var pathParam1 string - // GenerateReleaseWithBodyWithResponse request with any body - GenerateReleaseWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateReleaseResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "runName", runtime.ParamLocationPath, runName) + if err != nil { + return nil, err + } - GenerateReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, body GenerateReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateReleaseResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // GetComponentSchemaWithResponse request - GetComponentSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, reqEditors ...RequestEditorFn) (*GetComponentSchemaResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // ListComponentTypesWithResponse request - ListComponentTypesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListComponentTypesParams, reqEditors ...RequestEditorFn) (*ListComponentTypesResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // CreateComponentTypeWithBodyWithResponse request with any body - CreateComponentTypeWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateComponentTypeResp, error) + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } - CreateComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateComponentTypeResp, error) + req.Header.Add("Content-Type", contentType) - // DeleteComponentTypeWithResponse request - DeleteComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, reqEditors ...RequestEditorFn) (*DeleteComponentTypeResp, error) + return req, nil +} - // GetComponentTypeWithResponse request - GetComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetComponentTypeResp, error) +// NewGetWorkflowRunEventsRequest generates requests for GetWorkflowRunEvents +func NewGetWorkflowRunEventsRequest(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunEventsParams) (*http.Request, error) { + var err error - // UpdateComponentTypeWithBodyWithResponse request with any body - UpdateComponentTypeWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateComponentTypeResp, error) + var pathParam0 string - UpdateComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, body UpdateComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateComponentTypeResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // GetComponentTypeSchemaWithResponse request - GetComponentTypeSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetComponentTypeSchemaResp, error) + var pathParam1 string - // ListDataPlanesWithResponse request - ListDataPlanesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListDataPlanesParams, reqEditors ...RequestEditorFn) (*ListDataPlanesResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "runName", runtime.ParamLocationPath, runName) + if err != nil { + return nil, err + } - // CreateDataPlaneWithBodyWithResponse request with any body - CreateDataPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDataPlaneResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - CreateDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDataPlaneResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns/%s/events", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteDataPlaneWithResponse request - DeleteDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteDataPlaneResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetDataPlaneWithResponse request - GetDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, reqEditors ...RequestEditorFn) (*GetDataPlaneResp, error) + if params != nil { + queryValues := queryURL.Query() - // UpdateDataPlaneWithBodyWithResponse request with any body - UpdateDataPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDataPlaneResp, error) + if params.Task != nil { - UpdateDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, body UpdateDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDataPlaneResp, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "task", runtime.ParamLocationQuery, *params.Task); 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) + } + } + } - // ListDeploymentPipelinesWithResponse request - ListDeploymentPipelinesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListDeploymentPipelinesParams, reqEditors ...RequestEditorFn) (*ListDeploymentPipelinesResp, error) + } - // CreateDeploymentPipelineWithBodyWithResponse request with any body - CreateDeploymentPipelineWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDeploymentPipelineResp, error) + queryURL.RawQuery = queryValues.Encode() + } - CreateDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateDeploymentPipelineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeploymentPipelineResp, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // DeleteDeploymentPipelineWithResponse request - DeleteDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, reqEditors ...RequestEditorFn) (*DeleteDeploymentPipelineResp, error) + return req, nil +} - // GetDeploymentPipelineWithResponse request - GetDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, reqEditors ...RequestEditorFn) (*GetDeploymentPipelineResp, error) +// NewGetWorkflowRunLogsRequest generates requests for GetWorkflowRunLogs +func NewGetWorkflowRunLogsRequest(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunLogsParams) (*http.Request, error) { + var err error - // UpdateDeploymentPipelineWithBodyWithResponse request with any body - UpdateDeploymentPipelineWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDeploymentPipelineResp, error) + var pathParam0 string - UpdateDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, body UpdateDeploymentPipelineJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDeploymentPipelineResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // ListEnvironmentsWithResponse request - ListEnvironmentsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListEnvironmentsParams, reqEditors ...RequestEditorFn) (*ListEnvironmentsResp, error) + var pathParam1 string - // CreateEnvironmentWithBodyWithResponse request with any body - CreateEnvironmentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEnvironmentResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "runName", runtime.ParamLocationPath, runName) + if err != nil { + return nil, err + } - CreateEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvironmentResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // DeleteEnvironmentWithResponse request - DeleteEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns/%s/logs", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetEnvironmentWithResponse request - GetEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, reqEditors ...RequestEditorFn) (*GetEnvironmentResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // UpdateEnvironmentWithBodyWithResponse request with any body - UpdateEnvironmentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResp, error) + if params != nil { + queryValues := queryURL.Query() - UpdateEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResp, error) + if params.Task != nil { - // ListObservabilityAlertsNotificationChannelsWithResponse request - ListObservabilityAlertsNotificationChannelsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListObservabilityAlertsNotificationChannelsParams, reqEditors ...RequestEditorFn) (*ListObservabilityAlertsNotificationChannelsResp, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "task", runtime.ParamLocationQuery, *params.Task); 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) + } + } + } - // CreateObservabilityAlertsNotificationChannelWithBodyWithResponse request with any body - CreateObservabilityAlertsNotificationChannelWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateObservabilityAlertsNotificationChannelResp, error) + } - CreateObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateObservabilityAlertsNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateObservabilityAlertsNotificationChannelResp, error) + if params.SinceSeconds != nil { - // DeleteObservabilityAlertsNotificationChannelWithResponse request - DeleteObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, reqEditors ...RequestEditorFn) (*DeleteObservabilityAlertsNotificationChannelResp, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sinceSeconds", runtime.ParamLocationQuery, *params.SinceSeconds); 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) + } + } + } - // GetObservabilityAlertsNotificationChannelWithResponse request - GetObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, reqEditors ...RequestEditorFn) (*GetObservabilityAlertsNotificationChannelResp, error) - - // UpdateObservabilityAlertsNotificationChannelWithBodyWithResponse request with any body - UpdateObservabilityAlertsNotificationChannelWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateObservabilityAlertsNotificationChannelResp, error) + } - UpdateObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, body UpdateObservabilityAlertsNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateObservabilityAlertsNotificationChannelResp, error) + queryURL.RawQuery = queryValues.Encode() + } - // ListObservabilityPlanesWithResponse request - ListObservabilityPlanesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListObservabilityPlanesParams, reqEditors ...RequestEditorFn) (*ListObservabilityPlanesResp, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // CreateObservabilityPlaneWithBodyWithResponse request with any body - CreateObservabilityPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateObservabilityPlaneResp, error) + return req, nil +} - CreateObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateObservabilityPlaneResp, error) +// NewGetWorkflowRunStatusRequest generates requests for GetWorkflowRunStatus +func NewGetWorkflowRunStatusRequest(server string, namespaceName NamespaceNameParam, runName WorkflowRunNameParam) (*http.Request, error) { + var err error - // DeleteObservabilityPlaneWithResponse request - DeleteObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteObservabilityPlaneResp, error) + var pathParam0 string - // GetObservabilityPlaneWithResponse request - GetObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*GetObservabilityPlaneResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // UpdateObservabilityPlaneWithBodyWithResponse request with any body - UpdateObservabilityPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateObservabilityPlaneResp, error) + var pathParam1 string - UpdateObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, body UpdateObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateObservabilityPlaneResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "runName", runtime.ParamLocationPath, runName) + if err != nil { + return nil, err + } - // ListProjectsWithResponse request - ListProjectsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // CreateProjectWithBodyWithResponse request with any body - CreateProjectWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflowruns/%s/status", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - CreateProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // DeleteProjectWithResponse request - DeleteProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, reqEditors ...RequestEditorFn) (*DeleteProjectResp, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // GetProjectWithResponse request - GetProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, reqEditors ...RequestEditorFn) (*GetProjectResp, error) + return req, nil +} - // UpdateProjectWithBodyWithResponse request with any body - UpdateProjectWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResp, error) +// NewListWorkflowsRequest generates requests for ListWorkflows +func NewListWorkflowsRequest(server string, namespaceName NamespaceNameParam, params *ListWorkflowsParams) (*http.Request, error) { + var err error - UpdateProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResp, error) + var pathParam0 string - // ListReleaseBindingsWithResponse request - ListReleaseBindingsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListReleaseBindingsParams, reqEditors ...RequestEditorFn) (*ListReleaseBindingsResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // CreateReleaseBindingWithBodyWithResponse request with any body - CreateReleaseBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReleaseBindingResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - CreateReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReleaseBindingResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflows", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteReleaseBindingWithResponse request - DeleteReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*DeleteReleaseBindingResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetReleaseBindingWithResponse request - GetReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*GetReleaseBindingResp, error) + if params != nil { + queryValues := queryURL.Query() - // UpdateReleaseBindingWithBodyWithResponse request with any body - UpdateReleaseBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReleaseBindingResp, error) + if params.LabelSelector != nil { - UpdateReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, body UpdateReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReleaseBindingResp, error) + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); 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) + } + } + } - // GetReleaseBindingK8sResourceEventsWithResponse request - GetReleaseBindingK8sResourceEventsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, params *GetReleaseBindingK8sResourceEventsParams, reqEditors ...RequestEditorFn) (*GetReleaseBindingK8sResourceEventsResp, error) + } - // GetReleaseBindingK8sResourceLogsWithResponse request - GetReleaseBindingK8sResourceLogsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, params *GetReleaseBindingK8sResourceLogsParams, reqEditors ...RequestEditorFn) (*GetReleaseBindingK8sResourceLogsResp, error) + if params.Limit != nil { - // GetReleaseBindingK8sResourceTreeWithResponse request - GetReleaseBindingK8sResourceTreeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*GetReleaseBindingK8sResourceTreeResp, error) + 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) + } + } + } - // ListSecretReferencesWithResponse request - ListSecretReferencesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListSecretReferencesParams, reqEditors ...RequestEditorFn) (*ListSecretReferencesResp, error) + } - // CreateSecretReferenceWithBodyWithResponse request with any body - CreateSecretReferenceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretReferenceResp, error) + if params.Cursor != nil { - CreateSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateSecretReferenceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretReferenceResp, error) + 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) + } + } + } - // DeleteSecretReferenceWithResponse request - DeleteSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, reqEditors ...RequestEditorFn) (*DeleteSecretReferenceResp, error) + } - // GetSecretReferenceWithResponse request - GetSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, reqEditors ...RequestEditorFn) (*GetSecretReferenceResp, error) + queryURL.RawQuery = queryValues.Encode() + } - // UpdateSecretReferenceWithBodyWithResponse request with any body - UpdateSecretReferenceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretReferenceResp, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - UpdateSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, body UpdateSecretReferenceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretReferenceResp, error) + return req, nil +} - // ListTraitsWithResponse request - ListTraitsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListTraitsParams, reqEditors ...RequestEditorFn) (*ListTraitsResp, error) +// NewCreateWorkflowRequest calls the generic CreateWorkflow builder with application/json body +func NewCreateWorkflowRequest(server string, namespaceName NamespaceNameParam, body CreateWorkflowJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateWorkflowRequestWithBody(server, namespaceName, "application/json", bodyReader) +} - // CreateTraitWithBodyWithResponse request with any body - CreateTraitWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTraitResp, error) +// NewCreateWorkflowRequestWithBody generates requests for CreateWorkflow with any type of body +func NewCreateWorkflowRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error - CreateTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTraitResp, error) + var pathParam0 string - // DeleteTraitWithResponse request - DeleteTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*DeleteTraitResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // GetTraitWithResponse request - GetTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*GetTraitResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // UpdateTraitWithBodyWithResponse request with any body - UpdateTraitWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTraitResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflows", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - UpdateTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, body UpdateTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTraitResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetTraitSchemaWithResponse request - GetTraitSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*GetTraitSchemaResp, error) + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - // ListWorkflowPlanesWithResponse request - ListWorkflowPlanesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowPlanesParams, reqEditors ...RequestEditorFn) (*ListWorkflowPlanesResp, error) + req.Header.Add("Content-Type", contentType) - // CreateWorkflowPlaneWithBodyWithResponse request with any body - CreateWorkflowPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkflowPlaneResp, error) + return req, nil +} - CreateWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkflowPlaneResp, error) +// NewDeleteWorkflowRequest generates requests for DeleteWorkflow +func NewDeleteWorkflowRequest(server string, namespaceName NamespaceNameParam, workflowName WorkflowNameParam) (*http.Request, error) { + var err error - // DeleteWorkflowPlaneWithResponse request - DeleteWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkflowPlaneResp, error) + var pathParam0 string - // GetWorkflowPlaneWithResponse request - GetWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowPlaneResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // UpdateWorkflowPlaneWithBodyWithResponse request with any body - UpdateWorkflowPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowPlaneResp, error) + var pathParam1 string - UpdateWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, body UpdateWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkflowPlaneResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowName", runtime.ParamLocationPath, workflowName) + if err != nil { + return nil, err + } - // ListWorkflowRunsWithResponse request - ListWorkflowRunsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowRunsParams, reqEditors ...RequestEditorFn) (*ListWorkflowRunsResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // CreateWorkflowRunWithBodyWithResponse request with any body - CreateWorkflowRunWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkflowRunResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflows/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - CreateWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkflowRunResp, error) - - // GetWorkflowRunWithResponse request - GetWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowRunResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // UpdateWorkflowRunWithBodyWithResponse request with any body - UpdateWorkflowRunWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowRunResp, error) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - UpdateWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, body UpdateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkflowRunResp, error) + return req, nil +} - // GetWorkflowRunEventsWithResponse request - GetWorkflowRunEventsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunEventsParams, reqEditors ...RequestEditorFn) (*GetWorkflowRunEventsResp, error) +// NewGetWorkflowRequest generates requests for GetWorkflow +func NewGetWorkflowRequest(server string, namespaceName NamespaceNameParam, workflowName WorkflowNameParam) (*http.Request, error) { + var err error - // GetWorkflowRunLogsWithResponse request - GetWorkflowRunLogsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunLogsParams, reqEditors ...RequestEditorFn) (*GetWorkflowRunLogsResp, error) + var pathParam0 string - // GetWorkflowRunStatusWithResponse request - GetWorkflowRunStatusWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowRunStatusResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // ListWorkflowsWithResponse request - ListWorkflowsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowsParams, reqEditors ...RequestEditorFn) (*ListWorkflowsResp, error) + var pathParam1 string - // CreateWorkflowWithBodyWithResponse request with any body - CreateWorkflowWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkflowResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowName", runtime.ParamLocationPath, workflowName) + if err != nil { + return nil, err + } - CreateWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkflowResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // DeleteWorkflowWithResponse request - DeleteWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkflowResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflows/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetWorkflowWithResponse request - GetWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // UpdateWorkflowWithBodyWithResponse request with any body - UpdateWorkflowWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowResp, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - UpdateWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, body UpdateWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkflowResp, error) + return req, nil +} - // GetWorkflowSchemaWithResponse request - GetWorkflowSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowSchemaResp, error) +// NewUpdateWorkflowRequest calls the generic UpdateWorkflow builder with application/json body +func NewUpdateWorkflowRequest(server string, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, body UpdateWorkflowJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateWorkflowRequestWithBody(server, namespaceName, workflowName, "application/json", bodyReader) +} - // ListWorkloadsWithResponse request - ListWorkloadsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkloadsParams, reqEditors ...RequestEditorFn) (*ListWorkloadsResp, error) +// NewUpdateWorkflowRequestWithBody generates requests for UpdateWorkflow with any type of body +func NewUpdateWorkflowRequestWithBody(server string, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error - // CreateWorkloadWithBodyWithResponse request with any body - CreateWorkloadWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkloadResp, error) + var pathParam0 string - CreateWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkloadResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // DeleteWorkloadWithResponse request - DeleteWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkloadResp, error) + var pathParam1 string - // GetWorkloadWithResponse request - GetWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, reqEditors ...RequestEditorFn) (*GetWorkloadResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowName", runtime.ParamLocationPath, workflowName) + if err != nil { + return nil, err + } - // UpdateWorkloadWithBodyWithResponse request with any body - UpdateWorkloadWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkloadResp, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - UpdateWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, body UpdateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkloadResp, error) + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflows/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // HandleAutoBuildWithBodyWithResponse request with any body - HandleAutoBuildWithBodyWithResponse(ctx context.Context, params *HandleAutoBuildParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleAutoBuildResp, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - HandleAutoBuildWithResponse(ctx context.Context, params *HandleAutoBuildParams, body HandleAutoBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleAutoBuildResp, error) + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } - // ListGitSecretsWithResponse request - ListGitSecretsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*ListGitSecretsResp, error) + req.Header.Add("Content-Type", contentType) - // CreateGitSecretWithBodyWithResponse request with any body - CreateGitSecretWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitSecretResp, error) + return req, nil +} - CreateGitSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateGitSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitSecretResp, error) +// NewGetWorkflowSchemaRequest generates requests for GetWorkflowSchema +func NewGetWorkflowSchemaRequest(server string, namespaceName NamespaceNameParam, workflowName WorkflowNameParam) (*http.Request, error) { + var err error - // DeleteGitSecretWithResponse request - DeleteGitSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, gitSecretName GitSecretNameParam, reqEditors ...RequestEditorFn) (*DeleteGitSecretResp, error) + var pathParam0 string - // GetHealthWithResponse request - GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResp, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } - // GetOpenAPISpecWithResponse request - GetOpenAPISpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPISpecResp, error) + var pathParam1 string - // GetReadyWithResponse request - GetReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyResp, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workflowName", runtime.ParamLocationPath, workflowName) + if err != nil { + return nil, err + } - // GetVersionWithResponse request - GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResp, error) -} + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } -type GetOAuthProtectedResourceMetadataResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *OAuthProtectedResourceMetadata -} + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workflows/%s/schema", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// Status returns HTTPResponse.Status -func (r GetOAuthProtectedResourceMetadataResp) 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 GetOAuthProtectedResourceMetadataResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } - return 0 -} -type ListSubjectTypesResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]SubjectTypeConfig - JSON401 *Unauthorized - JSON500 *InternalError + return req, nil } -// Status returns HTTPResponse.Status -func (r ListSubjectTypesResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} +// NewListWorkloadsRequest generates requests for ListWorkloads +func NewListWorkloadsRequest(server string, namespaceName NamespaceNameParam, params *ListWorkloadsParams) (*http.Request, error) { + var err error -// StatusCode returns HTTPResponse.StatusCode -func (r ListSubjectTypesResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err } - return 0 -} -type ListActionsResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]ActionInfo - JSON401 *Unauthorized - JSON403 *Forbidden - JSON500 *InternalError -} + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } -// Status returns HTTPResponse.Status -func (r ListActionsResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workloads", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return http.StatusText(0) -} -// StatusCode returns HTTPResponse.StatusCode -func (r ListActionsResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return 0 -} -type EvaluatesResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]Decision - JSON400 *BadRequest - JSON401 *Unauthorized - JSON500 *InternalError -} + if params != nil { + queryValues := queryURL.Query() -// Status returns HTTPResponse.Status -func (r EvaluatesResp) Status() string { - if r.HTTPResponse != nil { + if params.Component != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "component", runtime.ParamLocationQuery, *params.Component); 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.LabelSelector != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labelSelector", runtime.ParamLocationQuery, *params.LabelSelector); 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.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 +} + +// NewCreateWorkloadRequest calls the generic CreateWorkload builder with application/json body +func NewCreateWorkloadRequest(server string, namespaceName NamespaceNameParam, body CreateWorkloadJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateWorkloadRequestWithBody(server, namespaceName, "application/json", bodyReader) +} + +// NewCreateWorkloadRequestWithBody generates requests for CreateWorkload with any type of body +func NewCreateWorkloadRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workloads", 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 +} + +// NewDeleteWorkloadRequest generates requests for DeleteWorkload +func NewDeleteWorkloadRequest(server string, namespaceName NamespaceNameParam, workloadName WorkloadNameParam) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workloadName", runtime.ParamLocationPath, workloadName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workloads/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetWorkloadRequest generates requests for GetWorkload +func NewGetWorkloadRequest(server string, namespaceName NamespaceNameParam, workloadName WorkloadNameParam) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workloadName", runtime.ParamLocationPath, workloadName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workloads/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateWorkloadRequest calls the generic UpdateWorkload builder with application/json body +func NewUpdateWorkloadRequest(server string, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, body UpdateWorkloadJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateWorkloadRequestWithBody(server, namespaceName, workloadName, "application/json", bodyReader) +} + +// NewUpdateWorkloadRequestWithBody generates requests for UpdateWorkload with any type of body +func NewUpdateWorkloadRequestWithBody(server string, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workloadName", runtime.ParamLocationPath, workloadName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/namespaces/%s/workloads/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewHandleAutoBuildRequest calls the generic HandleAutoBuild builder with application/json body +func NewHandleAutoBuildRequest(server string, params *HandleAutoBuildParams, body HandleAutoBuildJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewHandleAutoBuildRequestWithBody(server, params, "application/json", bodyReader) +} + +// NewHandleAutoBuildRequestWithBody generates requests for HandleAutoBuild with any type of body +func NewHandleAutoBuildRequestWithBody(server string, params *HandleAutoBuildParams, 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("/api/v1alpha1/autobuild") + 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) + + if params != nil { + + if params.XHubSignature256 != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Hub-Signature-256", runtime.ParamLocationHeader, *params.XHubSignature256) + if err != nil { + return nil, err + } + + req.Header.Set("X-Hub-Signature-256", headerParam0) + } + + if params.XGitlabToken != nil { + var headerParam1 string + + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Gitlab-Token", runtime.ParamLocationHeader, *params.XGitlabToken) + if err != nil { + return nil, err + } + + req.Header.Set("X-Gitlab-Token", headerParam1) + } + + if params.XEventKey != nil { + var headerParam2 string + + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Event-Key", runtime.ParamLocationHeader, *params.XEventKey) + if err != nil { + return nil, err + } + + req.Header.Set("X-Event-Key", headerParam2) + } + + } + + return req, nil +} + +// NewListGitSecretsRequest generates requests for ListGitSecrets +func NewListGitSecretsRequest(server string, namespaceName NamespaceNameParam) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1alpha1/namespaces/%s/gitsecrets", 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 +} + +// NewCreateGitSecretRequest calls the generic CreateGitSecret builder with application/json body +func NewCreateGitSecretRequest(server string, namespaceName NamespaceNameParam, body CreateGitSecretJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateGitSecretRequestWithBody(server, namespaceName, "application/json", bodyReader) +} + +// NewCreateGitSecretRequestWithBody generates requests for CreateGitSecret with any type of body +func NewCreateGitSecretRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1alpha1/namespaces/%s/gitsecrets", 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 +} + +// NewDeleteGitSecretRequest generates requests for DeleteGitSecret +func NewDeleteGitSecretRequest(server string, namespaceName NamespaceNameParam, gitSecretName GitSecretNameParam) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "gitSecretName", runtime.ParamLocationPath, gitSecretName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1alpha1/namespaces/%s/gitsecrets/%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 +} + +// NewListSecretsRequest generates requests for ListSecrets +func NewListSecretsRequest(server string, namespaceName NamespaceNameParam, params *ListSecretsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1alpha1/namespaces/%s/secrets", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + 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 +} + +// NewCreateSecretRequest calls the generic CreateSecret builder with application/json body +func NewCreateSecretRequest(server string, namespaceName NamespaceNameParam, body CreateSecretJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSecretRequestWithBody(server, namespaceName, "application/json", bodyReader) +} + +// NewCreateSecretRequestWithBody generates requests for CreateSecret with any type of body +func NewCreateSecretRequestWithBody(server string, namespaceName NamespaceNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1alpha1/namespaces/%s/secrets", 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 +} + +// NewDeleteSecretRequest generates requests for DeleteSecret +func NewDeleteSecretRequest(server string, namespaceName NamespaceNameParam, secretName SecretNameParam) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secretName", runtime.ParamLocationPath, secretName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1alpha1/namespaces/%s/secrets/%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 +} + +// NewGetSecretRequest generates requests for GetSecret +func NewGetSecretRequest(server string, namespaceName NamespaceNameParam, secretName SecretNameParam) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secretName", runtime.ParamLocationPath, secretName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1alpha1/namespaces/%s/secrets/%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 +} + +// NewUpdateSecretRequest calls the generic UpdateSecret builder with application/json body +func NewUpdateSecretRequest(server string, namespaceName NamespaceNameParam, secretName SecretNameParam, body UpdateSecretJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSecretRequestWithBody(server, namespaceName, secretName, "application/json", bodyReader) +} + +// NewUpdateSecretRequestWithBody generates requests for UpdateSecret with any type of body +func NewUpdateSecretRequestWithBody(server string, namespaceName NamespaceNameParam, secretName SecretNameParam, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespaceName", runtime.ParamLocationPath, namespaceName) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secretName", runtime.ParamLocationPath, secretName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1alpha1/namespaces/%s/secrets/%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 +} + +// NewGetHealthRequest generates requests for GetHealth +func NewGetHealthRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/health") + 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 +} + +// NewGetOpenAPISpecRequest generates requests for GetOpenAPISpec +func NewGetOpenAPISpecRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/openapi.json") + 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 +} + +// NewGetReadyRequest generates requests for GetReady +func NewGetReadyRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/ready") + 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 +} + +// NewGetVersionRequest generates requests for GetVersion +func NewGetVersionRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/version") + 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 { + // GetOAuthProtectedResourceMetadataWithResponse request + GetOAuthProtectedResourceMetadataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOAuthProtectedResourceMetadataResp, error) + + // ListSubjectTypesWithResponse request + ListSubjectTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectTypesResp, error) + + // ListActionsWithResponse request + ListActionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListActionsResp, error) + + // EvaluatesWithBodyWithResponse request with any body + EvaluatesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EvaluatesResp, error) + + EvaluatesWithResponse(ctx context.Context, body EvaluatesJSONRequestBody, reqEditors ...RequestEditorFn) (*EvaluatesResp, error) + + // GetSubjectProfileWithResponse request + GetSubjectProfileWithResponse(ctx context.Context, params *GetSubjectProfileParams, reqEditors ...RequestEditorFn) (*GetSubjectProfileResp, error) + + // ListClusterRoleBindingsWithResponse request + ListClusterRoleBindingsWithResponse(ctx context.Context, params *ListClusterRoleBindingsParams, reqEditors ...RequestEditorFn) (*ListClusterRoleBindingsResp, error) + + // CreateClusterRoleBindingWithBodyWithResponse request with any body + CreateClusterRoleBindingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterRoleBindingResp, error) + + CreateClusterRoleBindingWithResponse(ctx context.Context, body CreateClusterRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterRoleBindingResp, error) + + // DeleteClusterRoleBindingWithResponse request + DeleteClusterRoleBindingWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteClusterRoleBindingResp, error) + + // GetClusterRoleBindingWithResponse request + GetClusterRoleBindingWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetClusterRoleBindingResp, error) + + // UpdateClusterRoleBindingWithBodyWithResponse request with any body + UpdateClusterRoleBindingWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterRoleBindingResp, error) + + UpdateClusterRoleBindingWithResponse(ctx context.Context, name string, body UpdateClusterRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterRoleBindingResp, error) + + // ListClusterRolesWithResponse request + ListClusterRolesWithResponse(ctx context.Context, params *ListClusterRolesParams, reqEditors ...RequestEditorFn) (*ListClusterRolesResp, error) + + // CreateClusterRoleWithBodyWithResponse request with any body + CreateClusterRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterRoleResp, error) + + CreateClusterRoleWithResponse(ctx context.Context, body CreateClusterRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterRoleResp, error) + + // DeleteClusterRoleWithResponse request + DeleteClusterRoleWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteClusterRoleResp, error) + + // GetClusterRoleWithResponse request + GetClusterRoleWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetClusterRoleResp, error) + + // UpdateClusterRoleWithBodyWithResponse request with any body + UpdateClusterRoleWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterRoleResp, error) + + UpdateClusterRoleWithResponse(ctx context.Context, name string, body UpdateClusterRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterRoleResp, error) + + // ListClusterComponentTypesWithResponse request + ListClusterComponentTypesWithResponse(ctx context.Context, params *ListClusterComponentTypesParams, reqEditors ...RequestEditorFn) (*ListClusterComponentTypesResp, error) + + // CreateClusterComponentTypeWithBodyWithResponse request with any body + CreateClusterComponentTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterComponentTypeResp, error) + + CreateClusterComponentTypeWithResponse(ctx context.Context, body CreateClusterComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterComponentTypeResp, error) + + // DeleteClusterComponentTypeWithResponse request + DeleteClusterComponentTypeWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterComponentTypeResp, error) + + // GetClusterComponentTypeWithResponse request + GetClusterComponentTypeWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetClusterComponentTypeResp, error) + + // UpdateClusterComponentTypeWithBodyWithResponse request with any body + UpdateClusterComponentTypeWithBodyWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterComponentTypeResp, error) + + UpdateClusterComponentTypeWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, body UpdateClusterComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterComponentTypeResp, error) + + // GetClusterComponentTypeSchemaWithResponse request + GetClusterComponentTypeSchemaWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetClusterComponentTypeSchemaResp, error) + + // ListClusterDataPlanesWithResponse request + ListClusterDataPlanesWithResponse(ctx context.Context, params *ListClusterDataPlanesParams, reqEditors ...RequestEditorFn) (*ListClusterDataPlanesResp, error) + + // CreateClusterDataPlaneWithBodyWithResponse request with any body + CreateClusterDataPlaneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterDataPlaneResp, error) + + CreateClusterDataPlaneWithResponse(ctx context.Context, body CreateClusterDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterDataPlaneResp, error) + + // DeleteClusterDataPlaneWithResponse request + DeleteClusterDataPlaneWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterDataPlaneResp, error) + + // GetClusterDataPlaneWithResponse request + GetClusterDataPlaneWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, reqEditors ...RequestEditorFn) (*GetClusterDataPlaneResp, error) + + // UpdateClusterDataPlaneWithBodyWithResponse request with any body + UpdateClusterDataPlaneWithBodyWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterDataPlaneResp, error) + + UpdateClusterDataPlaneWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, body UpdateClusterDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterDataPlaneResp, error) + + // ListClusterObservabilityPlanesWithResponse request + ListClusterObservabilityPlanesWithResponse(ctx context.Context, params *ListClusterObservabilityPlanesParams, reqEditors ...RequestEditorFn) (*ListClusterObservabilityPlanesResp, error) + + // CreateClusterObservabilityPlaneWithBodyWithResponse request with any body + CreateClusterObservabilityPlaneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterObservabilityPlaneResp, error) + + CreateClusterObservabilityPlaneWithResponse(ctx context.Context, body CreateClusterObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterObservabilityPlaneResp, error) + + // DeleteClusterObservabilityPlaneWithResponse request + DeleteClusterObservabilityPlaneWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterObservabilityPlaneResp, error) + + // GetClusterObservabilityPlaneWithResponse request + GetClusterObservabilityPlaneWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*GetClusterObservabilityPlaneResp, error) + + // UpdateClusterObservabilityPlaneWithBodyWithResponse request with any body + UpdateClusterObservabilityPlaneWithBodyWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterObservabilityPlaneResp, error) + + UpdateClusterObservabilityPlaneWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, body UpdateClusterObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterObservabilityPlaneResp, error) + + // ListClusterResourceTypesWithResponse request + ListClusterResourceTypesWithResponse(ctx context.Context, params *ListClusterResourceTypesParams, reqEditors ...RequestEditorFn) (*ListClusterResourceTypesResp, error) + + // CreateClusterResourceTypeWithBodyWithResponse request with any body + CreateClusterResourceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterResourceTypeResp, error) + + CreateClusterResourceTypeWithResponse(ctx context.Context, body CreateClusterResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterResourceTypeResp, error) + + // DeleteClusterResourceTypeWithResponse request + DeleteClusterResourceTypeWithResponse(ctx context.Context, crtName ClusterResourceTypeNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterResourceTypeResp, error) + + // GetClusterResourceTypeWithResponse request + GetClusterResourceTypeWithResponse(ctx context.Context, crtName ClusterResourceTypeNameParam, reqEditors ...RequestEditorFn) (*GetClusterResourceTypeResp, error) + + // UpdateClusterResourceTypeWithBodyWithResponse request with any body + UpdateClusterResourceTypeWithBodyWithResponse(ctx context.Context, crtName ClusterResourceTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterResourceTypeResp, error) + + UpdateClusterResourceTypeWithResponse(ctx context.Context, crtName ClusterResourceTypeNameParam, body UpdateClusterResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterResourceTypeResp, error) + + // GetClusterResourceTypeSchemaWithResponse request + GetClusterResourceTypeSchemaWithResponse(ctx context.Context, crtName ClusterResourceTypeNameParam, reqEditors ...RequestEditorFn) (*GetClusterResourceTypeSchemaResp, error) + + // ListClusterTraitsWithResponse request + ListClusterTraitsWithResponse(ctx context.Context, params *ListClusterTraitsParams, reqEditors ...RequestEditorFn) (*ListClusterTraitsResp, error) + + // CreateClusterTraitWithBodyWithResponse request with any body + CreateClusterTraitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterTraitResp, error) + + CreateClusterTraitWithResponse(ctx context.Context, body CreateClusterTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterTraitResp, error) + + // DeleteClusterTraitWithResponse request + DeleteClusterTraitWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterTraitResp, error) + + // GetClusterTraitWithResponse request + GetClusterTraitWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, reqEditors ...RequestEditorFn) (*GetClusterTraitResp, error) + + // UpdateClusterTraitWithBodyWithResponse request with any body + UpdateClusterTraitWithBodyWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterTraitResp, error) + + UpdateClusterTraitWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, body UpdateClusterTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterTraitResp, error) + + // GetClusterTraitSchemaWithResponse request + GetClusterTraitSchemaWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, reqEditors ...RequestEditorFn) (*GetClusterTraitSchemaResp, error) + + // ListClusterWorkflowPlanesWithResponse request + ListClusterWorkflowPlanesWithResponse(ctx context.Context, params *ListClusterWorkflowPlanesParams, reqEditors ...RequestEditorFn) (*ListClusterWorkflowPlanesResp, error) + + // CreateClusterWorkflowPlaneWithBodyWithResponse request with any body + CreateClusterWorkflowPlaneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowPlaneResp, error) + + CreateClusterWorkflowPlaneWithResponse(ctx context.Context, body CreateClusterWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowPlaneResp, error) + + // DeleteClusterWorkflowPlaneWithResponse request + DeleteClusterWorkflowPlaneWithResponse(ctx context.Context, clusterWorkflowPlaneName string, reqEditors ...RequestEditorFn) (*DeleteClusterWorkflowPlaneResp, error) + + // GetClusterWorkflowPlaneWithResponse request + GetClusterWorkflowPlaneWithResponse(ctx context.Context, clusterWorkflowPlaneName string, reqEditors ...RequestEditorFn) (*GetClusterWorkflowPlaneResp, error) + + // UpdateClusterWorkflowPlaneWithBodyWithResponse request with any body + UpdateClusterWorkflowPlaneWithBodyWithResponse(ctx context.Context, clusterWorkflowPlaneName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowPlaneResp, error) + + UpdateClusterWorkflowPlaneWithResponse(ctx context.Context, clusterWorkflowPlaneName string, body UpdateClusterWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowPlaneResp, error) + + // ListClusterWorkflowsWithResponse request + ListClusterWorkflowsWithResponse(ctx context.Context, params *ListClusterWorkflowsParams, reqEditors ...RequestEditorFn) (*ListClusterWorkflowsResp, error) + + // CreateClusterWorkflowWithBodyWithResponse request with any body + CreateClusterWorkflowWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowResp, error) + + CreateClusterWorkflowWithResponse(ctx context.Context, body CreateClusterWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowResp, error) + + // DeleteClusterWorkflowWithResponse request + DeleteClusterWorkflowWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterWorkflowResp, error) + + // GetClusterWorkflowWithResponse request + GetClusterWorkflowWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, reqEditors ...RequestEditorFn) (*GetClusterWorkflowResp, error) + + // UpdateClusterWorkflowWithBodyWithResponse request with any body + UpdateClusterWorkflowWithBodyWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowResp, error) + + UpdateClusterWorkflowWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, body UpdateClusterWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowResp, error) + + // GetClusterWorkflowSchemaWithResponse request + GetClusterWorkflowSchemaWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, reqEditors ...RequestEditorFn) (*GetClusterWorkflowSchemaResp, error) + + // ListNamespacesWithResponse request + ListNamespacesWithResponse(ctx context.Context, params *ListNamespacesParams, reqEditors ...RequestEditorFn) (*ListNamespacesResp, error) + + // CreateNamespaceWithBodyWithResponse request with any body + CreateNamespaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceResp, error) + + CreateNamespaceWithResponse(ctx context.Context, body CreateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceResp, error) + + // DeleteNamespaceWithResponse request + DeleteNamespaceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*DeleteNamespaceResp, error) + + // GetNamespaceWithResponse request + GetNamespaceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*GetNamespaceResp, error) + + // UpdateNamespaceWithBodyWithResponse request with any body + UpdateNamespaceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceResp, error) + + UpdateNamespaceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body UpdateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceResp, error) + + // ListNamespaceRoleBindingsWithResponse request + ListNamespaceRoleBindingsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListNamespaceRoleBindingsParams, reqEditors ...RequestEditorFn) (*ListNamespaceRoleBindingsResp, error) + + // CreateNamespaceRoleBindingWithBodyWithResponse request with any body + CreateNamespaceRoleBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleBindingResp, error) + + CreateNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateNamespaceRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleBindingResp, error) + + // DeleteNamespaceRoleBindingWithResponse request + DeleteNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*DeleteNamespaceRoleBindingResp, error) + + // GetNamespaceRoleBindingWithResponse request + GetNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*GetNamespaceRoleBindingResp, error) + + // UpdateNamespaceRoleBindingWithBodyWithResponse request with any body + UpdateNamespaceRoleBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleBindingResp, error) + + UpdateNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, body UpdateNamespaceRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleBindingResp, error) + + // ListNamespaceRolesWithResponse request + ListNamespaceRolesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListNamespaceRolesParams, reqEditors ...RequestEditorFn) (*ListNamespaceRolesResp, error) + + // CreateNamespaceRoleWithBodyWithResponse request with any body + CreateNamespaceRoleWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleResp, error) + + CreateNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateNamespaceRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleResp, error) + + // DeleteNamespaceRoleWithResponse request + DeleteNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*DeleteNamespaceRoleResp, error) + + // GetNamespaceRoleWithResponse request + GetNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*GetNamespaceRoleResp, error) + + // UpdateNamespaceRoleWithBodyWithResponse request with any body + UpdateNamespaceRoleWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleResp, error) + + UpdateNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, body UpdateNamespaceRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleResp, error) + + // ListComponentReleasesWithResponse request + ListComponentReleasesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListComponentReleasesParams, reqEditors ...RequestEditorFn) (*ListComponentReleasesResp, error) + + // CreateComponentReleaseWithBodyWithResponse request with any body + CreateComponentReleaseWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateComponentReleaseResp, error) + + CreateComponentReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateComponentReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateComponentReleaseResp, error) + + // DeleteComponentReleaseWithResponse request + DeleteComponentReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentReleaseName ComponentReleaseNameParam, reqEditors ...RequestEditorFn) (*DeleteComponentReleaseResp, error) + + // GetComponentReleaseWithResponse request + GetComponentReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentReleaseName ComponentReleaseNameParam, reqEditors ...RequestEditorFn) (*GetComponentReleaseResp, error) + + // ListComponentsWithResponse request + ListComponentsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListComponentsParams, reqEditors ...RequestEditorFn) (*ListComponentsResp, error) + + // CreateComponentWithBodyWithResponse request with any body + CreateComponentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateComponentResp, error) + + CreateComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateComponentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateComponentResp, error) + + // DeleteComponentWithResponse request + DeleteComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, reqEditors ...RequestEditorFn) (*DeleteComponentResp, error) + + // GetComponentWithResponse request + GetComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, reqEditors ...RequestEditorFn) (*GetComponentResp, error) + + // UpdateComponentWithBodyWithResponse request with any body + UpdateComponentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateComponentResp, error) + + UpdateComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, body UpdateComponentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateComponentResp, error) + + // GenerateReleaseWithBodyWithResponse request with any body + GenerateReleaseWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateReleaseResp, error) + + GenerateReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, body GenerateReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateReleaseResp, error) + + // GetComponentSchemaWithResponse request + GetComponentSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, reqEditors ...RequestEditorFn) (*GetComponentSchemaResp, error) + + // ListComponentTypesWithResponse request + ListComponentTypesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListComponentTypesParams, reqEditors ...RequestEditorFn) (*ListComponentTypesResp, error) + + // CreateComponentTypeWithBodyWithResponse request with any body + CreateComponentTypeWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateComponentTypeResp, error) + + CreateComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateComponentTypeResp, error) + + // DeleteComponentTypeWithResponse request + DeleteComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, reqEditors ...RequestEditorFn) (*DeleteComponentTypeResp, error) + + // GetComponentTypeWithResponse request + GetComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetComponentTypeResp, error) + + // UpdateComponentTypeWithBodyWithResponse request with any body + UpdateComponentTypeWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateComponentTypeResp, error) + + UpdateComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, body UpdateComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateComponentTypeResp, error) + + // GetComponentTypeSchemaWithResponse request + GetComponentTypeSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetComponentTypeSchemaResp, error) + + // ListDataPlanesWithResponse request + ListDataPlanesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListDataPlanesParams, reqEditors ...RequestEditorFn) (*ListDataPlanesResp, error) + + // CreateDataPlaneWithBodyWithResponse request with any body + CreateDataPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDataPlaneResp, error) + + CreateDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDataPlaneResp, error) + + // DeleteDataPlaneWithResponse request + DeleteDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteDataPlaneResp, error) + + // GetDataPlaneWithResponse request + GetDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, reqEditors ...RequestEditorFn) (*GetDataPlaneResp, error) + + // UpdateDataPlaneWithBodyWithResponse request with any body + UpdateDataPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDataPlaneResp, error) + + UpdateDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, body UpdateDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDataPlaneResp, error) + + // ListDeploymentPipelinesWithResponse request + ListDeploymentPipelinesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListDeploymentPipelinesParams, reqEditors ...RequestEditorFn) (*ListDeploymentPipelinesResp, error) + + // CreateDeploymentPipelineWithBodyWithResponse request with any body + CreateDeploymentPipelineWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDeploymentPipelineResp, error) + + CreateDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateDeploymentPipelineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeploymentPipelineResp, error) + + // DeleteDeploymentPipelineWithResponse request + DeleteDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, reqEditors ...RequestEditorFn) (*DeleteDeploymentPipelineResp, error) + + // GetDeploymentPipelineWithResponse request + GetDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, reqEditors ...RequestEditorFn) (*GetDeploymentPipelineResp, error) + + // UpdateDeploymentPipelineWithBodyWithResponse request with any body + UpdateDeploymentPipelineWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDeploymentPipelineResp, error) + + UpdateDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, body UpdateDeploymentPipelineJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDeploymentPipelineResp, error) + + // ListEnvironmentsWithResponse request + ListEnvironmentsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListEnvironmentsParams, reqEditors ...RequestEditorFn) (*ListEnvironmentsResp, error) + + // CreateEnvironmentWithBodyWithResponse request with any body + CreateEnvironmentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEnvironmentResp, error) + + CreateEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvironmentResp, error) + + // DeleteEnvironmentWithResponse request + DeleteEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResp, error) + + // GetEnvironmentWithResponse request + GetEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, reqEditors ...RequestEditorFn) (*GetEnvironmentResp, error) + + // UpdateEnvironmentWithBodyWithResponse request with any body + UpdateEnvironmentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResp, error) + + UpdateEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResp, error) + + // ListObservabilityAlertsNotificationChannelsWithResponse request + ListObservabilityAlertsNotificationChannelsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListObservabilityAlertsNotificationChannelsParams, reqEditors ...RequestEditorFn) (*ListObservabilityAlertsNotificationChannelsResp, error) + + // CreateObservabilityAlertsNotificationChannelWithBodyWithResponse request with any body + CreateObservabilityAlertsNotificationChannelWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateObservabilityAlertsNotificationChannelResp, error) + + CreateObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateObservabilityAlertsNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateObservabilityAlertsNotificationChannelResp, error) + + // DeleteObservabilityAlertsNotificationChannelWithResponse request + DeleteObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, reqEditors ...RequestEditorFn) (*DeleteObservabilityAlertsNotificationChannelResp, error) + + // GetObservabilityAlertsNotificationChannelWithResponse request + GetObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, reqEditors ...RequestEditorFn) (*GetObservabilityAlertsNotificationChannelResp, error) + + // UpdateObservabilityAlertsNotificationChannelWithBodyWithResponse request with any body + UpdateObservabilityAlertsNotificationChannelWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateObservabilityAlertsNotificationChannelResp, error) + + UpdateObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, body UpdateObservabilityAlertsNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateObservabilityAlertsNotificationChannelResp, error) + + // ListObservabilityPlanesWithResponse request + ListObservabilityPlanesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListObservabilityPlanesParams, reqEditors ...RequestEditorFn) (*ListObservabilityPlanesResp, error) + + // CreateObservabilityPlaneWithBodyWithResponse request with any body + CreateObservabilityPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateObservabilityPlaneResp, error) + + CreateObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateObservabilityPlaneResp, error) + + // DeleteObservabilityPlaneWithResponse request + DeleteObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteObservabilityPlaneResp, error) + + // GetObservabilityPlaneWithResponse request + GetObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*GetObservabilityPlaneResp, error) + + // UpdateObservabilityPlaneWithBodyWithResponse request with any body + UpdateObservabilityPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateObservabilityPlaneResp, error) + + UpdateObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, body UpdateObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateObservabilityPlaneResp, error) + + // ListProjectsWithResponse request + ListProjectsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResp, error) + + // CreateProjectWithBodyWithResponse request with any body + CreateProjectWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResp, error) + + CreateProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResp, error) + + // DeleteProjectWithResponse request + DeleteProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, reqEditors ...RequestEditorFn) (*DeleteProjectResp, error) + + // GetProjectWithResponse request + GetProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, reqEditors ...RequestEditorFn) (*GetProjectResp, error) + + // UpdateProjectWithBodyWithResponse request with any body + UpdateProjectWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResp, error) + + UpdateProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResp, error) + + // ListReleaseBindingsWithResponse request + ListReleaseBindingsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListReleaseBindingsParams, reqEditors ...RequestEditorFn) (*ListReleaseBindingsResp, error) + + // CreateReleaseBindingWithBodyWithResponse request with any body + CreateReleaseBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReleaseBindingResp, error) + + CreateReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReleaseBindingResp, error) + + // DeleteReleaseBindingWithResponse request + DeleteReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*DeleteReleaseBindingResp, error) + + // GetReleaseBindingWithResponse request + GetReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*GetReleaseBindingResp, error) + + // UpdateReleaseBindingWithBodyWithResponse request with any body + UpdateReleaseBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReleaseBindingResp, error) + + UpdateReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, body UpdateReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReleaseBindingResp, error) + + // GetReleaseBindingK8sResourceEventsWithResponse request + GetReleaseBindingK8sResourceEventsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, params *GetReleaseBindingK8sResourceEventsParams, reqEditors ...RequestEditorFn) (*GetReleaseBindingK8sResourceEventsResp, error) + + // GetReleaseBindingK8sResourceLogsWithResponse request + GetReleaseBindingK8sResourceLogsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, params *GetReleaseBindingK8sResourceLogsParams, reqEditors ...RequestEditorFn) (*GetReleaseBindingK8sResourceLogsResp, error) + + // GetReleaseBindingK8sResourceTreeWithResponse request + GetReleaseBindingK8sResourceTreeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*GetReleaseBindingK8sResourceTreeResp, error) + + // ListResourceReleaseBindingsWithResponse request + ListResourceReleaseBindingsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourceReleaseBindingsParams, reqEditors ...RequestEditorFn) (*ListResourceReleaseBindingsResp, error) + + // CreateResourceReleaseBindingWithBodyWithResponse request with any body + CreateResourceReleaseBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResourceReleaseBindingResp, error) + + CreateResourceReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResourceReleaseBindingResp, error) + + // DeleteResourceReleaseBindingWithResponse request + DeleteResourceReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*DeleteResourceReleaseBindingResp, error) + + // GetResourceReleaseBindingWithResponse request + GetResourceReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*GetResourceReleaseBindingResp, error) + + // UpdateResourceReleaseBindingWithBodyWithResponse request with any body + UpdateResourceReleaseBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResourceReleaseBindingResp, error) + + UpdateResourceReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, body UpdateResourceReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResourceReleaseBindingResp, error) + + // ListResourceReleasesWithResponse request + ListResourceReleasesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourceReleasesParams, reqEditors ...RequestEditorFn) (*ListResourceReleasesResp, error) + + // CreateResourceReleaseWithBodyWithResponse request with any body + CreateResourceReleaseWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResourceReleaseResp, error) + + CreateResourceReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResourceReleaseResp, error) + + // DeleteResourceReleaseWithResponse request + DeleteResourceReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseName ResourceReleaseNameParam, reqEditors ...RequestEditorFn) (*DeleteResourceReleaseResp, error) + + // GetResourceReleaseWithResponse request + GetResourceReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseName ResourceReleaseNameParam, reqEditors ...RequestEditorFn) (*GetResourceReleaseResp, error) + + // ListResourcesWithResponse request + ListResourcesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourcesParams, reqEditors ...RequestEditorFn) (*ListResourcesResp, error) + + // CreateResourceWithBodyWithResponse request with any body + CreateResourceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResourceResp, error) + + CreateResourceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResourceResp, error) + + // DeleteResourceWithResponse request + DeleteResourceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, reqEditors ...RequestEditorFn) (*DeleteResourceResp, error) + + // GetResourceWithResponse request + GetResourceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, reqEditors ...RequestEditorFn) (*GetResourceResp, error) + + // UpdateResourceWithBodyWithResponse request with any body + UpdateResourceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResourceResp, error) + + UpdateResourceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, body UpdateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResourceResp, error) + + // ListResourceTypesWithResponse request + ListResourceTypesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourceTypesParams, reqEditors ...RequestEditorFn) (*ListResourceTypesResp, error) + + // CreateResourceTypeWithBodyWithResponse request with any body + CreateResourceTypeWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResourceTypeResp, error) + + CreateResourceTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResourceTypeResp, error) + + // DeleteResourceTypeWithResponse request + DeleteResourceTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, reqEditors ...RequestEditorFn) (*DeleteResourceTypeResp, error) + + // GetResourceTypeWithResponse request + GetResourceTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, reqEditors ...RequestEditorFn) (*GetResourceTypeResp, error) + + // UpdateResourceTypeWithBodyWithResponse request with any body + UpdateResourceTypeWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResourceTypeResp, error) + + UpdateResourceTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, body UpdateResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResourceTypeResp, error) + + // GetResourceTypeSchemaWithResponse request + GetResourceTypeSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, reqEditors ...RequestEditorFn) (*GetResourceTypeSchemaResp, error) + + // ListSecretReferencesWithResponse request + ListSecretReferencesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListSecretReferencesParams, reqEditors ...RequestEditorFn) (*ListSecretReferencesResp, error) + + // CreateSecretReferenceWithBodyWithResponse request with any body + CreateSecretReferenceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretReferenceResp, error) + + CreateSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateSecretReferenceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretReferenceResp, error) + + // DeleteSecretReferenceWithResponse request + DeleteSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, reqEditors ...RequestEditorFn) (*DeleteSecretReferenceResp, error) + + // GetSecretReferenceWithResponse request + GetSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, reqEditors ...RequestEditorFn) (*GetSecretReferenceResp, error) + + // UpdateSecretReferenceWithBodyWithResponse request with any body + UpdateSecretReferenceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretReferenceResp, error) + + UpdateSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, body UpdateSecretReferenceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretReferenceResp, error) + + // ListTraitsWithResponse request + ListTraitsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListTraitsParams, reqEditors ...RequestEditorFn) (*ListTraitsResp, error) + + // CreateTraitWithBodyWithResponse request with any body + CreateTraitWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTraitResp, error) + + CreateTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTraitResp, error) + + // DeleteTraitWithResponse request + DeleteTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*DeleteTraitResp, error) + + // GetTraitWithResponse request + GetTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*GetTraitResp, error) + + // UpdateTraitWithBodyWithResponse request with any body + UpdateTraitWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTraitResp, error) + + UpdateTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, body UpdateTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTraitResp, error) + + // GetTraitSchemaWithResponse request + GetTraitSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*GetTraitSchemaResp, error) + + // ListWorkflowPlanesWithResponse request + ListWorkflowPlanesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowPlanesParams, reqEditors ...RequestEditorFn) (*ListWorkflowPlanesResp, error) + + // CreateWorkflowPlaneWithBodyWithResponse request with any body + CreateWorkflowPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkflowPlaneResp, error) + + CreateWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkflowPlaneResp, error) + + // DeleteWorkflowPlaneWithResponse request + DeleteWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkflowPlaneResp, error) + + // GetWorkflowPlaneWithResponse request + GetWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowPlaneResp, error) + + // UpdateWorkflowPlaneWithBodyWithResponse request with any body + UpdateWorkflowPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowPlaneResp, error) + + UpdateWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, body UpdateWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkflowPlaneResp, error) + + // ListWorkflowRunsWithResponse request + ListWorkflowRunsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowRunsParams, reqEditors ...RequestEditorFn) (*ListWorkflowRunsResp, error) + + // CreateWorkflowRunWithBodyWithResponse request with any body + CreateWorkflowRunWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkflowRunResp, error) + + CreateWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkflowRunResp, error) + + // DeleteWorkflowRunWithResponse request + DeleteWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkflowRunResp, error) + + // GetWorkflowRunWithResponse request + GetWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowRunResp, error) + + // UpdateWorkflowRunWithBodyWithResponse request with any body + UpdateWorkflowRunWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowRunResp, error) + + UpdateWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, body UpdateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkflowRunResp, error) + + // GetWorkflowRunEventsWithResponse request + GetWorkflowRunEventsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunEventsParams, reqEditors ...RequestEditorFn) (*GetWorkflowRunEventsResp, error) + + // GetWorkflowRunLogsWithResponse request + GetWorkflowRunLogsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunLogsParams, reqEditors ...RequestEditorFn) (*GetWorkflowRunLogsResp, error) + + // GetWorkflowRunStatusWithResponse request + GetWorkflowRunStatusWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowRunStatusResp, error) + + // ListWorkflowsWithResponse request + ListWorkflowsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowsParams, reqEditors ...RequestEditorFn) (*ListWorkflowsResp, error) + + // CreateWorkflowWithBodyWithResponse request with any body + CreateWorkflowWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkflowResp, error) + + CreateWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkflowResp, error) + + // DeleteWorkflowWithResponse request + DeleteWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkflowResp, error) + + // GetWorkflowWithResponse request + GetWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowResp, error) + + // UpdateWorkflowWithBodyWithResponse request with any body + UpdateWorkflowWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowResp, error) + + UpdateWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, body UpdateWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkflowResp, error) + + // GetWorkflowSchemaWithResponse request + GetWorkflowSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowSchemaResp, error) + + // ListWorkloadsWithResponse request + ListWorkloadsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkloadsParams, reqEditors ...RequestEditorFn) (*ListWorkloadsResp, error) + + // CreateWorkloadWithBodyWithResponse request with any body + CreateWorkloadWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkloadResp, error) + + CreateWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkloadResp, error) + + // DeleteWorkloadWithResponse request + DeleteWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkloadResp, error) + + // GetWorkloadWithResponse request + GetWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, reqEditors ...RequestEditorFn) (*GetWorkloadResp, error) + + // UpdateWorkloadWithBodyWithResponse request with any body + UpdateWorkloadWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkloadResp, error) + + UpdateWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, body UpdateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkloadResp, error) + + // HandleAutoBuildWithBodyWithResponse request with any body + HandleAutoBuildWithBodyWithResponse(ctx context.Context, params *HandleAutoBuildParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleAutoBuildResp, error) + + HandleAutoBuildWithResponse(ctx context.Context, params *HandleAutoBuildParams, body HandleAutoBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleAutoBuildResp, error) + + // ListGitSecretsWithResponse request + ListGitSecretsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*ListGitSecretsResp, error) + + // CreateGitSecretWithBodyWithResponse request with any body + CreateGitSecretWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitSecretResp, error) + + CreateGitSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateGitSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitSecretResp, error) + + // DeleteGitSecretWithResponse request + DeleteGitSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, gitSecretName GitSecretNameParam, reqEditors ...RequestEditorFn) (*DeleteGitSecretResp, error) + + // ListSecretsWithResponse request + ListSecretsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListSecretsParams, reqEditors ...RequestEditorFn) (*ListSecretsResp, error) + + // CreateSecretWithBodyWithResponse request with any body + CreateSecretWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretResp, error) + + CreateSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretResp, error) + + // DeleteSecretWithResponse request + DeleteSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, reqEditors ...RequestEditorFn) (*DeleteSecretResp, error) + + // GetSecretWithResponse request + GetSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, reqEditors ...RequestEditorFn) (*GetSecretResp, error) + + // UpdateSecretWithBodyWithResponse request with any body + UpdateSecretWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretResp, error) + + UpdateSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, body UpdateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretResp, error) + + // GetHealthWithResponse request + GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResp, error) + + // GetOpenAPISpecWithResponse request + GetOpenAPISpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPISpecResp, error) + + // GetReadyWithResponse request + GetReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyResp, error) + + // GetVersionWithResponse request + GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResp, error) +} + +type GetOAuthProtectedResourceMetadataResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OAuthProtectedResourceMetadata +} + +// Status returns HTTPResponse.Status +func (r GetOAuthProtectedResourceMetadataResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOAuthProtectedResourceMetadataResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListSubjectTypesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]SubjectTypeConfig + JSON401 *Unauthorized + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListSubjectTypesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListSubjectTypesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListActionsResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ActionInfo + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListActionsResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListActionsResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EvaluatesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Decision + JSON400 *BadRequest + JSON401 *Unauthorized + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r EvaluatesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EvaluatesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetSubjectProfileResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserCapabilitiesResponse + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetSubjectProfileResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetSubjectProfileResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListClusterRoleBindingsResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterAuthzRoleBindingList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListClusterRoleBindingsResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListClusterRoleBindingsResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateClusterRoleBindingResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ClusterAuthzRoleBinding + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateClusterRoleBindingResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateClusterRoleBindingResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteClusterRoleBindingResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteClusterRoleBindingResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteClusterRoleBindingResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterRoleBindingResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterAuthzRoleBinding + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterRoleBindingResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterRoleBindingResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateClusterRoleBindingResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterAuthzRoleBinding + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateClusterRoleBindingResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateClusterRoleBindingResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListClusterRolesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterAuthzRoleList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListClusterRolesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListClusterRolesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateClusterRoleResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ClusterAuthzRole + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateClusterRoleResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateClusterRoleResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteClusterRoleResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteClusterRoleResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteClusterRoleResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterRoleResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterAuthzRole + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterRoleResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterRoleResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateClusterRoleResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterAuthzRole + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateClusterRoleResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateClusterRoleResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListClusterComponentTypesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterComponentTypeList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListClusterComponentTypesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListClusterComponentTypesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateClusterComponentTypeResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ClusterComponentType + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateClusterComponentTypeResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateClusterComponentTypeResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteClusterComponentTypeResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteClusterComponentTypeResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteClusterComponentTypeResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterComponentTypeResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterComponentType + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterComponentTypeResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterComponentTypeResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateClusterComponentTypeResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterComponentType + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateClusterComponentTypeResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateClusterComponentTypeResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterComponentTypeSchemaResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SchemaResponse + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterComponentTypeSchemaResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterComponentTypeSchemaResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListClusterDataPlanesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterDataPlaneList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListClusterDataPlanesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListClusterDataPlanesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateClusterDataPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ClusterDataPlane + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateClusterDataPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateClusterDataPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteClusterDataPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteClusterDataPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteClusterDataPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterDataPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterDataPlane + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterDataPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterDataPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateClusterDataPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterDataPlane + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateClusterDataPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateClusterDataPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListClusterObservabilityPlanesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterObservabilityPlaneList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListClusterObservabilityPlanesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListClusterObservabilityPlanesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateClusterObservabilityPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ClusterObservabilityPlane + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateClusterObservabilityPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateClusterObservabilityPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteClusterObservabilityPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteClusterObservabilityPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteClusterObservabilityPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterObservabilityPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterObservabilityPlane + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterObservabilityPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterObservabilityPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateClusterObservabilityPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterObservabilityPlane + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateClusterObservabilityPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateClusterObservabilityPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListClusterResourceTypesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterResourceTypeList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListClusterResourceTypesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListClusterResourceTypesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateClusterResourceTypeResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ClusterResourceType + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateClusterResourceTypeResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateClusterResourceTypeResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteClusterResourceTypeResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteClusterResourceTypeResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteClusterResourceTypeResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterResourceTypeResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterResourceType + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterResourceTypeResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterResourceTypeResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateClusterResourceTypeResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterResourceType + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateClusterResourceTypeResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateClusterResourceTypeResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterResourceTypeSchemaResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SchemaResponse + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterResourceTypeSchemaResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterResourceTypeSchemaResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListClusterTraitsResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterTraitList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListClusterTraitsResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListClusterTraitsResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateClusterTraitResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ClusterTrait + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateClusterTraitResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateClusterTraitResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteClusterTraitResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteClusterTraitResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteClusterTraitResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterTraitResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterTrait + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterTraitResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterTraitResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateClusterTraitResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterTrait + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateClusterTraitResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateClusterTraitResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterTraitSchemaResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SchemaResponse + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterTraitSchemaResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterTraitSchemaResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListClusterWorkflowPlanesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterWorkflowPlaneList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListClusterWorkflowPlanesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListClusterWorkflowPlanesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateClusterWorkflowPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ClusterWorkflowPlane + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateClusterWorkflowPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateClusterWorkflowPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteClusterWorkflowPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteClusterWorkflowPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteClusterWorkflowPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterWorkflowPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterWorkflowPlane + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterWorkflowPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterWorkflowPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateClusterWorkflowPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterWorkflowPlane + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateClusterWorkflowPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateClusterWorkflowPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListClusterWorkflowsResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterWorkflowList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListClusterWorkflowsResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListClusterWorkflowsResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateClusterWorkflowResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ClusterWorkflow + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateClusterWorkflowResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateClusterWorkflowResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteClusterWorkflowResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteClusterWorkflowResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteClusterWorkflowResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterWorkflowResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterWorkflow + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterWorkflowResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterWorkflowResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateClusterWorkflowResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClusterWorkflow + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateClusterWorkflowResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateClusterWorkflowResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClusterWorkflowSchemaResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SchemaResponse + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetClusterWorkflowSchemaResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClusterWorkflowSchemaResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListNamespacesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NamespaceList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListNamespacesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListNamespacesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateNamespaceResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Namespace + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateNamespaceResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateNamespaceResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteNamespaceResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteNamespaceResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteNamespaceResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetNamespaceResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Namespace + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetNamespaceResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetNamespaceResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateNamespaceResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Namespace + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateNamespaceResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateNamespaceResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListNamespaceRoleBindingsResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthzRoleBindingList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListNamespaceRoleBindingsResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListNamespaceRoleBindingsResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateNamespaceRoleBindingResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *AuthzRoleBinding + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateNamespaceRoleBindingResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateNamespaceRoleBindingResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteNamespaceRoleBindingResp struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteNamespaceRoleBindingResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteNamespaceRoleBindingResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetNamespaceRoleBindingResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthzRoleBinding + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetNamespaceRoleBindingResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetNamespaceRoleBindingResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateNamespaceRoleBindingResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthzRoleBinding + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateNamespaceRoleBindingResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateNamespaceRoleBindingResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListNamespaceRolesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthzRoleList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListNamespaceRolesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListNamespaceRolesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateNamespaceRoleResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *AuthzRole + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateNamespaceRoleResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateNamespaceRoleResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteNamespaceRoleResp struct { + Body []byte + HTTPResponse *http.Response + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteNamespaceRoleResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteNamespaceRoleResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetNamespaceRoleResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthzRole + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetNamespaceRoleResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetNamespaceRoleResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateNamespaceRoleResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AuthzRole + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateNamespaceRoleResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateNamespaceRoleResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListComponentReleasesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ComponentReleaseList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListComponentReleasesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListComponentReleasesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateComponentReleaseResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ComponentRelease + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateComponentReleaseResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateComponentReleaseResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteComponentReleaseResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteComponentReleaseResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteComponentReleaseResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetComponentReleaseResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ComponentRelease + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetComponentReleaseResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetComponentReleaseResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListComponentsResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ComponentList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListComponentsResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListComponentsResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateComponentResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *Component + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateComponentResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateComponentResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteComponentResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteComponentResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteComponentResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetComponentResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Component + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetComponentResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetComponentResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateComponentResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Component + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateComponentResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateComponentResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GenerateReleaseResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ComponentRelease + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GenerateReleaseResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GenerateReleaseResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetComponentSchemaResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SchemaResponse + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetComponentSchemaResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetComponentSchemaResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListComponentTypesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ComponentTypeList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListComponentTypesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListComponentTypesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateComponentTypeResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ComponentType + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateComponentTypeResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateComponentTypeResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteComponentTypeResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteComponentTypeResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteComponentTypeResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetComponentTypeResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ComponentType + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetComponentTypeResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetComponentTypeResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateComponentTypeResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ComponentType + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateComponentTypeResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateComponentTypeResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetComponentTypeSchemaResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SchemaResponse + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetComponentTypeSchemaResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetComponentTypeSchemaResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListDataPlanesResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DataPlaneList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListDataPlanesResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListDataPlanesResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateDataPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *DataPlane + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r CreateDataPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateDataPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteDataPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteDataPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteDataPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDataPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DataPlane + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetDataPlaneResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDataPlaneResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateDataPlaneResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DataPlane + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r UpdateDataPlaneResp) Status() string { + if r.HTTPResponse != nil { return r.HTTPResponse.Status } return http.StatusText(0) } // StatusCode returns HTTPResponse.StatusCode -func (r EvaluatesResp) StatusCode() int { +func (r UpdateDataPlaneResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSubjectProfileResp struct { +type ListDeploymentPipelinesResp struct { Body []byte HTTPResponse *http.Response - JSON200 *UserCapabilitiesResponse + JSON200 *DeploymentPipelineList JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden @@ -12247,7 +17029,7 @@ type GetSubjectProfileResp struct { } // Status returns HTTPResponse.Status -func (r GetSubjectProfileResp) Status() string { +func (r ListDeploymentPipelinesResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12255,25 +17037,27 @@ func (r GetSubjectProfileResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSubjectProfileResp) StatusCode() int { +func (r ListDeploymentPipelinesResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListClusterRoleBindingsResp struct { +type CreateDeploymentPipelineResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterAuthzRoleBindingList + JSON201 *DeploymentPipeline JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListClusterRoleBindingsResp) Status() string { +func (r CreateDeploymentPipelineResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12281,26 +17065,24 @@ func (r ListClusterRoleBindingsResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListClusterRoleBindingsResp) StatusCode() int { +func (r CreateDeploymentPipelineResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateClusterRoleBindingResp struct { +type DeleteDeploymentPipelineResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ClusterAuthzRoleBinding - JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateClusterRoleBindingResp) Status() string { +func (r DeleteDeploymentPipelineResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12308,16 +17090,17 @@ func (r CreateClusterRoleBindingResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateClusterRoleBindingResp) StatusCode() int { +func (r DeleteDeploymentPipelineResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteClusterRoleBindingResp struct { +type GetDeploymentPipelineResp struct { Body []byte HTTPResponse *http.Response + JSON200 *DeploymentPipeline JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -12325,7 +17108,7 @@ type DeleteClusterRoleBindingResp struct { } // Status returns HTTPResponse.Status -func (r DeleteClusterRoleBindingResp) Status() string { +func (r GetDeploymentPipelineResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12333,25 +17116,27 @@ func (r DeleteClusterRoleBindingResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteClusterRoleBindingResp) StatusCode() int { +func (r GetDeploymentPipelineResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetClusterRoleBindingResp struct { +type UpdateDeploymentPipelineResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterAuthzRoleBinding + JSON200 *DeploymentPipeline + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetClusterRoleBindingResp) Status() string { +func (r UpdateDeploymentPipelineResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12359,27 +17144,25 @@ func (r GetClusterRoleBindingResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetClusterRoleBindingResp) StatusCode() int { +func (r UpdateDeploymentPipelineResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateClusterRoleBindingResp struct { +type ListEnvironmentsResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterAuthzRoleBinding + JSON200 *EnvironmentList JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound - JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateClusterRoleBindingResp) Status() string { +func (r ListEnvironmentsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12387,25 +17170,27 @@ func (r UpdateClusterRoleBindingResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateClusterRoleBindingResp) StatusCode() int { +func (r ListEnvironmentsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListClusterRolesResp struct { +type CreateEnvironmentResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterAuthzRoleList + JSON201 *Environment JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListClusterRolesResp) Status() string { +func (r CreateEnvironmentResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12413,26 +17198,79 @@ func (r ListClusterRolesResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListClusterRolesResp) StatusCode() int { +func (r CreateEnvironmentResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateClusterRoleResp struct { +type DeleteEnvironmentResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ClusterAuthzRole + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r DeleteEnvironmentResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteEnvironmentResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetEnvironmentResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Environment + JSON401 *Unauthorized + JSON403 *Forbidden + JSON404 *NotFound + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r GetEnvironmentResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetEnvironmentResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateEnvironmentResp struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Environment JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden + JSON404 *NotFound JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateClusterRoleResp) Status() string { +func (r UpdateEnvironmentResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12440,25 +17278,53 @@ func (r CreateClusterRoleResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateClusterRoleResp) StatusCode() int { +func (r UpdateEnvironmentResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteClusterRoleResp struct { +type ListObservabilityAlertsNotificationChannelsResp struct { Body []byte HTTPResponse *http.Response + JSON200 *ObservabilityAlertsNotificationChannelList + JSON400 *BadRequest + JSON401 *Unauthorized + JSON403 *Forbidden + JSON500 *InternalError +} + +// Status returns HTTPResponse.Status +func (r ListObservabilityAlertsNotificationChannelsResp) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListObservabilityAlertsNotificationChannelsResp) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateObservabilityAlertsNotificationChannelResp struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ObservabilityAlertsNotificationChannel + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteClusterRoleResp) Status() string { +func (r CreateObservabilityAlertsNotificationChannelResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12466,17 +17332,16 @@ func (r DeleteClusterRoleResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteClusterRoleResp) StatusCode() int { +func (r CreateObservabilityAlertsNotificationChannelResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetClusterRoleResp struct { +type DeleteObservabilityAlertsNotificationChannelResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterAuthzRole JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -12484,7 +17349,7 @@ type GetClusterRoleResp struct { } // Status returns HTTPResponse.Status -func (r GetClusterRoleResp) Status() string { +func (r DeleteObservabilityAlertsNotificationChannelResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12492,18 +17357,17 @@ func (r GetClusterRoleResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetClusterRoleResp) StatusCode() int { +func (r DeleteObservabilityAlertsNotificationChannelResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateClusterRoleResp struct { +type GetObservabilityAlertsNotificationChannelResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterAuthzRole - JSON400 *BadRequest + JSON200 *ObservabilityAlertsNotificationChannel JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -12511,7 +17375,7 @@ type UpdateClusterRoleResp struct { } // Status returns HTTPResponse.Status -func (r UpdateClusterRoleResp) Status() string { +func (r GetObservabilityAlertsNotificationChannelResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12519,25 +17383,27 @@ func (r UpdateClusterRoleResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateClusterRoleResp) StatusCode() int { +func (r GetObservabilityAlertsNotificationChannelResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListClusterComponentTypesResp struct { +type UpdateObservabilityAlertsNotificationChannelResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterComponentTypeList + JSON200 *ObservabilityAlertsNotificationChannel JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListClusterComponentTypesResp) Status() string { +func (r UpdateObservabilityAlertsNotificationChannelResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12545,26 +17411,25 @@ func (r ListClusterComponentTypesResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListClusterComponentTypesResp) StatusCode() int { +func (r UpdateObservabilityAlertsNotificationChannelResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateClusterComponentTypeResp struct { +type ListObservabilityPlanesResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ClusterComponentType + JSON200 *ObservabilityPlaneList JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateClusterComponentTypeResp) Status() string { +func (r ListObservabilityPlanesResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12572,24 +17437,27 @@ func (r CreateClusterComponentTypeResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateClusterComponentTypeResp) StatusCode() int { +func (r ListObservabilityPlanesResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteClusterComponentTypeResp struct { +type CreateObservabilityPlaneResp struct { Body []byte HTTPResponse *http.Response + JSON201 *ObservabilityPlane + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteClusterComponentTypeResp) Status() string { +func (r CreateObservabilityPlaneResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12597,17 +17465,16 @@ func (r DeleteClusterComponentTypeResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteClusterComponentTypeResp) StatusCode() int { +func (r CreateObservabilityPlaneResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetClusterComponentTypeResp struct { +type DeleteObservabilityPlaneResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterComponentType JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -12615,7 +17482,7 @@ type GetClusterComponentTypeResp struct { } // Status returns HTTPResponse.Status -func (r GetClusterComponentTypeResp) Status() string { +func (r DeleteObservabilityPlaneResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12623,27 +17490,25 @@ func (r GetClusterComponentTypeResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetClusterComponentTypeResp) StatusCode() int { +func (r DeleteObservabilityPlaneResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateClusterComponentTypeResp struct { +type GetObservabilityPlaneResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterComponentType - JSON400 *BadRequest + JSON200 *ObservabilityPlane JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound - JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateClusterComponentTypeResp) Status() string { +func (r GetObservabilityPlaneResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12651,25 +17516,28 @@ func (r UpdateClusterComponentTypeResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateClusterComponentTypeResp) StatusCode() int { +func (r GetObservabilityPlaneResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetClusterComponentTypeSchemaResp struct { +type UpdateObservabilityPlaneResp struct { Body []byte HTTPResponse *http.Response - JSON200 *SchemaResponse + JSON200 *ObservabilityPlane + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetClusterComponentTypeSchemaResp) Status() string { +func (r UpdateObservabilityPlaneResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12677,25 +17545,26 @@ func (r GetClusterComponentTypeSchemaResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetClusterComponentTypeSchemaResp) StatusCode() int { +func (r UpdateObservabilityPlaneResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListClusterDataPlanesResp struct { +type ListProjectsResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterDataPlaneList + JSON200 *ProjectList JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListClusterDataPlanesResp) Status() string { +func (r ListProjectsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12703,26 +17572,27 @@ func (r ListClusterDataPlanesResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListClusterDataPlanesResp) StatusCode() int { +func (r ListProjectsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateClusterDataPlaneResp struct { +type CreateProjectResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ClusterDataPlane + JSON201 *Project JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateClusterDataPlaneResp) Status() string { +func (r CreateProjectResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12730,14 +17600,14 @@ func (r CreateClusterDataPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateClusterDataPlaneResp) StatusCode() int { +func (r CreateProjectResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteClusterDataPlaneResp struct { +type DeleteProjectResp struct { Body []byte HTTPResponse *http.Response JSON401 *Unauthorized @@ -12747,7 +17617,7 @@ type DeleteClusterDataPlaneResp struct { } // Status returns HTTPResponse.Status -func (r DeleteClusterDataPlaneResp) Status() string { +func (r DeleteProjectResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12755,17 +17625,17 @@ func (r DeleteClusterDataPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteClusterDataPlaneResp) StatusCode() int { +func (r DeleteProjectResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetClusterDataPlaneResp struct { +type GetProjectResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterDataPlane + JSON200 *Project JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -12773,7 +17643,7 @@ type GetClusterDataPlaneResp struct { } // Status returns HTTPResponse.Status -func (r GetClusterDataPlaneResp) Status() string { +func (r GetProjectResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12781,27 +17651,28 @@ func (r GetClusterDataPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetClusterDataPlaneResp) StatusCode() int { +func (r GetProjectResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateClusterDataPlaneResp struct { +type UpdateProjectResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterDataPlane + JSON200 *Project JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateClusterDataPlaneResp) Status() string { +func (r UpdateProjectResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12809,25 +17680,26 @@ func (r UpdateClusterDataPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateClusterDataPlaneResp) StatusCode() int { +func (r UpdateProjectResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListClusterObservabilityPlanesResp struct { +type ListReleaseBindingsResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterObservabilityPlaneList + JSON200 *ReleaseBindingList JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListClusterObservabilityPlanesResp) Status() string { +func (r ListReleaseBindingsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12835,26 +17707,27 @@ func (r ListClusterObservabilityPlanesResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListClusterObservabilityPlanesResp) StatusCode() int { +func (r ListReleaseBindingsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateClusterObservabilityPlaneResp struct { +type CreateReleaseBindingResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ClusterObservabilityPlane + JSON201 *ReleaseBinding JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateClusterObservabilityPlaneResp) Status() string { +func (r CreateReleaseBindingResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12862,14 +17735,14 @@ func (r CreateClusterObservabilityPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateClusterObservabilityPlaneResp) StatusCode() int { +func (r CreateReleaseBindingResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteClusterObservabilityPlaneResp struct { +type DeleteReleaseBindingResp struct { Body []byte HTTPResponse *http.Response JSON401 *Unauthorized @@ -12879,7 +17752,7 @@ type DeleteClusterObservabilityPlaneResp struct { } // Status returns HTTPResponse.Status -func (r DeleteClusterObservabilityPlaneResp) Status() string { +func (r DeleteReleaseBindingResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12887,17 +17760,17 @@ func (r DeleteClusterObservabilityPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteClusterObservabilityPlaneResp) StatusCode() int { +func (r DeleteReleaseBindingResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetClusterObservabilityPlaneResp struct { +type GetReleaseBindingResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterObservabilityPlane + JSON200 *ReleaseBinding JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -12905,7 +17778,7 @@ type GetClusterObservabilityPlaneResp struct { } // Status returns HTTPResponse.Status -func (r GetClusterObservabilityPlaneResp) Status() string { +func (r GetReleaseBindingResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12913,27 +17786,27 @@ func (r GetClusterObservabilityPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetClusterObservabilityPlaneResp) StatusCode() int { +func (r GetReleaseBindingResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateClusterObservabilityPlaneResp struct { +type UpdateReleaseBindingResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterObservabilityPlane + JSON200 *ReleaseBinding JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound - JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateClusterObservabilityPlaneResp) Status() string { +func (r UpdateReleaseBindingResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12941,25 +17814,26 @@ func (r UpdateClusterObservabilityPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateClusterObservabilityPlaneResp) StatusCode() int { +func (r UpdateReleaseBindingResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListClusterTraitsResp struct { +type GetReleaseBindingK8sResourceEventsResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterTraitList + JSON200 *ResourceEventsResponse JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListClusterTraitsResp) Status() string { +func (r GetReleaseBindingK8sResourceEventsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12967,26 +17841,26 @@ func (r ListClusterTraitsResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListClusterTraitsResp) StatusCode() int { +func (r GetReleaseBindingK8sResourceEventsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateClusterTraitResp struct { +type GetReleaseBindingK8sResourceLogsResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ClusterTrait + JSON200 *ResourcePodLogsResponse JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateClusterTraitResp) Status() string { +func (r GetReleaseBindingK8sResourceLogsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -12994,16 +17868,18 @@ func (r CreateClusterTraitResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateClusterTraitResp) StatusCode() int { +func (r GetReleaseBindingK8sResourceLogsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteClusterTraitResp struct { +type GetReleaseBindingK8sResourceTreeResp struct { Body []byte HTTPResponse *http.Response + JSON200 *K8sResourceTreeResponse + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -13011,7 +17887,7 @@ type DeleteClusterTraitResp struct { } // Status returns HTTPResponse.Status -func (r DeleteClusterTraitResp) Status() string { +func (r GetReleaseBindingK8sResourceTreeResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13019,25 +17895,25 @@ func (r DeleteClusterTraitResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteClusterTraitResp) StatusCode() int { +func (r GetReleaseBindingK8sResourceTreeResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetClusterTraitResp struct { +type ListResourceReleaseBindingsResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterTrait + JSON200 *ResourceReleaseBindingList + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetClusterTraitResp) Status() string { +func (r ListResourceReleaseBindingsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13045,27 +17921,26 @@ func (r GetClusterTraitResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetClusterTraitResp) StatusCode() int { +func (r ListResourceReleaseBindingsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateClusterTraitResp struct { +type CreateResourceReleaseBindingResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterTrait + JSON201 *ResourceReleaseBinding JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateClusterTraitResp) Status() string { +func (r CreateResourceReleaseBindingResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13073,17 +17948,16 @@ func (r UpdateClusterTraitResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateClusterTraitResp) StatusCode() int { +func (r CreateResourceReleaseBindingResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetClusterTraitSchemaResp struct { +type DeleteResourceReleaseBindingResp struct { Body []byte HTTPResponse *http.Response - JSON200 *SchemaResponse JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -13091,7 +17965,7 @@ type GetClusterTraitSchemaResp struct { } // Status returns HTTPResponse.Status -func (r GetClusterTraitSchemaResp) Status() string { +func (r DeleteResourceReleaseBindingResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13099,25 +17973,25 @@ func (r GetClusterTraitSchemaResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetClusterTraitSchemaResp) StatusCode() int { +func (r DeleteResourceReleaseBindingResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListClusterWorkflowPlanesResp struct { +type GetResourceReleaseBindingResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterWorkflowPlaneList - JSON400 *BadRequest + JSON200 *ResourceReleaseBinding JSON401 *Unauthorized JSON403 *Forbidden + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListClusterWorkflowPlanesResp) Status() string { +func (r GetResourceReleaseBindingResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13125,26 +17999,26 @@ func (r ListClusterWorkflowPlanesResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListClusterWorkflowPlanesResp) StatusCode() int { +func (r GetResourceReleaseBindingResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateClusterWorkflowPlaneResp struct { +type UpdateResourceReleaseBindingResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ClusterWorkflowPlane + JSON200 *ResourceReleaseBinding JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateClusterWorkflowPlaneResp) Status() string { +func (r UpdateResourceReleaseBindingResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13152,24 +18026,25 @@ func (r CreateClusterWorkflowPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateClusterWorkflowPlaneResp) StatusCode() int { +func (r UpdateResourceReleaseBindingResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteClusterWorkflowPlaneResp struct { +type ListResourceReleasesResp struct { Body []byte HTTPResponse *http.Response + JSON200 *ResourceReleaseList + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteClusterWorkflowPlaneResp) Status() string { +func (r ListResourceReleasesResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13177,25 +18052,26 @@ func (r DeleteClusterWorkflowPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteClusterWorkflowPlaneResp) StatusCode() int { +func (r ListResourceReleasesResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetClusterWorkflowPlaneResp struct { +type CreateResourceReleaseResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterWorkflowPlane + JSON201 *ResourceRelease + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound + JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetClusterWorkflowPlaneResp) Status() string { +func (r CreateResourceReleaseResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13203,27 +18079,24 @@ func (r GetClusterWorkflowPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetClusterWorkflowPlaneResp) StatusCode() int { +func (r CreateResourceReleaseResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateClusterWorkflowPlaneResp struct { +type DeleteResourceReleaseResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterWorkflowPlane - JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound - JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateClusterWorkflowPlaneResp) Status() string { +func (r DeleteResourceReleaseResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13231,25 +18104,25 @@ func (r UpdateClusterWorkflowPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateClusterWorkflowPlaneResp) StatusCode() int { +func (r DeleteResourceReleaseResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListClusterWorkflowsResp struct { +type GetResourceReleaseResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterWorkflowList - JSON400 *BadRequest + JSON200 *ResourceRelease JSON401 *Unauthorized JSON403 *Forbidden + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListClusterWorkflowsResp) Status() string { +func (r GetResourceReleaseResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13257,26 +18130,26 @@ func (r ListClusterWorkflowsResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListClusterWorkflowsResp) StatusCode() int { +func (r GetResourceReleaseResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateClusterWorkflowResp struct { +type ListResourcesResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ClusterWorkflow + JSON200 *ResourceInstanceList JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateClusterWorkflowResp) Status() string { +func (r ListResourcesResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13284,24 +18157,26 @@ func (r CreateClusterWorkflowResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateClusterWorkflowResp) StatusCode() int { +func (r ListResourcesResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteClusterWorkflowResp struct { +type CreateResourceResp struct { Body []byte HTTPResponse *http.Response + JSON201 *ResourceInstance + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound + JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteClusterWorkflowResp) Status() string { +func (r CreateResourceResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13309,17 +18184,16 @@ func (r DeleteClusterWorkflowResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteClusterWorkflowResp) StatusCode() int { +func (r CreateResourceResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetClusterWorkflowResp struct { +type DeleteResourceResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterWorkflow JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -13327,7 +18201,7 @@ type GetClusterWorkflowResp struct { } // Status returns HTTPResponse.Status -func (r GetClusterWorkflowResp) Status() string { +func (r DeleteResourceResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13335,27 +18209,25 @@ func (r GetClusterWorkflowResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetClusterWorkflowResp) StatusCode() int { +func (r DeleteResourceResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateClusterWorkflowResp struct { +type GetResourceResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ClusterWorkflow - JSON400 *BadRequest + JSON200 *ResourceInstance JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound - JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateClusterWorkflowResp) Status() string { +func (r GetResourceResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13363,17 +18235,18 @@ func (r UpdateClusterWorkflowResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateClusterWorkflowResp) StatusCode() int { +func (r GetResourceResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetClusterWorkflowSchemaResp struct { +type UpdateResourceResp struct { Body []byte HTTPResponse *http.Response - JSON200 *SchemaResponse + JSON200 *ResourceInstance + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -13381,7 +18254,7 @@ type GetClusterWorkflowSchemaResp struct { } // Status returns HTTPResponse.Status -func (r GetClusterWorkflowSchemaResp) Status() string { +func (r UpdateResourceResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13389,17 +18262,17 @@ func (r GetClusterWorkflowSchemaResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetClusterWorkflowSchemaResp) StatusCode() int { +func (r UpdateResourceResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListNamespacesResp struct { +type ListResourceTypesResp struct { Body []byte HTTPResponse *http.Response - JSON200 *NamespaceList + JSON200 *ResourceTypeList JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden @@ -13407,7 +18280,7 @@ type ListNamespacesResp struct { } // Status returns HTTPResponse.Status -func (r ListNamespacesResp) Status() string { +func (r ListResourceTypesResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13415,17 +18288,17 @@ func (r ListNamespacesResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListNamespacesResp) StatusCode() int { +func (r ListResourceTypesResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateNamespaceResp struct { +type CreateResourceTypeResp struct { Body []byte HTTPResponse *http.Response - JSON201 *Namespace + JSON201 *ResourceType JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden @@ -13434,7 +18307,7 @@ type CreateNamespaceResp struct { } // Status returns HTTPResponse.Status -func (r CreateNamespaceResp) Status() string { +func (r CreateResourceTypeResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13442,14 +18315,14 @@ func (r CreateNamespaceResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateNamespaceResp) StatusCode() int { +func (r CreateResourceTypeResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteNamespaceResp struct { +type DeleteResourceTypeResp struct { Body []byte HTTPResponse *http.Response JSON401 *Unauthorized @@ -13459,7 +18332,7 @@ type DeleteNamespaceResp struct { } // Status returns HTTPResponse.Status -func (r DeleteNamespaceResp) Status() string { +func (r DeleteResourceTypeResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13467,17 +18340,17 @@ func (r DeleteNamespaceResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteNamespaceResp) StatusCode() int { +func (r DeleteResourceTypeResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetNamespaceResp struct { +type GetResourceTypeResp struct { Body []byte HTTPResponse *http.Response - JSON200 *Namespace + JSON200 *ResourceType JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -13485,7 +18358,7 @@ type GetNamespaceResp struct { } // Status returns HTTPResponse.Status -func (r GetNamespaceResp) Status() string { +func (r GetResourceTypeResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13493,26 +18366,27 @@ func (r GetNamespaceResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNamespaceResp) StatusCode() int { +func (r GetResourceTypeResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateNamespaceResp struct { +type UpdateResourceTypeResp struct { Body []byte HTTPResponse *http.Response - JSON200 *Namespace + JSON200 *ResourceType JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound + JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateNamespaceResp) Status() string { +func (r UpdateResourceTypeResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13520,25 +18394,25 @@ func (r UpdateNamespaceResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateNamespaceResp) StatusCode() int { +func (r UpdateResourceTypeResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListNamespaceRoleBindingsResp struct { +type GetResourceTypeSchemaResp struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthzRoleBindingList - JSON400 *BadRequest + JSON200 *SchemaResponse JSON401 *Unauthorized JSON403 *Forbidden + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListNamespaceRoleBindingsResp) Status() string { +func (r GetResourceTypeSchemaResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13546,26 +18420,25 @@ func (r ListNamespaceRoleBindingsResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListNamespaceRoleBindingsResp) StatusCode() int { +func (r GetResourceTypeSchemaResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateNamespaceRoleBindingResp struct { +type ListSecretReferencesResp struct { Body []byte HTTPResponse *http.Response - JSON201 *AuthzRoleBinding + JSON200 *SecretReferenceList JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateNamespaceRoleBindingResp) Status() string { +func (r ListSecretReferencesResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13573,25 +18446,27 @@ func (r CreateNamespaceRoleBindingResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateNamespaceRoleBindingResp) StatusCode() int { +func (r ListSecretReferencesResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteNamespaceRoleBindingResp struct { +type CreateSecretReferenceResp struct { Body []byte HTTPResponse *http.Response + JSON201 *SecretReference JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteNamespaceRoleBindingResp) Status() string { +func (r CreateSecretReferenceResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13599,18 +18474,16 @@ func (r DeleteNamespaceRoleBindingResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteNamespaceRoleBindingResp) StatusCode() int { +func (r CreateSecretReferenceResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetNamespaceRoleBindingResp struct { +type DeleteSecretReferenceResp struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthzRoleBinding - JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -13618,7 +18491,7 @@ type GetNamespaceRoleBindingResp struct { } // Status returns HTTPResponse.Status -func (r GetNamespaceRoleBindingResp) Status() string { +func (r DeleteSecretReferenceResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13626,27 +18499,25 @@ func (r GetNamespaceRoleBindingResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNamespaceRoleBindingResp) StatusCode() int { +func (r DeleteSecretReferenceResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateNamespaceRoleBindingResp struct { +type GetSecretReferenceResp struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthzRoleBinding - JSON400 *BadRequest + JSON200 *SecretReference JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound - JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateNamespaceRoleBindingResp) Status() string { +func (r GetSecretReferenceResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13654,25 +18525,27 @@ func (r UpdateNamespaceRoleBindingResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateNamespaceRoleBindingResp) StatusCode() int { +func (r GetSecretReferenceResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListNamespaceRolesResp struct { +type UpdateSecretReferenceResp struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthzRoleList + JSON200 *SecretReference JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListNamespaceRolesResp) Status() string { +func (r UpdateSecretReferenceResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13680,26 +18553,25 @@ func (r ListNamespaceRolesResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListNamespaceRolesResp) StatusCode() int { +func (r UpdateSecretReferenceResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateNamespaceRoleResp struct { +type ListTraitsResp struct { Body []byte HTTPResponse *http.Response - JSON201 *AuthzRole + JSON200 *TraitList JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateNamespaceRoleResp) Status() string { +func (r ListTraitsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13707,26 +18579,27 @@ func (r CreateNamespaceRoleResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateNamespaceRoleResp) StatusCode() int { +func (r ListTraitsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteNamespaceRoleResp struct { +type CreateTraitResp struct { Body []byte HTTPResponse *http.Response + JSON201 *Trait JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteNamespaceRoleResp) Status() string { +func (r CreateTraitResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13734,18 +18607,16 @@ func (r DeleteNamespaceRoleResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteNamespaceRoleResp) StatusCode() int { +func (r CreateTraitResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetNamespaceRoleResp struct { +type DeleteTraitResp struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthzRole - JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -13753,7 +18624,7 @@ type GetNamespaceRoleResp struct { } // Status returns HTTPResponse.Status -func (r GetNamespaceRoleResp) Status() string { +func (r DeleteTraitResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13761,18 +18632,17 @@ func (r GetNamespaceRoleResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNamespaceRoleResp) StatusCode() int { +func (r DeleteTraitResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateNamespaceRoleResp struct { +type GetTraitResp struct { Body []byte HTTPResponse *http.Response - JSON200 *AuthzRole - JSON400 *BadRequest + JSON200 *Trait JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -13780,7 +18650,7 @@ type UpdateNamespaceRoleResp struct { } // Status returns HTTPResponse.Status -func (r UpdateNamespaceRoleResp) Status() string { +func (r GetTraitResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13788,26 +18658,28 @@ func (r UpdateNamespaceRoleResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateNamespaceRoleResp) StatusCode() int { +func (r GetTraitResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListComponentReleasesResp struct { +type UpdateTraitResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ComponentReleaseList + JSON200 *Trait JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListComponentReleasesResp) Status() string { +func (r UpdateTraitResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13815,26 +18687,25 @@ func (r ListComponentReleasesResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListComponentReleasesResp) StatusCode() int { +func (r UpdateTraitResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateComponentReleaseResp struct { +type GetTraitSchemaResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ComponentRelease - JSON400 *BadRequest + JSON200 *SchemaResponse JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateComponentReleaseResp) Status() string { +func (r GetTraitSchemaResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13842,24 +18713,25 @@ func (r CreateComponentReleaseResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateComponentReleaseResp) StatusCode() int { +func (r GetTraitSchemaResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteComponentReleaseResp struct { +type ListWorkflowPlanesResp struct { Body []byte HTTPResponse *http.Response + JSON200 *WorkflowPlaneList + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteComponentReleaseResp) Status() string { +func (r ListWorkflowPlanesResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13867,25 +18739,27 @@ func (r DeleteComponentReleaseResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteComponentReleaseResp) StatusCode() int { +func (r ListWorkflowPlanesResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetComponentReleaseResp struct { +type CreateWorkflowPlaneResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ComponentRelease + JSON201 *WorkflowPlane + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetComponentReleaseResp) Status() string { +func (r CreateWorkflowPlaneResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13893,18 +18767,16 @@ func (r GetComponentReleaseResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetComponentReleaseResp) StatusCode() int { +func (r CreateWorkflowPlaneResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListComponentsResp struct { +type DeleteWorkflowPlaneResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ComponentList - JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -13912,7 +18784,7 @@ type ListComponentsResp struct { } // Status returns HTTPResponse.Status -func (r ListComponentsResp) Status() string { +func (r DeleteWorkflowPlaneResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13920,26 +18792,25 @@ func (r ListComponentsResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListComponentsResp) StatusCode() int { +func (r DeleteWorkflowPlaneResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateComponentResp struct { +type GetWorkflowPlaneResp struct { Body []byte HTTPResponse *http.Response - JSON201 *Component - JSON400 *BadRequest + JSON200 *WorkflowPlane JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateComponentResp) Status() string { +func (r GetWorkflowPlaneResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13947,24 +18818,28 @@ func (r CreateComponentResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateComponentResp) StatusCode() int { +func (r GetWorkflowPlaneResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteComponentResp struct { +type UpdateWorkflowPlaneResp struct { Body []byte HTTPResponse *http.Response + JSON200 *WorkflowPlane + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteComponentResp) Status() string { +func (r UpdateWorkflowPlaneResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13972,25 +18847,25 @@ func (r DeleteComponentResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteComponentResp) StatusCode() int { +func (r UpdateWorkflowPlaneResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetComponentResp struct { +type ListWorkflowRunsResp struct { Body []byte HTTPResponse *http.Response - JSON200 *Component + JSON200 *WorkflowRunList + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetComponentResp) Status() string { +func (r ListWorkflowRunsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13998,27 +18873,27 @@ func (r GetComponentResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetComponentResp) StatusCode() int { +func (r ListWorkflowRunsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateComponentResp struct { +type CreateWorkflowRunResp struct { Body []byte HTTPResponse *http.Response - JSON200 *Component + JSON201 *WorkflowRun JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound - JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateComponentResp) Status() string { +func (r CreateWorkflowRunResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14026,18 +18901,16 @@ func (r UpdateComponentResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateComponentResp) StatusCode() int { +func (r CreateWorkflowRunResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GenerateReleaseResp struct { +type DeleteWorkflowRunResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ComponentRelease - JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -14045,7 +18918,7 @@ type GenerateReleaseResp struct { } // Status returns HTTPResponse.Status -func (r GenerateReleaseResp) Status() string { +func (r DeleteWorkflowRunResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14053,17 +18926,17 @@ func (r GenerateReleaseResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GenerateReleaseResp) StatusCode() int { +func (r DeleteWorkflowRunResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetComponentSchemaResp struct { +type GetWorkflowRunResp struct { Body []byte HTTPResponse *http.Response - JSON200 *SchemaResponse + JSON200 *WorkflowRun JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -14071,7 +18944,7 @@ type GetComponentSchemaResp struct { } // Status returns HTTPResponse.Status -func (r GetComponentSchemaResp) Status() string { +func (r GetWorkflowRunResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14079,25 +18952,27 @@ func (r GetComponentSchemaResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetComponentSchemaResp) StatusCode() int { +func (r GetWorkflowRunResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListComponentTypesResp struct { +type UpdateWorkflowRunResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ComponentTypeList + JSON200 *WorkflowRun JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListComponentTypesResp) Status() string { +func (r UpdateWorkflowRunResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14105,26 +18980,25 @@ func (r ListComponentTypesResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListComponentTypesResp) StatusCode() int { +func (r UpdateWorkflowRunResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateComponentTypeResp struct { +type GetWorkflowRunEventsResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ComponentType + JSON200 *[]WorkflowRunEventEntry JSON400 *BadRequest - JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateComponentTypeResp) Status() string { +func (r GetWorkflowRunEventsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14132,24 +19006,25 @@ func (r CreateComponentTypeResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateComponentTypeResp) StatusCode() int { +func (r GetWorkflowRunEventsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteComponentTypeResp struct { +type GetWorkflowRunLogsResp struct { Body []byte HTTPResponse *http.Response - JSON401 *Unauthorized + JSON200 *[]WorkflowRunLogEntry + JSON400 *BadRequest JSON403 *Forbidden JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteComponentTypeResp) Status() string { +func (r GetWorkflowRunLogsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14157,25 +19032,24 @@ func (r DeleteComponentTypeResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteComponentTypeResp) StatusCode() int { +func (r GetWorkflowRunLogsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetComponentTypeResp struct { +type GetWorkflowRunStatusResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ComponentType - JSON401 *Unauthorized + JSON200 *WorkflowRunStatusResponse JSON403 *Forbidden JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetComponentTypeResp) Status() string { +func (r GetWorkflowRunStatusResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14183,27 +19057,25 @@ func (r GetComponentTypeResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetComponentTypeResp) StatusCode() int { +func (r GetWorkflowRunStatusResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateComponentTypeResp struct { +type ListWorkflowsResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ComponentType + JSON200 *WorkflowList JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound - JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateComponentTypeResp) Status() string { +func (r ListWorkflowsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14211,25 +19083,27 @@ func (r UpdateComponentTypeResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateComponentTypeResp) StatusCode() int { +func (r ListWorkflowsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetComponentTypeSchemaResp struct { +type CreateWorkflowResp struct { Body []byte HTTPResponse *http.Response - JSON200 *SchemaResponse + JSON201 *Workflow + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetComponentTypeSchemaResp) Status() string { +func (r CreateWorkflowResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14237,25 +19111,24 @@ func (r GetComponentTypeSchemaResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetComponentTypeSchemaResp) StatusCode() int { +func (r CreateWorkflowResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListDataPlanesResp struct { +type DeleteWorkflowResp struct { Body []byte HTTPResponse *http.Response - JSON200 *DataPlaneList - JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListDataPlanesResp) Status() string { +func (r DeleteWorkflowResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14263,26 +19136,25 @@ func (r ListDataPlanesResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDataPlanesResp) StatusCode() int { +func (r DeleteWorkflowResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateDataPlaneResp struct { +type GetWorkflowResp struct { Body []byte HTTPResponse *http.Response - JSON201 *DataPlane - JSON400 *BadRequest + JSON200 *Workflow JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateDataPlaneResp) Status() string { +func (r GetWorkflowResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14290,24 +19162,28 @@ func (r CreateDataPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateDataPlaneResp) StatusCode() int { +func (r GetWorkflowResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteDataPlaneResp struct { +type UpdateWorkflowResp struct { Body []byte HTTPResponse *http.Response + JSON200 *Workflow + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound + JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r DeleteDataPlaneResp) Status() string { +func (r UpdateWorkflowResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14315,17 +19191,17 @@ func (r DeleteDataPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteDataPlaneResp) StatusCode() int { +func (r UpdateWorkflowResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetDataPlaneResp struct { +type GetWorkflowSchemaResp struct { Body []byte HTTPResponse *http.Response - JSON200 *DataPlane + JSON200 *SchemaResponse JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -14333,7 +19209,7 @@ type GetDataPlaneResp struct { } // Status returns HTTPResponse.Status -func (r GetDataPlaneResp) Status() string { +func (r GetWorkflowSchemaResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14341,27 +19217,26 @@ func (r GetDataPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDataPlaneResp) StatusCode() int { +func (r GetWorkflowSchemaResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateDataPlaneResp struct { +type ListWorkloadsResp struct { Body []byte HTTPResponse *http.Response - JSON200 *DataPlane + JSON200 *WorkloadList JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound - JSON409 *Conflict JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateDataPlaneResp) Status() string { +func (r ListWorkloadsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14369,25 +19244,27 @@ func (r UpdateDataPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateDataPlaneResp) StatusCode() int { +func (r ListWorkloadsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListDeploymentPipelinesResp struct { +type CreateWorkloadResp struct { Body []byte HTTPResponse *http.Response - JSON200 *DeploymentPipelineList + JSON201 *Workload JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden + JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListDeploymentPipelinesResp) Status() string { +func (r CreateWorkloadResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14395,26 +19272,24 @@ func (r ListDeploymentPipelinesResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListDeploymentPipelinesResp) StatusCode() int { +func (r CreateWorkloadResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateDeploymentPipelineResp struct { +type DeleteWorkloadResp struct { Body []byte HTTPResponse *http.Response - JSON201 *DeploymentPipeline - JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict + JSON404 *NotFound JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateDeploymentPipelineResp) Status() string { +func (r DeleteWorkloadResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14422,16 +19297,17 @@ func (r CreateDeploymentPipelineResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateDeploymentPipelineResp) StatusCode() int { +func (r DeleteWorkloadResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteDeploymentPipelineResp struct { +type GetWorkloadResp struct { Body []byte HTTPResponse *http.Response + JSON200 *Workload JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound @@ -14439,7 +19315,7 @@ type DeleteDeploymentPipelineResp struct { } // Status returns HTTPResponse.Status -func (r DeleteDeploymentPipelineResp) Status() string { +func (r GetWorkloadResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14447,25 +19323,27 @@ func (r DeleteDeploymentPipelineResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteDeploymentPipelineResp) StatusCode() int { +func (r GetWorkloadResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetDeploymentPipelineResp struct { +type UpdateWorkloadResp struct { Body []byte HTTPResponse *http.Response - JSON200 *DeploymentPipeline + JSON200 *Workload + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetDeploymentPipelineResp) Status() string { +func (r UpdateWorkloadResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14473,26 +19351,25 @@ func (r GetDeploymentPipelineResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDeploymentPipelineResp) StatusCode() int { +func (r UpdateWorkloadResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateDeploymentPipelineResp struct { +type HandleAutoBuildResp struct { Body []byte HTTPResponse *http.Response - JSON200 *DeploymentPipeline + JSON200 *WebhookEventResponse JSON400 *BadRequest JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r UpdateDeploymentPipelineResp) Status() string { +func (r HandleAutoBuildResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14500,25 +19377,24 @@ func (r UpdateDeploymentPipelineResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateDeploymentPipelineResp) StatusCode() int { +func (r HandleAutoBuildResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListEnvironmentsResp struct { +type ListGitSecretsResp struct { Body []byte HTTPResponse *http.Response - JSON200 *EnvironmentList - JSON400 *BadRequest + JSON200 *GitSecretListResponse JSON401 *Unauthorized JSON403 *Forbidden JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListEnvironmentsResp) Status() string { +func (r ListGitSecretsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14526,26 +19402,27 @@ func (r ListEnvironmentsResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEnvironmentsResp) StatusCode() int { +func (r ListGitSecretsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateEnvironmentResp struct { +type CreateGitSecretResp struct { Body []byte HTTPResponse *http.Response - JSON201 *Environment + JSON201 *GitSecretResponse JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r CreateEnvironmentResp) Status() string { +func (r CreateGitSecretResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14553,14 +19430,14 @@ func (r CreateEnvironmentResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateEnvironmentResp) StatusCode() int { +func (r CreateGitSecretResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteEnvironmentResp struct { +type DeleteGitSecretResp struct { Body []byte HTTPResponse *http.Response JSON401 *Unauthorized @@ -14570,7 +19447,7 @@ type DeleteEnvironmentResp struct { } // Status returns HTTPResponse.Status -func (r DeleteEnvironmentResp) Status() string { +func (r DeleteGitSecretResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14578,25 +19455,26 @@ func (r DeleteEnvironmentResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteEnvironmentResp) StatusCode() int { +func (r DeleteGitSecretResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetEnvironmentResp struct { +type ListSecretsResp struct { Body []byte HTTPResponse *http.Response - JSON200 *Environment + JSON200 *ListSecretsResponse + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound JSON500 *InternalError + JSON501 *NotImplemented } // Status returns HTTPResponse.Status -func (r GetEnvironmentResp) Status() string { +func (r ListSecretsResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14604,27 +19482,28 @@ func (r GetEnvironmentResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetEnvironmentResp) StatusCode() int { +func (r ListSecretsResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateEnvironmentResp struct { +type CreateSecretResp struct { Body []byte HTTPResponse *http.Response - JSON200 *Environment + JSON201 *Secret JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden - JSON404 *NotFound JSON409 *Conflict + JSON422 *UnprocessableContent JSON500 *InternalError + JSON501 *NotImplemented } // Status returns HTTPResponse.Status -func (r UpdateEnvironmentResp) Status() string { +func (r CreateSecretResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14632,25 +19511,27 @@ func (r UpdateEnvironmentResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateEnvironmentResp) StatusCode() int { +func (r CreateSecretResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListObservabilityAlertsNotificationChannelsResp struct { +type DeleteSecretResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ObservabilityAlertsNotificationChannelList JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden + JSON404 *NotFound + JSON422 *UnprocessableContent JSON500 *InternalError + JSON501 *NotImplemented } // Status returns HTTPResponse.Status -func (r ListObservabilityAlertsNotificationChannelsResp) Status() string { +func (r DeleteSecretResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14658,26 +19539,26 @@ func (r ListObservabilityAlertsNotificationChannelsResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListObservabilityAlertsNotificationChannelsResp) StatusCode() int { +func (r DeleteSecretResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateObservabilityAlertsNotificationChannelResp struct { +type GetSecretResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ObservabilityAlertsNotificationChannel - JSON400 *BadRequest + JSON200 *Secret JSON401 *Unauthorized JSON403 *Forbidden - JSON409 *Conflict + JSON404 *NotFound JSON500 *InternalError + JSON501 *NotImplemented } // Status returns HTTPResponse.Status -func (r CreateObservabilityAlertsNotificationChannelResp) Status() string { +func (r GetSecretResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14685,24 +19566,28 @@ func (r CreateObservabilityAlertsNotificationChannelResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateObservabilityAlertsNotificationChannelResp) StatusCode() int { +func (r GetSecretResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteObservabilityAlertsNotificationChannelResp struct { +type UpdateSecretResp struct { Body []byte HTTPResponse *http.Response + JSON200 *Secret + JSON400 *BadRequest JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound + JSON422 *UnprocessableContent JSON500 *InternalError + JSON501 *NotImplemented } // Status returns HTTPResponse.Status -func (r DeleteObservabilityAlertsNotificationChannelResp) Status() string { +func (r UpdateSecretResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14710,25 +19595,20 @@ func (r DeleteObservabilityAlertsNotificationChannelResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteObservabilityAlertsNotificationChannelResp) StatusCode() int { +func (r UpdateSecretResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetObservabilityAlertsNotificationChannelResp struct { +type GetHealthResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ObservabilityAlertsNotificationChannel - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r GetObservabilityAlertsNotificationChannelResp) Status() string { +func (r GetHealthResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14736,26 +19616,21 @@ func (r GetObservabilityAlertsNotificationChannelResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetObservabilityAlertsNotificationChannelResp) StatusCode() int { +func (r GetHealthResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type UpdateObservabilityAlertsNotificationChannelResp struct { +type GetOpenAPISpecResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ObservabilityAlertsNotificationChannel - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError + JSON200 *map[string]interface{} } // Status returns HTTPResponse.Status -func (r UpdateObservabilityAlertsNotificationChannelResp) Status() string { +func (r GetOpenAPISpecResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14763,25 +19638,20 @@ func (r UpdateObservabilityAlertsNotificationChannelResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateObservabilityAlertsNotificationChannelResp) StatusCode() int { +func (r GetOpenAPISpecResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type ListObservabilityPlanesResp struct { +type GetReadyResp struct { Body []byte HTTPResponse *http.Response - JSON200 *ObservabilityPlaneList - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON500 *InternalError } // Status returns HTTPResponse.Status -func (r ListObservabilityPlanesResp) Status() string { +func (r GetReadyResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14789,26 +19659,21 @@ func (r ListObservabilityPlanesResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListObservabilityPlanesResp) StatusCode() int { +func (r GetReadyResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type CreateObservabilityPlaneResp struct { +type GetVersionResp struct { Body []byte HTTPResponse *http.Response - JSON201 *ObservabilityPlane - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON409 *Conflict - JSON500 *InternalError + JSON200 *VersionResponse } // Status returns HTTPResponse.Status -func (r CreateObservabilityPlaneResp) Status() string { +func (r GetVersionResp) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14816,3469 +19681,4199 @@ func (r CreateObservabilityPlaneResp) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateObservabilityPlaneResp) StatusCode() int { +func (r GetVersionResp) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteObservabilityPlaneResp struct { - Body []byte - HTTPResponse *http.Response - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// GetOAuthProtectedResourceMetadataWithResponse request returning *GetOAuthProtectedResourceMetadataResp +func (c *ClientWithResponses) GetOAuthProtectedResourceMetadataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOAuthProtectedResourceMetadataResp, error) { + rsp, err := c.GetOAuthProtectedResourceMetadata(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOAuthProtectedResourceMetadataResp(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteObservabilityPlaneResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListSubjectTypesWithResponse request returning *ListSubjectTypesResp +func (c *ClientWithResponses) ListSubjectTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectTypesResp, error) { + rsp, err := c.ListSubjectTypes(ctx, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListSubjectTypesResp(rsp) +} + +// ListActionsWithResponse request returning *ListActionsResp +func (c *ClientWithResponses) ListActionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListActionsResp, error) { + rsp, err := c.ListActions(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseListActionsResp(rsp) +} + +// EvaluatesWithBodyWithResponse request with arbitrary body returning *EvaluatesResp +func (c *ClientWithResponses) EvaluatesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EvaluatesResp, error) { + rsp, err := c.EvaluatesWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEvaluatesResp(rsp) +} + +func (c *ClientWithResponses) EvaluatesWithResponse(ctx context.Context, body EvaluatesJSONRequestBody, reqEditors ...RequestEditorFn) (*EvaluatesResp, error) { + rsp, err := c.Evaluates(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEvaluatesResp(rsp) +} + +// GetSubjectProfileWithResponse request returning *GetSubjectProfileResp +func (c *ClientWithResponses) GetSubjectProfileWithResponse(ctx context.Context, params *GetSubjectProfileParams, reqEditors ...RequestEditorFn) (*GetSubjectProfileResp, error) { + rsp, err := c.GetSubjectProfile(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSubjectProfileResp(rsp) +} + +// ListClusterRoleBindingsWithResponse request returning *ListClusterRoleBindingsResp +func (c *ClientWithResponses) ListClusterRoleBindingsWithResponse(ctx context.Context, params *ListClusterRoleBindingsParams, reqEditors ...RequestEditorFn) (*ListClusterRoleBindingsResp, error) { + rsp, err := c.ListClusterRoleBindings(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListClusterRoleBindingsResp(rsp) +} + +// CreateClusterRoleBindingWithBodyWithResponse request with arbitrary body returning *CreateClusterRoleBindingResp +func (c *ClientWithResponses) CreateClusterRoleBindingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterRoleBindingResp, error) { + rsp, err := c.CreateClusterRoleBindingWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateClusterRoleBindingResp(rsp) +} + +func (c *ClientWithResponses) CreateClusterRoleBindingWithResponse(ctx context.Context, body CreateClusterRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterRoleBindingResp, error) { + rsp, err := c.CreateClusterRoleBinding(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateClusterRoleBindingResp(rsp) +} + +// DeleteClusterRoleBindingWithResponse request returning *DeleteClusterRoleBindingResp +func (c *ClientWithResponses) DeleteClusterRoleBindingWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteClusterRoleBindingResp, error) { + rsp, err := c.DeleteClusterRoleBinding(ctx, name, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteClusterRoleBindingResp(rsp) +} + +// GetClusterRoleBindingWithResponse request returning *GetClusterRoleBindingResp +func (c *ClientWithResponses) GetClusterRoleBindingWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetClusterRoleBindingResp, error) { + rsp, err := c.GetClusterRoleBinding(ctx, name, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClusterRoleBindingResp(rsp) +} + +// UpdateClusterRoleBindingWithBodyWithResponse request with arbitrary body returning *UpdateClusterRoleBindingResp +func (c *ClientWithResponses) UpdateClusterRoleBindingWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterRoleBindingResp, error) { + rsp, err := c.UpdateClusterRoleBindingWithBody(ctx, name, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateClusterRoleBindingResp(rsp) +} + +func (c *ClientWithResponses) UpdateClusterRoleBindingWithResponse(ctx context.Context, name string, body UpdateClusterRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterRoleBindingResp, error) { + rsp, err := c.UpdateClusterRoleBinding(ctx, name, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateClusterRoleBindingResp(rsp) +} + +// ListClusterRolesWithResponse request returning *ListClusterRolesResp +func (c *ClientWithResponses) ListClusterRolesWithResponse(ctx context.Context, params *ListClusterRolesParams, reqEditors ...RequestEditorFn) (*ListClusterRolesResp, error) { + rsp, err := c.ListClusterRoles(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListClusterRolesResp(rsp) +} + +// CreateClusterRoleWithBodyWithResponse request with arbitrary body returning *CreateClusterRoleResp +func (c *ClientWithResponses) CreateClusterRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterRoleResp, error) { + rsp, err := c.CreateClusterRoleWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateClusterRoleResp(rsp) +} + +func (c *ClientWithResponses) CreateClusterRoleWithResponse(ctx context.Context, body CreateClusterRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterRoleResp, error) { + rsp, err := c.CreateClusterRole(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateClusterRoleResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteObservabilityPlaneResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteClusterRoleWithResponse request returning *DeleteClusterRoleResp +func (c *ClientWithResponses) DeleteClusterRoleWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteClusterRoleResp, error) { + rsp, err := c.DeleteClusterRole(ctx, name, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteClusterRoleResp(rsp) } -type GetObservabilityPlaneResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ObservabilityPlane - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// GetClusterRoleWithResponse request returning *GetClusterRoleResp +func (c *ClientWithResponses) GetClusterRoleWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetClusterRoleResp, error) { + rsp, err := c.GetClusterRole(ctx, name, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClusterRoleResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetObservabilityPlaneResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateClusterRoleWithBodyWithResponse request with arbitrary body returning *UpdateClusterRoleResp +func (c *ClientWithResponses) UpdateClusterRoleWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterRoleResp, error) { + rsp, err := c.UpdateClusterRoleWithBody(ctx, name, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateClusterRoleResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetObservabilityPlaneResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateClusterRoleWithResponse(ctx context.Context, name string, body UpdateClusterRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterRoleResp, error) { + rsp, err := c.UpdateClusterRole(ctx, name, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateClusterRoleResp(rsp) } -type UpdateObservabilityPlaneResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ObservabilityPlane - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON409 *Conflict - JSON500 *InternalError +// ListClusterComponentTypesWithResponse request returning *ListClusterComponentTypesResp +func (c *ClientWithResponses) ListClusterComponentTypesWithResponse(ctx context.Context, params *ListClusterComponentTypesParams, reqEditors ...RequestEditorFn) (*ListClusterComponentTypesResp, error) { + rsp, err := c.ListClusterComponentTypes(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListClusterComponentTypesResp(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateObservabilityPlaneResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreateClusterComponentTypeWithBodyWithResponse request with arbitrary body returning *CreateClusterComponentTypeResp +func (c *ClientWithResponses) CreateClusterComponentTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterComponentTypeResp, error) { + rsp, err := c.CreateClusterComponentTypeWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateClusterComponentTypeResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateObservabilityPlaneResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CreateClusterComponentTypeWithResponse(ctx context.Context, body CreateClusterComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterComponentTypeResp, error) { + rsp, err := c.CreateClusterComponentType(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateClusterComponentTypeResp(rsp) } -type ListProjectsResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ProjectList - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// DeleteClusterComponentTypeWithResponse request returning *DeleteClusterComponentTypeResp +func (c *ClientWithResponses) DeleteClusterComponentTypeWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterComponentTypeResp, error) { + rsp, err := c.DeleteClusterComponentType(ctx, cctName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteClusterComponentTypeResp(rsp) } -// Status returns HTTPResponse.Status -func (r ListProjectsResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetClusterComponentTypeWithResponse request returning *GetClusterComponentTypeResp +func (c *ClientWithResponses) GetClusterComponentTypeWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetClusterComponentTypeResp, error) { + rsp, err := c.GetClusterComponentType(ctx, cctName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetClusterComponentTypeResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListProjectsResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateClusterComponentTypeWithBodyWithResponse request with arbitrary body returning *UpdateClusterComponentTypeResp +func (c *ClientWithResponses) UpdateClusterComponentTypeWithBodyWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterComponentTypeResp, error) { + rsp, err := c.UpdateClusterComponentTypeWithBody(ctx, cctName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateClusterComponentTypeResp(rsp) } -type CreateProjectResp struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Project - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON409 *Conflict - JSON500 *InternalError +func (c *ClientWithResponses) UpdateClusterComponentTypeWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, body UpdateClusterComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterComponentTypeResp, error) { + rsp, err := c.UpdateClusterComponentType(ctx, cctName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateClusterComponentTypeResp(rsp) } -// Status returns HTTPResponse.Status -func (r CreateProjectResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetClusterComponentTypeSchemaWithResponse request returning *GetClusterComponentTypeSchemaResp +func (c *ClientWithResponses) GetClusterComponentTypeSchemaWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetClusterComponentTypeSchemaResp, error) { + rsp, err := c.GetClusterComponentTypeSchema(ctx, cctName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetClusterComponentTypeSchemaResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateProjectResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListClusterDataPlanesWithResponse request returning *ListClusterDataPlanesResp +func (c *ClientWithResponses) ListClusterDataPlanesWithResponse(ctx context.Context, params *ListClusterDataPlanesParams, reqEditors ...RequestEditorFn) (*ListClusterDataPlanesResp, error) { + rsp, err := c.ListClusterDataPlanes(ctx, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListClusterDataPlanesResp(rsp) } -type DeleteProjectResp struct { - Body []byte - HTTPResponse *http.Response - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// CreateClusterDataPlaneWithBodyWithResponse request with arbitrary body returning *CreateClusterDataPlaneResp +func (c *ClientWithResponses) CreateClusterDataPlaneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterDataPlaneResp, error) { + rsp, err := c.CreateClusterDataPlaneWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateClusterDataPlaneResp(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteProjectResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateClusterDataPlaneWithResponse(ctx context.Context, body CreateClusterDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterDataPlaneResp, error) { + rsp, err := c.CreateClusterDataPlane(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateClusterDataPlaneResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteProjectResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteClusterDataPlaneWithResponse request returning *DeleteClusterDataPlaneResp +func (c *ClientWithResponses) DeleteClusterDataPlaneWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterDataPlaneResp, error) { + rsp, err := c.DeleteClusterDataPlane(ctx, cdpName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteClusterDataPlaneResp(rsp) } -type GetProjectResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Project - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// GetClusterDataPlaneWithResponse request returning *GetClusterDataPlaneResp +func (c *ClientWithResponses) GetClusterDataPlaneWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, reqEditors ...RequestEditorFn) (*GetClusterDataPlaneResp, error) { + rsp, err := c.GetClusterDataPlane(ctx, cdpName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClusterDataPlaneResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetProjectResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateClusterDataPlaneWithBodyWithResponse request with arbitrary body returning *UpdateClusterDataPlaneResp +func (c *ClientWithResponses) UpdateClusterDataPlaneWithBodyWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterDataPlaneResp, error) { + rsp, err := c.UpdateClusterDataPlaneWithBody(ctx, cdpName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateClusterDataPlaneResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetProjectResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateClusterDataPlaneWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, body UpdateClusterDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterDataPlaneResp, error) { + rsp, err := c.UpdateClusterDataPlane(ctx, cdpName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateClusterDataPlaneResp(rsp) } -type UpdateProjectResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Project - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON409 *Conflict - JSON500 *InternalError +// ListClusterObservabilityPlanesWithResponse request returning *ListClusterObservabilityPlanesResp +func (c *ClientWithResponses) ListClusterObservabilityPlanesWithResponse(ctx context.Context, params *ListClusterObservabilityPlanesParams, reqEditors ...RequestEditorFn) (*ListClusterObservabilityPlanesResp, error) { + rsp, err := c.ListClusterObservabilityPlanes(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListClusterObservabilityPlanesResp(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateProjectResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreateClusterObservabilityPlaneWithBodyWithResponse request with arbitrary body returning *CreateClusterObservabilityPlaneResp +func (c *ClientWithResponses) CreateClusterObservabilityPlaneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterObservabilityPlaneResp, error) { + rsp, err := c.CreateClusterObservabilityPlaneWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateClusterObservabilityPlaneResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateProjectResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CreateClusterObservabilityPlaneWithResponse(ctx context.Context, body CreateClusterObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterObservabilityPlaneResp, error) { + rsp, err := c.CreateClusterObservabilityPlane(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return 0 -} - -type ListReleaseBindingsResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ReleaseBindingList - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError + return ParseCreateClusterObservabilityPlaneResp(rsp) } -// Status returns HTTPResponse.Status -func (r ListReleaseBindingsResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteClusterObservabilityPlaneWithResponse request returning *DeleteClusterObservabilityPlaneResp +func (c *ClientWithResponses) DeleteClusterObservabilityPlaneWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterObservabilityPlaneResp, error) { + rsp, err := c.DeleteClusterObservabilityPlane(ctx, clusterObservabilityPlaneName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteClusterObservabilityPlaneResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListReleaseBindingsResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetClusterObservabilityPlaneWithResponse request returning *GetClusterObservabilityPlaneResp +func (c *ClientWithResponses) GetClusterObservabilityPlaneWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*GetClusterObservabilityPlaneResp, error) { + rsp, err := c.GetClusterObservabilityPlane(ctx, clusterObservabilityPlaneName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetClusterObservabilityPlaneResp(rsp) } -type CreateReleaseBindingResp struct { - Body []byte - HTTPResponse *http.Response - JSON201 *ReleaseBinding - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON409 *Conflict - JSON500 *InternalError +// UpdateClusterObservabilityPlaneWithBodyWithResponse request with arbitrary body returning *UpdateClusterObservabilityPlaneResp +func (c *ClientWithResponses) UpdateClusterObservabilityPlaneWithBodyWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterObservabilityPlaneResp, error) { + rsp, err := c.UpdateClusterObservabilityPlaneWithBody(ctx, clusterObservabilityPlaneName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateClusterObservabilityPlaneResp(rsp) } -// Status returns HTTPResponse.Status -func (r CreateReleaseBindingResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateClusterObservabilityPlaneWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, body UpdateClusterObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterObservabilityPlaneResp, error) { + rsp, err := c.UpdateClusterObservabilityPlane(ctx, clusterObservabilityPlaneName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateClusterObservabilityPlaneResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateReleaseBindingResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListClusterResourceTypesWithResponse request returning *ListClusterResourceTypesResp +func (c *ClientWithResponses) ListClusterResourceTypesWithResponse(ctx context.Context, params *ListClusterResourceTypesParams, reqEditors ...RequestEditorFn) (*ListClusterResourceTypesResp, error) { + rsp, err := c.ListClusterResourceTypes(ctx, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListClusterResourceTypesResp(rsp) } -type DeleteReleaseBindingResp struct { - Body []byte - HTTPResponse *http.Response - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// CreateClusterResourceTypeWithBodyWithResponse request with arbitrary body returning *CreateClusterResourceTypeResp +func (c *ClientWithResponses) CreateClusterResourceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterResourceTypeResp, error) { + rsp, err := c.CreateClusterResourceTypeWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateClusterResourceTypeResp(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteReleaseBindingResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateClusterResourceTypeWithResponse(ctx context.Context, body CreateClusterResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterResourceTypeResp, error) { + rsp, err := c.CreateClusterResourceType(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateClusterResourceTypeResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteReleaseBindingResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteClusterResourceTypeWithResponse request returning *DeleteClusterResourceTypeResp +func (c *ClientWithResponses) DeleteClusterResourceTypeWithResponse(ctx context.Context, crtName ClusterResourceTypeNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterResourceTypeResp, error) { + rsp, err := c.DeleteClusterResourceType(ctx, crtName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteClusterResourceTypeResp(rsp) } -type GetReleaseBindingResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ReleaseBinding - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// GetClusterResourceTypeWithResponse request returning *GetClusterResourceTypeResp +func (c *ClientWithResponses) GetClusterResourceTypeWithResponse(ctx context.Context, crtName ClusterResourceTypeNameParam, reqEditors ...RequestEditorFn) (*GetClusterResourceTypeResp, error) { + rsp, err := c.GetClusterResourceType(ctx, crtName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClusterResourceTypeResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetReleaseBindingResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateClusterResourceTypeWithBodyWithResponse request with arbitrary body returning *UpdateClusterResourceTypeResp +func (c *ClientWithResponses) UpdateClusterResourceTypeWithBodyWithResponse(ctx context.Context, crtName ClusterResourceTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterResourceTypeResp, error) { + rsp, err := c.UpdateClusterResourceTypeWithBody(ctx, crtName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateClusterResourceTypeResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetReleaseBindingResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateClusterResourceTypeWithResponse(ctx context.Context, crtName ClusterResourceTypeNameParam, body UpdateClusterResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterResourceTypeResp, error) { + rsp, err := c.UpdateClusterResourceType(ctx, crtName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateClusterResourceTypeResp(rsp) } -type UpdateReleaseBindingResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ReleaseBinding - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// GetClusterResourceTypeSchemaWithResponse request returning *GetClusterResourceTypeSchemaResp +func (c *ClientWithResponses) GetClusterResourceTypeSchemaWithResponse(ctx context.Context, crtName ClusterResourceTypeNameParam, reqEditors ...RequestEditorFn) (*GetClusterResourceTypeSchemaResp, error) { + rsp, err := c.GetClusterResourceTypeSchema(ctx, crtName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClusterResourceTypeSchemaResp(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateReleaseBindingResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListClusterTraitsWithResponse request returning *ListClusterTraitsResp +func (c *ClientWithResponses) ListClusterTraitsWithResponse(ctx context.Context, params *ListClusterTraitsParams, reqEditors ...RequestEditorFn) (*ListClusterTraitsResp, error) { + rsp, err := c.ListClusterTraits(ctx, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListClusterTraitsResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateReleaseBindingResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CreateClusterTraitWithBodyWithResponse request with arbitrary body returning *CreateClusterTraitResp +func (c *ClientWithResponses) CreateClusterTraitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterTraitResp, error) { + rsp, err := c.CreateClusterTraitWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateClusterTraitResp(rsp) } -type GetReleaseBindingK8sResourceEventsResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ResourceEventsResponse - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +func (c *ClientWithResponses) CreateClusterTraitWithResponse(ctx context.Context, body CreateClusterTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterTraitResp, error) { + rsp, err := c.CreateClusterTrait(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateClusterTraitResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetReleaseBindingK8sResourceEventsResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteClusterTraitWithResponse request returning *DeleteClusterTraitResp +func (c *ClientWithResponses) DeleteClusterTraitWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterTraitResp, error) { + rsp, err := c.DeleteClusterTrait(ctx, clusterTraitName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteClusterTraitResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetReleaseBindingK8sResourceEventsResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetClusterTraitWithResponse request returning *GetClusterTraitResp +func (c *ClientWithResponses) GetClusterTraitWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, reqEditors ...RequestEditorFn) (*GetClusterTraitResp, error) { + rsp, err := c.GetClusterTrait(ctx, clusterTraitName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetClusterTraitResp(rsp) } -type GetReleaseBindingK8sResourceLogsResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *ResourcePodLogsResponse - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// UpdateClusterTraitWithBodyWithResponse request with arbitrary body returning *UpdateClusterTraitResp +func (c *ClientWithResponses) UpdateClusterTraitWithBodyWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterTraitResp, error) { + rsp, err := c.UpdateClusterTraitWithBody(ctx, clusterTraitName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateClusterTraitResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetReleaseBindingK8sResourceLogsResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateClusterTraitWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, body UpdateClusterTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterTraitResp, error) { + rsp, err := c.UpdateClusterTrait(ctx, clusterTraitName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateClusterTraitResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetReleaseBindingK8sResourceLogsResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetClusterTraitSchemaWithResponse request returning *GetClusterTraitSchemaResp +func (c *ClientWithResponses) GetClusterTraitSchemaWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, reqEditors ...RequestEditorFn) (*GetClusterTraitSchemaResp, error) { + rsp, err := c.GetClusterTraitSchema(ctx, clusterTraitName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetClusterTraitSchemaResp(rsp) } -type GetReleaseBindingK8sResourceTreeResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *K8sResourceTreeResponse - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// ListClusterWorkflowPlanesWithResponse request returning *ListClusterWorkflowPlanesResp +func (c *ClientWithResponses) ListClusterWorkflowPlanesWithResponse(ctx context.Context, params *ListClusterWorkflowPlanesParams, reqEditors ...RequestEditorFn) (*ListClusterWorkflowPlanesResp, error) { + rsp, err := c.ListClusterWorkflowPlanes(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListClusterWorkflowPlanesResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetReleaseBindingK8sResourceTreeResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreateClusterWorkflowPlaneWithBodyWithResponse request with arbitrary body returning *CreateClusterWorkflowPlaneResp +func (c *ClientWithResponses) CreateClusterWorkflowPlaneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowPlaneResp, error) { + rsp, err := c.CreateClusterWorkflowPlaneWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateClusterWorkflowPlaneResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetReleaseBindingK8sResourceTreeResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CreateClusterWorkflowPlaneWithResponse(ctx context.Context, body CreateClusterWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowPlaneResp, error) { + rsp, err := c.CreateClusterWorkflowPlane(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateClusterWorkflowPlaneResp(rsp) } -type ListSecretReferencesResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SecretReferenceList - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON500 *InternalError +// DeleteClusterWorkflowPlaneWithResponse request returning *DeleteClusterWorkflowPlaneResp +func (c *ClientWithResponses) DeleteClusterWorkflowPlaneWithResponse(ctx context.Context, clusterWorkflowPlaneName string, reqEditors ...RequestEditorFn) (*DeleteClusterWorkflowPlaneResp, error) { + rsp, err := c.DeleteClusterWorkflowPlane(ctx, clusterWorkflowPlaneName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteClusterWorkflowPlaneResp(rsp) } -// Status returns HTTPResponse.Status -func (r ListSecretReferencesResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetClusterWorkflowPlaneWithResponse request returning *GetClusterWorkflowPlaneResp +func (c *ClientWithResponses) GetClusterWorkflowPlaneWithResponse(ctx context.Context, clusterWorkflowPlaneName string, reqEditors ...RequestEditorFn) (*GetClusterWorkflowPlaneResp, error) { + rsp, err := c.GetClusterWorkflowPlane(ctx, clusterWorkflowPlaneName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetClusterWorkflowPlaneResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListSecretReferencesResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateClusterWorkflowPlaneWithBodyWithResponse request with arbitrary body returning *UpdateClusterWorkflowPlaneResp +func (c *ClientWithResponses) UpdateClusterWorkflowPlaneWithBodyWithResponse(ctx context.Context, clusterWorkflowPlaneName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowPlaneResp, error) { + rsp, err := c.UpdateClusterWorkflowPlaneWithBody(ctx, clusterWorkflowPlaneName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateClusterWorkflowPlaneResp(rsp) } -type CreateSecretReferenceResp struct { - Body []byte - HTTPResponse *http.Response - JSON201 *SecretReference - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON409 *Conflict - JSON500 *InternalError +func (c *ClientWithResponses) UpdateClusterWorkflowPlaneWithResponse(ctx context.Context, clusterWorkflowPlaneName string, body UpdateClusterWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowPlaneResp, error) { + rsp, err := c.UpdateClusterWorkflowPlane(ctx, clusterWorkflowPlaneName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateClusterWorkflowPlaneResp(rsp) } -// Status returns HTTPResponse.Status -func (r CreateSecretReferenceResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListClusterWorkflowsWithResponse request returning *ListClusterWorkflowsResp +func (c *ClientWithResponses) ListClusterWorkflowsWithResponse(ctx context.Context, params *ListClusterWorkflowsParams, reqEditors ...RequestEditorFn) (*ListClusterWorkflowsResp, error) { + rsp, err := c.ListClusterWorkflows(ctx, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListClusterWorkflowsResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateSecretReferenceResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CreateClusterWorkflowWithBodyWithResponse request with arbitrary body returning *CreateClusterWorkflowResp +func (c *ClientWithResponses) CreateClusterWorkflowWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowResp, error) { + rsp, err := c.CreateClusterWorkflowWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateClusterWorkflowResp(rsp) } -type DeleteSecretReferenceResp struct { - Body []byte - HTTPResponse *http.Response - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +func (c *ClientWithResponses) CreateClusterWorkflowWithResponse(ctx context.Context, body CreateClusterWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowResp, error) { + rsp, err := c.CreateClusterWorkflow(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateClusterWorkflowResp(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteSecretReferenceResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteClusterWorkflowWithResponse request returning *DeleteClusterWorkflowResp +func (c *ClientWithResponses) DeleteClusterWorkflowWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterWorkflowResp, error) { + rsp, err := c.DeleteClusterWorkflow(ctx, clusterWorkflowName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteClusterWorkflowResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSecretReferenceResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetClusterWorkflowWithResponse request returning *GetClusterWorkflowResp +func (c *ClientWithResponses) GetClusterWorkflowWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, reqEditors ...RequestEditorFn) (*GetClusterWorkflowResp, error) { + rsp, err := c.GetClusterWorkflow(ctx, clusterWorkflowName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetClusterWorkflowResp(rsp) } -type GetSecretReferenceResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SecretReference - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// UpdateClusterWorkflowWithBodyWithResponse request with arbitrary body returning *UpdateClusterWorkflowResp +func (c *ClientWithResponses) UpdateClusterWorkflowWithBodyWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowResp, error) { + rsp, err := c.UpdateClusterWorkflowWithBody(ctx, clusterWorkflowName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateClusterWorkflowResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetSecretReferenceResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateClusterWorkflowWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, body UpdateClusterWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowResp, error) { + rsp, err := c.UpdateClusterWorkflow(ctx, clusterWorkflowName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateClusterWorkflowResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetSecretReferenceResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetClusterWorkflowSchemaWithResponse request returning *GetClusterWorkflowSchemaResp +func (c *ClientWithResponses) GetClusterWorkflowSchemaWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, reqEditors ...RequestEditorFn) (*GetClusterWorkflowSchemaResp, error) { + rsp, err := c.GetClusterWorkflowSchema(ctx, clusterWorkflowName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetClusterWorkflowSchemaResp(rsp) } -type UpdateSecretReferenceResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SecretReference - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// ListNamespacesWithResponse request returning *ListNamespacesResp +func (c *ClientWithResponses) ListNamespacesWithResponse(ctx context.Context, params *ListNamespacesParams, reqEditors ...RequestEditorFn) (*ListNamespacesResp, error) { + rsp, err := c.ListNamespaces(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListNamespacesResp(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateSecretReferenceResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreateNamespaceWithBodyWithResponse request with arbitrary body returning *CreateNamespaceResp +func (c *ClientWithResponses) CreateNamespaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceResp, error) { + rsp, err := c.CreateNamespaceWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateNamespaceResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSecretReferenceResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CreateNamespaceWithResponse(ctx context.Context, body CreateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceResp, error) { + rsp, err := c.CreateNamespace(ctx, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateNamespaceResp(rsp) } -type ListTraitsResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *TraitList - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON500 *InternalError +// DeleteNamespaceWithResponse request returning *DeleteNamespaceResp +func (c *ClientWithResponses) DeleteNamespaceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*DeleteNamespaceResp, error) { + rsp, err := c.DeleteNamespace(ctx, namespaceName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteNamespaceResp(rsp) } -// Status returns HTTPResponse.Status -func (r ListTraitsResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetNamespaceWithResponse request returning *GetNamespaceResp +func (c *ClientWithResponses) GetNamespaceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*GetNamespaceResp, error) { + rsp, err := c.GetNamespace(ctx, namespaceName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetNamespaceResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListTraitsResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateNamespaceWithBodyWithResponse request with arbitrary body returning *UpdateNamespaceResp +func (c *ClientWithResponses) UpdateNamespaceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceResp, error) { + rsp, err := c.UpdateNamespaceWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateNamespaceResp(rsp) } -type CreateTraitResp struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Trait - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON409 *Conflict - JSON500 *InternalError +func (c *ClientWithResponses) UpdateNamespaceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body UpdateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceResp, error) { + rsp, err := c.UpdateNamespace(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateNamespaceResp(rsp) } -// Status returns HTTPResponse.Status -func (r CreateTraitResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListNamespaceRoleBindingsWithResponse request returning *ListNamespaceRoleBindingsResp +func (c *ClientWithResponses) ListNamespaceRoleBindingsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListNamespaceRoleBindingsParams, reqEditors ...RequestEditorFn) (*ListNamespaceRoleBindingsResp, error) { + rsp, err := c.ListNamespaceRoleBindings(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListNamespaceRoleBindingsResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateTraitResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CreateNamespaceRoleBindingWithBodyWithResponse request with arbitrary body returning *CreateNamespaceRoleBindingResp +func (c *ClientWithResponses) CreateNamespaceRoleBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleBindingResp, error) { + rsp, err := c.CreateNamespaceRoleBindingWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateNamespaceRoleBindingResp(rsp) } -type DeleteTraitResp struct { - Body []byte - HTTPResponse *http.Response - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +func (c *ClientWithResponses) CreateNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateNamespaceRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleBindingResp, error) { + rsp, err := c.CreateNamespaceRoleBinding(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateNamespaceRoleBindingResp(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteTraitResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteNamespaceRoleBindingWithResponse request returning *DeleteNamespaceRoleBindingResp +func (c *ClientWithResponses) DeleteNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*DeleteNamespaceRoleBindingResp, error) { + rsp, err := c.DeleteNamespaceRoleBinding(ctx, namespaceName, name, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteNamespaceRoleBindingResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteTraitResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetNamespaceRoleBindingWithResponse request returning *GetNamespaceRoleBindingResp +func (c *ClientWithResponses) GetNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*GetNamespaceRoleBindingResp, error) { + rsp, err := c.GetNamespaceRoleBinding(ctx, namespaceName, name, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetNamespaceRoleBindingResp(rsp) } -type GetTraitResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Trait - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// UpdateNamespaceRoleBindingWithBodyWithResponse request with arbitrary body returning *UpdateNamespaceRoleBindingResp +func (c *ClientWithResponses) UpdateNamespaceRoleBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleBindingResp, error) { + rsp, err := c.UpdateNamespaceRoleBindingWithBody(ctx, namespaceName, name, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateNamespaceRoleBindingResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetTraitResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, body UpdateNamespaceRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleBindingResp, error) { + rsp, err := c.UpdateNamespaceRoleBinding(ctx, namespaceName, name, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateNamespaceRoleBindingResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetTraitResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListNamespaceRolesWithResponse request returning *ListNamespaceRolesResp +func (c *ClientWithResponses) ListNamespaceRolesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListNamespaceRolesParams, reqEditors ...RequestEditorFn) (*ListNamespaceRolesResp, error) { + rsp, err := c.ListNamespaceRoles(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListNamespaceRolesResp(rsp) } -type UpdateTraitResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Trait - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON409 *Conflict - JSON500 *InternalError +// CreateNamespaceRoleWithBodyWithResponse request with arbitrary body returning *CreateNamespaceRoleResp +func (c *ClientWithResponses) CreateNamespaceRoleWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleResp, error) { + rsp, err := c.CreateNamespaceRoleWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateNamespaceRoleResp(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateTraitResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateNamespaceRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleResp, error) { + rsp, err := c.CreateNamespaceRole(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateNamespaceRoleResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateTraitResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteNamespaceRoleWithResponse request returning *DeleteNamespaceRoleResp +func (c *ClientWithResponses) DeleteNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*DeleteNamespaceRoleResp, error) { + rsp, err := c.DeleteNamespaceRole(ctx, namespaceName, name, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteNamespaceRoleResp(rsp) } -type GetTraitSchemaResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SchemaResponse - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// GetNamespaceRoleWithResponse request returning *GetNamespaceRoleResp +func (c *ClientWithResponses) GetNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*GetNamespaceRoleResp, error) { + rsp, err := c.GetNamespaceRole(ctx, namespaceName, name, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetNamespaceRoleResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetTraitSchemaResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateNamespaceRoleWithBodyWithResponse request with arbitrary body returning *UpdateNamespaceRoleResp +func (c *ClientWithResponses) UpdateNamespaceRoleWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleResp, error) { + rsp, err := c.UpdateNamespaceRoleWithBody(ctx, namespaceName, name, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateNamespaceRoleResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetTraitSchemaResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, body UpdateNamespaceRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleResp, error) { + rsp, err := c.UpdateNamespaceRole(ctx, namespaceName, name, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateNamespaceRoleResp(rsp) } -type ListWorkflowPlanesResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkflowPlaneList - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON500 *InternalError +// ListComponentReleasesWithResponse request returning *ListComponentReleasesResp +func (c *ClientWithResponses) ListComponentReleasesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListComponentReleasesParams, reqEditors ...RequestEditorFn) (*ListComponentReleasesResp, error) { + rsp, err := c.ListComponentReleases(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListComponentReleasesResp(rsp) } -// Status returns HTTPResponse.Status -func (r ListWorkflowPlanesResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreateComponentReleaseWithBodyWithResponse request with arbitrary body returning *CreateComponentReleaseResp +func (c *ClientWithResponses) CreateComponentReleaseWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateComponentReleaseResp, error) { + rsp, err := c.CreateComponentReleaseWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateComponentReleaseResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListWorkflowPlanesResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CreateComponentReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateComponentReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateComponentReleaseResp, error) { + rsp, err := c.CreateComponentRelease(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateComponentReleaseResp(rsp) } -type CreateWorkflowPlaneResp struct { - Body []byte - HTTPResponse *http.Response - JSON201 *WorkflowPlane - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON409 *Conflict - JSON500 *InternalError +// DeleteComponentReleaseWithResponse request returning *DeleteComponentReleaseResp +func (c *ClientWithResponses) DeleteComponentReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentReleaseName ComponentReleaseNameParam, reqEditors ...RequestEditorFn) (*DeleteComponentReleaseResp, error) { + rsp, err := c.DeleteComponentRelease(ctx, namespaceName, componentReleaseName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteComponentReleaseResp(rsp) } -// Status returns HTTPResponse.Status -func (r CreateWorkflowPlaneResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetComponentReleaseWithResponse request returning *GetComponentReleaseResp +func (c *ClientWithResponses) GetComponentReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentReleaseName ComponentReleaseNameParam, reqEditors ...RequestEditorFn) (*GetComponentReleaseResp, error) { + rsp, err := c.GetComponentRelease(ctx, namespaceName, componentReleaseName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetComponentReleaseResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateWorkflowPlaneResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListComponentsWithResponse request returning *ListComponentsResp +func (c *ClientWithResponses) ListComponentsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListComponentsParams, reqEditors ...RequestEditorFn) (*ListComponentsResp, error) { + rsp, err := c.ListComponents(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListComponentsResp(rsp) } -type DeleteWorkflowPlaneResp struct { - Body []byte - HTTPResponse *http.Response - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// CreateComponentWithBodyWithResponse request with arbitrary body returning *CreateComponentResp +func (c *ClientWithResponses) CreateComponentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateComponentResp, error) { + rsp, err := c.CreateComponentWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateComponentResp(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteWorkflowPlaneResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateComponentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateComponentResp, error) { + rsp, err := c.CreateComponent(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateComponentResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteWorkflowPlaneResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteComponentWithResponse request returning *DeleteComponentResp +func (c *ClientWithResponses) DeleteComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, reqEditors ...RequestEditorFn) (*DeleteComponentResp, error) { + rsp, err := c.DeleteComponent(ctx, namespaceName, componentName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteComponentResp(rsp) } -type GetWorkflowPlaneResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkflowPlane - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// GetComponentWithResponse request returning *GetComponentResp +func (c *ClientWithResponses) GetComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, reqEditors ...RequestEditorFn) (*GetComponentResp, error) { + rsp, err := c.GetComponent(ctx, namespaceName, componentName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetComponentResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetWorkflowPlaneResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateComponentWithBodyWithResponse request with arbitrary body returning *UpdateComponentResp +func (c *ClientWithResponses) UpdateComponentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateComponentResp, error) { + rsp, err := c.UpdateComponentWithBody(ctx, namespaceName, componentName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateComponentResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetWorkflowPlaneResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, body UpdateComponentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateComponentResp, error) { + rsp, err := c.UpdateComponent(ctx, namespaceName, componentName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateComponentResp(rsp) } -type UpdateWorkflowPlaneResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkflowPlane - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON409 *Conflict - JSON500 *InternalError +// GenerateReleaseWithBodyWithResponse request with arbitrary body returning *GenerateReleaseResp +func (c *ClientWithResponses) GenerateReleaseWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateReleaseResp, error) { + rsp, err := c.GenerateReleaseWithBody(ctx, namespaceName, componentName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGenerateReleaseResp(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateWorkflowPlaneResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) GenerateReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, body GenerateReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateReleaseResp, error) { + rsp, err := c.GenerateRelease(ctx, namespaceName, componentName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGenerateReleaseResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateWorkflowPlaneResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetComponentSchemaWithResponse request returning *GetComponentSchemaResp +func (c *ClientWithResponses) GetComponentSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, reqEditors ...RequestEditorFn) (*GetComponentSchemaResp, error) { + rsp, err := c.GetComponentSchema(ctx, namespaceName, componentName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetComponentSchemaResp(rsp) } -type ListWorkflowRunsResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkflowRunList - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON500 *InternalError +// ListComponentTypesWithResponse request returning *ListComponentTypesResp +func (c *ClientWithResponses) ListComponentTypesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListComponentTypesParams, reqEditors ...RequestEditorFn) (*ListComponentTypesResp, error) { + rsp, err := c.ListComponentTypes(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListComponentTypesResp(rsp) } -// Status returns HTTPResponse.Status -func (r ListWorkflowRunsResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreateComponentTypeWithBodyWithResponse request with arbitrary body returning *CreateComponentTypeResp +func (c *ClientWithResponses) CreateComponentTypeWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateComponentTypeResp, error) { + rsp, err := c.CreateComponentTypeWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateComponentTypeResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListWorkflowRunsResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CreateComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateComponentTypeResp, error) { + rsp, err := c.CreateComponentType(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateComponentTypeResp(rsp) } -type CreateWorkflowRunResp struct { - Body []byte - HTTPResponse *http.Response - JSON201 *WorkflowRun - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// DeleteComponentTypeWithResponse request returning *DeleteComponentTypeResp +func (c *ClientWithResponses) DeleteComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, reqEditors ...RequestEditorFn) (*DeleteComponentTypeResp, error) { + rsp, err := c.DeleteComponentType(ctx, namespaceName, ctName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteComponentTypeResp(rsp) } -// Status returns HTTPResponse.Status -func (r CreateWorkflowRunResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetComponentTypeWithResponse request returning *GetComponentTypeResp +func (c *ClientWithResponses) GetComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetComponentTypeResp, error) { + rsp, err := c.GetComponentType(ctx, namespaceName, ctName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetComponentTypeResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateWorkflowRunResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateComponentTypeWithBodyWithResponse request with arbitrary body returning *UpdateComponentTypeResp +func (c *ClientWithResponses) UpdateComponentTypeWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateComponentTypeResp, error) { + rsp, err := c.UpdateComponentTypeWithBody(ctx, namespaceName, ctName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateComponentTypeResp(rsp) } -type GetWorkflowRunResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkflowRun - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +func (c *ClientWithResponses) UpdateComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, body UpdateComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateComponentTypeResp, error) { + rsp, err := c.UpdateComponentType(ctx, namespaceName, ctName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateComponentTypeResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetWorkflowRunResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetComponentTypeSchemaWithResponse request returning *GetComponentTypeSchemaResp +func (c *ClientWithResponses) GetComponentTypeSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetComponentTypeSchemaResp, error) { + rsp, err := c.GetComponentTypeSchema(ctx, namespaceName, ctName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetComponentTypeSchemaResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetWorkflowRunResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListDataPlanesWithResponse request returning *ListDataPlanesResp +func (c *ClientWithResponses) ListDataPlanesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListDataPlanesParams, reqEditors ...RequestEditorFn) (*ListDataPlanesResp, error) { + rsp, err := c.ListDataPlanes(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListDataPlanesResp(rsp) } -type UpdateWorkflowRunResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkflowRun - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// CreateDataPlaneWithBodyWithResponse request with arbitrary body returning *CreateDataPlaneResp +func (c *ClientWithResponses) CreateDataPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDataPlaneResp, error) { + rsp, err := c.CreateDataPlaneWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateDataPlaneResp(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateWorkflowRunResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDataPlaneResp, error) { + rsp, err := c.CreateDataPlane(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateDataPlaneResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateWorkflowRunResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteDataPlaneWithResponse request returning *DeleteDataPlaneResp +func (c *ClientWithResponses) DeleteDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteDataPlaneResp, error) { + rsp, err := c.DeleteDataPlane(ctx, namespaceName, dpName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteDataPlaneResp(rsp) } -type GetWorkflowRunEventsResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]WorkflowRunEventEntry - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// GetDataPlaneWithResponse request returning *GetDataPlaneResp +func (c *ClientWithResponses) GetDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, reqEditors ...RequestEditorFn) (*GetDataPlaneResp, error) { + rsp, err := c.GetDataPlane(ctx, namespaceName, dpName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDataPlaneResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetWorkflowRunEventsResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateDataPlaneWithBodyWithResponse request with arbitrary body returning *UpdateDataPlaneResp +func (c *ClientWithResponses) UpdateDataPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDataPlaneResp, error) { + rsp, err := c.UpdateDataPlaneWithBody(ctx, namespaceName, dpName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateDataPlaneResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetWorkflowRunEventsResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, body UpdateDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDataPlaneResp, error) { + rsp, err := c.UpdateDataPlane(ctx, namespaceName, dpName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateDataPlaneResp(rsp) } -type GetWorkflowRunLogsResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]WorkflowRunLogEntry - JSON400 *BadRequest - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// ListDeploymentPipelinesWithResponse request returning *ListDeploymentPipelinesResp +func (c *ClientWithResponses) ListDeploymentPipelinesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListDeploymentPipelinesParams, reqEditors ...RequestEditorFn) (*ListDeploymentPipelinesResp, error) { + rsp, err := c.ListDeploymentPipelines(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListDeploymentPipelinesResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetWorkflowRunLogsResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreateDeploymentPipelineWithBodyWithResponse request with arbitrary body returning *CreateDeploymentPipelineResp +func (c *ClientWithResponses) CreateDeploymentPipelineWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDeploymentPipelineResp, error) { + rsp, err := c.CreateDeploymentPipelineWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateDeploymentPipelineResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetWorkflowRunLogsResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CreateDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateDeploymentPipelineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeploymentPipelineResp, error) { + rsp, err := c.CreateDeploymentPipeline(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateDeploymentPipelineResp(rsp) } -type GetWorkflowRunStatusResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkflowRunStatusResponse - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// DeleteDeploymentPipelineWithResponse request returning *DeleteDeploymentPipelineResp +func (c *ClientWithResponses) DeleteDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, reqEditors ...RequestEditorFn) (*DeleteDeploymentPipelineResp, error) { + rsp, err := c.DeleteDeploymentPipeline(ctx, namespaceName, deploymentPipelineName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteDeploymentPipelineResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetWorkflowRunStatusResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetDeploymentPipelineWithResponse request returning *GetDeploymentPipelineResp +func (c *ClientWithResponses) GetDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, reqEditors ...RequestEditorFn) (*GetDeploymentPipelineResp, error) { + rsp, err := c.GetDeploymentPipeline(ctx, namespaceName, deploymentPipelineName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetDeploymentPipelineResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetWorkflowRunStatusResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateDeploymentPipelineWithBodyWithResponse request with arbitrary body returning *UpdateDeploymentPipelineResp +func (c *ClientWithResponses) UpdateDeploymentPipelineWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDeploymentPipelineResp, error) { + rsp, err := c.UpdateDeploymentPipelineWithBody(ctx, namespaceName, deploymentPipelineName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateDeploymentPipelineResp(rsp) } -type ListWorkflowsResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkflowList - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON500 *InternalError +func (c *ClientWithResponses) UpdateDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, body UpdateDeploymentPipelineJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDeploymentPipelineResp, error) { + rsp, err := c.UpdateDeploymentPipeline(ctx, namespaceName, deploymentPipelineName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateDeploymentPipelineResp(rsp) } -// Status returns HTTPResponse.Status -func (r ListWorkflowsResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListEnvironmentsWithResponse request returning *ListEnvironmentsResp +func (c *ClientWithResponses) ListEnvironmentsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListEnvironmentsParams, reqEditors ...RequestEditorFn) (*ListEnvironmentsResp, error) { + rsp, err := c.ListEnvironments(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListEnvironmentsResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListWorkflowsResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CreateEnvironmentWithBodyWithResponse request with arbitrary body returning *CreateEnvironmentResp +func (c *ClientWithResponses) CreateEnvironmentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEnvironmentResp, error) { + rsp, err := c.CreateEnvironmentWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateEnvironmentResp(rsp) } -type CreateWorkflowResp struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Workflow - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON409 *Conflict - JSON500 *InternalError +func (c *ClientWithResponses) CreateEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvironmentResp, error) { + rsp, err := c.CreateEnvironment(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateEnvironmentResp(rsp) } -// Status returns HTTPResponse.Status -func (r CreateWorkflowResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteEnvironmentWithResponse request returning *DeleteEnvironmentResp +func (c *ClientWithResponses) DeleteEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResp, error) { + rsp, err := c.DeleteEnvironment(ctx, namespaceName, envName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteEnvironmentResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateWorkflowResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetEnvironmentWithResponse request returning *GetEnvironmentResp +func (c *ClientWithResponses) GetEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, reqEditors ...RequestEditorFn) (*GetEnvironmentResp, error) { + rsp, err := c.GetEnvironment(ctx, namespaceName, envName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetEnvironmentResp(rsp) } -type DeleteWorkflowResp struct { - Body []byte - HTTPResponse *http.Response - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// UpdateEnvironmentWithBodyWithResponse request with arbitrary body returning *UpdateEnvironmentResp +func (c *ClientWithResponses) UpdateEnvironmentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResp, error) { + rsp, err := c.UpdateEnvironmentWithBody(ctx, namespaceName, envName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateEnvironmentResp(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteWorkflowResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResp, error) { + rsp, err := c.UpdateEnvironment(ctx, namespaceName, envName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateEnvironmentResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteWorkflowResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListObservabilityAlertsNotificationChannelsWithResponse request returning *ListObservabilityAlertsNotificationChannelsResp +func (c *ClientWithResponses) ListObservabilityAlertsNotificationChannelsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListObservabilityAlertsNotificationChannelsParams, reqEditors ...RequestEditorFn) (*ListObservabilityAlertsNotificationChannelsResp, error) { + rsp, err := c.ListObservabilityAlertsNotificationChannels(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListObservabilityAlertsNotificationChannelsResp(rsp) } -type GetWorkflowResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Workflow - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// CreateObservabilityAlertsNotificationChannelWithBodyWithResponse request with arbitrary body returning *CreateObservabilityAlertsNotificationChannelResp +func (c *ClientWithResponses) CreateObservabilityAlertsNotificationChannelWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateObservabilityAlertsNotificationChannelResp, error) { + rsp, err := c.CreateObservabilityAlertsNotificationChannelWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateObservabilityAlertsNotificationChannelResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetWorkflowResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateObservabilityAlertsNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateObservabilityAlertsNotificationChannelResp, error) { + rsp, err := c.CreateObservabilityAlertsNotificationChannel(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateObservabilityAlertsNotificationChannelResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetWorkflowResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteObservabilityAlertsNotificationChannelWithResponse request returning *DeleteObservabilityAlertsNotificationChannelResp +func (c *ClientWithResponses) DeleteObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, reqEditors ...RequestEditorFn) (*DeleteObservabilityAlertsNotificationChannelResp, error) { + rsp, err := c.DeleteObservabilityAlertsNotificationChannel(ctx, namespaceName, observabilityAlertsNotificationChannelName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteObservabilityAlertsNotificationChannelResp(rsp) } -type UpdateWorkflowResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Workflow - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON409 *Conflict - JSON500 *InternalError +// GetObservabilityAlertsNotificationChannelWithResponse request returning *GetObservabilityAlertsNotificationChannelResp +func (c *ClientWithResponses) GetObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, reqEditors ...RequestEditorFn) (*GetObservabilityAlertsNotificationChannelResp, error) { + rsp, err := c.GetObservabilityAlertsNotificationChannel(ctx, namespaceName, observabilityAlertsNotificationChannelName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetObservabilityAlertsNotificationChannelResp(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateWorkflowResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateObservabilityAlertsNotificationChannelWithBodyWithResponse request with arbitrary body returning *UpdateObservabilityAlertsNotificationChannelResp +func (c *ClientWithResponses) UpdateObservabilityAlertsNotificationChannelWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateObservabilityAlertsNotificationChannelResp, error) { + rsp, err := c.UpdateObservabilityAlertsNotificationChannelWithBody(ctx, namespaceName, observabilityAlertsNotificationChannelName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateObservabilityAlertsNotificationChannelResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateWorkflowResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, body UpdateObservabilityAlertsNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateObservabilityAlertsNotificationChannelResp, error) { + rsp, err := c.UpdateObservabilityAlertsNotificationChannel(ctx, namespaceName, observabilityAlertsNotificationChannelName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateObservabilityAlertsNotificationChannelResp(rsp) } -type GetWorkflowSchemaResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SchemaResponse - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// ListObservabilityPlanesWithResponse request returning *ListObservabilityPlanesResp +func (c *ClientWithResponses) ListObservabilityPlanesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListObservabilityPlanesParams, reqEditors ...RequestEditorFn) (*ListObservabilityPlanesResp, error) { + rsp, err := c.ListObservabilityPlanes(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListObservabilityPlanesResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetWorkflowSchemaResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreateObservabilityPlaneWithBodyWithResponse request with arbitrary body returning *CreateObservabilityPlaneResp +func (c *ClientWithResponses) CreateObservabilityPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateObservabilityPlaneResp, error) { + rsp, err := c.CreateObservabilityPlaneWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateObservabilityPlaneResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetWorkflowSchemaResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CreateObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateObservabilityPlaneResp, error) { + rsp, err := c.CreateObservabilityPlane(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateObservabilityPlaneResp(rsp) } -type ListWorkloadsResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkloadList - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// DeleteObservabilityPlaneWithResponse request returning *DeleteObservabilityPlaneResp +func (c *ClientWithResponses) DeleteObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteObservabilityPlaneResp, error) { + rsp, err := c.DeleteObservabilityPlane(ctx, namespaceName, observabilityPlaneName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteObservabilityPlaneResp(rsp) } -// Status returns HTTPResponse.Status -func (r ListWorkloadsResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetObservabilityPlaneWithResponse request returning *GetObservabilityPlaneResp +func (c *ClientWithResponses) GetObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*GetObservabilityPlaneResp, error) { + rsp, err := c.GetObservabilityPlane(ctx, namespaceName, observabilityPlaneName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetObservabilityPlaneResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListWorkloadsResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateObservabilityPlaneWithBodyWithResponse request with arbitrary body returning *UpdateObservabilityPlaneResp +func (c *ClientWithResponses) UpdateObservabilityPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateObservabilityPlaneResp, error) { + rsp, err := c.UpdateObservabilityPlaneWithBody(ctx, namespaceName, observabilityPlaneName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateObservabilityPlaneResp(rsp) } -type CreateWorkloadResp struct { - Body []byte - HTTPResponse *http.Response - JSON201 *Workload - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON409 *Conflict - JSON500 *InternalError +func (c *ClientWithResponses) UpdateObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, body UpdateObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateObservabilityPlaneResp, error) { + rsp, err := c.UpdateObservabilityPlane(ctx, namespaceName, observabilityPlaneName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateObservabilityPlaneResp(rsp) } -// Status returns HTTPResponse.Status -func (r CreateWorkloadResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListProjectsWithResponse request returning *ListProjectsResp +func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResp, error) { + rsp, err := c.ListProjects(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListProjectsResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateWorkloadResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectResp +func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResp, error) { + rsp, err := c.CreateProjectWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateProjectResp(rsp) } -type DeleteWorkloadResp struct { - Body []byte - HTTPResponse *http.Response - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResp, error) { + rsp, err := c.CreateProject(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateProjectResp(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteWorkloadResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteProjectWithResponse request returning *DeleteProjectResp +func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, reqEditors ...RequestEditorFn) (*DeleteProjectResp, error) { + rsp, err := c.DeleteProject(ctx, namespaceName, projectName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteProjectResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteWorkloadResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetProjectWithResponse request returning *GetProjectResp +func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, reqEditors ...RequestEditorFn) (*GetProjectResp, error) { + rsp, err := c.GetProject(ctx, namespaceName, projectName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetProjectResp(rsp) } -type GetWorkloadResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Workload - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectResp +func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResp, error) { + rsp, err := c.UpdateProjectWithBody(ctx, namespaceName, projectName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateProjectResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetWorkloadResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResp, error) { + rsp, err := c.UpdateProject(ctx, namespaceName, projectName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateProjectResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetWorkloadResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListReleaseBindingsWithResponse request returning *ListReleaseBindingsResp +func (c *ClientWithResponses) ListReleaseBindingsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListReleaseBindingsParams, reqEditors ...RequestEditorFn) (*ListReleaseBindingsResp, error) { + rsp, err := c.ListReleaseBindings(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListReleaseBindingsResp(rsp) } -type UpdateWorkloadResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *Workload - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// CreateReleaseBindingWithBodyWithResponse request with arbitrary body returning *CreateReleaseBindingResp +func (c *ClientWithResponses) CreateReleaseBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReleaseBindingResp, error) { + rsp, err := c.CreateReleaseBindingWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateReleaseBindingResp(rsp) } -// Status returns HTTPResponse.Status -func (r UpdateWorkloadResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreateReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReleaseBindingResp, error) { + rsp, err := c.CreateReleaseBinding(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateReleaseBindingResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateWorkloadResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteReleaseBindingWithResponse request returning *DeleteReleaseBindingResp +func (c *ClientWithResponses) DeleteReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*DeleteReleaseBindingResp, error) { + rsp, err := c.DeleteReleaseBinding(ctx, namespaceName, releaseBindingName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteReleaseBindingResp(rsp) } -type HandleAutoBuildResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WebhookEventResponse - JSON400 *BadRequest - JSON401 *Unauthorized - JSON500 *InternalError +// GetReleaseBindingWithResponse request returning *GetReleaseBindingResp +func (c *ClientWithResponses) GetReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*GetReleaseBindingResp, error) { + rsp, err := c.GetReleaseBinding(ctx, namespaceName, releaseBindingName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReleaseBindingResp(rsp) } -// Status returns HTTPResponse.Status -func (r HandleAutoBuildResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdateReleaseBindingWithBodyWithResponse request with arbitrary body returning *UpdateReleaseBindingResp +func (c *ClientWithResponses) UpdateReleaseBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReleaseBindingResp, error) { + rsp, err := c.UpdateReleaseBindingWithBody(ctx, namespaceName, releaseBindingName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdateReleaseBindingResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r HandleAutoBuildResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) UpdateReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, body UpdateReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReleaseBindingResp, error) { + rsp, err := c.UpdateReleaseBinding(ctx, namespaceName, releaseBindingName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateReleaseBindingResp(rsp) } -type ListGitSecretsResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *GitSecretListResponse - JSON401 *Unauthorized - JSON403 *Forbidden - JSON500 *InternalError +// GetReleaseBindingK8sResourceEventsWithResponse request returning *GetReleaseBindingK8sResourceEventsResp +func (c *ClientWithResponses) GetReleaseBindingK8sResourceEventsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, params *GetReleaseBindingK8sResourceEventsParams, reqEditors ...RequestEditorFn) (*GetReleaseBindingK8sResourceEventsResp, error) { + rsp, err := c.GetReleaseBindingK8sResourceEvents(ctx, namespaceName, releaseBindingName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReleaseBindingK8sResourceEventsResp(rsp) } -// Status returns HTTPResponse.Status -func (r ListGitSecretsResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetReleaseBindingK8sResourceLogsWithResponse request returning *GetReleaseBindingK8sResourceLogsResp +func (c *ClientWithResponses) GetReleaseBindingK8sResourceLogsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, params *GetReleaseBindingK8sResourceLogsParams, reqEditors ...RequestEditorFn) (*GetReleaseBindingK8sResourceLogsResp, error) { + rsp, err := c.GetReleaseBindingK8sResourceLogs(ctx, namespaceName, releaseBindingName, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetReleaseBindingK8sResourceLogsResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r ListGitSecretsResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetReleaseBindingK8sResourceTreeWithResponse request returning *GetReleaseBindingK8sResourceTreeResp +func (c *ClientWithResponses) GetReleaseBindingK8sResourceTreeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*GetReleaseBindingK8sResourceTreeResp, error) { + rsp, err := c.GetReleaseBindingK8sResourceTree(ctx, namespaceName, releaseBindingName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetReleaseBindingK8sResourceTreeResp(rsp) } -type CreateGitSecretResp struct { - Body []byte - HTTPResponse *http.Response - JSON201 *GitSecretResponse - JSON400 *BadRequest - JSON401 *Unauthorized - JSON403 *Forbidden - JSON409 *Conflict - JSON500 *InternalError +// ListResourceReleaseBindingsWithResponse request returning *ListResourceReleaseBindingsResp +func (c *ClientWithResponses) ListResourceReleaseBindingsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourceReleaseBindingsParams, reqEditors ...RequestEditorFn) (*ListResourceReleaseBindingsResp, error) { + rsp, err := c.ListResourceReleaseBindings(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListResourceReleaseBindingsResp(rsp) } -// Status returns HTTPResponse.Status -func (r CreateGitSecretResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreateResourceReleaseBindingWithBodyWithResponse request with arbitrary body returning *CreateResourceReleaseBindingResp +func (c *ClientWithResponses) CreateResourceReleaseBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResourceReleaseBindingResp, error) { + rsp, err := c.CreateResourceReleaseBindingWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateResourceReleaseBindingResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r CreateGitSecretResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CreateResourceReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResourceReleaseBindingResp, error) { + rsp, err := c.CreateResourceReleaseBinding(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateResourceReleaseBindingResp(rsp) } -type DeleteGitSecretResp struct { - Body []byte - HTTPResponse *http.Response - JSON401 *Unauthorized - JSON403 *Forbidden - JSON404 *NotFound - JSON500 *InternalError +// DeleteResourceReleaseBindingWithResponse request returning *DeleteResourceReleaseBindingResp +func (c *ClientWithResponses) DeleteResourceReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*DeleteResourceReleaseBindingResp, error) { + rsp, err := c.DeleteResourceReleaseBinding(ctx, namespaceName, resourceReleaseBindingName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteResourceReleaseBindingResp(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteGitSecretResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetResourceReleaseBindingWithResponse request returning *GetResourceReleaseBindingResp +func (c *ClientWithResponses) GetResourceReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*GetResourceReleaseBindingResp, error) { + rsp, err := c.GetResourceReleaseBinding(ctx, namespaceName, resourceReleaseBindingName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetResourceReleaseBindingResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteGitSecretResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateResourceReleaseBindingWithBodyWithResponse request with arbitrary body returning *UpdateResourceReleaseBindingResp +func (c *ClientWithResponses) UpdateResourceReleaseBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResourceReleaseBindingResp, error) { + rsp, err := c.UpdateResourceReleaseBindingWithBody(ctx, namespaceName, resourceReleaseBindingName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateResourceReleaseBindingResp(rsp) } -type GetHealthResp struct { - Body []byte - HTTPResponse *http.Response +func (c *ClientWithResponses) UpdateResourceReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseBindingName ResourceReleaseBindingNameParam, body UpdateResourceReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResourceReleaseBindingResp, error) { + rsp, err := c.UpdateResourceReleaseBinding(ctx, namespaceName, resourceReleaseBindingName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateResourceReleaseBindingResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetHealthResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListResourceReleasesWithResponse request returning *ListResourceReleasesResp +func (c *ClientWithResponses) ListResourceReleasesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourceReleasesParams, reqEditors ...RequestEditorFn) (*ListResourceReleasesResp, error) { + rsp, err := c.ListResourceReleases(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListResourceReleasesResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetHealthResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// CreateResourceReleaseWithBodyWithResponse request with arbitrary body returning *CreateResourceReleaseResp +func (c *ClientWithResponses) CreateResourceReleaseWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResourceReleaseResp, error) { + rsp, err := c.CreateResourceReleaseWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateResourceReleaseResp(rsp) } -type GetOpenAPISpecResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *map[string]interface{} +func (c *ClientWithResponses) CreateResourceReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResourceReleaseResp, error) { + rsp, err := c.CreateResourceRelease(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateResourceReleaseResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetOpenAPISpecResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// DeleteResourceReleaseWithResponse request returning *DeleteResourceReleaseResp +func (c *ClientWithResponses) DeleteResourceReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseName ResourceReleaseNameParam, reqEditors ...RequestEditorFn) (*DeleteResourceReleaseResp, error) { + rsp, err := c.DeleteResourceRelease(ctx, namespaceName, resourceReleaseName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseDeleteResourceReleaseResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetOpenAPISpecResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetResourceReleaseWithResponse request returning *GetResourceReleaseResp +func (c *ClientWithResponses) GetResourceReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceReleaseName ResourceReleaseNameParam, reqEditors ...RequestEditorFn) (*GetResourceReleaseResp, error) { + rsp, err := c.GetResourceRelease(ctx, namespaceName, resourceReleaseName, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetResourceReleaseResp(rsp) } -type GetReadyResp struct { - Body []byte - HTTPResponse *http.Response +// ListResourcesWithResponse request returning *ListResourcesResp +func (c *ClientWithResponses) ListResourcesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourcesParams, reqEditors ...RequestEditorFn) (*ListResourcesResp, error) { + rsp, err := c.ListResources(ctx, namespaceName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListResourcesResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetReadyResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreateResourceWithBodyWithResponse request with arbitrary body returning *CreateResourceResp +func (c *ClientWithResponses) CreateResourceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResourceResp, error) { + rsp, err := c.CreateResourceWithBody(ctx, namespaceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreateResourceResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetReadyResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) CreateResourceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResourceResp, error) { + rsp, err := c.CreateResource(ctx, namespaceName, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseCreateResourceResp(rsp) } -type GetVersionResp struct { - Body []byte - HTTPResponse *http.Response - JSON200 *VersionResponse +// DeleteResourceWithResponse request returning *DeleteResourceResp +func (c *ClientWithResponses) DeleteResourceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, reqEditors ...RequestEditorFn) (*DeleteResourceResp, error) { + rsp, err := c.DeleteResource(ctx, namespaceName, resourceName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteResourceResp(rsp) } -// Status returns HTTPResponse.Status -func (r GetVersionResp) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetResourceWithResponse request returning *GetResourceResp +func (c *ClientWithResponses) GetResourceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, reqEditors ...RequestEditorFn) (*GetResourceResp, error) { + rsp, err := c.GetResource(ctx, namespaceName, resourceName, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetResourceResp(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetVersionResp) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// UpdateResourceWithBodyWithResponse request with arbitrary body returning *UpdateResourceResp +func (c *ClientWithResponses) UpdateResourceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResourceResp, error) { + rsp, err := c.UpdateResourceWithBody(ctx, namespaceName, resourceName, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseUpdateResourceResp(rsp) } -// GetOAuthProtectedResourceMetadataWithResponse request returning *GetOAuthProtectedResourceMetadataResp -func (c *ClientWithResponses) GetOAuthProtectedResourceMetadataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOAuthProtectedResourceMetadataResp, error) { - rsp, err := c.GetOAuthProtectedResourceMetadata(ctx, reqEditors...) +func (c *ClientWithResponses) UpdateResourceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, resourceName ResourceNameParam, body UpdateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResourceResp, error) { + rsp, err := c.UpdateResource(ctx, namespaceName, resourceName, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOAuthProtectedResourceMetadataResp(rsp) + return ParseUpdateResourceResp(rsp) } -// ListSubjectTypesWithResponse request returning *ListSubjectTypesResp -func (c *ClientWithResponses) ListSubjectTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSubjectTypesResp, error) { - rsp, err := c.ListSubjectTypes(ctx, reqEditors...) +// ListResourceTypesWithResponse request returning *ListResourceTypesResp +func (c *ClientWithResponses) ListResourceTypesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListResourceTypesParams, reqEditors ...RequestEditorFn) (*ListResourceTypesResp, error) { + rsp, err := c.ListResourceTypes(ctx, namespaceName, params, reqEditors...) if err != nil { return nil, err } - return ParseListSubjectTypesResp(rsp) + return ParseListResourceTypesResp(rsp) } -// ListActionsWithResponse request returning *ListActionsResp -func (c *ClientWithResponses) ListActionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListActionsResp, error) { - rsp, err := c.ListActions(ctx, reqEditors...) +// CreateResourceTypeWithBodyWithResponse request with arbitrary body returning *CreateResourceTypeResp +func (c *ClientWithResponses) CreateResourceTypeWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResourceTypeResp, error) { + rsp, err := c.CreateResourceTypeWithBody(ctx, namespaceName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseListActionsResp(rsp) + return ParseCreateResourceTypeResp(rsp) } -// EvaluatesWithBodyWithResponse request with arbitrary body returning *EvaluatesResp -func (c *ClientWithResponses) EvaluatesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EvaluatesResp, error) { - rsp, err := c.EvaluatesWithBody(ctx, contentType, body, reqEditors...) +func (c *ClientWithResponses) CreateResourceTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResourceTypeResp, error) { + rsp, err := c.CreateResourceType(ctx, namespaceName, body, reqEditors...) if err != nil { return nil, err } - return ParseEvaluatesResp(rsp) + return ParseCreateResourceTypeResp(rsp) } -func (c *ClientWithResponses) EvaluatesWithResponse(ctx context.Context, body EvaluatesJSONRequestBody, reqEditors ...RequestEditorFn) (*EvaluatesResp, error) { - rsp, err := c.Evaluates(ctx, body, reqEditors...) +// DeleteResourceTypeWithResponse request returning *DeleteResourceTypeResp +func (c *ClientWithResponses) DeleteResourceTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, reqEditors ...RequestEditorFn) (*DeleteResourceTypeResp, error) { + rsp, err := c.DeleteResourceType(ctx, namespaceName, rtName, reqEditors...) if err != nil { return nil, err } - return ParseEvaluatesResp(rsp) + return ParseDeleteResourceTypeResp(rsp) } -// GetSubjectProfileWithResponse request returning *GetSubjectProfileResp -func (c *ClientWithResponses) GetSubjectProfileWithResponse(ctx context.Context, params *GetSubjectProfileParams, reqEditors ...RequestEditorFn) (*GetSubjectProfileResp, error) { - rsp, err := c.GetSubjectProfile(ctx, params, reqEditors...) +// GetResourceTypeWithResponse request returning *GetResourceTypeResp +func (c *ClientWithResponses) GetResourceTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, reqEditors ...RequestEditorFn) (*GetResourceTypeResp, error) { + rsp, err := c.GetResourceType(ctx, namespaceName, rtName, reqEditors...) if err != nil { return nil, err } - return ParseGetSubjectProfileResp(rsp) + return ParseGetResourceTypeResp(rsp) } -// ListClusterRoleBindingsWithResponse request returning *ListClusterRoleBindingsResp -func (c *ClientWithResponses) ListClusterRoleBindingsWithResponse(ctx context.Context, params *ListClusterRoleBindingsParams, reqEditors ...RequestEditorFn) (*ListClusterRoleBindingsResp, error) { - rsp, err := c.ListClusterRoleBindings(ctx, params, reqEditors...) +// UpdateResourceTypeWithBodyWithResponse request with arbitrary body returning *UpdateResourceTypeResp +func (c *ClientWithResponses) UpdateResourceTypeWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResourceTypeResp, error) { + rsp, err := c.UpdateResourceTypeWithBody(ctx, namespaceName, rtName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseListClusterRoleBindingsResp(rsp) + return ParseUpdateResourceTypeResp(rsp) } -// CreateClusterRoleBindingWithBodyWithResponse request with arbitrary body returning *CreateClusterRoleBindingResp -func (c *ClientWithResponses) CreateClusterRoleBindingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterRoleBindingResp, error) { - rsp, err := c.CreateClusterRoleBindingWithBody(ctx, contentType, body, reqEditors...) +func (c *ClientWithResponses) UpdateResourceTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, body UpdateResourceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResourceTypeResp, error) { + rsp, err := c.UpdateResourceType(ctx, namespaceName, rtName, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterRoleBindingResp(rsp) + return ParseUpdateResourceTypeResp(rsp) } -func (c *ClientWithResponses) CreateClusterRoleBindingWithResponse(ctx context.Context, body CreateClusterRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterRoleBindingResp, error) { - rsp, err := c.CreateClusterRoleBinding(ctx, body, reqEditors...) +// GetResourceTypeSchemaWithResponse request returning *GetResourceTypeSchemaResp +func (c *ClientWithResponses) GetResourceTypeSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, rtName ResourceTypeNameParam, reqEditors ...RequestEditorFn) (*GetResourceTypeSchemaResp, error) { + rsp, err := c.GetResourceTypeSchema(ctx, namespaceName, rtName, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterRoleBindingResp(rsp) + return ParseGetResourceTypeSchemaResp(rsp) } -// DeleteClusterRoleBindingWithResponse request returning *DeleteClusterRoleBindingResp -func (c *ClientWithResponses) DeleteClusterRoleBindingWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteClusterRoleBindingResp, error) { - rsp, err := c.DeleteClusterRoleBinding(ctx, name, reqEditors...) +// ListSecretReferencesWithResponse request returning *ListSecretReferencesResp +func (c *ClientWithResponses) ListSecretReferencesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListSecretReferencesParams, reqEditors ...RequestEditorFn) (*ListSecretReferencesResp, error) { + rsp, err := c.ListSecretReferences(ctx, namespaceName, params, reqEditors...) if err != nil { return nil, err } - return ParseDeleteClusterRoleBindingResp(rsp) + return ParseListSecretReferencesResp(rsp) } -// GetClusterRoleBindingWithResponse request returning *GetClusterRoleBindingResp -func (c *ClientWithResponses) GetClusterRoleBindingWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetClusterRoleBindingResp, error) { - rsp, err := c.GetClusterRoleBinding(ctx, name, reqEditors...) +// CreateSecretReferenceWithBodyWithResponse request with arbitrary body returning *CreateSecretReferenceResp +func (c *ClientWithResponses) CreateSecretReferenceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretReferenceResp, error) { + rsp, err := c.CreateSecretReferenceWithBody(ctx, namespaceName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetClusterRoleBindingResp(rsp) + return ParseCreateSecretReferenceResp(rsp) } -// UpdateClusterRoleBindingWithBodyWithResponse request with arbitrary body returning *UpdateClusterRoleBindingResp -func (c *ClientWithResponses) UpdateClusterRoleBindingWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterRoleBindingResp, error) { - rsp, err := c.UpdateClusterRoleBindingWithBody(ctx, name, contentType, body, reqEditors...) +func (c *ClientWithResponses) CreateSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateSecretReferenceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretReferenceResp, error) { + rsp, err := c.CreateSecretReference(ctx, namespaceName, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterRoleBindingResp(rsp) + return ParseCreateSecretReferenceResp(rsp) } -func (c *ClientWithResponses) UpdateClusterRoleBindingWithResponse(ctx context.Context, name string, body UpdateClusterRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterRoleBindingResp, error) { - rsp, err := c.UpdateClusterRoleBinding(ctx, name, body, reqEditors...) +// DeleteSecretReferenceWithResponse request returning *DeleteSecretReferenceResp +func (c *ClientWithResponses) DeleteSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, reqEditors ...RequestEditorFn) (*DeleteSecretReferenceResp, error) { + rsp, err := c.DeleteSecretReference(ctx, namespaceName, secretReferenceName, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterRoleBindingResp(rsp) + return ParseDeleteSecretReferenceResp(rsp) } -// ListClusterRolesWithResponse request returning *ListClusterRolesResp -func (c *ClientWithResponses) ListClusterRolesWithResponse(ctx context.Context, params *ListClusterRolesParams, reqEditors ...RequestEditorFn) (*ListClusterRolesResp, error) { - rsp, err := c.ListClusterRoles(ctx, params, reqEditors...) +// GetSecretReferenceWithResponse request returning *GetSecretReferenceResp +func (c *ClientWithResponses) GetSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, reqEditors ...RequestEditorFn) (*GetSecretReferenceResp, error) { + rsp, err := c.GetSecretReference(ctx, namespaceName, secretReferenceName, reqEditors...) if err != nil { return nil, err } - return ParseListClusterRolesResp(rsp) + return ParseGetSecretReferenceResp(rsp) } -// CreateClusterRoleWithBodyWithResponse request with arbitrary body returning *CreateClusterRoleResp -func (c *ClientWithResponses) CreateClusterRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterRoleResp, error) { - rsp, err := c.CreateClusterRoleWithBody(ctx, contentType, body, reqEditors...) +// UpdateSecretReferenceWithBodyWithResponse request with arbitrary body returning *UpdateSecretReferenceResp +func (c *ClientWithResponses) UpdateSecretReferenceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretReferenceResp, error) { + rsp, err := c.UpdateSecretReferenceWithBody(ctx, namespaceName, secretReferenceName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterRoleResp(rsp) + return ParseUpdateSecretReferenceResp(rsp) } -func (c *ClientWithResponses) CreateClusterRoleWithResponse(ctx context.Context, body CreateClusterRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterRoleResp, error) { - rsp, err := c.CreateClusterRole(ctx, body, reqEditors...) +func (c *ClientWithResponses) UpdateSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, body UpdateSecretReferenceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretReferenceResp, error) { + rsp, err := c.UpdateSecretReference(ctx, namespaceName, secretReferenceName, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterRoleResp(rsp) + return ParseUpdateSecretReferenceResp(rsp) } -// DeleteClusterRoleWithResponse request returning *DeleteClusterRoleResp -func (c *ClientWithResponses) DeleteClusterRoleWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteClusterRoleResp, error) { - rsp, err := c.DeleteClusterRole(ctx, name, reqEditors...) +// ListTraitsWithResponse request returning *ListTraitsResp +func (c *ClientWithResponses) ListTraitsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListTraitsParams, reqEditors ...RequestEditorFn) (*ListTraitsResp, error) { + rsp, err := c.ListTraits(ctx, namespaceName, params, reqEditors...) if err != nil { return nil, err } - return ParseDeleteClusterRoleResp(rsp) + return ParseListTraitsResp(rsp) } -// GetClusterRoleWithResponse request returning *GetClusterRoleResp -func (c *ClientWithResponses) GetClusterRoleWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetClusterRoleResp, error) { - rsp, err := c.GetClusterRole(ctx, name, reqEditors...) +// CreateTraitWithBodyWithResponse request with arbitrary body returning *CreateTraitResp +func (c *ClientWithResponses) CreateTraitWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTraitResp, error) { + rsp, err := c.CreateTraitWithBody(ctx, namespaceName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetClusterRoleResp(rsp) + return ParseCreateTraitResp(rsp) } -// UpdateClusterRoleWithBodyWithResponse request with arbitrary body returning *UpdateClusterRoleResp -func (c *ClientWithResponses) UpdateClusterRoleWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterRoleResp, error) { - rsp, err := c.UpdateClusterRoleWithBody(ctx, name, contentType, body, reqEditors...) +func (c *ClientWithResponses) CreateTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTraitResp, error) { + rsp, err := c.CreateTrait(ctx, namespaceName, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterRoleResp(rsp) + return ParseCreateTraitResp(rsp) } -func (c *ClientWithResponses) UpdateClusterRoleWithResponse(ctx context.Context, name string, body UpdateClusterRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterRoleResp, error) { - rsp, err := c.UpdateClusterRole(ctx, name, body, reqEditors...) +// DeleteTraitWithResponse request returning *DeleteTraitResp +func (c *ClientWithResponses) DeleteTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*DeleteTraitResp, error) { + rsp, err := c.DeleteTrait(ctx, namespaceName, traitName, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterRoleResp(rsp) + return ParseDeleteTraitResp(rsp) } -// ListClusterComponentTypesWithResponse request returning *ListClusterComponentTypesResp -func (c *ClientWithResponses) ListClusterComponentTypesWithResponse(ctx context.Context, params *ListClusterComponentTypesParams, reqEditors ...RequestEditorFn) (*ListClusterComponentTypesResp, error) { - rsp, err := c.ListClusterComponentTypes(ctx, params, reqEditors...) +// GetTraitWithResponse request returning *GetTraitResp +func (c *ClientWithResponses) GetTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*GetTraitResp, error) { + rsp, err := c.GetTrait(ctx, namespaceName, traitName, reqEditors...) if err != nil { return nil, err } - return ParseListClusterComponentTypesResp(rsp) + return ParseGetTraitResp(rsp) } -// CreateClusterComponentTypeWithBodyWithResponse request with arbitrary body returning *CreateClusterComponentTypeResp -func (c *ClientWithResponses) CreateClusterComponentTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterComponentTypeResp, error) { - rsp, err := c.CreateClusterComponentTypeWithBody(ctx, contentType, body, reqEditors...) +// UpdateTraitWithBodyWithResponse request with arbitrary body returning *UpdateTraitResp +func (c *ClientWithResponses) UpdateTraitWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTraitResp, error) { + rsp, err := c.UpdateTraitWithBody(ctx, namespaceName, traitName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterComponentTypeResp(rsp) + return ParseUpdateTraitResp(rsp) } -func (c *ClientWithResponses) CreateClusterComponentTypeWithResponse(ctx context.Context, body CreateClusterComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterComponentTypeResp, error) { - rsp, err := c.CreateClusterComponentType(ctx, body, reqEditors...) +func (c *ClientWithResponses) UpdateTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, body UpdateTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTraitResp, error) { + rsp, err := c.UpdateTrait(ctx, namespaceName, traitName, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterComponentTypeResp(rsp) + return ParseUpdateTraitResp(rsp) } -// DeleteClusterComponentTypeWithResponse request returning *DeleteClusterComponentTypeResp -func (c *ClientWithResponses) DeleteClusterComponentTypeWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterComponentTypeResp, error) { - rsp, err := c.DeleteClusterComponentType(ctx, cctName, reqEditors...) +// GetTraitSchemaWithResponse request returning *GetTraitSchemaResp +func (c *ClientWithResponses) GetTraitSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*GetTraitSchemaResp, error) { + rsp, err := c.GetTraitSchema(ctx, namespaceName, traitName, reqEditors...) if err != nil { return nil, err } - return ParseDeleteClusterComponentTypeResp(rsp) + return ParseGetTraitSchemaResp(rsp) } -// GetClusterComponentTypeWithResponse request returning *GetClusterComponentTypeResp -func (c *ClientWithResponses) GetClusterComponentTypeWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetClusterComponentTypeResp, error) { - rsp, err := c.GetClusterComponentType(ctx, cctName, reqEditors...) +// ListWorkflowPlanesWithResponse request returning *ListWorkflowPlanesResp +func (c *ClientWithResponses) ListWorkflowPlanesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowPlanesParams, reqEditors ...RequestEditorFn) (*ListWorkflowPlanesResp, error) { + rsp, err := c.ListWorkflowPlanes(ctx, namespaceName, params, reqEditors...) if err != nil { return nil, err } - return ParseGetClusterComponentTypeResp(rsp) + return ParseListWorkflowPlanesResp(rsp) } -// UpdateClusterComponentTypeWithBodyWithResponse request with arbitrary body returning *UpdateClusterComponentTypeResp -func (c *ClientWithResponses) UpdateClusterComponentTypeWithBodyWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterComponentTypeResp, error) { - rsp, err := c.UpdateClusterComponentTypeWithBody(ctx, cctName, contentType, body, reqEditors...) +// CreateWorkflowPlaneWithBodyWithResponse request with arbitrary body returning *CreateWorkflowPlaneResp +func (c *ClientWithResponses) CreateWorkflowPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkflowPlaneResp, error) { + rsp, err := c.CreateWorkflowPlaneWithBody(ctx, namespaceName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterComponentTypeResp(rsp) + return ParseCreateWorkflowPlaneResp(rsp) } -func (c *ClientWithResponses) UpdateClusterComponentTypeWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, body UpdateClusterComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterComponentTypeResp, error) { - rsp, err := c.UpdateClusterComponentType(ctx, cctName, body, reqEditors...) +func (c *ClientWithResponses) CreateWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkflowPlaneResp, error) { + rsp, err := c.CreateWorkflowPlane(ctx, namespaceName, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterComponentTypeResp(rsp) + return ParseCreateWorkflowPlaneResp(rsp) } -// GetClusterComponentTypeSchemaWithResponse request returning *GetClusterComponentTypeSchemaResp -func (c *ClientWithResponses) GetClusterComponentTypeSchemaWithResponse(ctx context.Context, cctName ClusterComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetClusterComponentTypeSchemaResp, error) { - rsp, err := c.GetClusterComponentTypeSchema(ctx, cctName, reqEditors...) +// DeleteWorkflowPlaneWithResponse request returning *DeleteWorkflowPlaneResp +func (c *ClientWithResponses) DeleteWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkflowPlaneResp, error) { + rsp, err := c.DeleteWorkflowPlane(ctx, namespaceName, workflowPlaneName, reqEditors...) if err != nil { return nil, err } - return ParseGetClusterComponentTypeSchemaResp(rsp) + return ParseDeleteWorkflowPlaneResp(rsp) } -// ListClusterDataPlanesWithResponse request returning *ListClusterDataPlanesResp -func (c *ClientWithResponses) ListClusterDataPlanesWithResponse(ctx context.Context, params *ListClusterDataPlanesParams, reqEditors ...RequestEditorFn) (*ListClusterDataPlanesResp, error) { - rsp, err := c.ListClusterDataPlanes(ctx, params, reqEditors...) +// GetWorkflowPlaneWithResponse request returning *GetWorkflowPlaneResp +func (c *ClientWithResponses) GetWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowPlaneResp, error) { + rsp, err := c.GetWorkflowPlane(ctx, namespaceName, workflowPlaneName, reqEditors...) if err != nil { return nil, err } - return ParseListClusterDataPlanesResp(rsp) + return ParseGetWorkflowPlaneResp(rsp) } -// CreateClusterDataPlaneWithBodyWithResponse request with arbitrary body returning *CreateClusterDataPlaneResp -func (c *ClientWithResponses) CreateClusterDataPlaneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterDataPlaneResp, error) { - rsp, err := c.CreateClusterDataPlaneWithBody(ctx, contentType, body, reqEditors...) +// UpdateWorkflowPlaneWithBodyWithResponse request with arbitrary body returning *UpdateWorkflowPlaneResp +func (c *ClientWithResponses) UpdateWorkflowPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowPlaneResp, error) { + rsp, err := c.UpdateWorkflowPlaneWithBody(ctx, namespaceName, workflowPlaneName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterDataPlaneResp(rsp) + return ParseUpdateWorkflowPlaneResp(rsp) } -func (c *ClientWithResponses) CreateClusterDataPlaneWithResponse(ctx context.Context, body CreateClusterDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterDataPlaneResp, error) { - rsp, err := c.CreateClusterDataPlane(ctx, body, reqEditors...) +func (c *ClientWithResponses) UpdateWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, body UpdateWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkflowPlaneResp, error) { + rsp, err := c.UpdateWorkflowPlane(ctx, namespaceName, workflowPlaneName, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterDataPlaneResp(rsp) + return ParseUpdateWorkflowPlaneResp(rsp) } -// DeleteClusterDataPlaneWithResponse request returning *DeleteClusterDataPlaneResp -func (c *ClientWithResponses) DeleteClusterDataPlaneWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterDataPlaneResp, error) { - rsp, err := c.DeleteClusterDataPlane(ctx, cdpName, reqEditors...) +// ListWorkflowRunsWithResponse request returning *ListWorkflowRunsResp +func (c *ClientWithResponses) ListWorkflowRunsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowRunsParams, reqEditors ...RequestEditorFn) (*ListWorkflowRunsResp, error) { + rsp, err := c.ListWorkflowRuns(ctx, namespaceName, params, reqEditors...) if err != nil { return nil, err } - return ParseDeleteClusterDataPlaneResp(rsp) + return ParseListWorkflowRunsResp(rsp) } -// GetClusterDataPlaneWithResponse request returning *GetClusterDataPlaneResp -func (c *ClientWithResponses) GetClusterDataPlaneWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, reqEditors ...RequestEditorFn) (*GetClusterDataPlaneResp, error) { - rsp, err := c.GetClusterDataPlane(ctx, cdpName, reqEditors...) +// CreateWorkflowRunWithBodyWithResponse request with arbitrary body returning *CreateWorkflowRunResp +func (c *ClientWithResponses) CreateWorkflowRunWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkflowRunResp, error) { + rsp, err := c.CreateWorkflowRunWithBody(ctx, namespaceName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetClusterDataPlaneResp(rsp) + return ParseCreateWorkflowRunResp(rsp) } -// UpdateClusterDataPlaneWithBodyWithResponse request with arbitrary body returning *UpdateClusterDataPlaneResp -func (c *ClientWithResponses) UpdateClusterDataPlaneWithBodyWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterDataPlaneResp, error) { - rsp, err := c.UpdateClusterDataPlaneWithBody(ctx, cdpName, contentType, body, reqEditors...) +func (c *ClientWithResponses) CreateWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkflowRunResp, error) { + rsp, err := c.CreateWorkflowRun(ctx, namespaceName, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterDataPlaneResp(rsp) + return ParseCreateWorkflowRunResp(rsp) } -func (c *ClientWithResponses) UpdateClusterDataPlaneWithResponse(ctx context.Context, cdpName ClusterDataPlaneNameParam, body UpdateClusterDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterDataPlaneResp, error) { - rsp, err := c.UpdateClusterDataPlane(ctx, cdpName, body, reqEditors...) +// DeleteWorkflowRunWithResponse request returning *DeleteWorkflowRunResp +func (c *ClientWithResponses) DeleteWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkflowRunResp, error) { + rsp, err := c.DeleteWorkflowRun(ctx, namespaceName, runName, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterDataPlaneResp(rsp) + return ParseDeleteWorkflowRunResp(rsp) } -// ListClusterObservabilityPlanesWithResponse request returning *ListClusterObservabilityPlanesResp -func (c *ClientWithResponses) ListClusterObservabilityPlanesWithResponse(ctx context.Context, params *ListClusterObservabilityPlanesParams, reqEditors ...RequestEditorFn) (*ListClusterObservabilityPlanesResp, error) { - rsp, err := c.ListClusterObservabilityPlanes(ctx, params, reqEditors...) +// GetWorkflowRunWithResponse request returning *GetWorkflowRunResp +func (c *ClientWithResponses) GetWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowRunResp, error) { + rsp, err := c.GetWorkflowRun(ctx, namespaceName, runName, reqEditors...) if err != nil { return nil, err } - return ParseListClusterObservabilityPlanesResp(rsp) + return ParseGetWorkflowRunResp(rsp) } -// CreateClusterObservabilityPlaneWithBodyWithResponse request with arbitrary body returning *CreateClusterObservabilityPlaneResp -func (c *ClientWithResponses) CreateClusterObservabilityPlaneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterObservabilityPlaneResp, error) { - rsp, err := c.CreateClusterObservabilityPlaneWithBody(ctx, contentType, body, reqEditors...) +// UpdateWorkflowRunWithBodyWithResponse request with arbitrary body returning *UpdateWorkflowRunResp +func (c *ClientWithResponses) UpdateWorkflowRunWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowRunResp, error) { + rsp, err := c.UpdateWorkflowRunWithBody(ctx, namespaceName, runName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterObservabilityPlaneResp(rsp) + return ParseUpdateWorkflowRunResp(rsp) } -func (c *ClientWithResponses) CreateClusterObservabilityPlaneWithResponse(ctx context.Context, body CreateClusterObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterObservabilityPlaneResp, error) { - rsp, err := c.CreateClusterObservabilityPlane(ctx, body, reqEditors...) +func (c *ClientWithResponses) UpdateWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, body UpdateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkflowRunResp, error) { + rsp, err := c.UpdateWorkflowRun(ctx, namespaceName, runName, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterObservabilityPlaneResp(rsp) + return ParseUpdateWorkflowRunResp(rsp) } -// DeleteClusterObservabilityPlaneWithResponse request returning *DeleteClusterObservabilityPlaneResp -func (c *ClientWithResponses) DeleteClusterObservabilityPlaneWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterObservabilityPlaneResp, error) { - rsp, err := c.DeleteClusterObservabilityPlane(ctx, clusterObservabilityPlaneName, reqEditors...) +// GetWorkflowRunEventsWithResponse request returning *GetWorkflowRunEventsResp +func (c *ClientWithResponses) GetWorkflowRunEventsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunEventsParams, reqEditors ...RequestEditorFn) (*GetWorkflowRunEventsResp, error) { + rsp, err := c.GetWorkflowRunEvents(ctx, namespaceName, runName, params, reqEditors...) if err != nil { return nil, err } - return ParseDeleteClusterObservabilityPlaneResp(rsp) + return ParseGetWorkflowRunEventsResp(rsp) } -// GetClusterObservabilityPlaneWithResponse request returning *GetClusterObservabilityPlaneResp -func (c *ClientWithResponses) GetClusterObservabilityPlaneWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*GetClusterObservabilityPlaneResp, error) { - rsp, err := c.GetClusterObservabilityPlane(ctx, clusterObservabilityPlaneName, reqEditors...) +// GetWorkflowRunLogsWithResponse request returning *GetWorkflowRunLogsResp +func (c *ClientWithResponses) GetWorkflowRunLogsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunLogsParams, reqEditors ...RequestEditorFn) (*GetWorkflowRunLogsResp, error) { + rsp, err := c.GetWorkflowRunLogs(ctx, namespaceName, runName, params, reqEditors...) if err != nil { return nil, err } - return ParseGetClusterObservabilityPlaneResp(rsp) + return ParseGetWorkflowRunLogsResp(rsp) } -// UpdateClusterObservabilityPlaneWithBodyWithResponse request with arbitrary body returning *UpdateClusterObservabilityPlaneResp -func (c *ClientWithResponses) UpdateClusterObservabilityPlaneWithBodyWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterObservabilityPlaneResp, error) { - rsp, err := c.UpdateClusterObservabilityPlaneWithBody(ctx, clusterObservabilityPlaneName, contentType, body, reqEditors...) +// GetWorkflowRunStatusWithResponse request returning *GetWorkflowRunStatusResp +func (c *ClientWithResponses) GetWorkflowRunStatusWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowRunStatusResp, error) { + rsp, err := c.GetWorkflowRunStatus(ctx, namespaceName, runName, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterObservabilityPlaneResp(rsp) + return ParseGetWorkflowRunStatusResp(rsp) } -func (c *ClientWithResponses) UpdateClusterObservabilityPlaneWithResponse(ctx context.Context, clusterObservabilityPlaneName ClusterObservabilityPlaneNameParam, body UpdateClusterObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterObservabilityPlaneResp, error) { - rsp, err := c.UpdateClusterObservabilityPlane(ctx, clusterObservabilityPlaneName, body, reqEditors...) +// ListWorkflowsWithResponse request returning *ListWorkflowsResp +func (c *ClientWithResponses) ListWorkflowsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowsParams, reqEditors ...RequestEditorFn) (*ListWorkflowsResp, error) { + rsp, err := c.ListWorkflows(ctx, namespaceName, params, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterObservabilityPlaneResp(rsp) + return ParseListWorkflowsResp(rsp) } -// ListClusterTraitsWithResponse request returning *ListClusterTraitsResp -func (c *ClientWithResponses) ListClusterTraitsWithResponse(ctx context.Context, params *ListClusterTraitsParams, reqEditors ...RequestEditorFn) (*ListClusterTraitsResp, error) { - rsp, err := c.ListClusterTraits(ctx, params, reqEditors...) +// CreateWorkflowWithBodyWithResponse request with arbitrary body returning *CreateWorkflowResp +func (c *ClientWithResponses) CreateWorkflowWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkflowResp, error) { + rsp, err := c.CreateWorkflowWithBody(ctx, namespaceName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseListClusterTraitsResp(rsp) + return ParseCreateWorkflowResp(rsp) } -// CreateClusterTraitWithBodyWithResponse request with arbitrary body returning *CreateClusterTraitResp -func (c *ClientWithResponses) CreateClusterTraitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterTraitResp, error) { - rsp, err := c.CreateClusterTraitWithBody(ctx, contentType, body, reqEditors...) +func (c *ClientWithResponses) CreateWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkflowResp, error) { + rsp, err := c.CreateWorkflow(ctx, namespaceName, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterTraitResp(rsp) + return ParseCreateWorkflowResp(rsp) } -func (c *ClientWithResponses) CreateClusterTraitWithResponse(ctx context.Context, body CreateClusterTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterTraitResp, error) { - rsp, err := c.CreateClusterTrait(ctx, body, reqEditors...) +// DeleteWorkflowWithResponse request returning *DeleteWorkflowResp +func (c *ClientWithResponses) DeleteWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkflowResp, error) { + rsp, err := c.DeleteWorkflow(ctx, namespaceName, workflowName, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterTraitResp(rsp) + return ParseDeleteWorkflowResp(rsp) } -// DeleteClusterTraitWithResponse request returning *DeleteClusterTraitResp -func (c *ClientWithResponses) DeleteClusterTraitWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterTraitResp, error) { - rsp, err := c.DeleteClusterTrait(ctx, clusterTraitName, reqEditors...) +// GetWorkflowWithResponse request returning *GetWorkflowResp +func (c *ClientWithResponses) GetWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowResp, error) { + rsp, err := c.GetWorkflow(ctx, namespaceName, workflowName, reqEditors...) if err != nil { return nil, err } - return ParseDeleteClusterTraitResp(rsp) + return ParseGetWorkflowResp(rsp) } -// GetClusterTraitWithResponse request returning *GetClusterTraitResp -func (c *ClientWithResponses) GetClusterTraitWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, reqEditors ...RequestEditorFn) (*GetClusterTraitResp, error) { - rsp, err := c.GetClusterTrait(ctx, clusterTraitName, reqEditors...) +// UpdateWorkflowWithBodyWithResponse request with arbitrary body returning *UpdateWorkflowResp +func (c *ClientWithResponses) UpdateWorkflowWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowResp, error) { + rsp, err := c.UpdateWorkflowWithBody(ctx, namespaceName, workflowName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetClusterTraitResp(rsp) + return ParseUpdateWorkflowResp(rsp) } -// UpdateClusterTraitWithBodyWithResponse request with arbitrary body returning *UpdateClusterTraitResp -func (c *ClientWithResponses) UpdateClusterTraitWithBodyWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterTraitResp, error) { - rsp, err := c.UpdateClusterTraitWithBody(ctx, clusterTraitName, contentType, body, reqEditors...) +func (c *ClientWithResponses) UpdateWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, body UpdateWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkflowResp, error) { + rsp, err := c.UpdateWorkflow(ctx, namespaceName, workflowName, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterTraitResp(rsp) + return ParseUpdateWorkflowResp(rsp) } -func (c *ClientWithResponses) UpdateClusterTraitWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, body UpdateClusterTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterTraitResp, error) { - rsp, err := c.UpdateClusterTrait(ctx, clusterTraitName, body, reqEditors...) +// GetWorkflowSchemaWithResponse request returning *GetWorkflowSchemaResp +func (c *ClientWithResponses) GetWorkflowSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowSchemaResp, error) { + rsp, err := c.GetWorkflowSchema(ctx, namespaceName, workflowName, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterTraitResp(rsp) + return ParseGetWorkflowSchemaResp(rsp) } -// GetClusterTraitSchemaWithResponse request returning *GetClusterTraitSchemaResp -func (c *ClientWithResponses) GetClusterTraitSchemaWithResponse(ctx context.Context, clusterTraitName ClusterTraitNameParam, reqEditors ...RequestEditorFn) (*GetClusterTraitSchemaResp, error) { - rsp, err := c.GetClusterTraitSchema(ctx, clusterTraitName, reqEditors...) +// ListWorkloadsWithResponse request returning *ListWorkloadsResp +func (c *ClientWithResponses) ListWorkloadsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkloadsParams, reqEditors ...RequestEditorFn) (*ListWorkloadsResp, error) { + rsp, err := c.ListWorkloads(ctx, namespaceName, params, reqEditors...) if err != nil { return nil, err } - return ParseGetClusterTraitSchemaResp(rsp) + return ParseListWorkloadsResp(rsp) } -// ListClusterWorkflowPlanesWithResponse request returning *ListClusterWorkflowPlanesResp -func (c *ClientWithResponses) ListClusterWorkflowPlanesWithResponse(ctx context.Context, params *ListClusterWorkflowPlanesParams, reqEditors ...RequestEditorFn) (*ListClusterWorkflowPlanesResp, error) { - rsp, err := c.ListClusterWorkflowPlanes(ctx, params, reqEditors...) +// CreateWorkloadWithBodyWithResponse request with arbitrary body returning *CreateWorkloadResp +func (c *ClientWithResponses) CreateWorkloadWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkloadResp, error) { + rsp, err := c.CreateWorkloadWithBody(ctx, namespaceName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseListClusterWorkflowPlanesResp(rsp) + return ParseCreateWorkloadResp(rsp) } -// CreateClusterWorkflowPlaneWithBodyWithResponse request with arbitrary body returning *CreateClusterWorkflowPlaneResp -func (c *ClientWithResponses) CreateClusterWorkflowPlaneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowPlaneResp, error) { - rsp, err := c.CreateClusterWorkflowPlaneWithBody(ctx, contentType, body, reqEditors...) +func (c *ClientWithResponses) CreateWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkloadResp, error) { + rsp, err := c.CreateWorkload(ctx, namespaceName, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterWorkflowPlaneResp(rsp) + return ParseCreateWorkloadResp(rsp) } -func (c *ClientWithResponses) CreateClusterWorkflowPlaneWithResponse(ctx context.Context, body CreateClusterWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowPlaneResp, error) { - rsp, err := c.CreateClusterWorkflowPlane(ctx, body, reqEditors...) +// DeleteWorkloadWithResponse request returning *DeleteWorkloadResp +func (c *ClientWithResponses) DeleteWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkloadResp, error) { + rsp, err := c.DeleteWorkload(ctx, namespaceName, workloadName, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterWorkflowPlaneResp(rsp) + return ParseDeleteWorkloadResp(rsp) } -// DeleteClusterWorkflowPlaneWithResponse request returning *DeleteClusterWorkflowPlaneResp -func (c *ClientWithResponses) DeleteClusterWorkflowPlaneWithResponse(ctx context.Context, clusterWorkflowPlaneName string, reqEditors ...RequestEditorFn) (*DeleteClusterWorkflowPlaneResp, error) { - rsp, err := c.DeleteClusterWorkflowPlane(ctx, clusterWorkflowPlaneName, reqEditors...) +// GetWorkloadWithResponse request returning *GetWorkloadResp +func (c *ClientWithResponses) GetWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, reqEditors ...RequestEditorFn) (*GetWorkloadResp, error) { + rsp, err := c.GetWorkload(ctx, namespaceName, workloadName, reqEditors...) if err != nil { return nil, err } - return ParseDeleteClusterWorkflowPlaneResp(rsp) + return ParseGetWorkloadResp(rsp) } -// GetClusterWorkflowPlaneWithResponse request returning *GetClusterWorkflowPlaneResp -func (c *ClientWithResponses) GetClusterWorkflowPlaneWithResponse(ctx context.Context, clusterWorkflowPlaneName string, reqEditors ...RequestEditorFn) (*GetClusterWorkflowPlaneResp, error) { - rsp, err := c.GetClusterWorkflowPlane(ctx, clusterWorkflowPlaneName, reqEditors...) +// UpdateWorkloadWithBodyWithResponse request with arbitrary body returning *UpdateWorkloadResp +func (c *ClientWithResponses) UpdateWorkloadWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkloadResp, error) { + rsp, err := c.UpdateWorkloadWithBody(ctx, namespaceName, workloadName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetClusterWorkflowPlaneResp(rsp) + return ParseUpdateWorkloadResp(rsp) } -// UpdateClusterWorkflowPlaneWithBodyWithResponse request with arbitrary body returning *UpdateClusterWorkflowPlaneResp -func (c *ClientWithResponses) UpdateClusterWorkflowPlaneWithBodyWithResponse(ctx context.Context, clusterWorkflowPlaneName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowPlaneResp, error) { - rsp, err := c.UpdateClusterWorkflowPlaneWithBody(ctx, clusterWorkflowPlaneName, contentType, body, reqEditors...) +func (c *ClientWithResponses) UpdateWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, body UpdateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkloadResp, error) { + rsp, err := c.UpdateWorkload(ctx, namespaceName, workloadName, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterWorkflowPlaneResp(rsp) + return ParseUpdateWorkloadResp(rsp) } -func (c *ClientWithResponses) UpdateClusterWorkflowPlaneWithResponse(ctx context.Context, clusterWorkflowPlaneName string, body UpdateClusterWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowPlaneResp, error) { - rsp, err := c.UpdateClusterWorkflowPlane(ctx, clusterWorkflowPlaneName, body, reqEditors...) +// HandleAutoBuildWithBodyWithResponse request with arbitrary body returning *HandleAutoBuildResp +func (c *ClientWithResponses) HandleAutoBuildWithBodyWithResponse(ctx context.Context, params *HandleAutoBuildParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleAutoBuildResp, error) { + rsp, err := c.HandleAutoBuildWithBody(ctx, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterWorkflowPlaneResp(rsp) + return ParseHandleAutoBuildResp(rsp) } -// ListClusterWorkflowsWithResponse request returning *ListClusterWorkflowsResp -func (c *ClientWithResponses) ListClusterWorkflowsWithResponse(ctx context.Context, params *ListClusterWorkflowsParams, reqEditors ...RequestEditorFn) (*ListClusterWorkflowsResp, error) { - rsp, err := c.ListClusterWorkflows(ctx, params, reqEditors...) +func (c *ClientWithResponses) HandleAutoBuildWithResponse(ctx context.Context, params *HandleAutoBuildParams, body HandleAutoBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleAutoBuildResp, error) { + rsp, err := c.HandleAutoBuild(ctx, params, body, reqEditors...) if err != nil { return nil, err } - return ParseListClusterWorkflowsResp(rsp) + return ParseHandleAutoBuildResp(rsp) } -// CreateClusterWorkflowWithBodyWithResponse request with arbitrary body returning *CreateClusterWorkflowResp -func (c *ClientWithResponses) CreateClusterWorkflowWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowResp, error) { - rsp, err := c.CreateClusterWorkflowWithBody(ctx, contentType, body, reqEditors...) +// ListGitSecretsWithResponse request returning *ListGitSecretsResp +func (c *ClientWithResponses) ListGitSecretsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*ListGitSecretsResp, error) { + rsp, err := c.ListGitSecrets(ctx, namespaceName, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterWorkflowResp(rsp) + return ParseListGitSecretsResp(rsp) } -func (c *ClientWithResponses) CreateClusterWorkflowWithResponse(ctx context.Context, body CreateClusterWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterWorkflowResp, error) { - rsp, err := c.CreateClusterWorkflow(ctx, body, reqEditors...) +// CreateGitSecretWithBodyWithResponse request with arbitrary body returning *CreateGitSecretResp +func (c *ClientWithResponses) CreateGitSecretWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitSecretResp, error) { + rsp, err := c.CreateGitSecretWithBody(ctx, namespaceName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateClusterWorkflowResp(rsp) + return ParseCreateGitSecretResp(rsp) } -// DeleteClusterWorkflowWithResponse request returning *DeleteClusterWorkflowResp -func (c *ClientWithResponses) DeleteClusterWorkflowWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, reqEditors ...RequestEditorFn) (*DeleteClusterWorkflowResp, error) { - rsp, err := c.DeleteClusterWorkflow(ctx, clusterWorkflowName, reqEditors...) +func (c *ClientWithResponses) CreateGitSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateGitSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitSecretResp, error) { + rsp, err := c.CreateGitSecret(ctx, namespaceName, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteClusterWorkflowResp(rsp) + return ParseCreateGitSecretResp(rsp) } -// GetClusterWorkflowWithResponse request returning *GetClusterWorkflowResp -func (c *ClientWithResponses) GetClusterWorkflowWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, reqEditors ...RequestEditorFn) (*GetClusterWorkflowResp, error) { - rsp, err := c.GetClusterWorkflow(ctx, clusterWorkflowName, reqEditors...) +// DeleteGitSecretWithResponse request returning *DeleteGitSecretResp +func (c *ClientWithResponses) DeleteGitSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, gitSecretName GitSecretNameParam, reqEditors ...RequestEditorFn) (*DeleteGitSecretResp, error) { + rsp, err := c.DeleteGitSecret(ctx, namespaceName, gitSecretName, reqEditors...) if err != nil { return nil, err } - return ParseGetClusterWorkflowResp(rsp) + return ParseDeleteGitSecretResp(rsp) } -// UpdateClusterWorkflowWithBodyWithResponse request with arbitrary body returning *UpdateClusterWorkflowResp -func (c *ClientWithResponses) UpdateClusterWorkflowWithBodyWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowResp, error) { - rsp, err := c.UpdateClusterWorkflowWithBody(ctx, clusterWorkflowName, contentType, body, reqEditors...) +// ListSecretsWithResponse request returning *ListSecretsResp +func (c *ClientWithResponses) ListSecretsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListSecretsParams, reqEditors ...RequestEditorFn) (*ListSecretsResp, error) { + rsp, err := c.ListSecrets(ctx, namespaceName, params, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterWorkflowResp(rsp) + return ParseListSecretsResp(rsp) } -func (c *ClientWithResponses) UpdateClusterWorkflowWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, body UpdateClusterWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClusterWorkflowResp, error) { - rsp, err := c.UpdateClusterWorkflow(ctx, clusterWorkflowName, body, reqEditors...) +// CreateSecretWithBodyWithResponse request with arbitrary body returning *CreateSecretResp +func (c *ClientWithResponses) CreateSecretWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretResp, error) { + rsp, err := c.CreateSecretWithBody(ctx, namespaceName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateClusterWorkflowResp(rsp) + return ParseCreateSecretResp(rsp) } -// GetClusterWorkflowSchemaWithResponse request returning *GetClusterWorkflowSchemaResp -func (c *ClientWithResponses) GetClusterWorkflowSchemaWithResponse(ctx context.Context, clusterWorkflowName ClusterWorkflowNameParam, reqEditors ...RequestEditorFn) (*GetClusterWorkflowSchemaResp, error) { - rsp, err := c.GetClusterWorkflowSchema(ctx, clusterWorkflowName, reqEditors...) +func (c *ClientWithResponses) CreateSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretResp, error) { + rsp, err := c.CreateSecret(ctx, namespaceName, body, reqEditors...) if err != nil { return nil, err } - return ParseGetClusterWorkflowSchemaResp(rsp) + return ParseCreateSecretResp(rsp) } -// ListNamespacesWithResponse request returning *ListNamespacesResp -func (c *ClientWithResponses) ListNamespacesWithResponse(ctx context.Context, params *ListNamespacesParams, reqEditors ...RequestEditorFn) (*ListNamespacesResp, error) { - rsp, err := c.ListNamespaces(ctx, params, reqEditors...) +// DeleteSecretWithResponse request returning *DeleteSecretResp +func (c *ClientWithResponses) DeleteSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, reqEditors ...RequestEditorFn) (*DeleteSecretResp, error) { + rsp, err := c.DeleteSecret(ctx, namespaceName, secretName, reqEditors...) if err != nil { return nil, err } - return ParseListNamespacesResp(rsp) + return ParseDeleteSecretResp(rsp) } -// CreateNamespaceWithBodyWithResponse request with arbitrary body returning *CreateNamespaceResp -func (c *ClientWithResponses) CreateNamespaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceResp, error) { - rsp, err := c.CreateNamespaceWithBody(ctx, contentType, body, reqEditors...) +// GetSecretWithResponse request returning *GetSecretResp +func (c *ClientWithResponses) GetSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, reqEditors ...RequestEditorFn) (*GetSecretResp, error) { + rsp, err := c.GetSecret(ctx, namespaceName, secretName, reqEditors...) if err != nil { return nil, err } - return ParseCreateNamespaceResp(rsp) + return ParseGetSecretResp(rsp) } -func (c *ClientWithResponses) CreateNamespaceWithResponse(ctx context.Context, body CreateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceResp, error) { - rsp, err := c.CreateNamespace(ctx, body, reqEditors...) +// UpdateSecretWithBodyWithResponse request with arbitrary body returning *UpdateSecretResp +func (c *ClientWithResponses) UpdateSecretWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretResp, error) { + rsp, err := c.UpdateSecretWithBody(ctx, namespaceName, secretName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateNamespaceResp(rsp) + return ParseUpdateSecretResp(rsp) } -// DeleteNamespaceWithResponse request returning *DeleteNamespaceResp -func (c *ClientWithResponses) DeleteNamespaceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*DeleteNamespaceResp, error) { - rsp, err := c.DeleteNamespace(ctx, namespaceName, reqEditors...) +func (c *ClientWithResponses) UpdateSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretName SecretNameParam, body UpdateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretResp, error) { + rsp, err := c.UpdateSecret(ctx, namespaceName, secretName, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteNamespaceResp(rsp) + return ParseUpdateSecretResp(rsp) } -// GetNamespaceWithResponse request returning *GetNamespaceResp -func (c *ClientWithResponses) GetNamespaceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*GetNamespaceResp, error) { - rsp, err := c.GetNamespace(ctx, namespaceName, reqEditors...) +// GetHealthWithResponse request returning *GetHealthResp +func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResp, error) { + rsp, err := c.GetHealth(ctx, reqEditors...) if err != nil { return nil, err } - return ParseGetNamespaceResp(rsp) + return ParseGetHealthResp(rsp) } -// UpdateNamespaceWithBodyWithResponse request with arbitrary body returning *UpdateNamespaceResp -func (c *ClientWithResponses) UpdateNamespaceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceResp, error) { - rsp, err := c.UpdateNamespaceWithBody(ctx, namespaceName, contentType, body, reqEditors...) +// GetOpenAPISpecWithResponse request returning *GetOpenAPISpecResp +func (c *ClientWithResponses) GetOpenAPISpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPISpecResp, error) { + rsp, err := c.GetOpenAPISpec(ctx, reqEditors...) if err != nil { return nil, err } - return ParseUpdateNamespaceResp(rsp) + return ParseGetOpenAPISpecResp(rsp) } -func (c *ClientWithResponses) UpdateNamespaceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body UpdateNamespaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceResp, error) { - rsp, err := c.UpdateNamespace(ctx, namespaceName, body, reqEditors...) +// GetReadyWithResponse request returning *GetReadyResp +func (c *ClientWithResponses) GetReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyResp, error) { + rsp, err := c.GetReady(ctx, reqEditors...) if err != nil { return nil, err } - return ParseUpdateNamespaceResp(rsp) + return ParseGetReadyResp(rsp) } -// ListNamespaceRoleBindingsWithResponse request returning *ListNamespaceRoleBindingsResp -func (c *ClientWithResponses) ListNamespaceRoleBindingsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListNamespaceRoleBindingsParams, reqEditors ...RequestEditorFn) (*ListNamespaceRoleBindingsResp, error) { - rsp, err := c.ListNamespaceRoleBindings(ctx, namespaceName, params, reqEditors...) +// GetVersionWithResponse request returning *GetVersionResp +func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResp, error) { + rsp, err := c.GetVersion(ctx, reqEditors...) if err != nil { return nil, err } - return ParseListNamespaceRoleBindingsResp(rsp) + return ParseGetVersionResp(rsp) } -// CreateNamespaceRoleBindingWithBodyWithResponse request with arbitrary body returning *CreateNamespaceRoleBindingResp -func (c *ClientWithResponses) CreateNamespaceRoleBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleBindingResp, error) { - rsp, err := c.CreateNamespaceRoleBindingWithBody(ctx, namespaceName, contentType, body, reqEditors...) +// ParseGetOAuthProtectedResourceMetadataResp parses an HTTP response from a GetOAuthProtectedResourceMetadataWithResponse call +func ParseGetOAuthProtectedResourceMetadataResp(rsp *http.Response) (*GetOAuthProtectedResourceMetadataResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateNamespaceRoleBindingResp(rsp) + + response := &GetOAuthProtectedResourceMetadataResp{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OAuthProtectedResourceMetadata + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -func (c *ClientWithResponses) CreateNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateNamespaceRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleBindingResp, error) { - rsp, err := c.CreateNamespaceRoleBinding(ctx, namespaceName, body, reqEditors...) +// ParseListSubjectTypesResp parses an HTTP response from a ListSubjectTypesWithResponse call +func ParseListSubjectTypesResp(rsp *http.Response) (*ListSubjectTypesResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateNamespaceRoleBindingResp(rsp) + + response := &ListSubjectTypesResp{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []SubjectTypeConfig + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil } -// DeleteNamespaceRoleBindingWithResponse request returning *DeleteNamespaceRoleBindingResp -func (c *ClientWithResponses) DeleteNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*DeleteNamespaceRoleBindingResp, error) { - rsp, err := c.DeleteNamespaceRoleBinding(ctx, namespaceName, name, reqEditors...) +// ParseListActionsResp parses an HTTP response from a ListActionsWithResponse call +func ParseListActionsResp(rsp *http.Response) (*ListActionsResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteNamespaceRoleBindingResp(rsp) + + response := &ListActionsResp{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ActionInfo + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil } -// GetNamespaceRoleBindingWithResponse request returning *GetNamespaceRoleBindingResp -func (c *ClientWithResponses) GetNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*GetNamespaceRoleBindingResp, error) { - rsp, err := c.GetNamespaceRoleBinding(ctx, namespaceName, name, reqEditors...) +// ParseEvaluatesResp parses an HTTP response from a EvaluatesWithResponse call +func ParseEvaluatesResp(rsp *http.Response) (*EvaluatesResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetNamespaceRoleBindingResp(rsp) -} -// UpdateNamespaceRoleBindingWithBodyWithResponse request with arbitrary body returning *UpdateNamespaceRoleBindingResp -func (c *ClientWithResponses) UpdateNamespaceRoleBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleBindingResp, error) { - rsp, err := c.UpdateNamespaceRoleBindingWithBody(ctx, namespaceName, name, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &EvaluatesResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateNamespaceRoleBindingResp(rsp) -} -func (c *ClientWithResponses) UpdateNamespaceRoleBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, body UpdateNamespaceRoleBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleBindingResp, error) { - rsp, err := c.UpdateNamespaceRoleBinding(ctx, namespaceName, name, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Decision + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseUpdateNamespaceRoleBindingResp(rsp) + + return response, nil } -// ListNamespaceRolesWithResponse request returning *ListNamespaceRolesResp -func (c *ClientWithResponses) ListNamespaceRolesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListNamespaceRolesParams, reqEditors ...RequestEditorFn) (*ListNamespaceRolesResp, error) { - rsp, err := c.ListNamespaceRoles(ctx, namespaceName, params, reqEditors...) +// ParseGetSubjectProfileResp parses an HTTP response from a GetSubjectProfileWithResponse call +func ParseGetSubjectProfileResp(rsp *http.Response) (*GetSubjectProfileResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListNamespaceRolesResp(rsp) -} -// CreateNamespaceRoleWithBodyWithResponse request with arbitrary body returning *CreateNamespaceRoleResp -func (c *ClientWithResponses) CreateNamespaceRoleWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleResp, error) { - rsp, err := c.CreateNamespaceRoleWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &GetSubjectProfileResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateNamespaceRoleResp(rsp) -} -func (c *ClientWithResponses) CreateNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateNamespaceRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNamespaceRoleResp, error) { - rsp, err := c.CreateNamespaceRole(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserCapabilitiesResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseCreateNamespaceRoleResp(rsp) + + return response, nil } -// DeleteNamespaceRoleWithResponse request returning *DeleteNamespaceRoleResp -func (c *ClientWithResponses) DeleteNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*DeleteNamespaceRoleResp, error) { - rsp, err := c.DeleteNamespaceRole(ctx, namespaceName, name, reqEditors...) +// ParseListClusterRoleBindingsResp parses an HTTP response from a ListClusterRoleBindingsWithResponse call +func ParseListClusterRoleBindingsResp(rsp *http.Response) (*ListClusterRoleBindingsResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteNamespaceRoleResp(rsp) -} -// GetNamespaceRoleWithResponse request returning *GetNamespaceRoleResp -func (c *ClientWithResponses) GetNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, reqEditors ...RequestEditorFn) (*GetNamespaceRoleResp, error) { - rsp, err := c.GetNamespaceRole(ctx, namespaceName, name, reqEditors...) - if err != nil { - return nil, err + response := &ListClusterRoleBindingsResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetNamespaceRoleResp(rsp) -} -// UpdateNamespaceRoleWithBodyWithResponse request with arbitrary body returning *UpdateNamespaceRoleResp -func (c *ClientWithResponses) UpdateNamespaceRoleWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleResp, error) { - rsp, err := c.UpdateNamespaceRoleWithBody(ctx, namespaceName, name, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterAuthzRoleBindingList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseUpdateNamespaceRoleResp(rsp) + + return response, nil } -func (c *ClientWithResponses) UpdateNamespaceRoleWithResponse(ctx context.Context, namespaceName NamespaceNameParam, name string, body UpdateNamespaceRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNamespaceRoleResp, error) { - rsp, err := c.UpdateNamespaceRole(ctx, namespaceName, name, body, reqEditors...) +// ParseCreateClusterRoleBindingResp parses an HTTP response from a CreateClusterRoleBindingWithResponse call +func ParseCreateClusterRoleBindingResp(rsp *http.Response) (*CreateClusterRoleBindingResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateNamespaceRoleResp(rsp) -} -// ListComponentReleasesWithResponse request returning *ListComponentReleasesResp -func (c *ClientWithResponses) ListComponentReleasesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListComponentReleasesParams, reqEditors ...RequestEditorFn) (*ListComponentReleasesResp, error) { - rsp, err := c.ListComponentReleases(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err + response := &CreateClusterRoleBindingResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListComponentReleasesResp(rsp) -} -// CreateComponentReleaseWithBodyWithResponse request with arbitrary body returning *CreateComponentReleaseResp -func (c *ClientWithResponses) CreateComponentReleaseWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateComponentReleaseResp, error) { - rsp, err := c.CreateComponentReleaseWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ClusterAuthzRoleBinding + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseCreateComponentReleaseResp(rsp) + + return response, nil } -func (c *ClientWithResponses) CreateComponentReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateComponentReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateComponentReleaseResp, error) { - rsp, err := c.CreateComponentRelease(ctx, namespaceName, body, reqEditors...) +// ParseDeleteClusterRoleBindingResp parses an HTTP response from a DeleteClusterRoleBindingWithResponse call +func ParseDeleteClusterRoleBindingResp(rsp *http.Response) (*DeleteClusterRoleBindingResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateComponentReleaseResp(rsp) -} -// DeleteComponentReleaseWithResponse request returning *DeleteComponentReleaseResp -func (c *ClientWithResponses) DeleteComponentReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentReleaseName ComponentReleaseNameParam, reqEditors ...RequestEditorFn) (*DeleteComponentReleaseResp, error) { - rsp, err := c.DeleteComponentRelease(ctx, namespaceName, componentReleaseName, reqEditors...) - if err != nil { - return nil, err + response := &DeleteClusterRoleBindingResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteComponentReleaseResp(rsp) -} -// GetComponentReleaseWithResponse request returning *GetComponentReleaseResp -func (c *ClientWithResponses) GetComponentReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentReleaseName ComponentReleaseNameParam, reqEditors ...RequestEditorFn) (*GetComponentReleaseResp, error) { - rsp, err := c.GetComponentRelease(ctx, namespaceName, componentReleaseName, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseGetComponentReleaseResp(rsp) + + return response, nil } -// ListComponentsWithResponse request returning *ListComponentsResp -func (c *ClientWithResponses) ListComponentsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListComponentsParams, reqEditors ...RequestEditorFn) (*ListComponentsResp, error) { - rsp, err := c.ListComponents(ctx, namespaceName, params, reqEditors...) +// ParseGetClusterRoleBindingResp parses an HTTP response from a GetClusterRoleBindingWithResponse call +func ParseGetClusterRoleBindingResp(rsp *http.Response) (*GetClusterRoleBindingResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListComponentsResp(rsp) -} -// CreateComponentWithBodyWithResponse request with arbitrary body returning *CreateComponentResp -func (c *ClientWithResponses) CreateComponentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateComponentResp, error) { - rsp, err := c.CreateComponentWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &GetClusterRoleBindingResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateComponentResp(rsp) -} -func (c *ClientWithResponses) CreateComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateComponentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateComponentResp, error) { - rsp, err := c.CreateComponent(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterAuthzRoleBinding + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseCreateComponentResp(rsp) + + return response, nil } -// DeleteComponentWithResponse request returning *DeleteComponentResp -func (c *ClientWithResponses) DeleteComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, reqEditors ...RequestEditorFn) (*DeleteComponentResp, error) { - rsp, err := c.DeleteComponent(ctx, namespaceName, componentName, reqEditors...) +// ParseUpdateClusterRoleBindingResp parses an HTTP response from a UpdateClusterRoleBindingWithResponse call +func ParseUpdateClusterRoleBindingResp(rsp *http.Response) (*UpdateClusterRoleBindingResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteComponentResp(rsp) -} -// GetComponentWithResponse request returning *GetComponentResp -func (c *ClientWithResponses) GetComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, reqEditors ...RequestEditorFn) (*GetComponentResp, error) { - rsp, err := c.GetComponent(ctx, namespaceName, componentName, reqEditors...) - if err != nil { - return nil, err + response := &UpdateClusterRoleBindingResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetComponentResp(rsp) -} -// UpdateComponentWithBodyWithResponse request with arbitrary body returning *UpdateComponentResp -func (c *ClientWithResponses) UpdateComponentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateComponentResp, error) { - rsp, err := c.UpdateComponentWithBody(ctx, namespaceName, componentName, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterAuthzRoleBinding + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseUpdateComponentResp(rsp) + + return response, nil } -func (c *ClientWithResponses) UpdateComponentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, body UpdateComponentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateComponentResp, error) { - rsp, err := c.UpdateComponent(ctx, namespaceName, componentName, body, reqEditors...) +// ParseListClusterRolesResp parses an HTTP response from a ListClusterRolesWithResponse call +func ParseListClusterRolesResp(rsp *http.Response) (*ListClusterRolesResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateComponentResp(rsp) -} -// GenerateReleaseWithBodyWithResponse request with arbitrary body returning *GenerateReleaseResp -func (c *ClientWithResponses) GenerateReleaseWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateReleaseResp, error) { - rsp, err := c.GenerateReleaseWithBody(ctx, namespaceName, componentName, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &ListClusterRolesResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGenerateReleaseResp(rsp) -} -func (c *ClientWithResponses) GenerateReleaseWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, body GenerateReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateReleaseResp, error) { - rsp, err := c.GenerateRelease(ctx, namespaceName, componentName, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterAuthzRoleList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseGenerateReleaseResp(rsp) -} -// GetComponentSchemaWithResponse request returning *GetComponentSchemaResp -func (c *ClientWithResponses) GetComponentSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, componentName ComponentNameParam, reqEditors ...RequestEditorFn) (*GetComponentSchemaResp, error) { - rsp, err := c.GetComponentSchema(ctx, namespaceName, componentName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetComponentSchemaResp(rsp) + return response, nil } -// ListComponentTypesWithResponse request returning *ListComponentTypesResp -func (c *ClientWithResponses) ListComponentTypesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListComponentTypesParams, reqEditors ...RequestEditorFn) (*ListComponentTypesResp, error) { - rsp, err := c.ListComponentTypes(ctx, namespaceName, params, reqEditors...) +// ParseCreateClusterRoleResp parses an HTTP response from a CreateClusterRoleWithResponse call +func ParseCreateClusterRoleResp(rsp *http.Response) (*CreateClusterRoleResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListComponentTypesResp(rsp) -} -// CreateComponentTypeWithBodyWithResponse request with arbitrary body returning *CreateComponentTypeResp -func (c *ClientWithResponses) CreateComponentTypeWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateComponentTypeResp, error) { - rsp, err := c.CreateComponentTypeWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &CreateClusterRoleResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateComponentTypeResp(rsp) -} -func (c *ClientWithResponses) CreateComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateComponentTypeResp, error) { - rsp, err := c.CreateComponentType(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateComponentTypeResp(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ClusterAuthzRole + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest -// DeleteComponentTypeWithResponse request returning *DeleteComponentTypeResp -func (c *ClientWithResponses) DeleteComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, reqEditors ...RequestEditorFn) (*DeleteComponentTypeResp, error) { - rsp, err := c.DeleteComponentType(ctx, namespaceName, ctName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteComponentTypeResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest -// GetComponentTypeWithResponse request returning *GetComponentTypeResp -func (c *ClientWithResponses) GetComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetComponentTypeResp, error) { - rsp, err := c.GetComponentType(ctx, namespaceName, ctName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetComponentTypeResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest -// UpdateComponentTypeWithBodyWithResponse request with arbitrary body returning *UpdateComponentTypeResp -func (c *ClientWithResponses) UpdateComponentTypeWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateComponentTypeResp, error) { - rsp, err := c.UpdateComponentTypeWithBody(ctx, namespaceName, ctName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateComponentTypeResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest -func (c *ClientWithResponses) UpdateComponentTypeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, body UpdateComponentTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateComponentTypeResp, error) { - rsp, err := c.UpdateComponentType(ctx, namespaceName, ctName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateComponentTypeResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest -// GetComponentTypeSchemaWithResponse request returning *GetComponentTypeSchemaResp -func (c *ClientWithResponses) GetComponentTypeSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, ctName ComponentTypeNameParam, reqEditors ...RequestEditorFn) (*GetComponentTypeSchemaResp, error) { - rsp, err := c.GetComponentTypeSchema(ctx, namespaceName, ctName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetComponentTypeSchemaResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest -// ListDataPlanesWithResponse request returning *ListDataPlanesResp -func (c *ClientWithResponses) ListDataPlanesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListDataPlanesParams, reqEditors ...RequestEditorFn) (*ListDataPlanesResp, error) { - rsp, err := c.ListDataPlanes(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListDataPlanesResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest -// CreateDataPlaneWithBodyWithResponse request with arbitrary body returning *CreateDataPlaneResp -func (c *ClientWithResponses) CreateDataPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDataPlaneResp, error) { - rsp, err := c.CreateDataPlaneWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err } - return ParseCreateDataPlaneResp(rsp) -} -func (c *ClientWithResponses) CreateDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDataPlaneResp, error) { - rsp, err := c.CreateDataPlane(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateDataPlaneResp(rsp) + return response, nil } -// DeleteDataPlaneWithResponse request returning *DeleteDataPlaneResp -func (c *ClientWithResponses) DeleteDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteDataPlaneResp, error) { - rsp, err := c.DeleteDataPlane(ctx, namespaceName, dpName, reqEditors...) +// ParseDeleteClusterRoleResp parses an HTTP response from a DeleteClusterRoleWithResponse call +func ParseDeleteClusterRoleResp(rsp *http.Response) (*DeleteClusterRoleResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteDataPlaneResp(rsp) -} -// GetDataPlaneWithResponse request returning *GetDataPlaneResp -func (c *ClientWithResponses) GetDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, reqEditors ...RequestEditorFn) (*GetDataPlaneResp, error) { - rsp, err := c.GetDataPlane(ctx, namespaceName, dpName, reqEditors...) - if err != nil { - return nil, err + response := &DeleteClusterRoleResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetDataPlaneResp(rsp) -} -// UpdateDataPlaneWithBodyWithResponse request with arbitrary body returning *UpdateDataPlaneResp -func (c *ClientWithResponses) UpdateDataPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDataPlaneResp, error) { - rsp, err := c.UpdateDataPlaneWithBody(ctx, namespaceName, dpName, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseUpdateDataPlaneResp(rsp) + + return response, nil } -func (c *ClientWithResponses) UpdateDataPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, dpName DataPlaneNameParam, body UpdateDataPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDataPlaneResp, error) { - rsp, err := c.UpdateDataPlane(ctx, namespaceName, dpName, body, reqEditors...) +// ParseGetClusterRoleResp parses an HTTP response from a GetClusterRoleWithResponse call +func ParseGetClusterRoleResp(rsp *http.Response) (*GetClusterRoleResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateDataPlaneResp(rsp) -} -// ListDeploymentPipelinesWithResponse request returning *ListDeploymentPipelinesResp -func (c *ClientWithResponses) ListDeploymentPipelinesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListDeploymentPipelinesParams, reqEditors ...RequestEditorFn) (*ListDeploymentPipelinesResp, error) { - rsp, err := c.ListDeploymentPipelines(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err + response := &GetClusterRoleResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListDeploymentPipelinesResp(rsp) -} -// CreateDeploymentPipelineWithBodyWithResponse request with arbitrary body returning *CreateDeploymentPipelineResp -func (c *ClientWithResponses) CreateDeploymentPipelineWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDeploymentPipelineResp, error) { - rsp, err := c.CreateDeploymentPipelineWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterAuthzRole + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseCreateDeploymentPipelineResp(rsp) -} -func (c *ClientWithResponses) CreateDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateDeploymentPipelineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeploymentPipelineResp, error) { - rsp, err := c.CreateDeploymentPipeline(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateDeploymentPipelineResp(rsp) + return response, nil } -// DeleteDeploymentPipelineWithResponse request returning *DeleteDeploymentPipelineResp -func (c *ClientWithResponses) DeleteDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, reqEditors ...RequestEditorFn) (*DeleteDeploymentPipelineResp, error) { - rsp, err := c.DeleteDeploymentPipeline(ctx, namespaceName, deploymentPipelineName, reqEditors...) +// ParseUpdateClusterRoleResp parses an HTTP response from a UpdateClusterRoleWithResponse call +func ParseUpdateClusterRoleResp(rsp *http.Response) (*UpdateClusterRoleResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteDeploymentPipelineResp(rsp) -} -// GetDeploymentPipelineWithResponse request returning *GetDeploymentPipelineResp -func (c *ClientWithResponses) GetDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, reqEditors ...RequestEditorFn) (*GetDeploymentPipelineResp, error) { - rsp, err := c.GetDeploymentPipeline(ctx, namespaceName, deploymentPipelineName, reqEditors...) - if err != nil { - return nil, err + response := &UpdateClusterRoleResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetDeploymentPipelineResp(rsp) -} -// UpdateDeploymentPipelineWithBodyWithResponse request with arbitrary body returning *UpdateDeploymentPipelineResp -func (c *ClientWithResponses) UpdateDeploymentPipelineWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDeploymentPipelineResp, error) { - rsp, err := c.UpdateDeploymentPipelineWithBody(ctx, namespaceName, deploymentPipelineName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateDeploymentPipelineResp(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterAuthzRole + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -func (c *ClientWithResponses) UpdateDeploymentPipelineWithResponse(ctx context.Context, namespaceName NamespaceNameParam, deploymentPipelineName DeploymentPipelineNameParam, body UpdateDeploymentPipelineJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDeploymentPipelineResp, error) { - rsp, err := c.UpdateDeploymentPipeline(ctx, namespaceName, deploymentPipelineName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateDeploymentPipelineResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest -// ListEnvironmentsWithResponse request returning *ListEnvironmentsResp -func (c *ClientWithResponses) ListEnvironmentsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListEnvironmentsParams, reqEditors ...RequestEditorFn) (*ListEnvironmentsResp, error) { - rsp, err := c.ListEnvironments(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListEnvironmentsResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest -// CreateEnvironmentWithBodyWithResponse request with arbitrary body returning *CreateEnvironmentResp -func (c *ClientWithResponses) CreateEnvironmentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEnvironmentResp, error) { - rsp, err := c.CreateEnvironmentWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateEnvironmentResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest -func (c *ClientWithResponses) CreateEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvironmentResp, error) { - rsp, err := c.CreateEnvironment(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateEnvironmentResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -// DeleteEnvironmentWithResponse request returning *DeleteEnvironmentResp -func (c *ClientWithResponses) DeleteEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResp, error) { - rsp, err := c.DeleteEnvironment(ctx, namespaceName, envName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteEnvironmentResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest -// GetEnvironmentWithResponse request returning *GetEnvironmentResp -func (c *ClientWithResponses) GetEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, reqEditors ...RequestEditorFn) (*GetEnvironmentResp, error) { - rsp, err := c.GetEnvironment(ctx, namespaceName, envName, reqEditors...) - if err != nil { - return nil, err } - return ParseGetEnvironmentResp(rsp) + + return response, nil } -// UpdateEnvironmentWithBodyWithResponse request with arbitrary body returning *UpdateEnvironmentResp -func (c *ClientWithResponses) UpdateEnvironmentWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResp, error) { - rsp, err := c.UpdateEnvironmentWithBody(ctx, namespaceName, envName, contentType, body, reqEditors...) +// ParseListClusterComponentTypesResp parses an HTTP response from a ListClusterComponentTypesWithResponse call +func ParseListClusterComponentTypesResp(rsp *http.Response) (*ListClusterComponentTypesResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateEnvironmentResp(rsp) -} -func (c *ClientWithResponses) UpdateEnvironmentWithResponse(ctx context.Context, namespaceName NamespaceNameParam, envName EnvironmentNameParam, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResp, error) { - rsp, err := c.UpdateEnvironment(ctx, namespaceName, envName, body, reqEditors...) - if err != nil { - return nil, err + response := &ListClusterComponentTypesResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateEnvironmentResp(rsp) -} -// ListObservabilityAlertsNotificationChannelsWithResponse request returning *ListObservabilityAlertsNotificationChannelsResp -func (c *ClientWithResponses) ListObservabilityAlertsNotificationChannelsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListObservabilityAlertsNotificationChannelsParams, reqEditors ...RequestEditorFn) (*ListObservabilityAlertsNotificationChannelsResp, error) { - rsp, err := c.ListObservabilityAlertsNotificationChannels(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterComponentTypeList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseListObservabilityAlertsNotificationChannelsResp(rsp) + + return response, nil } -// CreateObservabilityAlertsNotificationChannelWithBodyWithResponse request with arbitrary body returning *CreateObservabilityAlertsNotificationChannelResp -func (c *ClientWithResponses) CreateObservabilityAlertsNotificationChannelWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateObservabilityAlertsNotificationChannelResp, error) { - rsp, err := c.CreateObservabilityAlertsNotificationChannelWithBody(ctx, namespaceName, contentType, body, reqEditors...) +// ParseCreateClusterComponentTypeResp parses an HTTP response from a CreateClusterComponentTypeWithResponse call +func ParseCreateClusterComponentTypeResp(rsp *http.Response) (*CreateClusterComponentTypeResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateObservabilityAlertsNotificationChannelResp(rsp) -} -func (c *ClientWithResponses) CreateObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateObservabilityAlertsNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateObservabilityAlertsNotificationChannelResp, error) { - rsp, err := c.CreateObservabilityAlertsNotificationChannel(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err + response := &CreateClusterComponentTypeResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateObservabilityAlertsNotificationChannelResp(rsp) -} -// DeleteObservabilityAlertsNotificationChannelWithResponse request returning *DeleteObservabilityAlertsNotificationChannelResp -func (c *ClientWithResponses) DeleteObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, reqEditors ...RequestEditorFn) (*DeleteObservabilityAlertsNotificationChannelResp, error) { - rsp, err := c.DeleteObservabilityAlertsNotificationChannel(ctx, namespaceName, observabilityAlertsNotificationChannelName, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ClusterComponentType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseDeleteObservabilityAlertsNotificationChannelResp(rsp) -} -// GetObservabilityAlertsNotificationChannelWithResponse request returning *GetObservabilityAlertsNotificationChannelResp -func (c *ClientWithResponses) GetObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, reqEditors ...RequestEditorFn) (*GetObservabilityAlertsNotificationChannelResp, error) { - rsp, err := c.GetObservabilityAlertsNotificationChannel(ctx, namespaceName, observabilityAlertsNotificationChannelName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetObservabilityAlertsNotificationChannelResp(rsp) + return response, nil } -// UpdateObservabilityAlertsNotificationChannelWithBodyWithResponse request with arbitrary body returning *UpdateObservabilityAlertsNotificationChannelResp -func (c *ClientWithResponses) UpdateObservabilityAlertsNotificationChannelWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateObservabilityAlertsNotificationChannelResp, error) { - rsp, err := c.UpdateObservabilityAlertsNotificationChannelWithBody(ctx, namespaceName, observabilityAlertsNotificationChannelName, contentType, body, reqEditors...) +// ParseDeleteClusterComponentTypeResp parses an HTTP response from a DeleteClusterComponentTypeWithResponse call +func ParseDeleteClusterComponentTypeResp(rsp *http.Response) (*DeleteClusterComponentTypeResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateObservabilityAlertsNotificationChannelResp(rsp) -} -func (c *ClientWithResponses) UpdateObservabilityAlertsNotificationChannelWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityAlertsNotificationChannelName ObservabilityAlertsNotificationChannelNameParam, body UpdateObservabilityAlertsNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateObservabilityAlertsNotificationChannelResp, error) { - rsp, err := c.UpdateObservabilityAlertsNotificationChannel(ctx, namespaceName, observabilityAlertsNotificationChannelName, body, reqEditors...) - if err != nil { - return nil, err + response := &DeleteClusterComponentTypeResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateObservabilityAlertsNotificationChannelResp(rsp) -} -// ListObservabilityPlanesWithResponse request returning *ListObservabilityPlanesResp -func (c *ClientWithResponses) ListObservabilityPlanesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListObservabilityPlanesParams, reqEditors ...RequestEditorFn) (*ListObservabilityPlanesResp, error) { - rsp, err := c.ListObservabilityPlanes(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListObservabilityPlanesResp(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest -// CreateObservabilityPlaneWithBodyWithResponse request with arbitrary body returning *CreateObservabilityPlaneResp -func (c *ClientWithResponses) CreateObservabilityPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateObservabilityPlaneResp, error) { - rsp, err := c.CreateObservabilityPlaneWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateObservabilityPlaneResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest -func (c *ClientWithResponses) CreateObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateObservabilityPlaneResp, error) { - rsp, err := c.CreateObservabilityPlane(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateObservabilityPlaneResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -// DeleteObservabilityPlaneWithResponse request returning *DeleteObservabilityPlaneResp -func (c *ClientWithResponses) DeleteObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteObservabilityPlaneResp, error) { - rsp, err := c.DeleteObservabilityPlane(ctx, namespaceName, observabilityPlaneName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteObservabilityPlaneResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest -// GetObservabilityPlaneWithResponse request returning *GetObservabilityPlaneResp -func (c *ClientWithResponses) GetObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, reqEditors ...RequestEditorFn) (*GetObservabilityPlaneResp, error) { - rsp, err := c.GetObservabilityPlane(ctx, namespaceName, observabilityPlaneName, reqEditors...) - if err != nil { - return nil, err } - return ParseGetObservabilityPlaneResp(rsp) -} -// UpdateObservabilityPlaneWithBodyWithResponse request with arbitrary body returning *UpdateObservabilityPlaneResp -func (c *ClientWithResponses) UpdateObservabilityPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateObservabilityPlaneResp, error) { - rsp, err := c.UpdateObservabilityPlaneWithBody(ctx, namespaceName, observabilityPlaneName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateObservabilityPlaneResp(rsp) + return response, nil } -func (c *ClientWithResponses) UpdateObservabilityPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, observabilityPlaneName ObservabilityPlaneNameParam, body UpdateObservabilityPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateObservabilityPlaneResp, error) { - rsp, err := c.UpdateObservabilityPlane(ctx, namespaceName, observabilityPlaneName, body, reqEditors...) +// ParseGetClusterComponentTypeResp parses an HTTP response from a GetClusterComponentTypeWithResponse call +func ParseGetClusterComponentTypeResp(rsp *http.Response) (*GetClusterComponentTypeResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateObservabilityPlaneResp(rsp) -} -// ListProjectsWithResponse request returning *ListProjectsResp -func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResp, error) { - rsp, err := c.ListProjects(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err + response := &GetClusterComponentTypeResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseListProjectsResp(rsp) -} -// CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectResp -func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResp, error) { - rsp, err := c.CreateProjectWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateProjectResp(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterComponentType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResp, error) { - rsp, err := c.CreateProject(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateProjectResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest -// DeleteProjectWithResponse request returning *DeleteProjectResp -func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, reqEditors ...RequestEditorFn) (*DeleteProjectResp, error) { - rsp, err := c.DeleteProject(ctx, namespaceName, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteProjectResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest -// GetProjectWithResponse request returning *GetProjectResp -func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, reqEditors ...RequestEditorFn) (*GetProjectResp, error) { - rsp, err := c.GetProject(ctx, namespaceName, projectName, reqEditors...) - if err != nil { - return nil, err } - return ParseGetProjectResp(rsp) + + return response, nil } -// UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectResp -func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResp, error) { - rsp, err := c.UpdateProjectWithBody(ctx, namespaceName, projectName, contentType, body, reqEditors...) +// ParseUpdateClusterComponentTypeResp parses an HTTP response from a UpdateClusterComponentTypeWithResponse call +func ParseUpdateClusterComponentTypeResp(rsp *http.Response) (*UpdateClusterComponentTypeResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateProjectResp(rsp) -} -func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, namespaceName NamespaceNameParam, projectName ProjectNameParam, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResp, error) { - rsp, err := c.UpdateProject(ctx, namespaceName, projectName, body, reqEditors...) - if err != nil { - return nil, err + response := &UpdateClusterComponentTypeResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateProjectResp(rsp) -} -// ListReleaseBindingsWithResponse request returning *ListReleaseBindingsResp -func (c *ClientWithResponses) ListReleaseBindingsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListReleaseBindingsParams, reqEditors ...RequestEditorFn) (*ListReleaseBindingsResp, error) { - rsp, err := c.ListReleaseBindings(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterComponentType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseListReleaseBindingsResp(rsp) -} -// CreateReleaseBindingWithBodyWithResponse request with arbitrary body returning *CreateReleaseBindingResp -func (c *ClientWithResponses) CreateReleaseBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReleaseBindingResp, error) { - rsp, err := c.CreateReleaseBindingWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateReleaseBindingResp(rsp) + return response, nil } -func (c *ClientWithResponses) CreateReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReleaseBindingResp, error) { - rsp, err := c.CreateReleaseBinding(ctx, namespaceName, body, reqEditors...) +// ParseGetClusterComponentTypeSchemaResp parses an HTTP response from a GetClusterComponentTypeSchemaWithResponse call +func ParseGetClusterComponentTypeSchemaResp(rsp *http.Response) (*GetClusterComponentTypeSchemaResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateReleaseBindingResp(rsp) -} -// DeleteReleaseBindingWithResponse request returning *DeleteReleaseBindingResp -func (c *ClientWithResponses) DeleteReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*DeleteReleaseBindingResp, error) { - rsp, err := c.DeleteReleaseBinding(ctx, namespaceName, releaseBindingName, reqEditors...) - if err != nil { - return nil, err + response := &GetClusterComponentTypeSchemaResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteReleaseBindingResp(rsp) -} -// GetReleaseBindingWithResponse request returning *GetReleaseBindingResp -func (c *ClientWithResponses) GetReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*GetReleaseBindingResp, error) { - rsp, err := c.GetReleaseBinding(ctx, namespaceName, releaseBindingName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetReleaseBindingResp(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SchemaResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// UpdateReleaseBindingWithBodyWithResponse request with arbitrary body returning *UpdateReleaseBindingResp -func (c *ClientWithResponses) UpdateReleaseBindingWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReleaseBindingResp, error) { - rsp, err := c.UpdateReleaseBindingWithBody(ctx, namespaceName, releaseBindingName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateReleaseBindingResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest -func (c *ClientWithResponses) UpdateReleaseBindingWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, body UpdateReleaseBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReleaseBindingResp, error) { - rsp, err := c.UpdateReleaseBinding(ctx, namespaceName, releaseBindingName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateReleaseBindingResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest -// GetReleaseBindingK8sResourceEventsWithResponse request returning *GetReleaseBindingK8sResourceEventsResp -func (c *ClientWithResponses) GetReleaseBindingK8sResourceEventsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, params *GetReleaseBindingK8sResourceEventsParams, reqEditors ...RequestEditorFn) (*GetReleaseBindingK8sResourceEventsResp, error) { - rsp, err := c.GetReleaseBindingK8sResourceEvents(ctx, namespaceName, releaseBindingName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetReleaseBindingK8sResourceEventsResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -// GetReleaseBindingK8sResourceLogsWithResponse request returning *GetReleaseBindingK8sResourceLogsResp -func (c *ClientWithResponses) GetReleaseBindingK8sResourceLogsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, params *GetReleaseBindingK8sResourceLogsParams, reqEditors ...RequestEditorFn) (*GetReleaseBindingK8sResourceLogsResp, error) { - rsp, err := c.GetReleaseBindingK8sResourceLogs(ctx, namespaceName, releaseBindingName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetReleaseBindingK8sResourceLogsResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest -// GetReleaseBindingK8sResourceTreeWithResponse request returning *GetReleaseBindingK8sResourceTreeResp -func (c *ClientWithResponses) GetReleaseBindingK8sResourceTreeWithResponse(ctx context.Context, namespaceName NamespaceNameParam, releaseBindingName ReleaseBindingNameParam, reqEditors ...RequestEditorFn) (*GetReleaseBindingK8sResourceTreeResp, error) { - rsp, err := c.GetReleaseBindingK8sResourceTree(ctx, namespaceName, releaseBindingName, reqEditors...) - if err != nil { - return nil, err } - return ParseGetReleaseBindingK8sResourceTreeResp(rsp) -} -// ListSecretReferencesWithResponse request returning *ListSecretReferencesResp -func (c *ClientWithResponses) ListSecretReferencesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListSecretReferencesParams, reqEditors ...RequestEditorFn) (*ListSecretReferencesResp, error) { - rsp, err := c.ListSecretReferences(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListSecretReferencesResp(rsp) + return response, nil } -// CreateSecretReferenceWithBodyWithResponse request with arbitrary body returning *CreateSecretReferenceResp -func (c *ClientWithResponses) CreateSecretReferenceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretReferenceResp, error) { - rsp, err := c.CreateSecretReferenceWithBody(ctx, namespaceName, contentType, body, reqEditors...) +// ParseListClusterDataPlanesResp parses an HTTP response from a ListClusterDataPlanesWithResponse call +func ParseListClusterDataPlanesResp(rsp *http.Response) (*ListClusterDataPlanesResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateSecretReferenceResp(rsp) -} -func (c *ClientWithResponses) CreateSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateSecretReferenceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretReferenceResp, error) { - rsp, err := c.CreateSecretReference(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err + response := &ListClusterDataPlanesResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateSecretReferenceResp(rsp) -} -// DeleteSecretReferenceWithResponse request returning *DeleteSecretReferenceResp -func (c *ClientWithResponses) DeleteSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, reqEditors ...RequestEditorFn) (*DeleteSecretReferenceResp, error) { - rsp, err := c.DeleteSecretReference(ctx, namespaceName, secretReferenceName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteSecretReferenceResp(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterDataPlaneList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest -// GetSecretReferenceWithResponse request returning *GetSecretReferenceResp -func (c *ClientWithResponses) GetSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, reqEditors ...RequestEditorFn) (*GetSecretReferenceResp, error) { - rsp, err := c.GetSecretReference(ctx, namespaceName, secretReferenceName, reqEditors...) - if err != nil { - return nil, err } - return ParseGetSecretReferenceResp(rsp) + + return response, nil } -// UpdateSecretReferenceWithBodyWithResponse request with arbitrary body returning *UpdateSecretReferenceResp -func (c *ClientWithResponses) UpdateSecretReferenceWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecretReferenceResp, error) { - rsp, err := c.UpdateSecretReferenceWithBody(ctx, namespaceName, secretReferenceName, contentType, body, reqEditors...) +// ParseCreateClusterDataPlaneResp parses an HTTP response from a CreateClusterDataPlaneWithResponse call +func ParseCreateClusterDataPlaneResp(rsp *http.Response) (*CreateClusterDataPlaneResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateSecretReferenceResp(rsp) -} -func (c *ClientWithResponses) UpdateSecretReferenceWithResponse(ctx context.Context, namespaceName NamespaceNameParam, secretReferenceName SecretReferenceNameParam, body UpdateSecretReferenceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecretReferenceResp, error) { - rsp, err := c.UpdateSecretReference(ctx, namespaceName, secretReferenceName, body, reqEditors...) - if err != nil { - return nil, err + response := &CreateClusterDataPlaneResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateSecretReferenceResp(rsp) -} -// ListTraitsWithResponse request returning *ListTraitsResp -func (c *ClientWithResponses) ListTraitsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListTraitsParams, reqEditors ...RequestEditorFn) (*ListTraitsResp, error) { - rsp, err := c.ListTraits(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ClusterDataPlane + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseListTraitsResp(rsp) -} -// CreateTraitWithBodyWithResponse request with arbitrary body returning *CreateTraitResp -func (c *ClientWithResponses) CreateTraitWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTraitResp, error) { - rsp, err := c.CreateTraitWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateTraitResp(rsp) + return response, nil } -func (c *ClientWithResponses) CreateTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTraitResp, error) { - rsp, err := c.CreateTrait(ctx, namespaceName, body, reqEditors...) +// ParseDeleteClusterDataPlaneResp parses an HTTP response from a DeleteClusterDataPlaneWithResponse call +func ParseDeleteClusterDataPlaneResp(rsp *http.Response) (*DeleteClusterDataPlaneResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateTraitResp(rsp) -} -// DeleteTraitWithResponse request returning *DeleteTraitResp -func (c *ClientWithResponses) DeleteTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*DeleteTraitResp, error) { - rsp, err := c.DeleteTrait(ctx, namespaceName, traitName, reqEditors...) - if err != nil { - return nil, err + response := &DeleteClusterDataPlaneResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteTraitResp(rsp) -} -// GetTraitWithResponse request returning *GetTraitResp -func (c *ClientWithResponses) GetTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*GetTraitResp, error) { - rsp, err := c.GetTrait(ctx, namespaceName, traitName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetTraitResp(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest -// UpdateTraitWithBodyWithResponse request with arbitrary body returning *UpdateTraitResp -func (c *ClientWithResponses) UpdateTraitWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTraitResp, error) { - rsp, err := c.UpdateTraitWithBody(ctx, namespaceName, traitName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateTraitResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest -func (c *ClientWithResponses) UpdateTraitWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, body UpdateTraitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTraitResp, error) { - rsp, err := c.UpdateTrait(ctx, namespaceName, traitName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateTraitResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -// GetTraitSchemaWithResponse request returning *GetTraitSchemaResp -func (c *ClientWithResponses) GetTraitSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, traitName TraitNameParam, reqEditors ...RequestEditorFn) (*GetTraitSchemaResp, error) { - rsp, err := c.GetTraitSchema(ctx, namespaceName, traitName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetTraitSchemaResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest -// ListWorkflowPlanesWithResponse request returning *ListWorkflowPlanesResp -func (c *ClientWithResponses) ListWorkflowPlanesWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowPlanesParams, reqEditors ...RequestEditorFn) (*ListWorkflowPlanesResp, error) { - rsp, err := c.ListWorkflowPlanes(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err } - return ParseListWorkflowPlanesResp(rsp) -} -// CreateWorkflowPlaneWithBodyWithResponse request with arbitrary body returning *CreateWorkflowPlaneResp -func (c *ClientWithResponses) CreateWorkflowPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkflowPlaneResp, error) { - rsp, err := c.CreateWorkflowPlaneWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateWorkflowPlaneResp(rsp) + return response, nil } -func (c *ClientWithResponses) CreateWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkflowPlaneResp, error) { - rsp, err := c.CreateWorkflowPlane(ctx, namespaceName, body, reqEditors...) +// ParseGetClusterDataPlaneResp parses an HTTP response from a GetClusterDataPlaneWithResponse call +func ParseGetClusterDataPlaneResp(rsp *http.Response) (*GetClusterDataPlaneResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateWorkflowPlaneResp(rsp) -} -// DeleteWorkflowPlaneWithResponse request returning *DeleteWorkflowPlaneResp -func (c *ClientWithResponses) DeleteWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkflowPlaneResp, error) { - rsp, err := c.DeleteWorkflowPlane(ctx, namespaceName, workflowPlaneName, reqEditors...) - if err != nil { - return nil, err + response := &GetClusterDataPlaneResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteWorkflowPlaneResp(rsp) -} -// GetWorkflowPlaneWithResponse request returning *GetWorkflowPlaneResp -func (c *ClientWithResponses) GetWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowPlaneResp, error) { - rsp, err := c.GetWorkflowPlane(ctx, namespaceName, workflowPlaneName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetWorkflowPlaneResp(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterDataPlane + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// UpdateWorkflowPlaneWithBodyWithResponse request with arbitrary body returning *UpdateWorkflowPlaneResp -func (c *ClientWithResponses) UpdateWorkflowPlaneWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowPlaneResp, error) { - rsp, err := c.UpdateWorkflowPlaneWithBody(ctx, namespaceName, workflowPlaneName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateWorkflowPlaneResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest -func (c *ClientWithResponses) UpdateWorkflowPlaneWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowPlaneName WorkflowPlaneNameParam, body UpdateWorkflowPlaneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkflowPlaneResp, error) { - rsp, err := c.UpdateWorkflowPlane(ctx, namespaceName, workflowPlaneName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateWorkflowPlaneResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest -// ListWorkflowRunsWithResponse request returning *ListWorkflowRunsResp -func (c *ClientWithResponses) ListWorkflowRunsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowRunsParams, reqEditors ...RequestEditorFn) (*ListWorkflowRunsResp, error) { - rsp, err := c.ListWorkflowRuns(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err } - return ParseListWorkflowRunsResp(rsp) + + return response, nil } -// CreateWorkflowRunWithBodyWithResponse request with arbitrary body returning *CreateWorkflowRunResp -func (c *ClientWithResponses) CreateWorkflowRunWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkflowRunResp, error) { - rsp, err := c.CreateWorkflowRunWithBody(ctx, namespaceName, contentType, body, reqEditors...) +// ParseUpdateClusterDataPlaneResp parses an HTTP response from a UpdateClusterDataPlaneWithResponse call +func ParseUpdateClusterDataPlaneResp(rsp *http.Response) (*UpdateClusterDataPlaneResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateWorkflowRunResp(rsp) -} -func (c *ClientWithResponses) CreateWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkflowRunResp, error) { - rsp, err := c.CreateWorkflowRun(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err + response := &UpdateClusterDataPlaneResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateWorkflowRunResp(rsp) -} -// GetWorkflowRunWithResponse request returning *GetWorkflowRunResp -func (c *ClientWithResponses) GetWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowRunResp, error) { - rsp, err := c.GetWorkflowRun(ctx, namespaceName, runName, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterDataPlane + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseGetWorkflowRunResp(rsp) + + return response, nil } -// UpdateWorkflowRunWithBodyWithResponse request with arbitrary body returning *UpdateWorkflowRunResp -func (c *ClientWithResponses) UpdateWorkflowRunWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowRunResp, error) { - rsp, err := c.UpdateWorkflowRunWithBody(ctx, namespaceName, runName, contentType, body, reqEditors...) +// ParseListClusterObservabilityPlanesResp parses an HTTP response from a ListClusterObservabilityPlanesWithResponse call +func ParseListClusterObservabilityPlanesResp(rsp *http.Response) (*ListClusterObservabilityPlanesResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseUpdateWorkflowRunResp(rsp) -} -func (c *ClientWithResponses) UpdateWorkflowRunWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, body UpdateWorkflowRunJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkflowRunResp, error) { - rsp, err := c.UpdateWorkflowRun(ctx, namespaceName, runName, body, reqEditors...) - if err != nil { - return nil, err + response := &ListClusterObservabilityPlanesResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateWorkflowRunResp(rsp) -} -// GetWorkflowRunEventsWithResponse request returning *GetWorkflowRunEventsResp -func (c *ClientWithResponses) GetWorkflowRunEventsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunEventsParams, reqEditors ...RequestEditorFn) (*GetWorkflowRunEventsResp, error) { - rsp, err := c.GetWorkflowRunEvents(ctx, namespaceName, runName, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterObservabilityPlaneList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseGetWorkflowRunEventsResp(rsp) + + return response, nil } -// GetWorkflowRunLogsWithResponse request returning *GetWorkflowRunLogsResp -func (c *ClientWithResponses) GetWorkflowRunLogsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, params *GetWorkflowRunLogsParams, reqEditors ...RequestEditorFn) (*GetWorkflowRunLogsResp, error) { - rsp, err := c.GetWorkflowRunLogs(ctx, namespaceName, runName, params, reqEditors...) +// ParseCreateClusterObservabilityPlaneResp parses an HTTP response from a CreateClusterObservabilityPlaneWithResponse call +func ParseCreateClusterObservabilityPlaneResp(rsp *http.Response) (*CreateClusterObservabilityPlaneResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetWorkflowRunLogsResp(rsp) -} -// GetWorkflowRunStatusWithResponse request returning *GetWorkflowRunStatusResp -func (c *ClientWithResponses) GetWorkflowRunStatusWithResponse(ctx context.Context, namespaceName NamespaceNameParam, runName WorkflowRunNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowRunStatusResp, error) { - rsp, err := c.GetWorkflowRunStatus(ctx, namespaceName, runName, reqEditors...) - if err != nil { - return nil, err + response := &CreateClusterObservabilityPlaneResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetWorkflowRunStatusResp(rsp) -} -// ListWorkflowsWithResponse request returning *ListWorkflowsResp -func (c *ClientWithResponses) ListWorkflowsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkflowsParams, reqEditors ...RequestEditorFn) (*ListWorkflowsResp, error) { - rsp, err := c.ListWorkflows(ctx, namespaceName, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ClusterObservabilityPlane + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseListWorkflowsResp(rsp) + + return response, nil } -// CreateWorkflowWithBodyWithResponse request with arbitrary body returning *CreateWorkflowResp -func (c *ClientWithResponses) CreateWorkflowWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkflowResp, error) { - rsp, err := c.CreateWorkflowWithBody(ctx, namespaceName, contentType, body, reqEditors...) +// ParseDeleteClusterObservabilityPlaneResp parses an HTTP response from a DeleteClusterObservabilityPlaneWithResponse call +func ParseDeleteClusterObservabilityPlaneResp(rsp *http.Response) (*DeleteClusterObservabilityPlaneResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseCreateWorkflowResp(rsp) -} -func (c *ClientWithResponses) CreateWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkflowResp, error) { - rsp, err := c.CreateWorkflow(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err + response := &DeleteClusterObservabilityPlaneResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateWorkflowResp(rsp) -} -// DeleteWorkflowWithResponse request returning *DeleteWorkflowResp -func (c *ClientWithResponses) DeleteWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkflowResp, error) { - rsp, err := c.DeleteWorkflow(ctx, namespaceName, workflowName, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseDeleteWorkflowResp(rsp) + + return response, nil } -// GetWorkflowWithResponse request returning *GetWorkflowResp -func (c *ClientWithResponses) GetWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowResp, error) { - rsp, err := c.GetWorkflow(ctx, namespaceName, workflowName, reqEditors...) +// ParseGetClusterObservabilityPlaneResp parses an HTTP response from a GetClusterObservabilityPlaneWithResponse call +func ParseGetClusterObservabilityPlaneResp(rsp *http.Response) (*GetClusterObservabilityPlaneResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetWorkflowResp(rsp) -} -// UpdateWorkflowWithBodyWithResponse request with arbitrary body returning *UpdateWorkflowResp -func (c *ClientWithResponses) UpdateWorkflowWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkflowResp, error) { - rsp, err := c.UpdateWorkflowWithBody(ctx, namespaceName, workflowName, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &GetClusterObservabilityPlaneResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseUpdateWorkflowResp(rsp) -} -func (c *ClientWithResponses) UpdateWorkflowWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, body UpdateWorkflowJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkflowResp, error) { - rsp, err := c.UpdateWorkflow(ctx, namespaceName, workflowName, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterObservabilityPlane + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } - return ParseUpdateWorkflowResp(rsp) -} -// GetWorkflowSchemaWithResponse request returning *GetWorkflowSchemaResp -func (c *ClientWithResponses) GetWorkflowSchemaWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workflowName WorkflowNameParam, reqEditors ...RequestEditorFn) (*GetWorkflowSchemaResp, error) { - rsp, err := c.GetWorkflowSchema(ctx, namespaceName, workflowName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetWorkflowSchemaResp(rsp) + return response, nil } -// ListWorkloadsWithResponse request returning *ListWorkloadsResp -func (c *ClientWithResponses) ListWorkloadsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, params *ListWorkloadsParams, reqEditors ...RequestEditorFn) (*ListWorkloadsResp, error) { - rsp, err := c.ListWorkloads(ctx, namespaceName, params, reqEditors...) +// ParseUpdateClusterObservabilityPlaneResp parses an HTTP response from a UpdateClusterObservabilityPlaneWithResponse call +func ParseUpdateClusterObservabilityPlaneResp(rsp *http.Response) (*UpdateClusterObservabilityPlaneResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseListWorkloadsResp(rsp) -} -// CreateWorkloadWithBodyWithResponse request with arbitrary body returning *CreateWorkloadResp -func (c *ClientWithResponses) CreateWorkloadWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkloadResp, error) { - rsp, err := c.CreateWorkloadWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &UpdateClusterObservabilityPlaneResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseCreateWorkloadResp(rsp) -} -func (c *ClientWithResponses) CreateWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkloadResp, error) { - rsp, err := c.CreateWorkload(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateWorkloadResp(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterObservabilityPlane + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// DeleteWorkloadWithResponse request returning *DeleteWorkloadResp -func (c *ClientWithResponses) DeleteWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, reqEditors ...RequestEditorFn) (*DeleteWorkloadResp, error) { - rsp, err := c.DeleteWorkload(ctx, namespaceName, workloadName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteWorkloadResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest -// GetWorkloadWithResponse request returning *GetWorkloadResp -func (c *ClientWithResponses) GetWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, reqEditors ...RequestEditorFn) (*GetWorkloadResp, error) { - rsp, err := c.GetWorkload(ctx, namespaceName, workloadName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetWorkloadResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest -// UpdateWorkloadWithBodyWithResponse request with arbitrary body returning *UpdateWorkloadResp -func (c *ClientWithResponses) UpdateWorkloadWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkloadResp, error) { - rsp, err := c.UpdateWorkloadWithBody(ctx, namespaceName, workloadName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateWorkloadResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest -func (c *ClientWithResponses) UpdateWorkloadWithResponse(ctx context.Context, namespaceName NamespaceNameParam, workloadName WorkloadNameParam, body UpdateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkloadResp, error) { - rsp, err := c.UpdateWorkload(ctx, namespaceName, workloadName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateWorkloadResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -// HandleAutoBuildWithBodyWithResponse request with arbitrary body returning *HandleAutoBuildResp -func (c *ClientWithResponses) HandleAutoBuildWithBodyWithResponse(ctx context.Context, params *HandleAutoBuildParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleAutoBuildResp, error) { - rsp, err := c.HandleAutoBuildWithBody(ctx, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseHandleAutoBuildResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest -func (c *ClientWithResponses) HandleAutoBuildWithResponse(ctx context.Context, params *HandleAutoBuildParams, body HandleAutoBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleAutoBuildResp, error) { - rsp, err := c.HandleAutoBuild(ctx, params, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseHandleAutoBuildResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest -// ListGitSecretsWithResponse request returning *ListGitSecretsResp -func (c *ClientWithResponses) ListGitSecretsWithResponse(ctx context.Context, namespaceName NamespaceNameParam, reqEditors ...RequestEditorFn) (*ListGitSecretsResp, error) { - rsp, err := c.ListGitSecrets(ctx, namespaceName, reqEditors...) - if err != nil { - return nil, err - } - return ParseListGitSecretsResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest -// CreateGitSecretWithBodyWithResponse request with arbitrary body returning *CreateGitSecretResp -func (c *ClientWithResponses) CreateGitSecretWithBodyWithResponse(ctx context.Context, namespaceName NamespaceNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitSecretResp, error) { - rsp, err := c.CreateGitSecretWithBody(ctx, namespaceName, contentType, body, reqEditors...) - if err != nil { - return nil, err } - return ParseCreateGitSecretResp(rsp) -} -func (c *ClientWithResponses) CreateGitSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, body CreateGitSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitSecretResp, error) { - rsp, err := c.CreateGitSecret(ctx, namespaceName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateGitSecretResp(rsp) + return response, nil } -// DeleteGitSecretWithResponse request returning *DeleteGitSecretResp -func (c *ClientWithResponses) DeleteGitSecretWithResponse(ctx context.Context, namespaceName NamespaceNameParam, gitSecretName GitSecretNameParam, reqEditors ...RequestEditorFn) (*DeleteGitSecretResp, error) { - rsp, err := c.DeleteGitSecret(ctx, namespaceName, gitSecretName, reqEditors...) +// ParseListClusterResourceTypesResp parses an HTTP response from a ListClusterResourceTypesWithResponse call +func ParseListClusterResourceTypesResp(rsp *http.Response) (*ListClusterResourceTypesResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteGitSecretResp(rsp) -} -// GetHealthWithResponse request returning *GetHealthResp -func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResp, error) { - rsp, err := c.GetHealth(ctx, reqEditors...) - if err != nil { - return nil, err + response := &ListClusterResourceTypesResp{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetHealthResp(rsp) -} -// GetOpenAPISpecWithResponse request returning *GetOpenAPISpecResp -func (c *ClientWithResponses) GetOpenAPISpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPISpecResp, error) { - rsp, err := c.GetOpenAPISpec(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetOpenAPISpecResp(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterResourceTypeList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// GetReadyWithResponse request returning *GetReadyResp -func (c *ClientWithResponses) GetReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyResp, error) { - rsp, err := c.GetReady(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetReadyResp(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest -// GetVersionWithResponse request returning *GetVersionResp -func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResp, error) { - rsp, err := c.GetVersion(ctx, reqEditors...) - if err != nil { - return nil, err } - return ParseGetVersionResp(rsp) + + return response, nil } -// ParseGetOAuthProtectedResourceMetadataResp parses an HTTP response from a GetOAuthProtectedResourceMetadataWithResponse call -func ParseGetOAuthProtectedResourceMetadataResp(rsp *http.Response) (*GetOAuthProtectedResourceMetadataResp, error) { +// ParseCreateClusterResourceTypeResp parses an HTTP response from a CreateClusterResourceTypeWithResponse call +func ParseCreateClusterResourceTypeResp(rsp *http.Response) (*CreateClusterResourceTypeResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOAuthProtectedResourceMetadataResp{ + response := &CreateClusterResourceTypeResp{ Body: bodyBytes, HTTPResponse: rsp, } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OAuthProtectedResourceMetadata + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ClusterResourceType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest } return response, nil } -// ParseListSubjectTypesResp parses an HTTP response from a ListSubjectTypesWithResponse call -func ParseListSubjectTypesResp(rsp *http.Response) (*ListSubjectTypesResp, error) { +// ParseDeleteClusterResourceTypeResp parses an HTTP response from a DeleteClusterResourceTypeWithResponse call +func ParseDeleteClusterResourceTypeResp(rsp *http.Response) (*DeleteClusterResourceTypeResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSubjectTypesResp{ + response := &DeleteClusterResourceTypeResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []SubjectTypeConfig + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Unauthorized + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -18292,22 +23887,22 @@ func ParseListSubjectTypesResp(rsp *http.Response) (*ListSubjectTypesResp, error return response, nil } -// ParseListActionsResp parses an HTTP response from a ListActionsWithResponse call -func ParseListActionsResp(rsp *http.Response) (*ListActionsResp, error) { +// ParseGetClusterResourceTypeResp parses an HTTP response from a GetClusterResourceTypeWithResponse call +func ParseGetClusterResourceTypeResp(rsp *http.Response) (*GetClusterResourceTypeResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListActionsResp{ + response := &GetClusterResourceTypeResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []ActionInfo + var dest ClusterResourceType if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18327,6 +23922,13 @@ func ParseListActionsResp(rsp *http.Response) (*ListActionsResp, error) { } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -18339,22 +23941,22 @@ func ParseListActionsResp(rsp *http.Response) (*ListActionsResp, error) { return response, nil } -// ParseEvaluatesResp parses an HTTP response from a EvaluatesWithResponse call -func ParseEvaluatesResp(rsp *http.Response) (*EvaluatesResp, error) { +// ParseUpdateClusterResourceTypeResp parses an HTTP response from a UpdateClusterResourceTypeWithResponse call +func ParseUpdateClusterResourceTypeResp(rsp *http.Response) (*UpdateClusterResourceTypeResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &EvaluatesResp{ + response := &UpdateClusterResourceTypeResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []Decision + var dest ClusterResourceType if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18374,6 +23976,27 @@ func ParseEvaluatesResp(rsp *http.Response) (*EvaluatesResp, error) { } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -18386,34 +24009,27 @@ func ParseEvaluatesResp(rsp *http.Response) (*EvaluatesResp, error) { return response, nil } -// ParseGetSubjectProfileResp parses an HTTP response from a GetSubjectProfileWithResponse call -func ParseGetSubjectProfileResp(rsp *http.Response) (*GetSubjectProfileResp, error) { +// ParseGetClusterResourceTypeSchemaResp parses an HTTP response from a GetClusterResourceTypeSchemaWithResponse call +func ParseGetClusterResourceTypeSchemaResp(rsp *http.Response) (*GetClusterResourceTypeSchemaResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSubjectProfileResp{ + response := &GetClusterResourceTypeSchemaResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserCapabilitiesResponse + var dest SchemaResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -18428,6 +24044,13 @@ func ParseGetSubjectProfileResp(rsp *http.Response) (*GetSubjectProfileResp, err } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -18440,22 +24063,22 @@ func ParseGetSubjectProfileResp(rsp *http.Response) (*GetSubjectProfileResp, err return response, nil } -// ParseListClusterRoleBindingsResp parses an HTTP response from a ListClusterRoleBindingsWithResponse call -func ParseListClusterRoleBindingsResp(rsp *http.Response) (*ListClusterRoleBindingsResp, error) { +// ParseListClusterTraitsResp parses an HTTP response from a ListClusterTraitsWithResponse call +func ParseListClusterTraitsResp(rsp *http.Response) (*ListClusterTraitsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListClusterRoleBindingsResp{ + response := &ListClusterTraitsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterAuthzRoleBindingList + var dest ClusterTraitList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18494,22 +24117,22 @@ func ParseListClusterRoleBindingsResp(rsp *http.Response) (*ListClusterRoleBindi return response, nil } -// ParseCreateClusterRoleBindingResp parses an HTTP response from a CreateClusterRoleBindingWithResponse call -func ParseCreateClusterRoleBindingResp(rsp *http.Response) (*CreateClusterRoleBindingResp, error) { +// ParseCreateClusterTraitResp parses an HTTP response from a CreateClusterTraitWithResponse call +func ParseCreateClusterTraitResp(rsp *http.Response) (*CreateClusterTraitResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateClusterRoleBindingResp{ + response := &CreateClusterTraitResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ClusterAuthzRoleBinding + var dest ClusterTrait if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18543,6 +24166,13 @@ func ParseCreateClusterRoleBindingResp(rsp *http.Response) (*CreateClusterRoleBi } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -18555,15 +24185,15 @@ func ParseCreateClusterRoleBindingResp(rsp *http.Response) (*CreateClusterRoleBi return response, nil } -// ParseDeleteClusterRoleBindingResp parses an HTTP response from a DeleteClusterRoleBindingWithResponse call -func ParseDeleteClusterRoleBindingResp(rsp *http.Response) (*DeleteClusterRoleBindingResp, error) { +// ParseDeleteClusterTraitResp parses an HTTP response from a DeleteClusterTraitWithResponse call +func ParseDeleteClusterTraitResp(rsp *http.Response) (*DeleteClusterTraitResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteClusterRoleBindingResp{ + response := &DeleteClusterTraitResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -18602,22 +24232,22 @@ func ParseDeleteClusterRoleBindingResp(rsp *http.Response) (*DeleteClusterRoleBi return response, nil } -// ParseGetClusterRoleBindingResp parses an HTTP response from a GetClusterRoleBindingWithResponse call -func ParseGetClusterRoleBindingResp(rsp *http.Response) (*GetClusterRoleBindingResp, error) { +// ParseGetClusterTraitResp parses an HTTP response from a GetClusterTraitWithResponse call +func ParseGetClusterTraitResp(rsp *http.Response) (*GetClusterTraitResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetClusterRoleBindingResp{ + response := &GetClusterTraitResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterAuthzRoleBinding + var dest ClusterTrait if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18656,22 +24286,22 @@ func ParseGetClusterRoleBindingResp(rsp *http.Response) (*GetClusterRoleBindingR return response, nil } -// ParseUpdateClusterRoleBindingResp parses an HTTP response from a UpdateClusterRoleBindingWithResponse call -func ParseUpdateClusterRoleBindingResp(rsp *http.Response) (*UpdateClusterRoleBindingResp, error) { +// ParseUpdateClusterTraitResp parses an HTTP response from a UpdateClusterTraitWithResponse call +func ParseUpdateClusterTraitResp(rsp *http.Response) (*UpdateClusterTraitResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateClusterRoleBindingResp{ + response := &UpdateClusterTraitResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterAuthzRoleBinding + var dest ClusterTrait if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18712,6 +24342,13 @@ func ParseUpdateClusterRoleBindingResp(rsp *http.Response) (*UpdateClusterRoleBi } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -18724,22 +24361,76 @@ func ParseUpdateClusterRoleBindingResp(rsp *http.Response) (*UpdateClusterRoleBi return response, nil } -// ParseListClusterRolesResp parses an HTTP response from a ListClusterRolesWithResponse call -func ParseListClusterRolesResp(rsp *http.Response) (*ListClusterRolesResp, error) { +// ParseGetClusterTraitSchemaResp parses an HTTP response from a GetClusterTraitSchemaWithResponse call +func ParseGetClusterTraitSchemaResp(rsp *http.Response) (*GetClusterTraitSchemaResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListClusterRolesResp{ + response := &GetClusterTraitSchemaResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterAuthzRoleList + var dest SchemaResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseListClusterWorkflowPlanesResp parses an HTTP response from a ListClusterWorkflowPlanesWithResponse call +func ParseListClusterWorkflowPlanesResp(rsp *http.Response) (*ListClusterWorkflowPlanesResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListClusterWorkflowPlanesResp{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClusterWorkflowPlaneList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18778,22 +24469,22 @@ func ParseListClusterRolesResp(rsp *http.Response) (*ListClusterRolesResp, error return response, nil } -// ParseCreateClusterRoleResp parses an HTTP response from a CreateClusterRoleWithResponse call -func ParseCreateClusterRoleResp(rsp *http.Response) (*CreateClusterRoleResp, error) { +// ParseCreateClusterWorkflowPlaneResp parses an HTTP response from a CreateClusterWorkflowPlaneWithResponse call +func ParseCreateClusterWorkflowPlaneResp(rsp *http.Response) (*CreateClusterWorkflowPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateClusterRoleResp{ + response := &CreateClusterWorkflowPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ClusterAuthzRole + var dest ClusterWorkflowPlane if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18827,6 +24518,13 @@ func ParseCreateClusterRoleResp(rsp *http.Response) (*CreateClusterRoleResp, err } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -18839,15 +24537,15 @@ func ParseCreateClusterRoleResp(rsp *http.Response) (*CreateClusterRoleResp, err return response, nil } -// ParseDeleteClusterRoleResp parses an HTTP response from a DeleteClusterRoleWithResponse call -func ParseDeleteClusterRoleResp(rsp *http.Response) (*DeleteClusterRoleResp, error) { +// ParseDeleteClusterWorkflowPlaneResp parses an HTTP response from a DeleteClusterWorkflowPlaneWithResponse call +func ParseDeleteClusterWorkflowPlaneResp(rsp *http.Response) (*DeleteClusterWorkflowPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteClusterRoleResp{ + response := &DeleteClusterWorkflowPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -18874,13 +24572,6 @@ func ParseDeleteClusterRoleResp(rsp *http.Response) (*DeleteClusterRoleResp, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -18893,22 +24584,22 @@ func ParseDeleteClusterRoleResp(rsp *http.Response) (*DeleteClusterRoleResp, err return response, nil } -// ParseGetClusterRoleResp parses an HTTP response from a GetClusterRoleWithResponse call -func ParseGetClusterRoleResp(rsp *http.Response) (*GetClusterRoleResp, error) { +// ParseGetClusterWorkflowPlaneResp parses an HTTP response from a GetClusterWorkflowPlaneWithResponse call +func ParseGetClusterWorkflowPlaneResp(rsp *http.Response) (*GetClusterWorkflowPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetClusterRoleResp{ + response := &GetClusterWorkflowPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterAuthzRole + var dest ClusterWorkflowPlane if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18947,22 +24638,22 @@ func ParseGetClusterRoleResp(rsp *http.Response) (*GetClusterRoleResp, error) { return response, nil } -// ParseUpdateClusterRoleResp parses an HTTP response from a UpdateClusterRoleWithResponse call -func ParseUpdateClusterRoleResp(rsp *http.Response) (*UpdateClusterRoleResp, error) { +// ParseUpdateClusterWorkflowPlaneResp parses an HTTP response from a UpdateClusterWorkflowPlaneWithResponse call +func ParseUpdateClusterWorkflowPlaneResp(rsp *http.Response) (*UpdateClusterWorkflowPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateClusterRoleResp{ + response := &UpdateClusterWorkflowPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterAuthzRole + var dest ClusterWorkflowPlane if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -18989,12 +24680,26 @@ func ParseUpdateClusterRoleResp(rsp *http.Response) (*UpdateClusterRoleResp, err } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -19008,22 +24713,22 @@ func ParseUpdateClusterRoleResp(rsp *http.Response) (*UpdateClusterRoleResp, err return response, nil } -// ParseListClusterComponentTypesResp parses an HTTP response from a ListClusterComponentTypesWithResponse call -func ParseListClusterComponentTypesResp(rsp *http.Response) (*ListClusterComponentTypesResp, error) { +// ParseListClusterWorkflowsResp parses an HTTP response from a ListClusterWorkflowsWithResponse call +func ParseListClusterWorkflowsResp(rsp *http.Response) (*ListClusterWorkflowsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListClusterComponentTypesResp{ + response := &ListClusterWorkflowsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterComponentTypeList + var dest ClusterWorkflowList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19062,22 +24767,22 @@ func ParseListClusterComponentTypesResp(rsp *http.Response) (*ListClusterCompone return response, nil } -// ParseCreateClusterComponentTypeResp parses an HTTP response from a CreateClusterComponentTypeWithResponse call -func ParseCreateClusterComponentTypeResp(rsp *http.Response) (*CreateClusterComponentTypeResp, error) { +// ParseCreateClusterWorkflowResp parses an HTTP response from a CreateClusterWorkflowWithResponse call +func ParseCreateClusterWorkflowResp(rsp *http.Response) (*CreateClusterWorkflowResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateClusterComponentTypeResp{ + response := &CreateClusterWorkflowResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ClusterComponentType + var dest ClusterWorkflow if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19111,6 +24816,13 @@ func ParseCreateClusterComponentTypeResp(rsp *http.Response) (*CreateClusterComp } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -19123,15 +24835,15 @@ func ParseCreateClusterComponentTypeResp(rsp *http.Response) (*CreateClusterComp return response, nil } -// ParseDeleteClusterComponentTypeResp parses an HTTP response from a DeleteClusterComponentTypeWithResponse call -func ParseDeleteClusterComponentTypeResp(rsp *http.Response) (*DeleteClusterComponentTypeResp, error) { +// ParseDeleteClusterWorkflowResp parses an HTTP response from a DeleteClusterWorkflowWithResponse call +func ParseDeleteClusterWorkflowResp(rsp *http.Response) (*DeleteClusterWorkflowResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteClusterComponentTypeResp{ + response := &DeleteClusterWorkflowResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -19170,22 +24882,22 @@ func ParseDeleteClusterComponentTypeResp(rsp *http.Response) (*DeleteClusterComp return response, nil } -// ParseGetClusterComponentTypeResp parses an HTTP response from a GetClusterComponentTypeWithResponse call -func ParseGetClusterComponentTypeResp(rsp *http.Response) (*GetClusterComponentTypeResp, error) { +// ParseGetClusterWorkflowResp parses an HTTP response from a GetClusterWorkflowWithResponse call +func ParseGetClusterWorkflowResp(rsp *http.Response) (*GetClusterWorkflowResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetClusterComponentTypeResp{ + response := &GetClusterWorkflowResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterComponentType + var dest ClusterWorkflow if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19224,22 +24936,22 @@ func ParseGetClusterComponentTypeResp(rsp *http.Response) (*GetClusterComponentT return response, nil } -// ParseUpdateClusterComponentTypeResp parses an HTTP response from a UpdateClusterComponentTypeWithResponse call -func ParseUpdateClusterComponentTypeResp(rsp *http.Response) (*UpdateClusterComponentTypeResp, error) { +// ParseUpdateClusterWorkflowResp parses an HTTP response from a UpdateClusterWorkflowWithResponse call +func ParseUpdateClusterWorkflowResp(rsp *http.Response) (*UpdateClusterWorkflowResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateClusterComponentTypeResp{ + response := &UpdateClusterWorkflowResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterComponentType + var dest ClusterWorkflow if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19280,6 +24992,13 @@ func ParseUpdateClusterComponentTypeResp(rsp *http.Response) (*UpdateClusterComp } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -19292,15 +25011,15 @@ func ParseUpdateClusterComponentTypeResp(rsp *http.Response) (*UpdateClusterComp return response, nil } -// ParseGetClusterComponentTypeSchemaResp parses an HTTP response from a GetClusterComponentTypeSchemaWithResponse call -func ParseGetClusterComponentTypeSchemaResp(rsp *http.Response) (*GetClusterComponentTypeSchemaResp, error) { +// ParseGetClusterWorkflowSchemaResp parses an HTTP response from a GetClusterWorkflowSchemaWithResponse call +func ParseGetClusterWorkflowSchemaResp(rsp *http.Response) (*GetClusterWorkflowSchemaResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetClusterComponentTypeSchemaResp{ + response := &GetClusterWorkflowSchemaResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -19346,22 +25065,22 @@ func ParseGetClusterComponentTypeSchemaResp(rsp *http.Response) (*GetClusterComp return response, nil } -// ParseListClusterDataPlanesResp parses an HTTP response from a ListClusterDataPlanesWithResponse call -func ParseListClusterDataPlanesResp(rsp *http.Response) (*ListClusterDataPlanesResp, error) { +// ParseListNamespacesResp parses an HTTP response from a ListNamespacesWithResponse call +func ParseListNamespacesResp(rsp *http.Response) (*ListNamespacesResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListClusterDataPlanesResp{ + response := &ListNamespacesResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterDataPlaneList + var dest NamespaceList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19400,22 +25119,22 @@ func ParseListClusterDataPlanesResp(rsp *http.Response) (*ListClusterDataPlanesR return response, nil } -// ParseCreateClusterDataPlaneResp parses an HTTP response from a CreateClusterDataPlaneWithResponse call -func ParseCreateClusterDataPlaneResp(rsp *http.Response) (*CreateClusterDataPlaneResp, error) { +// ParseCreateNamespaceResp parses an HTTP response from a CreateNamespaceWithResponse call +func ParseCreateNamespaceResp(rsp *http.Response) (*CreateNamespaceResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateClusterDataPlaneResp{ + response := &CreateNamespaceResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ClusterDataPlane + var dest Namespace if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19449,6 +25168,13 @@ func ParseCreateClusterDataPlaneResp(rsp *http.Response) (*CreateClusterDataPlan } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -19461,15 +25187,15 @@ func ParseCreateClusterDataPlaneResp(rsp *http.Response) (*CreateClusterDataPlan return response, nil } -// ParseDeleteClusterDataPlaneResp parses an HTTP response from a DeleteClusterDataPlaneWithResponse call -func ParseDeleteClusterDataPlaneResp(rsp *http.Response) (*DeleteClusterDataPlaneResp, error) { +// ParseDeleteNamespaceResp parses an HTTP response from a DeleteNamespaceWithResponse call +func ParseDeleteNamespaceResp(rsp *http.Response) (*DeleteNamespaceResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteClusterDataPlaneResp{ + response := &DeleteNamespaceResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -19508,22 +25234,22 @@ func ParseDeleteClusterDataPlaneResp(rsp *http.Response) (*DeleteClusterDataPlan return response, nil } -// ParseGetClusterDataPlaneResp parses an HTTP response from a GetClusterDataPlaneWithResponse call -func ParseGetClusterDataPlaneResp(rsp *http.Response) (*GetClusterDataPlaneResp, error) { +// ParseGetNamespaceResp parses an HTTP response from a GetNamespaceWithResponse call +func ParseGetNamespaceResp(rsp *http.Response) (*GetNamespaceResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetClusterDataPlaneResp{ + response := &GetNamespaceResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterDataPlane + var dest Namespace if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19562,22 +25288,22 @@ func ParseGetClusterDataPlaneResp(rsp *http.Response) (*GetClusterDataPlaneResp, return response, nil } -// ParseUpdateClusterDataPlaneResp parses an HTTP response from a UpdateClusterDataPlaneWithResponse call -func ParseUpdateClusterDataPlaneResp(rsp *http.Response) (*UpdateClusterDataPlaneResp, error) { +// ParseUpdateNamespaceResp parses an HTTP response from a UpdateNamespaceWithResponse call +func ParseUpdateNamespaceResp(rsp *http.Response) (*UpdateNamespaceResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateClusterDataPlaneResp{ + response := &UpdateNamespaceResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterDataPlane + var dest Namespace if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19611,12 +25337,12 @@ func ParseUpdateClusterDataPlaneResp(rsp *http.Response) (*UpdateClusterDataPlan } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -19630,22 +25356,22 @@ func ParseUpdateClusterDataPlaneResp(rsp *http.Response) (*UpdateClusterDataPlan return response, nil } -// ParseListClusterObservabilityPlanesResp parses an HTTP response from a ListClusterObservabilityPlanesWithResponse call -func ParseListClusterObservabilityPlanesResp(rsp *http.Response) (*ListClusterObservabilityPlanesResp, error) { +// ParseListNamespaceRoleBindingsResp parses an HTTP response from a ListNamespaceRoleBindingsWithResponse call +func ParseListNamespaceRoleBindingsResp(rsp *http.Response) (*ListNamespaceRoleBindingsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListClusterObservabilityPlanesResp{ + response := &ListNamespaceRoleBindingsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterObservabilityPlaneList + var dest AuthzRoleBindingList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19684,22 +25410,22 @@ func ParseListClusterObservabilityPlanesResp(rsp *http.Response) (*ListClusterOb return response, nil } -// ParseCreateClusterObservabilityPlaneResp parses an HTTP response from a CreateClusterObservabilityPlaneWithResponse call -func ParseCreateClusterObservabilityPlaneResp(rsp *http.Response) (*CreateClusterObservabilityPlaneResp, error) { +// ParseCreateNamespaceRoleBindingResp parses an HTTP response from a CreateNamespaceRoleBindingWithResponse call +func ParseCreateNamespaceRoleBindingResp(rsp *http.Response) (*CreateNamespaceRoleBindingResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateClusterObservabilityPlaneResp{ + response := &CreateNamespaceRoleBindingResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ClusterObservabilityPlane + var dest AuthzRoleBinding if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19733,6 +25459,13 @@ func ParseCreateClusterObservabilityPlaneResp(rsp *http.Response) (*CreateCluste } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -19745,20 +25478,27 @@ func ParseCreateClusterObservabilityPlaneResp(rsp *http.Response) (*CreateCluste return response, nil } -// ParseDeleteClusterObservabilityPlaneResp parses an HTTP response from a DeleteClusterObservabilityPlaneWithResponse call -func ParseDeleteClusterObservabilityPlaneResp(rsp *http.Response) (*DeleteClusterObservabilityPlaneResp, error) { +// ParseDeleteNamespaceRoleBindingResp parses an HTTP response from a DeleteNamespaceRoleBindingWithResponse call +func ParseDeleteNamespaceRoleBindingResp(rsp *http.Response) (*DeleteNamespaceRoleBindingResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteClusterObservabilityPlaneResp{ + response := &DeleteNamespaceRoleBindingResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -19792,27 +25532,34 @@ func ParseDeleteClusterObservabilityPlaneResp(rsp *http.Response) (*DeleteCluste return response, nil } -// ParseGetClusterObservabilityPlaneResp parses an HTTP response from a GetClusterObservabilityPlaneWithResponse call -func ParseGetClusterObservabilityPlaneResp(rsp *http.Response) (*GetClusterObservabilityPlaneResp, error) { +// ParseGetNamespaceRoleBindingResp parses an HTTP response from a GetNamespaceRoleBindingWithResponse call +func ParseGetNamespaceRoleBindingResp(rsp *http.Response) (*GetNamespaceRoleBindingResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetClusterObservabilityPlaneResp{ + response := &GetNamespaceRoleBindingResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterObservabilityPlane + var dest AuthzRoleBinding if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -19846,22 +25593,22 @@ func ParseGetClusterObservabilityPlaneResp(rsp *http.Response) (*GetClusterObser return response, nil } -// ParseUpdateClusterObservabilityPlaneResp parses an HTTP response from a UpdateClusterObservabilityPlaneWithResponse call -func ParseUpdateClusterObservabilityPlaneResp(rsp *http.Response) (*UpdateClusterObservabilityPlaneResp, error) { +// ParseUpdateNamespaceRoleBindingResp parses an HTTP response from a UpdateNamespaceRoleBindingWithResponse call +func ParseUpdateNamespaceRoleBindingResp(rsp *http.Response) (*UpdateNamespaceRoleBindingResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateClusterObservabilityPlaneResp{ + response := &UpdateNamespaceRoleBindingResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterObservabilityPlane + var dest AuthzRoleBinding if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19902,6 +25649,13 @@ func ParseUpdateClusterObservabilityPlaneResp(rsp *http.Response) (*UpdateCluste } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -19914,22 +25668,22 @@ func ParseUpdateClusterObservabilityPlaneResp(rsp *http.Response) (*UpdateCluste return response, nil } -// ParseListClusterTraitsResp parses an HTTP response from a ListClusterTraitsWithResponse call -func ParseListClusterTraitsResp(rsp *http.Response) (*ListClusterTraitsResp, error) { +// ParseListNamespaceRolesResp parses an HTTP response from a ListNamespaceRolesWithResponse call +func ParseListNamespaceRolesResp(rsp *http.Response) (*ListNamespaceRolesResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListClusterTraitsResp{ + response := &ListNamespaceRolesResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterTraitList + var dest AuthzRoleList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19968,22 +25722,22 @@ func ParseListClusterTraitsResp(rsp *http.Response) (*ListClusterTraitsResp, err return response, nil } -// ParseCreateClusterTraitResp parses an HTTP response from a CreateClusterTraitWithResponse call -func ParseCreateClusterTraitResp(rsp *http.Response) (*CreateClusterTraitResp, error) { +// ParseCreateNamespaceRoleResp parses an HTTP response from a CreateNamespaceRoleWithResponse call +func ParseCreateNamespaceRoleResp(rsp *http.Response) (*CreateNamespaceRoleResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateClusterTraitResp{ + response := &CreateNamespaceRoleResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ClusterTrait + var dest AuthzRole if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20017,52 +25771,12 @@ func ParseCreateClusterTraitResp(rsp *http.Response) (*CreateClusterTraitResp, e } response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseDeleteClusterTraitResp parses an HTTP response from a DeleteClusterTraitWithResponse call -func ParseDeleteClusterTraitResp(rsp *http.Response) (*DeleteClusterTraitResp, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteClusterTraitResp{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Unauthorized - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -20076,26 +25790,26 @@ func ParseDeleteClusterTraitResp(rsp *http.Response) (*DeleteClusterTraitResp, e return response, nil } -// ParseGetClusterTraitResp parses an HTTP response from a GetClusterTraitWithResponse call -func ParseGetClusterTraitResp(rsp *http.Response) (*GetClusterTraitResp, error) { +// ParseDeleteNamespaceRoleResp parses an HTTP response from a DeleteNamespaceRoleWithResponse call +func ParseDeleteNamespaceRoleResp(rsp *http.Response) (*DeleteNamespaceRoleResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetClusterTraitResp{ + response := &DeleteNamespaceRoleResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterTrait + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized @@ -20118,6 +25832,13 @@ func ParseGetClusterTraitResp(rsp *http.Response) (*GetClusterTraitResp, error) } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20130,22 +25851,22 @@ func ParseGetClusterTraitResp(rsp *http.Response) (*GetClusterTraitResp, error) return response, nil } -// ParseUpdateClusterTraitResp parses an HTTP response from a UpdateClusterTraitWithResponse call -func ParseUpdateClusterTraitResp(rsp *http.Response) (*UpdateClusterTraitResp, error) { +// ParseGetNamespaceRoleResp parses an HTTP response from a GetNamespaceRoleWithResponse call +func ParseGetNamespaceRoleResp(rsp *http.Response) (*GetNamespaceRoleResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateClusterTraitResp{ + response := &GetNamespaceRoleResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterTrait + var dest AuthzRole if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20171,20 +25892,13 @@ func ParseUpdateClusterTraitResp(rsp *http.Response) (*UpdateClusterTraitResp, e return nil, err } response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -20198,27 +25912,34 @@ func ParseUpdateClusterTraitResp(rsp *http.Response) (*UpdateClusterTraitResp, e return response, nil } -// ParseGetClusterTraitSchemaResp parses an HTTP response from a GetClusterTraitSchemaWithResponse call -func ParseGetClusterTraitSchemaResp(rsp *http.Response) (*GetClusterTraitSchemaResp, error) { +// ParseUpdateNamespaceRoleResp parses an HTTP response from a UpdateNamespaceRoleWithResponse call +func ParseUpdateNamespaceRoleResp(rsp *http.Response) (*UpdateNamespaceRoleResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetClusterTraitSchemaResp{ + response := &UpdateNamespaceRoleResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SchemaResponse + var dest AuthzRole if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20240,6 +25961,13 @@ func ParseGetClusterTraitSchemaResp(rsp *http.Response) (*GetClusterTraitSchemaR } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20252,22 +25980,22 @@ func ParseGetClusterTraitSchemaResp(rsp *http.Response) (*GetClusterTraitSchemaR return response, nil } -// ParseListClusterWorkflowPlanesResp parses an HTTP response from a ListClusterWorkflowPlanesWithResponse call -func ParseListClusterWorkflowPlanesResp(rsp *http.Response) (*ListClusterWorkflowPlanesResp, error) { +// ParseListComponentReleasesResp parses an HTTP response from a ListComponentReleasesWithResponse call +func ParseListComponentReleasesResp(rsp *http.Response) (*ListComponentReleasesResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListClusterWorkflowPlanesResp{ + response := &ListComponentReleasesResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterWorkflowPlaneList + var dest ComponentReleaseList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20294,6 +26022,13 @@ func ParseListClusterWorkflowPlanesResp(rsp *http.Response) (*ListClusterWorkflo } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20306,22 +26041,22 @@ func ParseListClusterWorkflowPlanesResp(rsp *http.Response) (*ListClusterWorkflo return response, nil } -// ParseCreateClusterWorkflowPlaneResp parses an HTTP response from a CreateClusterWorkflowPlaneWithResponse call -func ParseCreateClusterWorkflowPlaneResp(rsp *http.Response) (*CreateClusterWorkflowPlaneResp, error) { +// ParseCreateComponentReleaseResp parses an HTTP response from a CreateComponentReleaseWithResponse call +func ParseCreateComponentReleaseResp(rsp *http.Response) (*CreateComponentReleaseResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateClusterWorkflowPlaneResp{ + response := &CreateComponentReleaseResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ClusterWorkflowPlane + var dest ComponentRelease if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20355,6 +26090,13 @@ func ParseCreateClusterWorkflowPlaneResp(rsp *http.Response) (*CreateClusterWork } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20367,15 +26109,15 @@ func ParseCreateClusterWorkflowPlaneResp(rsp *http.Response) (*CreateClusterWork return response, nil } -// ParseDeleteClusterWorkflowPlaneResp parses an HTTP response from a DeleteClusterWorkflowPlaneWithResponse call -func ParseDeleteClusterWorkflowPlaneResp(rsp *http.Response) (*DeleteClusterWorkflowPlaneResp, error) { +// ParseDeleteComponentReleaseResp parses an HTTP response from a DeleteComponentReleaseWithResponse call +func ParseDeleteComponentReleaseResp(rsp *http.Response) (*DeleteComponentReleaseResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteClusterWorkflowPlaneResp{ + response := &DeleteComponentReleaseResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -20414,22 +26156,22 @@ func ParseDeleteClusterWorkflowPlaneResp(rsp *http.Response) (*DeleteClusterWork return response, nil } -// ParseGetClusterWorkflowPlaneResp parses an HTTP response from a GetClusterWorkflowPlaneWithResponse call -func ParseGetClusterWorkflowPlaneResp(rsp *http.Response) (*GetClusterWorkflowPlaneResp, error) { +// ParseGetComponentReleaseResp parses an HTTP response from a GetComponentReleaseWithResponse call +func ParseGetComponentReleaseResp(rsp *http.Response) (*GetComponentReleaseResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetClusterWorkflowPlaneResp{ + response := &GetComponentReleaseResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterWorkflowPlane + var dest ComponentRelease if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20468,22 +26210,22 @@ func ParseGetClusterWorkflowPlaneResp(rsp *http.Response) (*GetClusterWorkflowPl return response, nil } -// ParseUpdateClusterWorkflowPlaneResp parses an HTTP response from a UpdateClusterWorkflowPlaneWithResponse call -func ParseUpdateClusterWorkflowPlaneResp(rsp *http.Response) (*UpdateClusterWorkflowPlaneResp, error) { +// ParseListComponentsResp parses an HTTP response from a ListComponentsWithResponse call +func ParseListComponentsResp(rsp *http.Response) (*ListComponentsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateClusterWorkflowPlaneResp{ + response := &ListComponentsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterWorkflowPlane + var dest ComponentList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20517,13 +26259,6 @@ func ParseUpdateClusterWorkflowPlaneResp(rsp *http.Response) (*UpdateClusterWork } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20536,26 +26271,26 @@ func ParseUpdateClusterWorkflowPlaneResp(rsp *http.Response) (*UpdateClusterWork return response, nil } -// ParseListClusterWorkflowsResp parses an HTTP response from a ListClusterWorkflowsWithResponse call -func ParseListClusterWorkflowsResp(rsp *http.Response) (*ListClusterWorkflowsResp, error) { +// ParseCreateComponentResp parses an HTTP response from a CreateComponentWithResponse call +func ParseCreateComponentResp(rsp *http.Response) (*CreateComponentResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListClusterWorkflowsResp{ + response := &CreateComponentResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterWorkflowList + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Component if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -20578,6 +26313,20 @@ func ParseListClusterWorkflowsResp(rsp *http.Response) (*ListClusterWorkflowsRes } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20590,34 +26339,20 @@ func ParseListClusterWorkflowsResp(rsp *http.Response) (*ListClusterWorkflowsRes return response, nil } -// ParseCreateClusterWorkflowResp parses an HTTP response from a CreateClusterWorkflowWithResponse call -func ParseCreateClusterWorkflowResp(rsp *http.Response) (*CreateClusterWorkflowResp, error) { +// ParseDeleteComponentResp parses an HTTP response from a DeleteComponentWithResponse call +func ParseDeleteComponentResp(rsp *http.Response) (*DeleteComponentResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateClusterWorkflowResp{ + response := &DeleteComponentResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ClusterWorkflow - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20632,12 +26367,12 @@ func ParseCreateClusterWorkflowResp(rsp *http.Response) (*CreateClusterWorkflowR } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -20651,20 +26386,27 @@ func ParseCreateClusterWorkflowResp(rsp *http.Response) (*CreateClusterWorkflowR return response, nil } -// ParseDeleteClusterWorkflowResp parses an HTTP response from a DeleteClusterWorkflowWithResponse call -func ParseDeleteClusterWorkflowResp(rsp *http.Response) (*DeleteClusterWorkflowResp, error) { +// ParseGetComponentResp parses an HTTP response from a GetComponentWithResponse call +func ParseGetComponentResp(rsp *http.Response) (*GetComponentResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteClusterWorkflowResp{ + response := &GetComponentResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Component + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20698,27 +26440,34 @@ func ParseDeleteClusterWorkflowResp(rsp *http.Response) (*DeleteClusterWorkflowR return response, nil } -// ParseGetClusterWorkflowResp parses an HTTP response from a GetClusterWorkflowWithResponse call -func ParseGetClusterWorkflowResp(rsp *http.Response) (*GetClusterWorkflowResp, error) { +// ParseUpdateComponentResp parses an HTTP response from a UpdateComponentWithResponse call +func ParseUpdateComponentResp(rsp *http.Response) (*UpdateComponentResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetClusterWorkflowResp{ + response := &UpdateComponentResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterWorkflow + var dest Component if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20740,6 +26489,20 @@ func ParseGetClusterWorkflowResp(rsp *http.Response) (*GetClusterWorkflowResp, e } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20752,26 +26515,26 @@ func ParseGetClusterWorkflowResp(rsp *http.Response) (*GetClusterWorkflowResp, e return response, nil } -// ParseUpdateClusterWorkflowResp parses an HTTP response from a UpdateClusterWorkflowWithResponse call -func ParseUpdateClusterWorkflowResp(rsp *http.Response) (*UpdateClusterWorkflowResp, error) { +// ParseGenerateReleaseResp parses an HTTP response from a GenerateReleaseWithResponse call +func ParseGenerateReleaseResp(rsp *http.Response) (*GenerateReleaseResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateClusterWorkflowResp{ + response := &GenerateReleaseResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ClusterWorkflow + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ComponentRelease if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -20801,12 +26564,12 @@ func ParseUpdateClusterWorkflowResp(rsp *http.Response) (*UpdateClusterWorkflowR } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -20820,15 +26583,15 @@ func ParseUpdateClusterWorkflowResp(rsp *http.Response) (*UpdateClusterWorkflowR return response, nil } -// ParseGetClusterWorkflowSchemaResp parses an HTTP response from a GetClusterWorkflowSchemaWithResponse call -func ParseGetClusterWorkflowSchemaResp(rsp *http.Response) (*GetClusterWorkflowSchemaResp, error) { +// ParseGetComponentSchemaResp parses an HTTP response from a GetComponentSchemaWithResponse call +func ParseGetComponentSchemaResp(rsp *http.Response) (*GetComponentSchemaResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetClusterWorkflowSchemaResp{ + response := &GetComponentSchemaResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -20874,22 +26637,22 @@ func ParseGetClusterWorkflowSchemaResp(rsp *http.Response) (*GetClusterWorkflowS return response, nil } -// ParseListNamespacesResp parses an HTTP response from a ListNamespacesWithResponse call -func ParseListNamespacesResp(rsp *http.Response) (*ListNamespacesResp, error) { +// ParseListComponentTypesResp parses an HTTP response from a ListComponentTypesWithResponse call +func ParseListComponentTypesResp(rsp *http.Response) (*ListComponentTypesResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListNamespacesResp{ + response := &ListComponentTypesResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NamespaceList + var dest ComponentTypeList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20928,22 +26691,22 @@ func ParseListNamespacesResp(rsp *http.Response) (*ListNamespacesResp, error) { return response, nil } -// ParseCreateNamespaceResp parses an HTTP response from a CreateNamespaceWithResponse call -func ParseCreateNamespaceResp(rsp *http.Response) (*CreateNamespaceResp, error) { +// ParseCreateComponentTypeResp parses an HTTP response from a CreateComponentTypeWithResponse call +func ParseCreateComponentTypeResp(rsp *http.Response) (*CreateComponentTypeResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateNamespaceResp{ + response := &CreateComponentTypeResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Namespace + var dest ComponentType if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20975,7 +26738,61 @@ func ParseCreateNamespaceResp(rsp *http.Response) (*CreateNamespaceResp, error) if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseDeleteComponentTypeResp parses an HTTP response from a DeleteComponentTypeWithResponse call +func ParseDeleteComponentTypeResp(rsp *http.Response) (*DeleteComponentTypeResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteComponentTypeResp{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -20989,20 +26806,27 @@ func ParseCreateNamespaceResp(rsp *http.Response) (*CreateNamespaceResp, error) return response, nil } -// ParseDeleteNamespaceResp parses an HTTP response from a DeleteNamespaceWithResponse call -func ParseDeleteNamespaceResp(rsp *http.Response) (*DeleteNamespaceResp, error) { +// ParseGetComponentTypeResp parses an HTTP response from a GetComponentTypeWithResponse call +func ParseGetComponentTypeResp(rsp *http.Response) (*GetComponentTypeResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteNamespaceResp{ + response := &GetComponentTypeResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ComponentType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21036,27 +26860,34 @@ func ParseDeleteNamespaceResp(rsp *http.Response) (*DeleteNamespaceResp, error) return response, nil } -// ParseGetNamespaceResp parses an HTTP response from a GetNamespaceWithResponse call -func ParseGetNamespaceResp(rsp *http.Response) (*GetNamespaceResp, error) { +// ParseUpdateComponentTypeResp parses an HTTP response from a UpdateComponentTypeWithResponse call +func ParseUpdateComponentTypeResp(rsp *http.Response) (*UpdateComponentTypeResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNamespaceResp{ + response := &UpdateComponentTypeResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Namespace + var dest ComponentType if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21078,6 +26909,20 @@ func ParseGetNamespaceResp(rsp *http.Response) (*GetNamespaceResp, error) { } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21090,34 +26935,27 @@ func ParseGetNamespaceResp(rsp *http.Response) (*GetNamespaceResp, error) { return response, nil } -// ParseUpdateNamespaceResp parses an HTTP response from a UpdateNamespaceWithResponse call -func ParseUpdateNamespaceResp(rsp *http.Response) (*UpdateNamespaceResp, error) { +// ParseGetComponentTypeSchemaResp parses an HTTP response from a GetComponentTypeSchemaWithResponse call +func ParseGetComponentTypeSchemaResp(rsp *http.Response) (*GetComponentTypeSchemaResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateNamespaceResp{ + response := &GetComponentTypeSchemaResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Namespace + var dest SchemaResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21151,22 +26989,22 @@ func ParseUpdateNamespaceResp(rsp *http.Response) (*UpdateNamespaceResp, error) return response, nil } -// ParseListNamespaceRoleBindingsResp parses an HTTP response from a ListNamespaceRoleBindingsWithResponse call -func ParseListNamespaceRoleBindingsResp(rsp *http.Response) (*ListNamespaceRoleBindingsResp, error) { +// ParseListDataPlanesResp parses an HTTP response from a ListDataPlanesWithResponse call +func ParseListDataPlanesResp(rsp *http.Response) (*ListDataPlanesResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListNamespaceRoleBindingsResp{ + response := &ListDataPlanesResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthzRoleBindingList + var dest DataPlaneList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -21205,22 +27043,22 @@ func ParseListNamespaceRoleBindingsResp(rsp *http.Response) (*ListNamespaceRoleB return response, nil } -// ParseCreateNamespaceRoleBindingResp parses an HTTP response from a CreateNamespaceRoleBindingWithResponse call -func ParseCreateNamespaceRoleBindingResp(rsp *http.Response) (*CreateNamespaceRoleBindingResp, error) { +// ParseCreateDataPlaneResp parses an HTTP response from a CreateDataPlaneWithResponse call +func ParseCreateDataPlaneResp(rsp *http.Response) (*CreateDataPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateNamespaceRoleBindingResp{ + response := &CreateDataPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest AuthzRoleBinding + var dest DataPlane if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -21254,6 +27092,13 @@ func ParseCreateNamespaceRoleBindingResp(rsp *http.Response) (*CreateNamespaceRo } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21266,27 +27111,20 @@ func ParseCreateNamespaceRoleBindingResp(rsp *http.Response) (*CreateNamespaceRo return response, nil } -// ParseDeleteNamespaceRoleBindingResp parses an HTTP response from a DeleteNamespaceRoleBindingWithResponse call -func ParseDeleteNamespaceRoleBindingResp(rsp *http.Response) (*DeleteNamespaceRoleBindingResp, error) { +// ParseDeleteDataPlaneResp parses an HTTP response from a DeleteDataPlaneWithResponse call +func ParseDeleteDataPlaneResp(rsp *http.Response) (*DeleteDataPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteNamespaceRoleBindingResp{ + response := &DeleteDataPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21320,34 +27158,27 @@ func ParseDeleteNamespaceRoleBindingResp(rsp *http.Response) (*DeleteNamespaceRo return response, nil } -// ParseGetNamespaceRoleBindingResp parses an HTTP response from a GetNamespaceRoleBindingWithResponse call -func ParseGetNamespaceRoleBindingResp(rsp *http.Response) (*GetNamespaceRoleBindingResp, error) { +// ParseGetDataPlaneResp parses an HTTP response from a GetDataPlaneWithResponse call +func ParseGetDataPlaneResp(rsp *http.Response) (*GetDataPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNamespaceRoleBindingResp{ + response := &GetDataPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthzRoleBinding + var dest DataPlane if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21381,22 +27212,22 @@ func ParseGetNamespaceRoleBindingResp(rsp *http.Response) (*GetNamespaceRoleBind return response, nil } -// ParseUpdateNamespaceRoleBindingResp parses an HTTP response from a UpdateNamespaceRoleBindingWithResponse call -func ParseUpdateNamespaceRoleBindingResp(rsp *http.Response) (*UpdateNamespaceRoleBindingResp, error) { +// ParseUpdateDataPlaneResp parses an HTTP response from a UpdateDataPlaneWithResponse call +func ParseUpdateDataPlaneResp(rsp *http.Response) (*UpdateDataPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateNamespaceRoleBindingResp{ + response := &UpdateDataPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthzRoleBinding + var dest DataPlane if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -21437,6 +27268,13 @@ func ParseUpdateNamespaceRoleBindingResp(rsp *http.Response) (*UpdateNamespaceRo } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21449,22 +27287,22 @@ func ParseUpdateNamespaceRoleBindingResp(rsp *http.Response) (*UpdateNamespaceRo return response, nil } -// ParseListNamespaceRolesResp parses an HTTP response from a ListNamespaceRolesWithResponse call -func ParseListNamespaceRolesResp(rsp *http.Response) (*ListNamespaceRolesResp, error) { +// ParseListDeploymentPipelinesResp parses an HTTP response from a ListDeploymentPipelinesWithResponse call +func ParseListDeploymentPipelinesResp(rsp *http.Response) (*ListDeploymentPipelinesResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListNamespaceRolesResp{ + response := &ListDeploymentPipelinesResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthzRoleList + var dest DeploymentPipelineList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -21503,22 +27341,22 @@ func ParseListNamespaceRolesResp(rsp *http.Response) (*ListNamespaceRolesResp, e return response, nil } -// ParseCreateNamespaceRoleResp parses an HTTP response from a CreateNamespaceRoleWithResponse call -func ParseCreateNamespaceRoleResp(rsp *http.Response) (*CreateNamespaceRoleResp, error) { +// ParseCreateDeploymentPipelineResp parses an HTTP response from a CreateDeploymentPipelineWithResponse call +func ParseCreateDeploymentPipelineResp(rsp *http.Response) (*CreateDeploymentPipelineResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateNamespaceRoleResp{ + response := &CreateDeploymentPipelineResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest AuthzRole + var dest DeploymentPipeline if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -21552,6 +27390,13 @@ func ParseCreateNamespaceRoleResp(rsp *http.Response) (*CreateNamespaceRoleResp, } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21564,27 +27409,20 @@ func ParseCreateNamespaceRoleResp(rsp *http.Response) (*CreateNamespaceRoleResp, return response, nil } -// ParseDeleteNamespaceRoleResp parses an HTTP response from a DeleteNamespaceRoleWithResponse call -func ParseDeleteNamespaceRoleResp(rsp *http.Response) (*DeleteNamespaceRoleResp, error) { +// ParseDeleteDeploymentPipelineResp parses an HTTP response from a DeleteDeploymentPipelineWithResponse call +func ParseDeleteDeploymentPipelineResp(rsp *http.Response) (*DeleteDeploymentPipelineResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteNamespaceRoleResp{ + response := &DeleteDeploymentPipelineResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21606,13 +27444,6 @@ func ParseDeleteNamespaceRoleResp(rsp *http.Response) (*DeleteNamespaceRoleResp, } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21625,34 +27456,27 @@ func ParseDeleteNamespaceRoleResp(rsp *http.Response) (*DeleteNamespaceRoleResp, return response, nil } -// ParseGetNamespaceRoleResp parses an HTTP response from a GetNamespaceRoleWithResponse call -func ParseGetNamespaceRoleResp(rsp *http.Response) (*GetNamespaceRoleResp, error) { +// ParseGetDeploymentPipelineResp parses an HTTP response from a GetDeploymentPipelineWithResponse call +func ParseGetDeploymentPipelineResp(rsp *http.Response) (*GetDeploymentPipelineResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNamespaceRoleResp{ + response := &GetDeploymentPipelineResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthzRole + var dest DeploymentPipeline if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21686,22 +27510,22 @@ func ParseGetNamespaceRoleResp(rsp *http.Response) (*GetNamespaceRoleResp, error return response, nil } -// ParseUpdateNamespaceRoleResp parses an HTTP response from a UpdateNamespaceRoleWithResponse call -func ParseUpdateNamespaceRoleResp(rsp *http.Response) (*UpdateNamespaceRoleResp, error) { +// ParseUpdateDeploymentPipelineResp parses an HTTP response from a UpdateDeploymentPipelineWithResponse call +func ParseUpdateDeploymentPipelineResp(rsp *http.Response) (*UpdateDeploymentPipelineResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateNamespaceRoleResp{ + response := &UpdateDeploymentPipelineResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AuthzRole + var dest DeploymentPipeline if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -21735,6 +27559,13 @@ func ParseUpdateNamespaceRoleResp(rsp *http.Response) (*UpdateNamespaceRoleResp, } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21747,22 +27578,22 @@ func ParseUpdateNamespaceRoleResp(rsp *http.Response) (*UpdateNamespaceRoleResp, return response, nil } -// ParseListComponentReleasesResp parses an HTTP response from a ListComponentReleasesWithResponse call -func ParseListComponentReleasesResp(rsp *http.Response) (*ListComponentReleasesResp, error) { +// ParseListEnvironmentsResp parses an HTTP response from a ListEnvironmentsWithResponse call +func ParseListEnvironmentsResp(rsp *http.Response) (*ListEnvironmentsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListComponentReleasesResp{ + response := &ListEnvironmentsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ComponentReleaseList + var dest EnvironmentList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -21789,13 +27620,6 @@ func ParseListComponentReleasesResp(rsp *http.Response) (*ListComponentReleasesR } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21808,34 +27632,88 @@ func ParseListComponentReleasesResp(rsp *http.Response) (*ListComponentReleasesR return response, nil } -// ParseCreateComponentReleaseResp parses an HTTP response from a CreateComponentReleaseWithResponse call -func ParseCreateComponentReleaseResp(rsp *http.Response) (*CreateComponentReleaseResp, error) { +// ParseCreateEnvironmentResp parses an HTTP response from a CreateEnvironmentWithResponse call +func ParseCreateEnvironmentResp(rsp *http.Response) (*CreateEnvironmentResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateComponentReleaseResp{ + response := &CreateEnvironmentResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ComponentRelease + var dest Environment if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseDeleteEnvironmentResp parses an HTTP response from a DeleteEnvironmentWithResponse call +func ParseDeleteEnvironmentResp(rsp *http.Response) (*DeleteEnvironmentResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteEnvironmentResp{ + Body: bodyBytes, + HTTPResponse: rsp, + } + switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21850,12 +27728,12 @@ func ParseCreateComponentReleaseResp(rsp *http.Response) (*CreateComponentReleas } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -21869,20 +27747,27 @@ func ParseCreateComponentReleaseResp(rsp *http.Response) (*CreateComponentReleas return response, nil } -// ParseDeleteComponentReleaseResp parses an HTTP response from a DeleteComponentReleaseWithResponse call -func ParseDeleteComponentReleaseResp(rsp *http.Response) (*DeleteComponentReleaseResp, error) { +// ParseGetEnvironmentResp parses an HTTP response from a GetEnvironmentWithResponse call +func ParseGetEnvironmentResp(rsp *http.Response) (*GetEnvironmentResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteComponentReleaseResp{ + response := &GetEnvironmentResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Environment + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21916,27 +27801,34 @@ func ParseDeleteComponentReleaseResp(rsp *http.Response) (*DeleteComponentReleas return response, nil } -// ParseGetComponentReleaseResp parses an HTTP response from a GetComponentReleaseWithResponse call -func ParseGetComponentReleaseResp(rsp *http.Response) (*GetComponentReleaseResp, error) { +// ParseUpdateEnvironmentResp parses an HTTP response from a UpdateEnvironmentWithResponse call +func ParseUpdateEnvironmentResp(rsp *http.Response) (*UpdateEnvironmentResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetComponentReleaseResp{ + response := &UpdateEnvironmentResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ComponentRelease + var dest Environment if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21958,6 +27850,20 @@ func ParseGetComponentReleaseResp(rsp *http.Response) (*GetComponentReleaseResp, } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -21970,22 +27876,22 @@ func ParseGetComponentReleaseResp(rsp *http.Response) (*GetComponentReleaseResp, return response, nil } -// ParseListComponentsResp parses an HTTP response from a ListComponentsWithResponse call -func ParseListComponentsResp(rsp *http.Response) (*ListComponentsResp, error) { +// ParseListObservabilityAlertsNotificationChannelsResp parses an HTTP response from a ListObservabilityAlertsNotificationChannelsWithResponse call +func ParseListObservabilityAlertsNotificationChannelsResp(rsp *http.Response) (*ListObservabilityAlertsNotificationChannelsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListComponentsResp{ + response := &ListObservabilityAlertsNotificationChannelsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ComponentList + var dest ObservabilityAlertsNotificationChannelList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -22012,13 +27918,6 @@ func ParseListComponentsResp(rsp *http.Response) (*ListComponentsResp, error) { } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22031,22 +27930,22 @@ func ParseListComponentsResp(rsp *http.Response) (*ListComponentsResp, error) { return response, nil } -// ParseCreateComponentResp parses an HTTP response from a CreateComponentWithResponse call -func ParseCreateComponentResp(rsp *http.Response) (*CreateComponentResp, error) { +// ParseCreateObservabilityAlertsNotificationChannelResp parses an HTTP response from a CreateObservabilityAlertsNotificationChannelWithResponse call +func ParseCreateObservabilityAlertsNotificationChannelResp(rsp *http.Response) (*CreateObservabilityAlertsNotificationChannelResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateComponentResp{ + response := &CreateObservabilityAlertsNotificationChannelResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Component + var dest ObservabilityAlertsNotificationChannel if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -22080,6 +27979,13 @@ func ParseCreateComponentResp(rsp *http.Response) (*CreateComponentResp, error) } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22092,15 +27998,15 @@ func ParseCreateComponentResp(rsp *http.Response) (*CreateComponentResp, error) return response, nil } -// ParseDeleteComponentResp parses an HTTP response from a DeleteComponentWithResponse call -func ParseDeleteComponentResp(rsp *http.Response) (*DeleteComponentResp, error) { +// ParseDeleteObservabilityAlertsNotificationChannelResp parses an HTTP response from a DeleteObservabilityAlertsNotificationChannelWithResponse call +func ParseDeleteObservabilityAlertsNotificationChannelResp(rsp *http.Response) (*DeleteObservabilityAlertsNotificationChannelResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteComponentResp{ + response := &DeleteObservabilityAlertsNotificationChannelResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -22139,22 +28045,22 @@ func ParseDeleteComponentResp(rsp *http.Response) (*DeleteComponentResp, error) return response, nil } -// ParseGetComponentResp parses an HTTP response from a GetComponentWithResponse call -func ParseGetComponentResp(rsp *http.Response) (*GetComponentResp, error) { +// ParseGetObservabilityAlertsNotificationChannelResp parses an HTTP response from a GetObservabilityAlertsNotificationChannelWithResponse call +func ParseGetObservabilityAlertsNotificationChannelResp(rsp *http.Response) (*GetObservabilityAlertsNotificationChannelResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetComponentResp{ + response := &GetObservabilityAlertsNotificationChannelResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Component + var dest ObservabilityAlertsNotificationChannel if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -22193,22 +28099,22 @@ func ParseGetComponentResp(rsp *http.Response) (*GetComponentResp, error) { return response, nil } -// ParseUpdateComponentResp parses an HTTP response from a UpdateComponentWithResponse call -func ParseUpdateComponentResp(rsp *http.Response) (*UpdateComponentResp, error) { +// ParseUpdateObservabilityAlertsNotificationChannelResp parses an HTTP response from a UpdateObservabilityAlertsNotificationChannelWithResponse call +func ParseUpdateObservabilityAlertsNotificationChannelResp(rsp *http.Response) (*UpdateObservabilityAlertsNotificationChannelResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateComponentResp{ + response := &UpdateObservabilityAlertsNotificationChannelResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Component + var dest ObservabilityAlertsNotificationChannel if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -22242,12 +28148,12 @@ func ParseUpdateComponentResp(rsp *http.Response) (*UpdateComponentResp, error) } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -22261,26 +28167,26 @@ func ParseUpdateComponentResp(rsp *http.Response) (*UpdateComponentResp, error) return response, nil } -// ParseGenerateReleaseResp parses an HTTP response from a GenerateReleaseWithResponse call -func ParseGenerateReleaseResp(rsp *http.Response) (*GenerateReleaseResp, error) { +// ParseListObservabilityPlanesResp parses an HTTP response from a ListObservabilityPlanesWithResponse call +func ParseListObservabilityPlanesResp(rsp *http.Response) (*ListObservabilityPlanesResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GenerateReleaseResp{ + response := &ListObservabilityPlanesResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ComponentRelease + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ObservabilityPlaneList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -22303,13 +28209,6 @@ func ParseGenerateReleaseResp(rsp *http.Response) (*GenerateReleaseResp, error) } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22322,26 +28221,33 @@ func ParseGenerateReleaseResp(rsp *http.Response) (*GenerateReleaseResp, error) return response, nil } -// ParseGetComponentSchemaResp parses an HTTP response from a GetComponentSchemaWithResponse call -func ParseGetComponentSchemaResp(rsp *http.Response) (*GetComponentSchemaResp, error) { +// ParseCreateObservabilityPlaneResp parses an HTTP response from a CreateObservabilityPlaneWithResponse call +func ParseCreateObservabilityPlaneResp(rsp *http.Response) (*CreateObservabilityPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetComponentSchemaResp{ + response := &CreateObservabilityPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SchemaResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ObservabilityPlane if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized @@ -22357,12 +28263,19 @@ func ParseGetComponentSchemaResp(rsp *http.Response) (*GetComponentSchemaResp, e } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -22376,34 +28289,20 @@ func ParseGetComponentSchemaResp(rsp *http.Response) (*GetComponentSchemaResp, e return response, nil } -// ParseListComponentTypesResp parses an HTTP response from a ListComponentTypesWithResponse call -func ParseListComponentTypesResp(rsp *http.Response) (*ListComponentTypesResp, error) { +// ParseDeleteObservabilityPlaneResp parses an HTTP response from a DeleteObservabilityPlaneWithResponse call +func ParseDeleteObservabilityPlaneResp(rsp *http.Response) (*DeleteObservabilityPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListComponentTypesResp{ + response := &DeleteObservabilityPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ComponentTypeList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22418,6 +28317,13 @@ func ParseListComponentTypesResp(rsp *http.Response) (*ListComponentTypesResp, e } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22430,33 +28336,26 @@ func ParseListComponentTypesResp(rsp *http.Response) (*ListComponentTypesResp, e return response, nil } -// ParseCreateComponentTypeResp parses an HTTP response from a CreateComponentTypeWithResponse call -func ParseCreateComponentTypeResp(rsp *http.Response) (*CreateComponentTypeResp, error) { +// ParseGetObservabilityPlaneResp parses an HTTP response from a GetObservabilityPlaneWithResponse call +func ParseGetObservabilityPlaneResp(rsp *http.Response) (*GetObservabilityPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateComponentTypeResp{ + response := &GetObservabilityPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ComponentType - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ObservabilityPlane if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized @@ -22472,12 +28371,12 @@ func ParseCreateComponentTypeResp(rsp *http.Response) (*CreateComponentTypeResp, } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -22491,20 +28390,34 @@ func ParseCreateComponentTypeResp(rsp *http.Response) (*CreateComponentTypeResp, return response, nil } -// ParseDeleteComponentTypeResp parses an HTTP response from a DeleteComponentTypeWithResponse call -func ParseDeleteComponentTypeResp(rsp *http.Response) (*DeleteComponentTypeResp, error) { +// ParseUpdateObservabilityPlaneResp parses an HTTP response from a UpdateObservabilityPlaneWithResponse call +func ParseUpdateObservabilityPlaneResp(rsp *http.Response) (*UpdateObservabilityPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteComponentTypeResp{ + response := &UpdateObservabilityPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ObservabilityPlane + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22526,6 +28439,20 @@ func ParseDeleteComponentTypeResp(rsp *http.Response) (*DeleteComponentTypeResp, } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22538,27 +28465,34 @@ func ParseDeleteComponentTypeResp(rsp *http.Response) (*DeleteComponentTypeResp, return response, nil } -// ParseGetComponentTypeResp parses an HTTP response from a GetComponentTypeWithResponse call -func ParseGetComponentTypeResp(rsp *http.Response) (*GetComponentTypeResp, error) { +// ParseListProjectsResp parses an HTTP response from a ListProjectsWithResponse call +func ParseListProjectsResp(rsp *http.Response) (*ListProjectsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetComponentTypeResp{ + response := &ListProjectsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ComponentType + var dest ProjectList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22592,26 +28526,26 @@ func ParseGetComponentTypeResp(rsp *http.Response) (*GetComponentTypeResp, error return response, nil } -// ParseUpdateComponentTypeResp parses an HTTP response from a UpdateComponentTypeWithResponse call -func ParseUpdateComponentTypeResp(rsp *http.Response) (*UpdateComponentTypeResp, error) { +// ParseCreateProjectResp parses an HTTP response from a CreateProjectWithResponse call +func ParseCreateProjectResp(rsp *http.Response) (*CreateProjectResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateComponentTypeResp{ + response := &CreateProjectResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ComponentType + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Project if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -22634,19 +28568,19 @@ func ParseUpdateComponentTypeResp(rsp *http.Response) (*UpdateComponentTypeResp, } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -22660,27 +28594,20 @@ func ParseUpdateComponentTypeResp(rsp *http.Response) (*UpdateComponentTypeResp, return response, nil } -// ParseGetComponentTypeSchemaResp parses an HTTP response from a GetComponentTypeSchemaWithResponse call -func ParseGetComponentTypeSchemaResp(rsp *http.Response) (*GetComponentTypeSchemaResp, error) { +// ParseDeleteProjectResp parses an HTTP response from a DeleteProjectWithResponse call +func ParseDeleteProjectResp(rsp *http.Response) (*DeleteProjectResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetComponentTypeSchemaResp{ + response := &DeleteProjectResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SchemaResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22714,34 +28641,27 @@ func ParseGetComponentTypeSchemaResp(rsp *http.Response) (*GetComponentTypeSchem return response, nil } -// ParseListDataPlanesResp parses an HTTP response from a ListDataPlanesWithResponse call -func ParseListDataPlanesResp(rsp *http.Response) (*ListDataPlanesResp, error) { +// ParseGetProjectResp parses an HTTP response from a GetProjectWithResponse call +func ParseGetProjectResp(rsp *http.Response) (*GetProjectResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListDataPlanesResp{ + response := &GetProjectResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DataPlaneList + var dest Project if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22756,6 +28676,13 @@ func ParseListDataPlanesResp(rsp *http.Response) (*ListDataPlanesResp, error) { } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22768,26 +28695,26 @@ func ParseListDataPlanesResp(rsp *http.Response) (*ListDataPlanesResp, error) { return response, nil } -// ParseCreateDataPlaneResp parses an HTTP response from a CreateDataPlaneWithResponse call -func ParseCreateDataPlaneResp(rsp *http.Response) (*CreateDataPlaneResp, error) { +// ParseUpdateProjectResp parses an HTTP response from a UpdateProjectWithResponse call +func ParseUpdateProjectResp(rsp *http.Response) (*UpdateProjectResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateDataPlaneResp{ + response := &UpdateProjectResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest DataPlane + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Project if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -22810,6 +28737,13 @@ func ParseCreateDataPlaneResp(rsp *http.Response) (*CreateDataPlaneResp, error) } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22817,6 +28751,13 @@ func ParseCreateDataPlaneResp(rsp *http.Response) (*CreateDataPlaneResp, error) } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22829,20 +28770,34 @@ func ParseCreateDataPlaneResp(rsp *http.Response) (*CreateDataPlaneResp, error) return response, nil } -// ParseDeleteDataPlaneResp parses an HTTP response from a DeleteDataPlaneWithResponse call -func ParseDeleteDataPlaneResp(rsp *http.Response) (*DeleteDataPlaneResp, error) { +// ParseListReleaseBindingsResp parses an HTTP response from a ListReleaseBindingsWithResponse call +func ParseListReleaseBindingsResp(rsp *http.Response) (*ListReleaseBindingsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteDataPlaneResp{ + response := &ListReleaseBindingsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ReleaseBindingList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22876,26 +28831,33 @@ func ParseDeleteDataPlaneResp(rsp *http.Response) (*DeleteDataPlaneResp, error) return response, nil } -// ParseGetDataPlaneResp parses an HTTP response from a GetDataPlaneWithResponse call -func ParseGetDataPlaneResp(rsp *http.Response) (*GetDataPlaneResp, error) { +// ParseCreateReleaseBindingResp parses an HTTP response from a CreateReleaseBindingWithResponse call +func ParseCreateReleaseBindingResp(rsp *http.Response) (*CreateReleaseBindingResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDataPlaneResp{ + response := &CreateReleaseBindingResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DataPlane + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ReleaseBinding if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized @@ -22911,12 +28873,19 @@ func ParseGetDataPlaneResp(rsp *http.Response) (*GetDataPlaneResp, error) { } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -22930,34 +28899,20 @@ func ParseGetDataPlaneResp(rsp *http.Response) (*GetDataPlaneResp, error) { return response, nil } -// ParseUpdateDataPlaneResp parses an HTTP response from a UpdateDataPlaneWithResponse call -func ParseUpdateDataPlaneResp(rsp *http.Response) (*UpdateDataPlaneResp, error) { +// ParseDeleteReleaseBindingResp parses an HTTP response from a DeleteReleaseBindingWithResponse call +func ParseDeleteReleaseBindingResp(rsp *http.Response) (*DeleteReleaseBindingResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateDataPlaneResp{ + response := &DeleteReleaseBindingResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DataPlane - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22979,13 +28934,6 @@ func ParseUpdateDataPlaneResp(rsp *http.Response) (*UpdateDataPlaneResp, error) } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -22998,34 +28946,27 @@ func ParseUpdateDataPlaneResp(rsp *http.Response) (*UpdateDataPlaneResp, error) return response, nil } -// ParseListDeploymentPipelinesResp parses an HTTP response from a ListDeploymentPipelinesWithResponse call -func ParseListDeploymentPipelinesResp(rsp *http.Response) (*ListDeploymentPipelinesResp, error) { +// ParseGetReleaseBindingResp parses an HTTP response from a GetReleaseBindingWithResponse call +func ParseGetReleaseBindingResp(rsp *http.Response) (*GetReleaseBindingResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListDeploymentPipelinesResp{ + response := &GetReleaseBindingResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DeploymentPipelineList + var dest ReleaseBinding if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -23040,6 +28981,13 @@ func ParseListDeploymentPipelinesResp(rsp *http.Response) (*ListDeploymentPipeli } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -23052,26 +29000,26 @@ func ParseListDeploymentPipelinesResp(rsp *http.Response) (*ListDeploymentPipeli return response, nil } -// ParseCreateDeploymentPipelineResp parses an HTTP response from a CreateDeploymentPipelineWithResponse call -func ParseCreateDeploymentPipelineResp(rsp *http.Response) (*CreateDeploymentPipelineResp, error) { +// ParseUpdateReleaseBindingResp parses an HTTP response from a UpdateReleaseBindingWithResponse call +func ParseUpdateReleaseBindingResp(rsp *http.Response) (*UpdateReleaseBindingResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateDeploymentPipelineResp{ + response := &UpdateReleaseBindingResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest DeploymentPipeline + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ReleaseBinding if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -23094,12 +29042,19 @@ func ParseCreateDeploymentPipelineResp(rsp *http.Response) (*CreateDeploymentPip } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -23113,20 +29068,34 @@ func ParseCreateDeploymentPipelineResp(rsp *http.Response) (*CreateDeploymentPip return response, nil } -// ParseDeleteDeploymentPipelineResp parses an HTTP response from a DeleteDeploymentPipelineWithResponse call -func ParseDeleteDeploymentPipelineResp(rsp *http.Response) (*DeleteDeploymentPipelineResp, error) { +// ParseGetReleaseBindingK8sResourceEventsResp parses an HTTP response from a GetReleaseBindingK8sResourceEventsWithResponse call +func ParseGetReleaseBindingK8sResourceEventsResp(rsp *http.Response) (*GetReleaseBindingK8sResourceEventsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteDeploymentPipelineResp{ + response := &GetReleaseBindingK8sResourceEventsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ResourceEventsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -23160,27 +29129,34 @@ func ParseDeleteDeploymentPipelineResp(rsp *http.Response) (*DeleteDeploymentPip return response, nil } -// ParseGetDeploymentPipelineResp parses an HTTP response from a GetDeploymentPipelineWithResponse call -func ParseGetDeploymentPipelineResp(rsp *http.Response) (*GetDeploymentPipelineResp, error) { +// ParseGetReleaseBindingK8sResourceLogsResp parses an HTTP response from a GetReleaseBindingK8sResourceLogsWithResponse call +func ParseGetReleaseBindingK8sResourceLogsResp(rsp *http.Response) (*GetReleaseBindingK8sResourceLogsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDeploymentPipelineResp{ + response := &GetReleaseBindingK8sResourceLogsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DeploymentPipeline + var dest ResourcePodLogsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -23214,22 +29190,22 @@ func ParseGetDeploymentPipelineResp(rsp *http.Response) (*GetDeploymentPipelineR return response, nil } -// ParseUpdateDeploymentPipelineResp parses an HTTP response from a UpdateDeploymentPipelineWithResponse call -func ParseUpdateDeploymentPipelineResp(rsp *http.Response) (*UpdateDeploymentPipelineResp, error) { +// ParseGetReleaseBindingK8sResourceTreeResp parses an HTTP response from a GetReleaseBindingK8sResourceTreeWithResponse call +func ParseGetReleaseBindingK8sResourceTreeResp(rsp *http.Response) (*GetReleaseBindingK8sResourceTreeResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateDeploymentPipelineResp{ + response := &GetReleaseBindingK8sResourceTreeResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DeploymentPipeline + var dest K8sResourceTreeResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23275,22 +29251,22 @@ func ParseUpdateDeploymentPipelineResp(rsp *http.Response) (*UpdateDeploymentPip return response, nil } -// ParseListEnvironmentsResp parses an HTTP response from a ListEnvironmentsWithResponse call -func ParseListEnvironmentsResp(rsp *http.Response) (*ListEnvironmentsResp, error) { +// ParseListResourceReleaseBindingsResp parses an HTTP response from a ListResourceReleaseBindingsWithResponse call +func ParseListResourceReleaseBindingsResp(rsp *http.Response) (*ListResourceReleaseBindingsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListEnvironmentsResp{ + response := &ListResourceReleaseBindingsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest EnvironmentList + var dest ResourceReleaseBindingList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23329,22 +29305,22 @@ func ParseListEnvironmentsResp(rsp *http.Response) (*ListEnvironmentsResp, error return response, nil } -// ParseCreateEnvironmentResp parses an HTTP response from a CreateEnvironmentWithResponse call -func ParseCreateEnvironmentResp(rsp *http.Response) (*CreateEnvironmentResp, error) { +// ParseCreateResourceReleaseBindingResp parses an HTTP response from a CreateResourceReleaseBindingWithResponse call +func ParseCreateResourceReleaseBindingResp(rsp *http.Response) (*CreateResourceReleaseBindingResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateEnvironmentResp{ + response := &CreateResourceReleaseBindingResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Environment + var dest ResourceReleaseBinding if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23390,15 +29366,15 @@ func ParseCreateEnvironmentResp(rsp *http.Response) (*CreateEnvironmentResp, err return response, nil } -// ParseDeleteEnvironmentResp parses an HTTP response from a DeleteEnvironmentWithResponse call -func ParseDeleteEnvironmentResp(rsp *http.Response) (*DeleteEnvironmentResp, error) { +// ParseDeleteResourceReleaseBindingResp parses an HTTP response from a DeleteResourceReleaseBindingWithResponse call +func ParseDeleteResourceReleaseBindingResp(rsp *http.Response) (*DeleteResourceReleaseBindingResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteEnvironmentResp{ + response := &DeleteResourceReleaseBindingResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -23437,22 +29413,22 @@ func ParseDeleteEnvironmentResp(rsp *http.Response) (*DeleteEnvironmentResp, err return response, nil } -// ParseGetEnvironmentResp parses an HTTP response from a GetEnvironmentWithResponse call -func ParseGetEnvironmentResp(rsp *http.Response) (*GetEnvironmentResp, error) { +// ParseGetResourceReleaseBindingResp parses an HTTP response from a GetResourceReleaseBindingWithResponse call +func ParseGetResourceReleaseBindingResp(rsp *http.Response) (*GetResourceReleaseBindingResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetEnvironmentResp{ + response := &GetResourceReleaseBindingResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Environment + var dest ResourceReleaseBinding if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23491,22 +29467,22 @@ func ParseGetEnvironmentResp(rsp *http.Response) (*GetEnvironmentResp, error) { return response, nil } -// ParseUpdateEnvironmentResp parses an HTTP response from a UpdateEnvironmentWithResponse call -func ParseUpdateEnvironmentResp(rsp *http.Response) (*UpdateEnvironmentResp, error) { +// ParseUpdateResourceReleaseBindingResp parses an HTTP response from a UpdateResourceReleaseBindingWithResponse call +func ParseUpdateResourceReleaseBindingResp(rsp *http.Response) (*UpdateResourceReleaseBindingResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateEnvironmentResp{ + response := &UpdateResourceReleaseBindingResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Environment + var dest ResourceReleaseBinding if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23540,13 +29516,6 @@ func ParseUpdateEnvironmentResp(rsp *http.Response) (*UpdateEnvironmentResp, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -23559,22 +29528,22 @@ func ParseUpdateEnvironmentResp(rsp *http.Response) (*UpdateEnvironmentResp, err return response, nil } -// ParseListObservabilityAlertsNotificationChannelsResp parses an HTTP response from a ListObservabilityAlertsNotificationChannelsWithResponse call -func ParseListObservabilityAlertsNotificationChannelsResp(rsp *http.Response) (*ListObservabilityAlertsNotificationChannelsResp, error) { +// ParseListResourceReleasesResp parses an HTTP response from a ListResourceReleasesWithResponse call +func ParseListResourceReleasesResp(rsp *http.Response) (*ListResourceReleasesResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListObservabilityAlertsNotificationChannelsResp{ + response := &ListResourceReleasesResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ObservabilityAlertsNotificationChannelList + var dest ResourceReleaseList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23613,22 +29582,22 @@ func ParseListObservabilityAlertsNotificationChannelsResp(rsp *http.Response) (* return response, nil } -// ParseCreateObservabilityAlertsNotificationChannelResp parses an HTTP response from a CreateObservabilityAlertsNotificationChannelWithResponse call -func ParseCreateObservabilityAlertsNotificationChannelResp(rsp *http.Response) (*CreateObservabilityAlertsNotificationChannelResp, error) { +// ParseCreateResourceReleaseResp parses an HTTP response from a CreateResourceReleaseWithResponse call +func ParseCreateResourceReleaseResp(rsp *http.Response) (*CreateResourceReleaseResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateObservabilityAlertsNotificationChannelResp{ + response := &CreateResourceReleaseResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ObservabilityAlertsNotificationChannel + var dest ResourceRelease if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23674,15 +29643,15 @@ func ParseCreateObservabilityAlertsNotificationChannelResp(rsp *http.Response) ( return response, nil } -// ParseDeleteObservabilityAlertsNotificationChannelResp parses an HTTP response from a DeleteObservabilityAlertsNotificationChannelWithResponse call -func ParseDeleteObservabilityAlertsNotificationChannelResp(rsp *http.Response) (*DeleteObservabilityAlertsNotificationChannelResp, error) { +// ParseDeleteResourceReleaseResp parses an HTTP response from a DeleteResourceReleaseWithResponse call +func ParseDeleteResourceReleaseResp(rsp *http.Response) (*DeleteResourceReleaseResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteObservabilityAlertsNotificationChannelResp{ + response := &DeleteResourceReleaseResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -23721,22 +29690,22 @@ func ParseDeleteObservabilityAlertsNotificationChannelResp(rsp *http.Response) ( return response, nil } -// ParseGetObservabilityAlertsNotificationChannelResp parses an HTTP response from a GetObservabilityAlertsNotificationChannelWithResponse call -func ParseGetObservabilityAlertsNotificationChannelResp(rsp *http.Response) (*GetObservabilityAlertsNotificationChannelResp, error) { +// ParseGetResourceReleaseResp parses an HTTP response from a GetResourceReleaseWithResponse call +func ParseGetResourceReleaseResp(rsp *http.Response) (*GetResourceReleaseResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetObservabilityAlertsNotificationChannelResp{ + response := &GetResourceReleaseResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ObservabilityAlertsNotificationChannel + var dest ResourceRelease if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23775,22 +29744,22 @@ func ParseGetObservabilityAlertsNotificationChannelResp(rsp *http.Response) (*Ge return response, nil } -// ParseUpdateObservabilityAlertsNotificationChannelResp parses an HTTP response from a UpdateObservabilityAlertsNotificationChannelWithResponse call -func ParseUpdateObservabilityAlertsNotificationChannelResp(rsp *http.Response) (*UpdateObservabilityAlertsNotificationChannelResp, error) { +// ParseListResourcesResp parses an HTTP response from a ListResourcesWithResponse call +func ParseListResourcesResp(rsp *http.Response) (*ListResourcesResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateObservabilityAlertsNotificationChannelResp{ + response := &ListResourcesResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ObservabilityAlertsNotificationChannel + var dest ResourceInstanceList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23836,76 +29805,22 @@ func ParseUpdateObservabilityAlertsNotificationChannelResp(rsp *http.Response) ( return response, nil } -// ParseListObservabilityPlanesResp parses an HTTP response from a ListObservabilityPlanesWithResponse call -func ParseListObservabilityPlanesResp(rsp *http.Response) (*ListObservabilityPlanesResp, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListObservabilityPlanesResp{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ObservabilityPlaneList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Unauthorized - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseCreateObservabilityPlaneResp parses an HTTP response from a CreateObservabilityPlaneWithResponse call -func ParseCreateObservabilityPlaneResp(rsp *http.Response) (*CreateObservabilityPlaneResp, error) { +// ParseCreateResourceResp parses an HTTP response from a CreateResourceWithResponse call +func ParseCreateResourceResp(rsp *http.Response) (*CreateResourceResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateObservabilityPlaneResp{ + response := &CreateResourceResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ObservabilityPlane + var dest ResourceInstance if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23951,15 +29866,15 @@ func ParseCreateObservabilityPlaneResp(rsp *http.Response) (*CreateObservability return response, nil } -// ParseDeleteObservabilityPlaneResp parses an HTTP response from a DeleteObservabilityPlaneWithResponse call -func ParseDeleteObservabilityPlaneResp(rsp *http.Response) (*DeleteObservabilityPlaneResp, error) { +// ParseDeleteResourceResp parses an HTTP response from a DeleteResourceWithResponse call +func ParseDeleteResourceResp(rsp *http.Response) (*DeleteResourceResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteObservabilityPlaneResp{ + response := &DeleteResourceResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -23998,22 +29913,22 @@ func ParseDeleteObservabilityPlaneResp(rsp *http.Response) (*DeleteObservability return response, nil } -// ParseGetObservabilityPlaneResp parses an HTTP response from a GetObservabilityPlaneWithResponse call -func ParseGetObservabilityPlaneResp(rsp *http.Response) (*GetObservabilityPlaneResp, error) { +// ParseGetResourceResp parses an HTTP response from a GetResourceWithResponse call +func ParseGetResourceResp(rsp *http.Response) (*GetResourceResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetObservabilityPlaneResp{ + response := &GetResourceResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ObservabilityPlane + var dest ResourceInstance if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24052,22 +29967,22 @@ func ParseGetObservabilityPlaneResp(rsp *http.Response) (*GetObservabilityPlaneR return response, nil } -// ParseUpdateObservabilityPlaneResp parses an HTTP response from a UpdateObservabilityPlaneWithResponse call -func ParseUpdateObservabilityPlaneResp(rsp *http.Response) (*UpdateObservabilityPlaneResp, error) { +// ParseUpdateResourceResp parses an HTTP response from a UpdateResourceWithResponse call +func ParseUpdateResourceResp(rsp *http.Response) (*UpdateResourceResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateObservabilityPlaneResp{ + response := &UpdateResourceResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ObservabilityPlane + var dest ResourceInstance if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24101,13 +30016,6 @@ func ParseUpdateObservabilityPlaneResp(rsp *http.Response) (*UpdateObservability } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24120,22 +30028,22 @@ func ParseUpdateObservabilityPlaneResp(rsp *http.Response) (*UpdateObservability return response, nil } -// ParseListProjectsResp parses an HTTP response from a ListProjectsWithResponse call -func ParseListProjectsResp(rsp *http.Response) (*ListProjectsResp, error) { +// ParseListResourceTypesResp parses an HTTP response from a ListResourceTypesWithResponse call +func ParseListResourceTypesResp(rsp *http.Response) (*ListResourceTypesResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListProjectsResp{ + response := &ListResourceTypesResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ProjectList + var dest ResourceTypeList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24162,13 +30070,6 @@ func ParseListProjectsResp(rsp *http.Response) (*ListProjectsResp, error) { } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24181,22 +30082,22 @@ func ParseListProjectsResp(rsp *http.Response) (*ListProjectsResp, error) { return response, nil } -// ParseCreateProjectResp parses an HTTP response from a CreateProjectWithResponse call -func ParseCreateProjectResp(rsp *http.Response) (*CreateProjectResp, error) { +// ParseCreateResourceTypeResp parses an HTTP response from a CreateResourceTypeWithResponse call +func ParseCreateResourceTypeResp(rsp *http.Response) (*CreateResourceTypeResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateProjectResp{ + response := &CreateResourceTypeResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Project + var dest ResourceType if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24242,15 +30143,15 @@ func ParseCreateProjectResp(rsp *http.Response) (*CreateProjectResp, error) { return response, nil } -// ParseDeleteProjectResp parses an HTTP response from a DeleteProjectWithResponse call -func ParseDeleteProjectResp(rsp *http.Response) (*DeleteProjectResp, error) { +// ParseDeleteResourceTypeResp parses an HTTP response from a DeleteResourceTypeWithResponse call +func ParseDeleteResourceTypeResp(rsp *http.Response) (*DeleteResourceTypeResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteProjectResp{ + response := &DeleteResourceTypeResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -24289,22 +30190,22 @@ func ParseDeleteProjectResp(rsp *http.Response) (*DeleteProjectResp, error) { return response, nil } -// ParseGetProjectResp parses an HTTP response from a GetProjectWithResponse call -func ParseGetProjectResp(rsp *http.Response) (*GetProjectResp, error) { +// ParseGetResourceTypeResp parses an HTTP response from a GetResourceTypeWithResponse call +func ParseGetResourceTypeResp(rsp *http.Response) (*GetResourceTypeResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetProjectResp{ + response := &GetResourceTypeResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Project + var dest ResourceType if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24343,22 +30244,22 @@ func ParseGetProjectResp(rsp *http.Response) (*GetProjectResp, error) { return response, nil } -// ParseUpdateProjectResp parses an HTTP response from a UpdateProjectWithResponse call -func ParseUpdateProjectResp(rsp *http.Response) (*UpdateProjectResp, error) { +// ParseUpdateResourceTypeResp parses an HTTP response from a UpdateResourceTypeWithResponse call +func ParseUpdateResourceTypeResp(rsp *http.Response) (*UpdateResourceTypeResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateProjectResp{ + response := &UpdateResourceTypeResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Project + var dest ResourceType if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24411,34 +30312,27 @@ func ParseUpdateProjectResp(rsp *http.Response) (*UpdateProjectResp, error) { return response, nil } -// ParseListReleaseBindingsResp parses an HTTP response from a ListReleaseBindingsWithResponse call -func ParseListReleaseBindingsResp(rsp *http.Response) (*ListReleaseBindingsResp, error) { +// ParseGetResourceTypeSchemaResp parses an HTTP response from a GetResourceTypeSchemaWithResponse call +func ParseGetResourceTypeSchemaResp(rsp *http.Response) (*GetResourceTypeSchemaResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListReleaseBindingsResp{ + response := &GetResourceTypeSchemaResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ReleaseBindingList + var dest SchemaResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24472,22 +30366,76 @@ func ParseListReleaseBindingsResp(rsp *http.Response) (*ListReleaseBindingsResp, return response, nil } -// ParseCreateReleaseBindingResp parses an HTTP response from a CreateReleaseBindingWithResponse call -func ParseCreateReleaseBindingResp(rsp *http.Response) (*CreateReleaseBindingResp, error) { +// ParseListSecretReferencesResp parses an HTTP response from a ListSecretReferencesWithResponse call +func ParseListSecretReferencesResp(rsp *http.Response) (*ListSecretReferencesResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateReleaseBindingResp{ + response := &ListSecretReferencesResp{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SecretReferenceList + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + +// ParseCreateSecretReferenceResp parses an HTTP response from a CreateSecretReferenceWithResponse call +func ParseCreateSecretReferenceResp(rsp *http.Response) (*CreateSecretReferenceResp, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateSecretReferenceResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ReleaseBinding + var dest SecretReference if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24521,6 +30469,13 @@ func ParseCreateReleaseBindingResp(rsp *http.Response) (*CreateReleaseBindingRes } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24533,15 +30488,15 @@ func ParseCreateReleaseBindingResp(rsp *http.Response) (*CreateReleaseBindingRes return response, nil } -// ParseDeleteReleaseBindingResp parses an HTTP response from a DeleteReleaseBindingWithResponse call -func ParseDeleteReleaseBindingResp(rsp *http.Response) (*DeleteReleaseBindingResp, error) { +// ParseDeleteSecretReferenceResp parses an HTTP response from a DeleteSecretReferenceWithResponse call +func ParseDeleteSecretReferenceResp(rsp *http.Response) (*DeleteSecretReferenceResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteReleaseBindingResp{ + response := &DeleteSecretReferenceResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -24580,22 +30535,22 @@ func ParseDeleteReleaseBindingResp(rsp *http.Response) (*DeleteReleaseBindingRes return response, nil } -// ParseGetReleaseBindingResp parses an HTTP response from a GetReleaseBindingWithResponse call -func ParseGetReleaseBindingResp(rsp *http.Response) (*GetReleaseBindingResp, error) { +// ParseGetSecretReferenceResp parses an HTTP response from a GetSecretReferenceWithResponse call +func ParseGetSecretReferenceResp(rsp *http.Response) (*GetSecretReferenceResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetReleaseBindingResp{ + response := &GetSecretReferenceResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ReleaseBinding + var dest SecretReference if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24634,22 +30589,22 @@ func ParseGetReleaseBindingResp(rsp *http.Response) (*GetReleaseBindingResp, err return response, nil } -// ParseUpdateReleaseBindingResp parses an HTTP response from a UpdateReleaseBindingWithResponse call -func ParseUpdateReleaseBindingResp(rsp *http.Response) (*UpdateReleaseBindingResp, error) { +// ParseUpdateSecretReferenceResp parses an HTTP response from a UpdateSecretReferenceWithResponse call +func ParseUpdateSecretReferenceResp(rsp *http.Response) (*UpdateSecretReferenceResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateReleaseBindingResp{ + response := &UpdateSecretReferenceResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ReleaseBinding + var dest SecretReference if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24683,6 +30638,13 @@ func ParseUpdateReleaseBindingResp(rsp *http.Response) (*UpdateReleaseBindingRes } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24695,22 +30657,22 @@ func ParseUpdateReleaseBindingResp(rsp *http.Response) (*UpdateReleaseBindingRes return response, nil } -// ParseGetReleaseBindingK8sResourceEventsResp parses an HTTP response from a GetReleaseBindingK8sResourceEventsWithResponse call -func ParseGetReleaseBindingK8sResourceEventsResp(rsp *http.Response) (*GetReleaseBindingK8sResourceEventsResp, error) { +// ParseListTraitsResp parses an HTTP response from a ListTraitsWithResponse call +func ParseListTraitsResp(rsp *http.Response) (*ListTraitsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetReleaseBindingK8sResourceEventsResp{ + response := &ListTraitsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ResourceEventsResponse + var dest TraitList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -24737,13 +30699,6 @@ func ParseGetReleaseBindingK8sResourceEventsResp(rsp *http.Response) (*GetReleas } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24756,26 +30711,26 @@ func ParseGetReleaseBindingK8sResourceEventsResp(rsp *http.Response) (*GetReleas return response, nil } -// ParseGetReleaseBindingK8sResourceLogsResp parses an HTTP response from a GetReleaseBindingK8sResourceLogsWithResponse call -func ParseGetReleaseBindingK8sResourceLogsResp(rsp *http.Response) (*GetReleaseBindingK8sResourceLogsResp, error) { +// ParseCreateTraitResp parses an HTTP response from a CreateTraitWithResponse call +func ParseCreateTraitResp(rsp *http.Response) (*CreateTraitResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetReleaseBindingK8sResourceLogsResp{ + response := &CreateTraitResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ResourcePodLogsResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Trait if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -24798,12 +30753,19 @@ func ParseGetReleaseBindingK8sResourceLogsResp(rsp *http.Response) (*GetReleaseB } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -24817,34 +30779,20 @@ func ParseGetReleaseBindingK8sResourceLogsResp(rsp *http.Response) (*GetReleaseB return response, nil } -// ParseGetReleaseBindingK8sResourceTreeResp parses an HTTP response from a GetReleaseBindingK8sResourceTreeWithResponse call -func ParseGetReleaseBindingK8sResourceTreeResp(rsp *http.Response) (*GetReleaseBindingK8sResourceTreeResp, error) { +// ParseDeleteTraitResp parses an HTTP response from a DeleteTraitWithResponse call +func ParseDeleteTraitResp(rsp *http.Response) (*DeleteTraitResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetReleaseBindingK8sResourceTreeResp{ + response := &DeleteTraitResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest K8sResourceTreeResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24878,34 +30826,27 @@ func ParseGetReleaseBindingK8sResourceTreeResp(rsp *http.Response) (*GetReleaseB return response, nil } -// ParseListSecretReferencesResp parses an HTTP response from a ListSecretReferencesWithResponse call -func ParseListSecretReferencesResp(rsp *http.Response) (*ListSecretReferencesResp, error) { +// ParseGetTraitResp parses an HTTP response from a GetTraitWithResponse call +func ParseGetTraitResp(rsp *http.Response) (*GetTraitResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSecretReferencesResp{ + response := &GetTraitResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SecretReferenceList + var dest Trait if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24920,6 +30861,13 @@ func ParseListSecretReferencesResp(rsp *http.Response) (*ListSecretReferencesRes } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24932,26 +30880,26 @@ func ParseListSecretReferencesResp(rsp *http.Response) (*ListSecretReferencesRes return response, nil } -// ParseCreateSecretReferenceResp parses an HTTP response from a CreateSecretReferenceWithResponse call -func ParseCreateSecretReferenceResp(rsp *http.Response) (*CreateSecretReferenceResp, error) { +// ParseUpdateTraitResp parses an HTTP response from a UpdateTraitWithResponse call +func ParseUpdateTraitResp(rsp *http.Response) (*UpdateTraitResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSecretReferenceResp{ + response := &UpdateTraitResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest SecretReference + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Trait if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -24974,6 +30922,13 @@ func ParseCreateSecretReferenceResp(rsp *http.Response) (*CreateSecretReferenceR } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24981,6 +30936,13 @@ func ParseCreateSecretReferenceResp(rsp *http.Response) (*CreateSecretReferenceR } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -24993,20 +30955,27 @@ func ParseCreateSecretReferenceResp(rsp *http.Response) (*CreateSecretReferenceR return response, nil } -// ParseDeleteSecretReferenceResp parses an HTTP response from a DeleteSecretReferenceWithResponse call -func ParseDeleteSecretReferenceResp(rsp *http.Response) (*DeleteSecretReferenceResp, error) { +// ParseGetTraitSchemaResp parses an HTTP response from a GetTraitSchemaWithResponse call +func ParseGetTraitSchemaResp(rsp *http.Response) (*GetTraitSchemaResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteSecretReferenceResp{ + response := &GetTraitSchemaResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SchemaResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25040,27 +31009,34 @@ func ParseDeleteSecretReferenceResp(rsp *http.Response) (*DeleteSecretReferenceR return response, nil } -// ParseGetSecretReferenceResp parses an HTTP response from a GetSecretReferenceWithResponse call -func ParseGetSecretReferenceResp(rsp *http.Response) (*GetSecretReferenceResp, error) { +// ParseListWorkflowPlanesResp parses an HTTP response from a ListWorkflowPlanesWithResponse call +func ParseListWorkflowPlanesResp(rsp *http.Response) (*ListWorkflowPlanesResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSecretReferenceResp{ + response := &ListWorkflowPlanesResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SecretReference + var dest WorkflowPlaneList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25075,13 +31051,6 @@ func ParseGetSecretReferenceResp(rsp *http.Response) (*GetSecretReferenceResp, e } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25094,26 +31063,26 @@ func ParseGetSecretReferenceResp(rsp *http.Response) (*GetSecretReferenceResp, e return response, nil } -// ParseUpdateSecretReferenceResp parses an HTTP response from a UpdateSecretReferenceWithResponse call -func ParseUpdateSecretReferenceResp(rsp *http.Response) (*UpdateSecretReferenceResp, error) { +// ParseCreateWorkflowPlaneResp parses an HTTP response from a CreateWorkflowPlaneWithResponse call +func ParseCreateWorkflowPlaneResp(rsp *http.Response) (*CreateWorkflowPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSecretReferenceResp{ + response := &CreateWorkflowPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SecretReference + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest WorkflowPlane if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -25136,12 +31105,19 @@ func ParseUpdateSecretReferenceResp(rsp *http.Response) (*UpdateSecretReferenceR } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -25155,34 +31131,20 @@ func ParseUpdateSecretReferenceResp(rsp *http.Response) (*UpdateSecretReferenceR return response, nil } -// ParseListTraitsResp parses an HTTP response from a ListTraitsWithResponse call -func ParseListTraitsResp(rsp *http.Response) (*ListTraitsResp, error) { +// ParseDeleteWorkflowPlaneResp parses an HTTP response from a DeleteWorkflowPlaneWithResponse call +func ParseDeleteWorkflowPlaneResp(rsp *http.Response) (*DeleteWorkflowPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListTraitsResp{ + response := &DeleteWorkflowPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest TraitList - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25197,6 +31159,13 @@ func ParseListTraitsResp(rsp *http.Response) (*ListTraitsResp, error) { } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25209,33 +31178,26 @@ func ParseListTraitsResp(rsp *http.Response) (*ListTraitsResp, error) { return response, nil } -// ParseCreateTraitResp parses an HTTP response from a CreateTraitWithResponse call -func ParseCreateTraitResp(rsp *http.Response) (*CreateTraitResp, error) { +// ParseGetWorkflowPlaneResp parses an HTTP response from a GetWorkflowPlaneWithResponse call +func ParseGetWorkflowPlaneResp(rsp *http.Response) (*GetWorkflowPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateTraitResp{ + response := &GetWorkflowPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Trait - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkflowPlane if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized @@ -25251,12 +31213,12 @@ func ParseCreateTraitResp(rsp *http.Response) (*CreateTraitResp, error) { } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -25270,20 +31232,34 @@ func ParseCreateTraitResp(rsp *http.Response) (*CreateTraitResp, error) { return response, nil } -// ParseDeleteTraitResp parses an HTTP response from a DeleteTraitWithResponse call -func ParseDeleteTraitResp(rsp *http.Response) (*DeleteTraitResp, error) { +// ParseUpdateWorkflowPlaneResp parses an HTTP response from a UpdateWorkflowPlaneWithResponse call +func ParseUpdateWorkflowPlaneResp(rsp *http.Response) (*UpdateWorkflowPlaneResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteTraitResp{ + response := &UpdateWorkflowPlaneResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkflowPlane + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25305,6 +31281,20 @@ func ParseDeleteTraitResp(rsp *http.Response) (*DeleteTraitResp, error) { } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25317,27 +31307,34 @@ func ParseDeleteTraitResp(rsp *http.Response) (*DeleteTraitResp, error) { return response, nil } -// ParseGetTraitResp parses an HTTP response from a GetTraitWithResponse call -func ParseGetTraitResp(rsp *http.Response) (*GetTraitResp, error) { +// ParseListWorkflowRunsResp parses an HTTP response from a ListWorkflowRunsWithResponse call +func ParseListWorkflowRunsResp(rsp *http.Response) (*ListWorkflowRunsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTraitResp{ + response := &ListWorkflowRunsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Trait + var dest WorkflowRunList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25352,13 +31349,6 @@ func ParseGetTraitResp(rsp *http.Response) (*GetTraitResp, error) { } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25371,26 +31361,26 @@ func ParseGetTraitResp(rsp *http.Response) (*GetTraitResp, error) { return response, nil } -// ParseUpdateTraitResp parses an HTTP response from a UpdateTraitWithResponse call -func ParseUpdateTraitResp(rsp *http.Response) (*UpdateTraitResp, error) { +// ParseCreateWorkflowRunResp parses an HTTP response from a CreateWorkflowRunWithResponse call +func ParseCreateWorkflowRunResp(rsp *http.Response) (*CreateWorkflowRunResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateTraitResp{ + response := &CreateWorkflowRunResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Trait + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest WorkflowRun if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -25420,12 +31410,12 @@ func ParseUpdateTraitResp(rsp *http.Response) (*UpdateTraitResp, error) { } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -25439,27 +31429,20 @@ func ParseUpdateTraitResp(rsp *http.Response) (*UpdateTraitResp, error) { return response, nil } -// ParseGetTraitSchemaResp parses an HTTP response from a GetTraitSchemaWithResponse call -func ParseGetTraitSchemaResp(rsp *http.Response) (*GetTraitSchemaResp, error) { +// ParseDeleteWorkflowRunResp parses an HTTP response from a DeleteWorkflowRunWithResponse call +func ParseDeleteWorkflowRunResp(rsp *http.Response) (*DeleteWorkflowRunResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTraitSchemaResp{ + response := &DeleteWorkflowRunResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SchemaResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25493,34 +31476,27 @@ func ParseGetTraitSchemaResp(rsp *http.Response) (*GetTraitSchemaResp, error) { return response, nil } -// ParseListWorkflowPlanesResp parses an HTTP response from a ListWorkflowPlanesWithResponse call -func ParseListWorkflowPlanesResp(rsp *http.Response) (*ListWorkflowPlanesResp, error) { +// ParseGetWorkflowRunResp parses an HTTP response from a GetWorkflowRunWithResponse call +func ParseGetWorkflowRunResp(rsp *http.Response) (*GetWorkflowRunResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListWorkflowPlanesResp{ + response := &GetWorkflowRunResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkflowPlaneList + var dest WorkflowRun if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25535,6 +31511,13 @@ func ParseListWorkflowPlanesResp(rsp *http.Response) (*ListWorkflowPlanesResp, e } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25547,26 +31530,26 @@ func ParseListWorkflowPlanesResp(rsp *http.Response) (*ListWorkflowPlanesResp, e return response, nil } -// ParseCreateWorkflowPlaneResp parses an HTTP response from a CreateWorkflowPlaneWithResponse call -func ParseCreateWorkflowPlaneResp(rsp *http.Response) (*CreateWorkflowPlaneResp, error) { +// ParseUpdateWorkflowRunResp parses an HTTP response from a UpdateWorkflowRunWithResponse call +func ParseUpdateWorkflowRunResp(rsp *http.Response) (*UpdateWorkflowRunResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateWorkflowPlaneResp{ + response := &UpdateWorkflowRunResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest WorkflowPlane + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkflowRun if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -25589,12 +31572,19 @@ func ParseCreateWorkflowPlaneResp(rsp *http.Response) (*CreateWorkflowPlaneResp, } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -25608,26 +31598,33 @@ func ParseCreateWorkflowPlaneResp(rsp *http.Response) (*CreateWorkflowPlaneResp, return response, nil } -// ParseDeleteWorkflowPlaneResp parses an HTTP response from a DeleteWorkflowPlaneWithResponse call -func ParseDeleteWorkflowPlaneResp(rsp *http.Response) (*DeleteWorkflowPlaneResp, error) { +// ParseGetWorkflowRunEventsResp parses an HTTP response from a GetWorkflowRunEventsWithResponse call +func ParseGetWorkflowRunEventsResp(rsp *http.Response) (*GetWorkflowRunEventsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteWorkflowPlaneResp{ + response := &GetWorkflowRunEventsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Unauthorized + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []WorkflowRunEventEntry if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Forbidden @@ -25655,33 +31652,33 @@ func ParseDeleteWorkflowPlaneResp(rsp *http.Response) (*DeleteWorkflowPlaneResp, return response, nil } -// ParseGetWorkflowPlaneResp parses an HTTP response from a GetWorkflowPlaneWithResponse call -func ParseGetWorkflowPlaneResp(rsp *http.Response) (*GetWorkflowPlaneResp, error) { +// ParseGetWorkflowRunLogsResp parses an HTTP response from a GetWorkflowRunLogsWithResponse call +func ParseGetWorkflowRunLogsResp(rsp *http.Response) (*GetWorkflowRunLogsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetWorkflowPlaneResp{ + response := &GetWorkflowRunLogsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkflowPlane + var dest []WorkflowRunLogEntry if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Unauthorized + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Forbidden @@ -25709,41 +31706,27 @@ func ParseGetWorkflowPlaneResp(rsp *http.Response) (*GetWorkflowPlaneResp, error return response, nil } -// ParseUpdateWorkflowPlaneResp parses an HTTP response from a UpdateWorkflowPlaneWithResponse call -func ParseUpdateWorkflowPlaneResp(rsp *http.Response) (*UpdateWorkflowPlaneResp, error) { +// ParseGetWorkflowRunStatusResp parses an HTTP response from a GetWorkflowRunStatusWithResponse call +func ParseGetWorkflowRunStatusResp(rsp *http.Response) (*GetWorkflowRunStatusResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateWorkflowPlaneResp{ + response := &GetWorkflowRunStatusResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkflowPlane + var dest WorkflowRunStatusResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Unauthorized - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25758,13 +31741,6 @@ func ParseUpdateWorkflowPlaneResp(rsp *http.Response) (*UpdateWorkflowPlaneResp, } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25777,22 +31753,22 @@ func ParseUpdateWorkflowPlaneResp(rsp *http.Response) (*UpdateWorkflowPlaneResp, return response, nil } -// ParseListWorkflowRunsResp parses an HTTP response from a ListWorkflowRunsWithResponse call -func ParseListWorkflowRunsResp(rsp *http.Response) (*ListWorkflowRunsResp, error) { +// ParseListWorkflowsResp parses an HTTP response from a ListWorkflowsWithResponse call +func ParseListWorkflowsResp(rsp *http.Response) (*ListWorkflowsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListWorkflowRunsResp{ + response := &ListWorkflowsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkflowRunList + var dest WorkflowList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -25831,22 +31807,22 @@ func ParseListWorkflowRunsResp(rsp *http.Response) (*ListWorkflowRunsResp, error return response, nil } -// ParseCreateWorkflowRunResp parses an HTTP response from a CreateWorkflowRunWithResponse call -func ParseCreateWorkflowRunResp(rsp *http.Response) (*CreateWorkflowRunResp, error) { +// ParseCreateWorkflowResp parses an HTTP response from a CreateWorkflowWithResponse call +func ParseCreateWorkflowResp(rsp *http.Response) (*CreateWorkflowResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateWorkflowRunResp{ + response := &CreateWorkflowResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest WorkflowRun + var dest Workflow if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -25873,12 +31849,19 @@ func ParseCreateWorkflowRunResp(rsp *http.Response) (*CreateWorkflowRunResp, err } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -25892,27 +31875,20 @@ func ParseCreateWorkflowRunResp(rsp *http.Response) (*CreateWorkflowRunResp, err return response, nil } -// ParseGetWorkflowRunResp parses an HTTP response from a GetWorkflowRunWithResponse call -func ParseGetWorkflowRunResp(rsp *http.Response) (*GetWorkflowRunResp, error) { +// ParseDeleteWorkflowResp parses an HTTP response from a DeleteWorkflowWithResponse call +func ParseDeleteWorkflowResp(rsp *http.Response) (*DeleteWorkflowResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetWorkflowRunResp{ + response := &DeleteWorkflowResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkflowRun - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -25946,34 +31922,27 @@ func ParseGetWorkflowRunResp(rsp *http.Response) (*GetWorkflowRunResp, error) { return response, nil } -// ParseUpdateWorkflowRunResp parses an HTTP response from a UpdateWorkflowRunWithResponse call -func ParseUpdateWorkflowRunResp(rsp *http.Response) (*UpdateWorkflowRunResp, error) { +// ParseGetWorkflowResp parses an HTTP response from a GetWorkflowWithResponse call +func ParseGetWorkflowResp(rsp *http.Response) (*GetWorkflowResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateWorkflowRunResp{ + response := &GetWorkflowResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkflowRun + var dest Workflow if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26007,22 +31976,22 @@ func ParseUpdateWorkflowRunResp(rsp *http.Response) (*UpdateWorkflowRunResp, err return response, nil } -// ParseGetWorkflowRunEventsResp parses an HTTP response from a GetWorkflowRunEventsWithResponse call -func ParseGetWorkflowRunEventsResp(rsp *http.Response) (*GetWorkflowRunEventsResp, error) { +// ParseUpdateWorkflowResp parses an HTTP response from a UpdateWorkflowWithResponse call +func ParseUpdateWorkflowResp(rsp *http.Response) (*UpdateWorkflowResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetWorkflowRunEventsResp{ + response := &UpdateWorkflowResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []WorkflowRunEventEntry + var dest Workflow if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -26035,6 +32004,13 @@ func ParseGetWorkflowRunEventsResp(rsp *http.Response) (*GetWorkflowRunEventsRes } response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26049,59 +32025,19 @@ func ParseGetWorkflowRunEventsResp(rsp *http.Response) (*GetWorkflowRunEventsRes } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseGetWorkflowRunLogsResp parses an HTTP response from a GetWorkflowRunLogsWithResponse call -func ParseGetWorkflowRunLogsResp(rsp *http.Response) (*GetWorkflowRunLogsResp, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetWorkflowRunLogsResp{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []WorkflowRunLogEntry - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -26115,27 +32051,34 @@ func ParseGetWorkflowRunLogsResp(rsp *http.Response) (*GetWorkflowRunLogsResp, e return response, nil } -// ParseGetWorkflowRunStatusResp parses an HTTP response from a GetWorkflowRunStatusWithResponse call -func ParseGetWorkflowRunStatusResp(rsp *http.Response) (*GetWorkflowRunStatusResp, error) { +// ParseGetWorkflowSchemaResp parses an HTTP response from a GetWorkflowSchemaWithResponse call +func ParseGetWorkflowSchemaResp(rsp *http.Response) (*GetWorkflowSchemaResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetWorkflowRunStatusResp{ + response := &GetWorkflowSchemaResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkflowRunStatusResponse + var dest SchemaResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26162,22 +32105,22 @@ func ParseGetWorkflowRunStatusResp(rsp *http.Response) (*GetWorkflowRunStatusRes return response, nil } -// ParseListWorkflowsResp parses an HTTP response from a ListWorkflowsWithResponse call -func ParseListWorkflowsResp(rsp *http.Response) (*ListWorkflowsResp, error) { +// ParseListWorkloadsResp parses an HTTP response from a ListWorkloadsWithResponse call +func ParseListWorkloadsResp(rsp *http.Response) (*ListWorkloadsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListWorkflowsResp{ + response := &ListWorkloadsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkflowList + var dest WorkloadList if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -26204,6 +32147,13 @@ func ParseListWorkflowsResp(rsp *http.Response) (*ListWorkflowsResp, error) { } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26216,22 +32166,22 @@ func ParseListWorkflowsResp(rsp *http.Response) (*ListWorkflowsResp, error) { return response, nil } -// ParseCreateWorkflowResp parses an HTTP response from a CreateWorkflowWithResponse call -func ParseCreateWorkflowResp(rsp *http.Response) (*CreateWorkflowResp, error) { +// ParseCreateWorkloadResp parses an HTTP response from a CreateWorkloadWithResponse call +func ParseCreateWorkloadResp(rsp *http.Response) (*CreateWorkloadResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateWorkflowResp{ + response := &CreateWorkloadResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Workflow + var dest Workload if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -26265,6 +32215,13 @@ func ParseCreateWorkflowResp(rsp *http.Response) (*CreateWorkflowResp, error) { } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26277,15 +32234,15 @@ func ParseCreateWorkflowResp(rsp *http.Response) (*CreateWorkflowResp, error) { return response, nil } -// ParseDeleteWorkflowResp parses an HTTP response from a DeleteWorkflowWithResponse call -func ParseDeleteWorkflowResp(rsp *http.Response) (*DeleteWorkflowResp, error) { +// ParseDeleteWorkloadResp parses an HTTP response from a DeleteWorkloadWithResponse call +func ParseDeleteWorkloadResp(rsp *http.Response) (*DeleteWorkloadResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteWorkflowResp{ + response := &DeleteWorkloadResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -26324,22 +32281,22 @@ func ParseDeleteWorkflowResp(rsp *http.Response) (*DeleteWorkflowResp, error) { return response, nil } -// ParseGetWorkflowResp parses an HTTP response from a GetWorkflowWithResponse call -func ParseGetWorkflowResp(rsp *http.Response) (*GetWorkflowResp, error) { +// ParseGetWorkloadResp parses an HTTP response from a GetWorkloadWithResponse call +func ParseGetWorkloadResp(rsp *http.Response) (*GetWorkloadResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetWorkflowResp{ + response := &GetWorkloadResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Workflow + var dest Workload if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -26378,22 +32335,22 @@ func ParseGetWorkflowResp(rsp *http.Response) (*GetWorkflowResp, error) { return response, nil } -// ParseUpdateWorkflowResp parses an HTTP response from a UpdateWorkflowWithResponse call -func ParseUpdateWorkflowResp(rsp *http.Response) (*UpdateWorkflowResp, error) { +// ParseUpdateWorkloadResp parses an HTTP response from a UpdateWorkloadWithResponse call +func ParseUpdateWorkloadResp(rsp *http.Response) (*UpdateWorkloadResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateWorkflowResp{ + response := &UpdateWorkloadResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Workflow + var dest Workload if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -26427,12 +32384,12 @@ func ParseUpdateWorkflowResp(rsp *http.Response) (*UpdateWorkflowResp, error) { } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -26446,47 +32403,47 @@ func ParseUpdateWorkflowResp(rsp *http.Response) (*UpdateWorkflowResp, error) { return response, nil } -// ParseGetWorkflowSchemaResp parses an HTTP response from a GetWorkflowSchemaWithResponse call -func ParseGetWorkflowSchemaResp(rsp *http.Response) (*GetWorkflowSchemaResp, error) { +// ParseHandleAutoBuildResp parses an HTTP response from a HandleAutoBuildWithResponse call +func ParseHandleAutoBuildResp(rsp *http.Response) (*HandleAutoBuildResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetWorkflowSchemaResp{ + response := &HandleAutoBuildResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SchemaResponse + var dest WebhookEventResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Unauthorized + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -26500,34 +32457,27 @@ func ParseGetWorkflowSchemaResp(rsp *http.Response) (*GetWorkflowSchemaResp, err return response, nil } -// ParseListWorkloadsResp parses an HTTP response from a ListWorkloadsWithResponse call -func ParseListWorkloadsResp(rsp *http.Response) (*ListWorkloadsResp, error) { +// ParseListGitSecretsResp parses an HTTP response from a ListGitSecretsWithResponse call +func ParseListGitSecretsResp(rsp *http.Response) (*ListGitSecretsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListWorkloadsResp{ + response := &ListGitSecretsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkloadList + var dest GitSecretListResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26542,13 +32492,6 @@ func ParseListWorkloadsResp(rsp *http.Response) (*ListWorkloadsResp, error) { } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26561,22 +32504,22 @@ func ParseListWorkloadsResp(rsp *http.Response) (*ListWorkloadsResp, error) { return response, nil } -// ParseCreateWorkloadResp parses an HTTP response from a CreateWorkloadWithResponse call -func ParseCreateWorkloadResp(rsp *http.Response) (*CreateWorkloadResp, error) { +// ParseCreateGitSecretResp parses an HTTP response from a CreateGitSecretWithResponse call +func ParseCreateGitSecretResp(rsp *http.Response) (*CreateGitSecretResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateWorkloadResp{ + response := &CreateGitSecretResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest Workload + var dest GitSecretResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -26610,6 +32553,13 @@ func ParseCreateWorkloadResp(rsp *http.Response) (*CreateWorkloadResp, error) { } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26622,15 +32572,15 @@ func ParseCreateWorkloadResp(rsp *http.Response) (*CreateWorkloadResp, error) { return response, nil } -// ParseDeleteWorkloadResp parses an HTTP response from a DeleteWorkloadWithResponse call -func ParseDeleteWorkloadResp(rsp *http.Response) (*DeleteWorkloadResp, error) { +// ParseDeleteGitSecretResp parses an HTTP response from a DeleteGitSecretWithResponse call +func ParseDeleteGitSecretResp(rsp *http.Response) (*DeleteGitSecretResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteWorkloadResp{ + response := &DeleteGitSecretResp{ Body: bodyBytes, HTTPResponse: rsp, } @@ -26669,27 +32619,34 @@ func ParseDeleteWorkloadResp(rsp *http.Response) (*DeleteWorkloadResp, error) { return response, nil } -// ParseGetWorkloadResp parses an HTTP response from a GetWorkloadWithResponse call -func ParseGetWorkloadResp(rsp *http.Response) (*GetWorkloadResp, error) { +// ParseListSecretsResp parses an HTTP response from a ListSecretsWithResponse call +func ParseListSecretsResp(rsp *http.Response) (*ListSecretsResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetWorkloadResp{ + response := &ListSecretsResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Workload + var dest ListSecretsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON200 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26704,45 +32661,45 @@ func ParseGetWorkloadResp(rsp *http.Response) (*GetWorkloadResp, error) { } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: + var dest NotImplemented if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON501 = &dest } return response, nil } -// ParseUpdateWorkloadResp parses an HTTP response from a UpdateWorkloadWithResponse call -func ParseUpdateWorkloadResp(rsp *http.Response) (*UpdateWorkloadResp, error) { +// ParseCreateSecretResp parses an HTTP response from a CreateSecretWithResponse call +func ParseCreateSecretResp(rsp *http.Response) (*CreateSecretResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateWorkloadResp{ + response := &CreateSecretResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Workload + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest Secret if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -26765,12 +32722,19 @@ func ParseUpdateWorkloadResp(rsp *http.Response) (*UpdateWorkloadResp, error) { } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -26779,32 +32743,32 @@ func ParseUpdateWorkloadResp(rsp *http.Response) (*UpdateWorkloadResp, error) { } response.JSON500 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: + var dest NotImplemented + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON501 = &dest + } return response, nil } -// ParseHandleAutoBuildResp parses an HTTP response from a HandleAutoBuildWithResponse call -func ParseHandleAutoBuildResp(rsp *http.Response) (*HandleAutoBuildResp, error) { +// ParseDeleteSecretResp parses an HTTP response from a DeleteSecretWithResponse call +func ParseDeleteSecretResp(rsp *http.Response) (*DeleteSecretResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &HandleAutoBuildResp{ + response := &DeleteSecretResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WebhookEventResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26819,92 +32783,66 @@ func ParseHandleAutoBuildResp(rsp *http.Response) (*HandleAutoBuildResp, error) } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest - - } - - return response, nil -} - -// ParseListGitSecretsResp parses an HTTP response from a ListGitSecretsWithResponse call -func ParseListGitSecretsResp(rsp *http.Response) (*ListGitSecretsResp, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListGitSecretsResp{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON403 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GitSecretListResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Unauthorized + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON500 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalError + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: + var dest NotImplemented if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON501 = &dest } return response, nil } -// ParseCreateGitSecretResp parses an HTTP response from a CreateGitSecretWithResponse call -func ParseCreateGitSecretResp(rsp *http.Response) (*CreateGitSecretResp, error) { +// ParseGetSecretResp parses an HTTP response from a GetSecretWithResponse call +func ParseGetSecretResp(rsp *http.Response) (*GetSecretResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateGitSecretResp{ + response := &GetSecretResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest GitSecretResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Secret if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized @@ -26920,12 +32858,12 @@ func ParseCreateGitSecretResp(rsp *http.Response) (*CreateGitSecretResp, error) } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError @@ -26934,25 +32872,46 @@ func ParseCreateGitSecretResp(rsp *http.Response) (*CreateGitSecretResp, error) } response.JSON500 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: + var dest NotImplemented + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON501 = &dest + } return response, nil } -// ParseDeleteGitSecretResp parses an HTTP response from a DeleteGitSecretWithResponse call -func ParseDeleteGitSecretResp(rsp *http.Response) (*DeleteGitSecretResp, error) { +// ParseUpdateSecretResp parses an HTTP response from a UpdateSecretWithResponse call +func ParseUpdateSecretResp(rsp *http.Response) (*UpdateSecretResp, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteGitSecretResp{ + response := &UpdateSecretResp{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26974,6 +32933,13 @@ func ParseDeleteGitSecretResp(rsp *http.Response) (*DeleteGitSecretResp, error) } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableContent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -26981,6 +32947,13 @@ func ParseDeleteGitSecretResp(rsp *http.Response) (*DeleteGitSecretResp, error) } response.JSON500 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 501: + var dest NotImplemented + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON501 = &dest + } return response, nil diff --git a/agent-manager-service/clients/openchoreosvc/gen/types.gen.go b/agent-manager-service/clients/openchoreosvc/gen/types.gen.go index 9dbbab5d8..1130c2a64 100644 --- a/agent-manager-service/clients/openchoreosvc/gen/types.gen.go +++ b/agent-manager-service/clients/openchoreosvc/gen/types.gen.go @@ -21,6 +21,7 @@ const ( ActionInfoLowestScopeComponent ActionInfoLowestScope = "component" ActionInfoLowestScopeNamespace ActionInfoLowestScope = "namespace" ActionInfoLowestScopeProject ActionInfoLowestScope = "project" + ActionInfoLowestScopeResource ActionInfoLowestScope = "resource" ) // Defines values for AuthzRoleBindingSpecEffect. @@ -193,13 +194,15 @@ const ( // Defines values for ErrorResponseCode. const ( - BADREQUEST ErrorResponseCode = "BAD_REQUEST" - CONFLICT ErrorResponseCode = "CONFLICT" - FORBIDDEN ErrorResponseCode = "FORBIDDEN" - INTERNALERROR ErrorResponseCode = "INTERNAL_ERROR" - NOTFOUND ErrorResponseCode = "NOT_FOUND" - UNAUTHORIZED ErrorResponseCode = "UNAUTHORIZED" - UNKNOWNGITPROVIDER ErrorResponseCode = "UNKNOWN_GIT_PROVIDER" + BADREQUEST ErrorResponseCode = "BAD_REQUEST" + CONFLICT ErrorResponseCode = "CONFLICT" + FORBIDDEN ErrorResponseCode = "FORBIDDEN" + INTERNALERROR ErrorResponseCode = "INTERNAL_ERROR" + NOTFOUND ErrorResponseCode = "NOT_FOUND" + NOTIMPLEMENTED ErrorResponseCode = "NOT_IMPLEMENTED" + UNAUTHORIZED ErrorResponseCode = "UNAUTHORIZED" + UNKNOWNGITPROVIDER ErrorResponseCode = "UNKNOWN_GIT_PROVIDER" + UNPROCESSABLECONTENT ErrorResponseCode = "UNPROCESSABLE_CONTENT" ) // Defines values for ExternalRefKind. @@ -262,15 +265,56 @@ const ( RenderedReleaseStatusResourcesHealthStatusUnknown RenderedReleaseStatusResourcesHealthStatus = "Unknown" ) +// Defines values for ResolvedConnectionVisibility. +const ( + ResolvedConnectionVisibilityExternal ResolvedConnectionVisibility = "external" + ResolvedConnectionVisibilityInternal ResolvedConnectionVisibility = "internal" + ResolvedConnectionVisibilityNamespace ResolvedConnectionVisibility = "namespace" + ResolvedConnectionVisibilityProject ResolvedConnectionVisibility = "project" +) + +// Defines values for ResourceReleaseBindingSpecRetainPolicy. +const ( + ResourceReleaseBindingSpecRetainPolicyDelete ResourceReleaseBindingSpecRetainPolicy = "Delete" + ResourceReleaseBindingSpecRetainPolicyRetain ResourceReleaseBindingSpecRetainPolicy = "Retain" +) + +// Defines values for ResourceReleaseSpecResourceTypeKind. +const ( + ResourceReleaseSpecResourceTypeKindClusterResourceType ResourceReleaseSpecResourceTypeKind = "ClusterResourceType" + ResourceReleaseSpecResourceTypeKindResourceType ResourceReleaseSpecResourceTypeKind = "ResourceType" +) + +// Defines values for ResourceTypeRefKind. +const ( + ResourceTypeRefKindClusterResourceType ResourceTypeRefKind = "ClusterResourceType" + ResourceTypeRefKindResourceType ResourceTypeRefKind = "ResourceType" +) + +// Defines values for ResourceTypeSpecRetainPolicy. +const ( + ResourceTypeSpecRetainPolicyDelete ResourceTypeSpecRetainPolicy = "Delete" + ResourceTypeSpecRetainPolicyRetain ResourceTypeSpecRetainPolicy = "Retain" +) + // Defines values for SecretTemplateType. const ( - BootstrapKubernetesIotoken SecretTemplateType = "bootstrap.kubernetes.io/token" - KubernetesIobasicAuth SecretTemplateType = "kubernetes.io/basic-auth" - KubernetesIodockercfg SecretTemplateType = "kubernetes.io/dockercfg" - KubernetesIodockerconfigjson SecretTemplateType = "kubernetes.io/dockerconfigjson" - KubernetesIosshAuth SecretTemplateType = "kubernetes.io/ssh-auth" - KubernetesIotls SecretTemplateType = "kubernetes.io/tls" - Opaque SecretTemplateType = "Opaque" + SecretTemplateTypeBootstrapKubernetesIotoken SecretTemplateType = "bootstrap.kubernetes.io/token" + SecretTemplateTypeKubernetesIobasicAuth SecretTemplateType = "kubernetes.io/basic-auth" + SecretTemplateTypeKubernetesIodockercfg SecretTemplateType = "kubernetes.io/dockercfg" + SecretTemplateTypeKubernetesIodockerconfigjson SecretTemplateType = "kubernetes.io/dockerconfigjson" + SecretTemplateTypeKubernetesIosshAuth SecretTemplateType = "kubernetes.io/ssh-auth" + SecretTemplateTypeKubernetesIotls SecretTemplateType = "kubernetes.io/tls" + SecretTemplateTypeOpaque SecretTemplateType = "Opaque" +) + +// Defines values for SecretType. +const ( + SecretTypeKubernetesIobasicAuth SecretType = "kubernetes.io/basic-auth" + SecretTypeKubernetesIodockerconfigjson SecretType = "kubernetes.io/dockerconfigjson" + SecretTypeKubernetesIosshAuth SecretType = "kubernetes.io/ssh-auth" + SecretTypeKubernetesIotls SecretType = "kubernetes.io/tls" + SecretTypeOpaque SecretType = "Opaque" ) // Defines values for SubjectContextType. @@ -284,6 +328,14 @@ const ( TargetEnvironmentRefKindEnvironment TargetEnvironmentRefKind = "Environment" ) +// Defines values for TargetPlaneRefKind. +const ( + TargetPlaneRefKindClusterDataPlane TargetPlaneRefKind = "ClusterDataPlane" + TargetPlaneRefKindClusterWorkflowPlane TargetPlaneRefKind = "ClusterWorkflowPlane" + TargetPlaneRefKindDataPlane TargetPlaneRefKind = "DataPlane" + TargetPlaneRefKindWorkflowPlane TargetPlaneRefKind = "WorkflowPlane" +) + // Defines values for TraitSpecCreatesTargetPlane. const ( TraitSpecCreatesTargetPlaneDataplane TraitSpecCreatesTargetPlane = "dataplane" @@ -369,14 +421,17 @@ type ActionCapability struct { // ActionInfo An authorization action with its scope in the resource hierarchy. type ActionInfo struct { - // LowestScope The lowest resource hierarchy level at which this action is evaluated. One of cluster, namespace, project, or component. + // Conditions ABAC attributes available for CEL condition expressions on this action. Empty means no conditions are supported. + Conditions *[]ConditionAttribute `json:"conditions,omitempty"` + + // LowestScope The lowest resource hierarchy level at which this action is evaluated. One of cluster, namespace, project, component, or resource. LowestScope ActionInfoLowestScope `json:"lowestScope"` // Name The action identifier (e.g. "component:create"). Name string `json:"name"` } -// ActionInfoLowestScope The lowest resource hierarchy level at which this action is evaluated. One of cluster, namespace, project, or component. +// ActionInfoLowestScope The lowest resource hierarchy level at which this action is evaluated. One of cluster, namespace, project, component, or resource. type ActionInfoLowestScope string // AgentConnectionStatus Status of cluster agent connections @@ -421,8 +476,23 @@ type AuthzClusterScope struct { Project *string `json:"project,omitempty"` } +// AuthzCondition Action-scoped mapping condition attached to a role mapping inside a binding. It constrains only the actions listed in the "actions" property and does not enable or disable the entire mapping or binding; all other actions in the mapping remain unaffected by this condition. +type AuthzCondition struct { + // Actions List of actions this condition applies to. Supports exact match (e.g. "releasebinding:create") and wildcards (e.g. "releasebinding:*"). + Actions []string `json:"actions"` + + // Expression CEL expression that must evaluate to true for the action to be permitted. Example: resource.environment in ["dev", "staging"] + Expression string `json:"expression"` +} + // AuthzContext Additional context for authorization -type AuthzContext map[string]interface{} +type AuthzContext struct { + // Resource Resource-level attributes for condition evaluation + Resource *struct { + // Environment Target deployment environment (e.g. "dev", "staging", "prod") + Environment *string `json:"environment,omitempty"` + } `json:"resource,omitempty"` +} // AuthzEntitlementClaim Entitlement claim-value pair for subject identification type AuthzEntitlementClaim struct { @@ -502,6 +572,9 @@ type AuthzRoleList struct { // AuthzRoleMapping Pairs a role reference with an optional scope type AuthzRoleMapping struct { + // Conditions Per-role-mapping conditions that restrict specific actions within this role mapping in the binding. Each condition only affects the actions listed in its "actions" property and does not enable or disable the mapping or binding as a whole. + Conditions *[]AuthzCondition `json:"conditions,omitempty"` + // RoleRef Reference to an AuthzRole or ClusterAuthzRole RoleRef AuthzRoleRef `json:"roleRef"` @@ -539,10 +612,16 @@ type AuthzScope struct { Project *string `json:"project,omitempty"` } +// CapabilityConstraints CEL expressions constraining access for a given action and resource path. Multiple expressions are OR'd. +type CapabilityConstraints struct { + // Expressions CEL expressions; access is granted if any one evaluates to true + Expressions *[]string `json:"expressions,omitempty"` +} + // CapabilityResource Resource with permission details type CapabilityResource struct { - // Constraints Additional instance-level restrictions - Constraints *map[string]interface{} `json:"constraints,omitempty"` + // Constraints CEL expressions constraining access for a given action and resource path. Multiple expressions are OR'd. + Constraints *CapabilityConstraints `json:"constraints,omitempty"` // Path Full resource path Path *string `json:"path,omitempty"` @@ -623,7 +702,9 @@ type ClusterAuthzRoleList struct { // ClusterAuthzRoleMapping Pairs a role reference with an optional scope for cluster-scoped bindings type ClusterAuthzRoleMapping struct { - RoleRef struct { + // Conditions Per-role-mapping conditions that restrict specific actions within this role mapping in the binding. Each condition only affects the actions listed in its "actions" property and does not enable or disable the mapping or binding as a whole. + Conditions *[]AuthzCondition `json:"conditions,omitempty"` + RoleRef struct { Kind ClusterAuthzRoleMappingRoleRefKind `json:"kind"` // Name Name of the role @@ -865,6 +946,9 @@ type ClusterObservabilityPlaneSpec struct { // ClusterAgent Configuration for cluster agent-based communication ClusterAgent *ClusterAgentConfig `json:"clusterAgent,omitempty"` + // FinOpsAgentURL Base URL of the FinOps Agent API in the observability plane cluster + FinOpsAgentURL *string `json:"finOpsAgentURL,omitempty"` + // ObserverURL Base URL of the Observer API in the observability plane cluster ObserverURL *string `json:"observerURL,omitempty"` @@ -888,6 +972,35 @@ type ClusterObservabilityPlaneStatus struct { ObservedGeneration *int64 `json:"observedGeneration,omitempty"` } +// ClusterResourceType ClusterResourceType resource. +// Cluster-scoped sibling of ResourceType. Resources in any namespace can reference it. +type ClusterResourceType struct { + // ApiVersion API version of the resource + ApiVersion *string `json:"apiVersion,omitempty"` + + // Kind Kind of the resource + Kind *string `json:"kind,omitempty"` + + // Metadata Standard Kubernetes object metadata (without kind/apiVersion). + // Matches the structure of metav1.ObjectMeta for the fields exposed via the API. + Metadata ObjectMeta `json:"metadata"` + + // Spec Desired state of a (Cluster)ResourceType. + Spec *ResourceTypeSpec `json:"spec,omitempty"` + + // Status ClusterResourceType status (currently empty) + Status *map[string]interface{} `json:"status,omitempty"` +} + +// ClusterResourceTypeList Paginated list of cluster resource types +type ClusterResourceTypeList struct { + Items []ClusterResourceType `json:"items"` + + // Pagination Cursor-based pagination metadata. Uses Kubernetes-native continuation tokens + // for efficient pagination through large result sets. + Pagination Pagination `json:"pagination"` +} + // ClusterTrait ClusterTrait resource. // Cluster-scoped version of Trait. type ClusterTrait struct { @@ -1431,6 +1544,15 @@ type Condition struct { // ConditionStatus Status of the condition type ConditionStatus string +// ConditionAttribute An ABAC attribute available for CEL condition expressions on an action. +type ConditionAttribute struct { + // Description Human-readable description of the attribute. + Description string `json:"description"` + + // Key Full dotted path of the attribute (e.g. "resource.environment"). + Key string `json:"key"` +} + // ConnectionEnvBindings Maps resolved connection address components to environment variable names type ConnectionEnvBindings struct { // Address Env var name for the protocol-appropriate connection string. @@ -1487,6 +1609,26 @@ type CreateGitSecretRequestSecretType string // CreateGitSecretRequestWorkflowPlaneKind Kind of the workflow plane resource type CreateGitSecretRequestWorkflowPlaneKind string +// CreateSecretRequest Request body for creating a secret +type CreateSecretRequest struct { + // Data Map of secret keys to plaintext values. Required keys depend on secretType. + Data map[string]string `json:"data"` + + // Labels Labels applied as Kubernetes labels on the underlying + // SecretReference. Keys in the openchoreo.dev/ namespace are + // reserved and rejected. + Labels *map[string]string `json:"labels,omitempty"` + + // SecretName Name of the secret + SecretName string `json:"secretName"` + + // SecretType Kubernetes Secret type + SecretType SecretType `json:"secretType"` + + // TargetPlane Reference to the plane that hosts the secret data. + TargetPlane TargetPlaneRef `json:"targetPlane"` +} + // DataPlane DataPlane resource. // Represents a Kubernetes cluster for workload deployment. type DataPlane struct { @@ -1907,6 +2049,16 @@ type K8sResourceTreeResponse struct { RenderedReleases []ReleaseResourceTree `json:"renderedReleases"` } +// ListSecretsResponse Paginated list of secrets. +type ListSecretsResponse struct { + // Items Page of secrets. + Items []Secret `json:"items"` + + // Pagination Cursor-based pagination metadata. Uses Kubernetes-native continuation tokens + // for efficient pagination through large result sets. + Pagination Pagination `json:"pagination"` +} + // Namespace Namespace resource. // Control plane namespaces hold resources like Projects, Components, and Environments. // These namespaces are identified by the label `openchoreo.dev/control-plane=true`. @@ -2187,6 +2339,9 @@ type ObservabilityPlaneSpec struct { // ClusterAgent Configuration for cluster agent-based communication ClusterAgent *ClusterAgentConfig `json:"clusterAgent,omitempty"` + // FinOpsAgentURL Base URL of the FinOps Agent API in the observability plane cluster + FinOpsAgentURL *string `json:"finOpsAgentURL,omitempty"` + // ObserverURL Base URL of the Observer API in the observability plane cluster ObserverURL *string `json:"observerURL,omitempty"` @@ -2237,6 +2392,24 @@ type Pagination struct { RemainingCount *int64 `json:"remainingCount,omitempty"` } +// PendingConnection Represents a connection that could not be resolved +type PendingConnection struct { + // Component Name of the target component + Component string `json:"component"` + + // Endpoint Name of the endpoint on the target component + Endpoint string `json:"endpoint"` + + // Namespace Control plane namespace of the target component + Namespace string `json:"namespace"` + + // Project Name of the project that owns the target component + Project string `json:"project"` + + // Reason Describes why the connection could not be resolved + Reason string `json:"reason"` +} + // PodLogEntry A single log entry from a pod type PodLogEntry struct { // Log Log message content @@ -2389,6 +2562,12 @@ type ReleaseBindingStatus struct { // ObservedGeneration Most recent generation observed by the controller ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + + // PendingConnections Connections that could not be resolved + PendingConnections *[]PendingConnection `json:"pendingConnections,omitempty"` + + // ResolvedConnections Connections that have been successfully resolved + ResolvedConnections *[]ResolvedConnection `json:"resolvedConnections,omitempty"` } // ReleaseResourceTree Resource tree for a single release @@ -2511,9 +2690,58 @@ type RenderedReleaseStatus struct { // RenderedReleaseStatusResourcesHealthStatus Health status of the resource type RenderedReleaseStatusResourcesHealthStatus string +// ResolvedConnection Holds the resolved URL for a single connection +type ResolvedConnection struct { + // Component Name of the target component + Component string `json:"component"` + + // Endpoint Name of the endpoint on the target component + Endpoint string `json:"endpoint"` + + // Namespace Control plane namespace of the target component + Namespace string `json:"namespace"` + + // Project Name of the project that owns the target component + Project string `json:"project"` + + // Url Structured URL with its components + Url EndpointURL `json:"url"` + + // Visibility Visibility level at which the endpoint was resolved + Visibility ResolvedConnectionVisibility `json:"visibility"` +} + +// ResolvedConnectionVisibility Visibility level at which the endpoint was resolved +type ResolvedConnectionVisibility string + +// ResolvedResourceOutput Resolved output value populated by the binding controller after evaluating +// the ResourceType output CEL against the applied DP-side objects. Exactly one +// of value, secretKeyRef, or configMapKeyRef is set, matching the source +// declaration on ResourceType.spec.outputs. +type ResolvedResourceOutput struct { + // ConfigMapKeyRef Reference to a specific key in a Kubernetes ConfigMap on the data plane. + ConfigMapKeyRef *ResourceConfigMapKeyRef `json:"configMapKeyRef,omitempty"` + + // Name Output name. Matches the declared output name on the referenced ResourceType. + Name string `json:"name"` + + // SecretKeyRef Reference to a specific key in a Kubernetes Secret on the data plane. + SecretKeyRef *ResourceSecretKeyRef `json:"secretKeyRef,omitempty"` + + // Value Resolved literal value when the source output is declared with `value:`. + Value *string `json:"value,omitempty"` +} + // Resource Resource for authorization evaluation type Resource struct { - // Hierarchy Resource hierarchy scope + // Hierarchy Resource hierarchy scope. Authoritative validation lives on the + // AuthzRoleBinding / ClusterAuthzRoleBinding CRD CEL rules; this schema + // documents the same invariants for clients: + // - `project` is required when `component` or `resource` is set + // - `component` and `resource` are mutually exclusive (siblings under `project`) + // + // Hierarchies that violate these invariants are treated as no-match by + // the authz engine rather than rejected on the wire. Hierarchy ResourceHierarchy `json:"hierarchy"` // Id Resource ID @@ -2523,6 +2751,15 @@ type Resource struct { Type string `json:"type"` } +// ResourceConfigMapKeyRef Reference to a specific key in a Kubernetes ConfigMap on the data plane. +type ResourceConfigMapKeyRef struct { + // Key Key within the ConfigMap + Key string `json:"key"` + + // Name ConfigMap name (supports ${...} CEL templating in ResourceType outputs) + Name string `json:"name"` +} + // ResourceEvent A Kubernetes event associated with a resource type ResourceEvent struct { // Count Number of times this event has occurred @@ -2553,7 +2790,14 @@ type ResourceEventsResponse struct { Events []ResourceEvent `json:"events"` } -// ResourceHierarchy Resource hierarchy scope +// ResourceHierarchy Resource hierarchy scope. Authoritative validation lives on the +// AuthzRoleBinding / ClusterAuthzRoleBinding CRD CEL rules; this schema +// documents the same invariants for clients: +// - `project` is required when `component` or `resource` is set +// - `component` and `resource` are mutually exclusive (siblings under `project`) +// +// Hierarchies that violate these invariants are treated as no-match by +// the authz engine rather than rejected on the wire. type ResourceHierarchy struct { // Component Component name Component *string `json:"component,omitempty"` @@ -2563,6 +2807,70 @@ type ResourceHierarchy struct { // Project Project name Project *string `json:"project,omitempty"` + + // Resource Resource name (sibling of component under project) + Resource *string `json:"resource,omitempty"` +} + +// ResourceInstance Resource. +// Developer-facing intent for a managed-infrastructure dependency (database, +// queue, cache, object storage). References a ResourceType or ClusterResourceType template. +type ResourceInstance struct { + // ApiVersion API version of the resource + ApiVersion *string `json:"apiVersion,omitempty"` + + // Kind Kind of the resource (always "Resource" on the wire; see schema name) + Kind *string `json:"kind,omitempty"` + + // Metadata Standard Kubernetes object metadata (without kind/apiVersion). + // Matches the structure of metav1.ObjectMeta for the fields exposed via the API. + Metadata ObjectMeta `json:"metadata"` + + // Spec Desired state of a Resource. spec.owner and spec.type are immutable after creation. + Spec *ResourceInstanceSpec `json:"spec,omitempty"` + Status *ResourceInstanceStatus `json:"status,omitempty"` +} + +// ResourceInstanceList Paginated list of resources +type ResourceInstanceList struct { + Items []ResourceInstance `json:"items"` + + // Pagination Cursor-based pagination metadata. Uses Kubernetes-native continuation tokens + // for efficient pagination through large result sets. + Pagination Pagination `json:"pagination"` +} + +// ResourceInstanceSpec Desired state of a Resource. spec.owner and spec.type are immutable after creation. +type ResourceInstanceSpec struct { + // Owner Identifies the project that owns this Resource. + Owner struct { + // ProjectName Parent project name + ProjectName string `json:"projectName"` + } `json:"owner"` + + // Parameters Values for the parameter schema declared on the referenced (Cluster)ResourceType. Validated by the controller. + Parameters *map[string]interface{} `json:"parameters,omitempty"` + + // Type Reference to a ResourceType or ClusterResourceType template. + Type ResourceTypeRef `json:"type"` +} + +// ResourceInstanceStatus Observed state of a Resource. +type ResourceInstanceStatus struct { + // Conditions Latest available observations of the Resource's state. Includes Ready and Finalizing. + Conditions *[]Condition `json:"conditions,omitempty"` + + // LatestRelease Most recent ResourceRelease for this Resource. Used as the promote source for ResourceReleaseBinding pin advance. + LatestRelease *struct { + // Hash Content hash of Resource.spec + (Cluster)ResourceType.spec captured at release time + Hash string `json:"hash"` + + // Name Name of the ResourceRelease resource + Name string `json:"name"` + } `json:"latestRelease,omitempty"` + + // ObservedGeneration Most recent generation observed by the controller + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` } // ResourceNode A single resource in the resource tree @@ -2636,6 +2944,241 @@ type ResourceReference struct { Namespace *string `json:"namespace,omitempty"` } +// ResourceRelease ResourceRelease resource. +// Immutable snapshot of Resource.spec and the referenced (Cluster)ResourceType.spec +// at the time it was cut. Created by the Resource controller; spec is immutable. +type ResourceRelease struct { + // ApiVersion API version of the resource + ApiVersion *string `json:"apiVersion,omitempty"` + + // Kind Kind of the resource + Kind *string `json:"kind,omitempty"` + + // Metadata Standard Kubernetes object metadata (without kind/apiVersion). + // Matches the structure of metav1.ObjectMeta for the fields exposed via the API. + Metadata ObjectMeta `json:"metadata"` + + // Spec Desired state of a ResourceRelease. Immutable after creation. + Spec *ResourceReleaseSpec `json:"spec,omitempty"` + + // Status ResourceRelease status (currently empty, immutable after creation) + Status *map[string]interface{} `json:"status,omitempty"` +} + +// ResourceReleaseBinding ResourceReleaseBinding resource. +// Pins a ResourceRelease to an Environment and carries per-env config overrides. +// Authored externally; not managed by the Resource controller. +type ResourceReleaseBinding struct { + // ApiVersion API version of the resource + ApiVersion *string `json:"apiVersion,omitempty"` + + // Kind Kind of the resource + Kind *string `json:"kind,omitempty"` + + // Metadata Standard Kubernetes object metadata (without kind/apiVersion). + // Matches the structure of metav1.ObjectMeta for the fields exposed via the API. + Metadata ObjectMeta `json:"metadata"` + + // Spec Desired state of a ResourceReleaseBinding. spec.owner and spec.environment + // are immutable after creation. spec.resourceRelease is the promote pin and is + // advanced manually via `occ resource promote` or kubectl edit. + Spec *ResourceReleaseBindingSpec `json:"spec,omitempty"` + Status *ResourceReleaseBindingStatus `json:"status,omitempty"` +} + +// ResourceReleaseBindingList Paginated list of resource release bindings +type ResourceReleaseBindingList struct { + Items []ResourceReleaseBinding `json:"items"` + + // Pagination Cursor-based pagination metadata. Uses Kubernetes-native continuation tokens + // for efficient pagination through large result sets. + Pagination Pagination `json:"pagination"` +} + +// ResourceReleaseBindingSpec Desired state of a ResourceReleaseBinding. spec.owner and spec.environment +// are immutable after creation. spec.resourceRelease is the promote pin and is +// advanced manually via `occ resource promote` or kubectl edit. +type ResourceReleaseBindingSpec struct { + // Environment Target environment name. Immutable after creation. + Environment string `json:"environment"` + + // Owner Identifies the resource and project this binding belongs to. + Owner struct { + // ProjectName Parent project name + ProjectName string `json:"projectName"` + + // ResourceName Parent resource name + ResourceName string `json:"resourceName"` + } `json:"owner"` + + // ResourceRelease Pinned ResourceRelease name. Advanced manually (e.g. via `occ resource promote`). + ResourceRelease *string `json:"resourceRelease,omitempty"` + + // ResourceTypeEnvironmentConfigs Per-environment values for ResourceType.spec.environmentConfigs. + ResourceTypeEnvironmentConfigs *map[string]interface{} `json:"resourceTypeEnvironmentConfigs,omitempty"` + + // RetainPolicy Per-env override for retention. Falls back to ResourceType.spec.retainPolicy when unset. + RetainPolicy *ResourceReleaseBindingSpecRetainPolicy `json:"retainPolicy,omitempty"` +} + +// ResourceReleaseBindingSpecRetainPolicy Per-env override for retention. Falls back to ResourceType.spec.retainPolicy when unset. +type ResourceReleaseBindingSpecRetainPolicy string + +// ResourceReleaseBindingStatus Observed state of a ResourceReleaseBinding. +type ResourceReleaseBindingStatus struct { + // Conditions Latest available observations of the binding's state. Includes Synced, ResourcesReady, OutputsResolved, Ready (aggregate), and Finalizing. + Conditions *[]Condition `json:"conditions,omitempty"` + + // Outputs Resolved outputs for this environment, populated from the underlying RenderedRelease.status by the binding controller. + Outputs *[]ResolvedResourceOutput `json:"outputs,omitempty"` +} + +// ResourceReleaseList Paginated list of resource releases +type ResourceReleaseList struct { + Items []ResourceRelease `json:"items"` + + // Pagination Cursor-based pagination metadata. Uses Kubernetes-native continuation tokens + // for efficient pagination through large result sets. + Pagination Pagination `json:"pagination"` +} + +// ResourceReleaseSpec Desired state of a ResourceRelease. Immutable after creation. +type ResourceReleaseSpec struct { + // Owner Identifies the resource and project this ResourceRelease belongs to. + Owner struct { + // ProjectName Parent project name + ProjectName string `json:"projectName"` + + // ResourceName Parent resource name + ResourceName string `json:"resourceName"` + } `json:"owner"` + + // Parameters Snapshot of parameter values from Resource.spec at release time. + Parameters *map[string]interface{} `json:"parameters,omitempty"` + + // ResourceType Frozen snapshot of the referenced (Cluster)ResourceType. + ResourceType struct { + // Kind Source kind (ResourceType or ClusterResourceType) + Kind ResourceReleaseSpecResourceTypeKind `json:"kind"` + + // Name Source resource type name + Name string `json:"name"` + + // Spec Desired state of a (Cluster)ResourceType. + Spec ResourceTypeSpec `json:"spec"` + } `json:"resourceType"` +} + +// ResourceReleaseSpecResourceTypeKind Source kind (ResourceType or ClusterResourceType) +type ResourceReleaseSpecResourceTypeKind string + +// ResourceSecretKeyRef Reference to a specific key in a Kubernetes Secret on the data plane. +type ResourceSecretKeyRef struct { + // Key Key within the Secret + Key string `json:"key"` + + // Name Secret name (supports ${...} CEL templating in ResourceType outputs) + Name string `json:"name"` +} + +// ResourceType ResourceType resource. +// PE-published template scoped to a namespace. Developers reference it from Resource.spec.type. +type ResourceType struct { + // ApiVersion API version of the resource + ApiVersion *string `json:"apiVersion,omitempty"` + + // Kind Kind of the resource + Kind *string `json:"kind,omitempty"` + + // Metadata Standard Kubernetes object metadata (without kind/apiVersion). + // Matches the structure of metav1.ObjectMeta for the fields exposed via the API. + Metadata ObjectMeta `json:"metadata"` + + // Spec Desired state of a (Cluster)ResourceType. + Spec *ResourceTypeSpec `json:"spec,omitempty"` + + // Status ResourceType status (currently empty) + Status *map[string]interface{} `json:"status,omitempty"` +} + +// ResourceTypeList Paginated list of resource types +type ResourceTypeList struct { + Items []ResourceType `json:"items"` + + // Pagination Cursor-based pagination metadata. Uses Kubernetes-native continuation tokens + // for efficient pagination through large result sets. + Pagination Pagination `json:"pagination"` +} + +// ResourceTypeManifest Kubernetes resource template emitted by the (Cluster)ResourceType +// provisioner on the data plane. The template body, includeWhen, and +// readyWhen support ${...} CEL templating against metadata.*, parameters.*, +// environmentConfigs.*, and dataplane.* (plus applied..* for readyWhen). +type ResourceTypeManifest struct { + // Id Unique entry identifier within the (Cluster)ResourceType. Referenced by readyWhen and outputs CEL via applied..status.*. + Id string `json:"id"` + + // IncludeWhen Optional ${...}-wrapped CEL expression. When false, the entry is skipped entirely. + IncludeWhen *string `json:"includeWhen,omitempty"` + + // ReadyWhen Optional ${...}-wrapped CEL expression. When set, drives the entry's contribution to ResourceReleaseBinding.status.conditions[ResourcesReady]; otherwise per-Kind health inference is used. + ReadyWhen *string `json:"readyWhen,omitempty"` + + // Template Kubernetes resource body with ${...} CEL substitutions. + Template map[string]interface{} `json:"template"` +} + +// ResourceTypeOutput Single output declaration of a (Cluster)ResourceType. Exactly one of +// value, secretKeyRef, or configMapKeyRef must be set. Output value, name, +// and key fields support ${...} CEL templating evaluated against +// metadata.*, parameters.*, environmentConfigs.*, and applied..status.*. +type ResourceTypeOutput struct { + // ConfigMapKeyRef Reference to a specific key in a Kubernetes ConfigMap on the data plane. + ConfigMapKeyRef *ResourceConfigMapKeyRef `json:"configMapKeyRef,omitempty"` + + // Name Unique output name. Referenced by Workload.spec.dependencies.resources[].envBindings and fileBindings keys. + Name string `json:"name"` + + // SecretKeyRef Reference to a specific key in a Kubernetes Secret on the data plane. + SecretKeyRef *ResourceSecretKeyRef `json:"secretKeyRef,omitempty"` + + // Value Literal or ${...} CEL expression. Use only for non-sensitive data; the resolved value transits to the control plane. + Value *string `json:"value,omitempty"` +} + +// ResourceTypeRef Reference to a ResourceType or ClusterResourceType template. +type ResourceTypeRef struct { + // Kind Resource type kind. Defaults to ResourceType (namespaced). + Kind *ResourceTypeRefKind `json:"kind,omitempty"` + + // Name Template name. + Name string `json:"name"` +} + +// ResourceTypeRefKind Resource type kind. Defaults to ResourceType (namespaced). +type ResourceTypeRefKind string + +// ResourceTypeSpec Desired state of a (Cluster)ResourceType. +type ResourceTypeSpec struct { + // EnvironmentConfigs Schema section using openAPIV3Schema format + EnvironmentConfigs *SchemaSection `json:"environmentConfigs,omitempty"` + + // Outputs Outputs that workloads consume via dependencies.resources[].envBindings or fileBindings. + Outputs *[]ResourceTypeOutput `json:"outputs,omitempty"` + + // Parameters Schema section using openAPIV3Schema format + Parameters *SchemaSection `json:"parameters,omitempty"` + + // Resources Kubernetes manifests the (Cluster)ResourceType provisioner emits on the data plane. + Resources []ResourceTypeManifest `json:"resources"` + + // RetainPolicy Default retention for ResourceReleaseBindings of this type. Per-env override available on the binding. + RetainPolicy *ResourceTypeSpecRetainPolicy `json:"retainPolicy,omitempty"` +} + +// ResourceTypeSpecRetainPolicy Default retention for ResourceReleaseBindings of this type. Per-env override available on the binding. +type ResourceTypeSpecRetainPolicy string + // SchemaResponse JSON Schema response for component types, traits, or workflows type SchemaResponse map[string]interface{} @@ -2645,6 +3188,27 @@ type SchemaSection struct { OpenAPIV3Schema *map[string]interface{} `json:"openAPIV3Schema,omitempty"` } +// Secret Kubernetes Secret. Wire shape matches `corev1.Secret`: `data` is a map +// of keys to base64-encoded values. +type Secret struct { + ApiVersion string `json:"apiVersion"` + + // Data Map of secret keys to base64-encoded values. Matches the + // Kubernetes Secret `data` field semantics. + Data *map[string][]byte `json:"data,omitempty"` + + // Immutable Whether the secret is immutable. + Immutable *bool `json:"immutable,omitempty"` + Kind string `json:"kind"` + + // Metadata Standard Kubernetes object metadata (without kind/apiVersion). + // Matches the structure of metav1.ObjectMeta for the fields exposed via the API. + Metadata ObjectMeta `json:"metadata"` + + // Type Kubernetes Secret type + Type SecretType `json:"type"` +} + // SecretDataSource Secret data source mapping type SecretDataSource struct { // RemoteRef Points to a secret in an external secret store @@ -2701,6 +3265,12 @@ type SecretReferenceSpec struct { // RefreshInterval How often to reconcile/refresh the secret RefreshInterval *string `json:"refreshInterval,omitempty"` + // TargetPlane Identifies the plane to whose external secret store the secret + // value was pushed for this SecretReference. When unset, the secret + // value may live in any external secret store reachable through the + // references in spec.data. + TargetPlane *TargetPlaneRef `json:"targetPlane,omitempty"` + // Template Structure of the resulting Kubernetes Secret Template SecretTemplate `json:"template"` } @@ -2753,6 +3323,9 @@ type SecretTemplate struct { // SecretTemplateType Type of the Kubernetes Secret type SecretTemplateType string +// SecretType Kubernetes Secret type +type SecretType string + // SubjectContext Authenticated subject context type SubjectContext struct { // EntitlementClaim Entitlement claim name @@ -2795,6 +3368,18 @@ type TargetEnvironmentRef struct { // TargetEnvironmentRefKind Kind of environment resource type TargetEnvironmentRefKind string +// TargetPlaneRef Reference to the plane that hosts the secret data. +type TargetPlaneRef struct { + // Kind Kind of the target plane resource + Kind TargetPlaneRefKind `json:"kind"` + + // Name Name of the target plane resource + Name string `json:"name"` +} + +// TargetPlaneRefKind Kind of the target plane resource +type TargetPlaneRefKind string + // Trait Trait resource. // Defines composable cross-cutting concerns that can be applied to components. type Trait struct { @@ -2903,6 +3488,19 @@ type TraitSpecPatchesTargetPlane string // TraitStatus Observed state of a Trait type TraitStatus = map[string]interface{} +// UpdateSecretRequest Request body for replacing a secret's data. The data map is the final +// state; keys present in the existing secret but absent here are pruned. +type UpdateSecretRequest struct { + // Data Map of secret keys to plaintext values. Required keys depend on + // the secret's existing type. + Data map[string]string `json:"data"` + + // Labels Labels applied as Kubernetes labels on the underlying + // SecretReference. The supplied map replaces all user-set labels; + // keys in the openchoreo.dev/ namespace are reserved and rejected. + Labels *map[string]string `json:"labels,omitempty"` +} + // UserCapabilitiesResponse User authorization profile response type UserCapabilitiesResponse struct { // Capabilities Map of action to capabilities @@ -3341,15 +3939,38 @@ type WorkloadOverrides struct { Container *ContainerOverride `json:"container,omitempty"` } +// WorkloadResourceDependency Dependency on a Resource. Output names declared on the referenced ResourceType are wired +// into the consuming container as env vars (envBindings) and file mounts (fileBindings). +// Outputs not listed in either map are ignored. +type WorkloadResourceDependency struct { + // EnvBindings Maps a ResourceType output name to a container environment variable name. The + // output's source kind (value, secretKeyRef, configMapKeyRef) determines whether the + // resulting env var is a literal or a valueFrom reference. + EnvBindings *map[string]string `json:"envBindings,omitempty"` + + // FileBindings Maps a ResourceType output name to a container mount path. The referenced output's + // source kind must be secretKeyRef or configMapKeyRef; value-kind outputs cannot be + // mounted as files because there is no DP-side object to mount. + FileBindings *map[string]string `json:"fileBindings,omitempty"` + + // Ref Name of the Resource to consume. + Ref string `json:"ref"` +} + // WorkloadSpec Desired state of a Workload type WorkloadSpec struct { // Container Container specification Container *WorkloadContainer `json:"container,omitempty"` - // Dependencies Dependencies on other components' endpoints + // Dependencies Dependencies on other components' endpoints and on Resources Dependencies *struct { // Endpoints Endpoint connections to other components Endpoints *[]WorkloadConnection `json:"endpoints,omitempty"` + + // Resources Resource dependencies. Each entry references a Resource by name and wires named + // outputs of the resolved ResourceReleaseBinding into the container as env vars + // (envBindings) and file mounts (fileBindings). + Resources *[]WorkloadResourceDependency `json:"resources,omitempty"` } `json:"dependencies,omitempty"` // Endpoints Named endpoint specifications @@ -3377,6 +3998,9 @@ type ClusterDataPlaneNameParam = string // ClusterObservabilityPlaneNameParam defines model for ClusterObservabilityPlaneNameParam. type ClusterObservabilityPlaneNameParam = string +// ClusterResourceTypeNameParam defines model for ClusterResourceTypeNameParam. +type ClusterResourceTypeNameParam = string + // ClusterTraitNameParam defines model for ClusterTraitNameParam. type ClusterTraitNameParam = string @@ -3434,6 +4058,24 @@ type ProjectQueryParam = string // ReleaseBindingNameParam defines model for ReleaseBindingNameParam. type ReleaseBindingNameParam = string +// ResourceNameParam defines model for ResourceNameParam. +type ResourceNameParam = string + +// ResourceQueryParam defines model for ResourceQueryParam. +type ResourceQueryParam = string + +// ResourceReleaseBindingNameParam defines model for ResourceReleaseBindingNameParam. +type ResourceReleaseBindingNameParam = string + +// ResourceReleaseNameParam defines model for ResourceReleaseNameParam. +type ResourceReleaseNameParam = string + +// ResourceTypeNameParam defines model for ResourceTypeNameParam. +type ResourceTypeNameParam = string + +// SecretNameParam defines model for SecretNameParam. +type SecretNameParam = string + // SecretReferenceNameParam defines model for SecretReferenceNameParam. type SecretReferenceNameParam = string @@ -3470,9 +4112,15 @@ type InternalError = ErrorResponse // NotFound Standard error response format type NotFound = ErrorResponse +// NotImplemented Standard error response format +type NotImplemented = ErrorResponse + // Unauthorized Standard error response format type Unauthorized = ErrorResponse +// UnprocessableContent Standard error response format +type UnprocessableContent = ErrorResponse + // EvaluatesJSONBody defines parameters for Evaluates. type EvaluatesJSONBody = []EvaluateRequest @@ -3486,6 +4134,9 @@ type GetSubjectProfileParams struct { // Component Component scope Component *string `form:"component,omitempty" json:"component,omitempty"` + + // Resource Resource scope (sibling of component under project) + Resource *string `form:"resource,omitempty" json:"resource,omitempty"` } // ListClusterRoleBindingsParams defines parameters for ListClusterRoleBindings. @@ -3573,6 +4224,23 @@ type ListClusterObservabilityPlanesParams struct { Cursor *CursorParam `form:"cursor,omitempty" json:"cursor,omitempty"` } +// ListClusterResourceTypesParams defines parameters for ListClusterResourceTypes. +type ListClusterResourceTypesParams struct { + // LabelSelector A label selector to filter resources using Kubernetes label selector syntax. + // Supports equality-based requirements: "key=value" (equality), "key!=value" (inequality). + // Supports set-based requirements: "key in (val1,val2)" (value in set), "key notin (val1,val2)" (value not in set). + // Supports existence checks: "key" (label exists), "!key" (label does not exist). + // Multiple requirements are comma-separated and ANDed together. + LabelSelector *LabelSelectorParam `form:"labelSelector,omitempty" json:"labelSelector,omitempty"` + + // Limit Maximum number of items to return per page + Limit *LimitParam `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque pagination cursor from a previous response. + // Pass the `nextCursor` value from pagination metadata to fetch the next page. + Cursor *CursorParam `form:"cursor,omitempty" json:"cursor,omitempty"` +} + // ListClusterTraitsParams defines parameters for ListClusterTraits. type ListClusterTraitsParams struct { // LabelSelector A label selector to filter resources using Kubernetes label selector syntax. @@ -3878,6 +4546,83 @@ type GetReleaseBindingK8sResourceLogsParams struct { SinceSeconds *int64 `form:"sinceSeconds,omitempty" json:"sinceSeconds,omitempty"` } +// ListResourceReleaseBindingsParams defines parameters for ListResourceReleaseBindings. +type ListResourceReleaseBindingsParams struct { + // Resource Filter resources by resource name (matches spec.owner.resourceName) + Resource *ResourceQueryParam `form:"resource,omitempty" json:"resource,omitempty"` + + // LabelSelector A label selector to filter resources using Kubernetes label selector syntax. + // Supports equality-based requirements: "key=value" (equality), "key!=value" (inequality). + // Supports set-based requirements: "key in (val1,val2)" (value in set), "key notin (val1,val2)" (value not in set). + // Supports existence checks: "key" (label exists), "!key" (label does not exist). + // Multiple requirements are comma-separated and ANDed together. + LabelSelector *LabelSelectorParam `form:"labelSelector,omitempty" json:"labelSelector,omitempty"` + + // Limit Maximum number of items to return per page + Limit *LimitParam `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque pagination cursor from a previous response. + // Pass the `nextCursor` value from pagination metadata to fetch the next page. + Cursor *CursorParam `form:"cursor,omitempty" json:"cursor,omitempty"` +} + +// ListResourceReleasesParams defines parameters for ListResourceReleases. +type ListResourceReleasesParams struct { + // Resource Filter resources by resource name (matches spec.owner.resourceName) + Resource *ResourceQueryParam `form:"resource,omitempty" json:"resource,omitempty"` + + // LabelSelector A label selector to filter resources using Kubernetes label selector syntax. + // Supports equality-based requirements: "key=value" (equality), "key!=value" (inequality). + // Supports set-based requirements: "key in (val1,val2)" (value in set), "key notin (val1,val2)" (value not in set). + // Supports existence checks: "key" (label exists), "!key" (label does not exist). + // Multiple requirements are comma-separated and ANDed together. + LabelSelector *LabelSelectorParam `form:"labelSelector,omitempty" json:"labelSelector,omitempty"` + + // Limit Maximum number of items to return per page + Limit *LimitParam `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque pagination cursor from a previous response. + // Pass the `nextCursor` value from pagination metadata to fetch the next page. + Cursor *CursorParam `form:"cursor,omitempty" json:"cursor,omitempty"` +} + +// ListResourcesParams defines parameters for ListResources. +type ListResourcesParams struct { + // Project Filter resources by project name + Project *ProjectQueryParam `form:"project,omitempty" json:"project,omitempty"` + + // LabelSelector A label selector to filter resources using Kubernetes label selector syntax. + // Supports equality-based requirements: "key=value" (equality), "key!=value" (inequality). + // Supports set-based requirements: "key in (val1,val2)" (value in set), "key notin (val1,val2)" (value not in set). + // Supports existence checks: "key" (label exists), "!key" (label does not exist). + // Multiple requirements are comma-separated and ANDed together. + LabelSelector *LabelSelectorParam `form:"labelSelector,omitempty" json:"labelSelector,omitempty"` + + // Limit Maximum number of items to return per page + Limit *LimitParam `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque pagination cursor from a previous response. + // Pass the `nextCursor` value from pagination metadata to fetch the next page. + Cursor *CursorParam `form:"cursor,omitempty" json:"cursor,omitempty"` +} + +// ListResourceTypesParams defines parameters for ListResourceTypes. +type ListResourceTypesParams struct { + // LabelSelector A label selector to filter resources using Kubernetes label selector syntax. + // Supports equality-based requirements: "key=value" (equality), "key!=value" (inequality). + // Supports set-based requirements: "key in (val1,val2)" (value in set), "key notin (val1,val2)" (value not in set). + // Supports existence checks: "key" (label exists), "!key" (label does not exist). + // Multiple requirements are comma-separated and ANDed together. + LabelSelector *LabelSelectorParam `form:"labelSelector,omitempty" json:"labelSelector,omitempty"` + + // Limit Maximum number of items to return per page + Limit *LimitParam `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque pagination cursor from a previous response. + // Pass the `nextCursor` value from pagination metadata to fetch the next page. + Cursor *CursorParam `form:"cursor,omitempty" json:"cursor,omitempty"` +} + // ListSecretReferencesParams defines parameters for ListSecretReferences. type ListSecretReferencesParams struct { // LabelSelector A label selector to filter resources using Kubernetes label selector syntax. @@ -4016,6 +4761,16 @@ type HandleAutoBuildParams struct { XEventKey *string `json:"X-Event-Key,omitempty"` } +// ListSecretsParams defines parameters for ListSecrets. +type ListSecretsParams struct { + // Limit Maximum number of items to return per page + Limit *LimitParam `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque pagination cursor from a previous response. + // Pass the `nextCursor` value from pagination metadata to fetch the next page. + Cursor *CursorParam `form:"cursor,omitempty" json:"cursor,omitempty"` +} + // EvaluatesJSONRequestBody defines body for Evaluates for application/json ContentType. type EvaluatesJSONRequestBody = EvaluatesJSONBody @@ -4049,6 +4804,12 @@ type CreateClusterObservabilityPlaneJSONRequestBody = ClusterObservabilityPlane // UpdateClusterObservabilityPlaneJSONRequestBody defines body for UpdateClusterObservabilityPlane for application/json ContentType. type UpdateClusterObservabilityPlaneJSONRequestBody = ClusterObservabilityPlane +// CreateClusterResourceTypeJSONRequestBody defines body for CreateClusterResourceType for application/json ContentType. +type CreateClusterResourceTypeJSONRequestBody = ClusterResourceType + +// UpdateClusterResourceTypeJSONRequestBody defines body for UpdateClusterResourceType for application/json ContentType. +type UpdateClusterResourceTypeJSONRequestBody = ClusterResourceType + // CreateClusterTraitJSONRequestBody defines body for CreateClusterTrait for application/json ContentType. type CreateClusterTraitJSONRequestBody = ClusterTrait @@ -4145,6 +4906,27 @@ type CreateReleaseBindingJSONRequestBody = ReleaseBinding // UpdateReleaseBindingJSONRequestBody defines body for UpdateReleaseBinding for application/json ContentType. type UpdateReleaseBindingJSONRequestBody = ReleaseBinding +// CreateResourceReleaseBindingJSONRequestBody defines body for CreateResourceReleaseBinding for application/json ContentType. +type CreateResourceReleaseBindingJSONRequestBody = ResourceReleaseBinding + +// UpdateResourceReleaseBindingJSONRequestBody defines body for UpdateResourceReleaseBinding for application/json ContentType. +type UpdateResourceReleaseBindingJSONRequestBody = ResourceReleaseBinding + +// CreateResourceReleaseJSONRequestBody defines body for CreateResourceRelease for application/json ContentType. +type CreateResourceReleaseJSONRequestBody = ResourceRelease + +// CreateResourceJSONRequestBody defines body for CreateResource for application/json ContentType. +type CreateResourceJSONRequestBody = ResourceInstance + +// UpdateResourceJSONRequestBody defines body for UpdateResource for application/json ContentType. +type UpdateResourceJSONRequestBody = ResourceInstance + +// CreateResourceTypeJSONRequestBody defines body for CreateResourceType for application/json ContentType. +type CreateResourceTypeJSONRequestBody = ResourceType + +// UpdateResourceTypeJSONRequestBody defines body for UpdateResourceType for application/json ContentType. +type UpdateResourceTypeJSONRequestBody = ResourceType + // CreateSecretReferenceJSONRequestBody defines body for CreateSecretReference for application/json ContentType. type CreateSecretReferenceJSONRequestBody = SecretReference @@ -4187,6 +4969,12 @@ type HandleAutoBuildJSONRequestBody HandleAutoBuildJSONBody // CreateGitSecretJSONRequestBody defines body for CreateGitSecret for application/json ContentType. type CreateGitSecretJSONRequestBody = CreateGitSecretRequest +// CreateSecretJSONRequestBody defines body for CreateSecret for application/json ContentType. +type CreateSecretJSONRequestBody = CreateSecretRequest + +// UpdateSecretJSONRequestBody defines body for UpdateSecret for application/json ContentType. +type UpdateSecretJSONRequestBody = UpdateSecretRequest + // AsObservabilityAlertsNotificationChannelSpec0 returns the union data inside the ObservabilityAlertsNotificationChannelSpec as a ObservabilityAlertsNotificationChannelSpec0 func (t ObservabilityAlertsNotificationChannelSpec) AsObservabilityAlertsNotificationChannelSpec0() (ObservabilityAlertsNotificationChannelSpec0, error) { var body ObservabilityAlertsNotificationChannelSpec0 diff --git a/agent-manager-service/clients/secretmanagersvc/client.go b/agent-manager-service/clients/secretmanagersvc/client.go index 8d7206fc2..3b6392740 100644 --- a/agent-manager-service/clients/secretmanagersvc/client.go +++ b/agent-manager-service/clients/secretmanagersvc/client.go @@ -19,18 +19,18 @@ package secretmanagersvc import ( "context" "encoding/json" - "errors" "fmt" "strings" - - "github.com/wso2/agent-manager/agent-manager-service/clients/openchoreosvc/client" - "github.com/wso2/agent-manager/agent-manager-service/utils" ) const ( // DefaultManagedBy is the default ownership tag used by the secret management client. DefaultManagedBy = "amp-agent-manager" + // LabelKeyManagedBy is the label/metadata key providers use to record the + // ownership tag on stored secrets. + LabelKeyManagedBy = "managed-by" + // SecretKeyAPIKey is the key name used when storing and retrieving API keys in the KV store. SecretKeyAPIKey = "api-key" ) @@ -247,50 +247,38 @@ func ParseKVPath(kvPath string) (SecretLocation, error) { type SecretManagementClient interface { // CreateSecret creates or updates a secret at the location derived from SecretLocation. // This REPLACES all secret data at the location. - // The SecretReference name is derived from location using SecretRefName(). + // The secret name is derived from location using SecretRefName(). // Returns the openchoreo secretRefName CreateSecret(ctx context.Context, location SecretLocation, data map[string]string) (string, error) // PatchSecret merges data with an existing secret (server-side merge). // Keys in data are added/updated, keys in keysToDelete are removed. - // The SecretReference name is derived from location using SecretRefName(). + // The secret name is derived from location using SecretRefName(). // Returns the openchoreo secretRefName PatchSecret(ctx context.Context, location SecretLocation, data map[string]string, keysToDelete []string) (string, error) - // DeleteSecret deletes a secret and its associated SecretReference CRD. - // secretRefName is the name of the SecretReference CR to delete. - // When ocClient is configured (OpenBao provider), also deletes the SecretReference. + // DeleteSecret deletes a secret and its associated SecretReference. + // secretRefName is retained for interface compatibility; providers derive + // the secret name from location and manage SecretReferences internally. DeleteSecret(ctx context.Context, location SecretLocation, secretRefName string) error // GetSecret retrieves secret metadata without values. // Returns SecretInfo containing ID, keys list, and labels. GetSecret(ctx context.Context, kvPath string) (*SecretInfo, error) - - // GetSecretWithValue retrieves a secret by its full KV path including actual values. - // Returns the secret data as a key-value map. - // Returns ErrNotSupported if the provider doesn't support value retrieval. - GetSecretWithValue(ctx context.Context, kvPath string) (map[string]string, error) } // secretManagementClient implements SecretManagementClient using the low-level SecretsClient. type secretManagementClient struct { - lowLevelClient SecretsClient - managedBy string - ocClient client.OpenChoreoClient // Optional: for SecretReference operations (nil for Secret Manager API) - refreshInterval string // SecretReference refresh interval (e.g., "1h") + lowLevelClient SecretsClient + managedBy string } // SecretManagementClientConfig holds configuration for creating a SecretManagementClient. type SecretManagementClientConfig struct { // StoreConfig is the secret store configuration. StoreConfig *StoreConfig - // Provider is the secrets provider (e.g., OpenBao, Secret Manager API). + // Provider is the secrets provider (e.g., the OpenChoreo secret API). Provider Provider - // OCClient is the OpenChoreo client for SecretReference operations. - // Set to nil for Secret Manager API (which handles SecretReferences internally). - OCClient client.OpenChoreoClient - // RefreshInterval is how often SecretReferences should refresh from KV (e.g., "1h"). - RefreshInterval string } // NewSecretManagementClient creates a new SecretManagementClient with the given provider. @@ -317,60 +305,14 @@ func NewSecretManagementClientWithConfig(cfg SecretManagementClientConfig) (Secr } return &secretManagementClient{ - lowLevelClient: lowLevelClient, - managedBy: DefaultManagedBy, - ocClient: cfg.OCClient, - refreshInterval: cfg.RefreshInterval, + lowLevelClient: lowLevelClient, + managedBy: DefaultManagedBy, }, nil } -// upsertSecretReference creates or updates a SecretReference CRD for the given location. -// The secretRefName is derived from location using SecretRefName(). -// Returns the secretRefName on success. -func (c *secretManagementClient) upsertSecretReference(ctx context.Context, location SecretLocation, kvPath string, secretKeys []string) (string, error) { - secretRefName := location.SecretRefName() - secretRefReq := client.CreateSecretReferenceRequest{ - Namespace: location.OrgName, - Name: secretRefName, - ProjectName: location.ProjectName, - ComponentName: location.EntityName, - KVPath: kvPath, - SecretKeys: secretKeys, - RefreshInterval: c.refreshInterval, - } - - // Check if SecretReference already exists - _, getErr := c.ocClient.GetSecretReference(ctx, location.OrgName, secretRefName) - if getErr != nil { - // Only create if SecretReference doesn't exist (NotFound); other errors should be surfaced - if !errors.Is(getErr, utils.ErrNotFound) { - return "", fmt.Errorf("failed to check SecretReference existence: %w", getErr) - } - // SecretReference doesn't exist, create it - if _, createErr := c.ocClient.CreateSecretReference(ctx, location.OrgName, secretRefReq); createErr != nil { - // Handle race condition: another caller may have created it between our Get and Create - if errors.Is(createErr, utils.ErrConflict) { - if _, updateErr := c.ocClient.UpdateSecretReference(ctx, location.OrgName, secretRefName, secretRefReq); updateErr != nil { - return "", fmt.Errorf("failed to update SecretReference after create conflict: %w", updateErr) - } - } else { - return "", fmt.Errorf("failed to create SecretReference: %w", createErr) - } - } - } else { - // SecretReference exists, update it - if _, updateErr := c.ocClient.UpdateSecretReference(ctx, location.OrgName, secretRefName, secretRefReq); updateErr != nil { - return "", fmt.Errorf("failed to update SecretReference: %w", updateErr) - } - } - - return secretRefName, nil -} - // CreateSecret creates a new secret at the location derived from SecretLocation. -// Returns the secret reference identifier: -// - OpenBao with ocClient: the SecretReference CR name (via upsertSecretReference) -// - Secret Manager API: the SecretReferenceName from the API response +// Returns the secret reference identifier from the provider (the name of the +// secret, which is also the name of its provider-managed SecretReference). func (c *secretManagementClient) CreateSecret(ctx context.Context, location SecretLocation, secretData map[string]string) (string, error) { // Convert map to JSON bytes data, err := json.Marshal(secretData) @@ -378,33 +320,15 @@ func (c *secretManagementClient) CreateSecret(ctx context.Context, location Secr return "", fmt.Errorf("failed to marshal secret data: %w", err) } - // Push the secret - provider derives path/labels from location + // Push the secret - provider derives name/labels from location metadata := &SecretMetadata{ ManagedBy: c.managedBy, } - // secretRef is the provider's return value: - // - OpenBao: the KV path - // - Secret Manager API: the SecretReferenceName secretRef, err := c.lowLevelClient.PushSecret(ctx, location, data, metadata) if err != nil { return "", fmt.Errorf("failed to upsert secret: %w", err) } - // If ocClient is configured, handle SecretReference creation/update - // (Secret Manager API handles this internally, so ocClient will be nil) - if c.ocClient != nil { - // Extract secret keys from the data - secretKeys := make([]string, 0, len(secretData)) - for key := range secretData { - secretKeys = append(secretKeys, key) - } - secretRefName, err := c.upsertSecretReference(ctx, location, secretRef, secretKeys) - if err != nil { - return "", err - } - return secretRefName, nil - } - return secretRef, nil } @@ -430,36 +354,18 @@ func (c *secretManagementClient) PatchSecret(ctx context.Context, location Secre metadata := &SecretMetadata{ ManagedBy: c.managedBy, } - // secretRef is the provider's return value: - // - OpenBao: the KV path - // - Secret Manager API: the SecretReferenceName secretRef, err := c.lowLevelClient.PatchSecret(ctx, location, data, metadata) if err != nil { return "", fmt.Errorf("failed to patch secret: %w", err) } - // If ocClient is configured, update the SecretReference with current keys - if c.ocClient != nil { - // Get the updated secret info to retrieve all current keys - secretInfo, infoErr := c.lowLevelClient.GetSecret(ctx, location) - if infoErr != nil { - return "", fmt.Errorf("failed to get secret keys after patch: %w", infoErr) - } - secretRefName, err := c.upsertSecretReference(ctx, location, secretRef, secretInfo.Keys) - if err != nil { - return "", err - } - return secretRefName, nil - } - return secretRef, nil } -// DeleteSecret deletes a secret and its associated SecretReference CRD. -// secretRefName is the name of the SecretReference CR to delete. -// When ocClient is configured (OpenBao provider), also deletes the SecretReference. -func (c *secretManagementClient) DeleteSecret(ctx context.Context, location SecretLocation, secretRefName string) error { - // Delete the KV secret - provider derives path from location +// DeleteSecret deletes a secret and its provider-managed SecretReference. +// secretRefName is retained for interface compatibility; the provider derives +// the secret name from location. +func (c *secretManagementClient) DeleteSecret(ctx context.Context, location SecretLocation, _ string) error { metadata := &SecretMetadata{ ManagedBy: c.managedBy, } @@ -467,16 +373,6 @@ func (c *secretManagementClient) DeleteSecret(ctx context.Context, location Secr return fmt.Errorf("failed to delete secret: %w", err) } - // If ocClient is configured, also delete the SecretReference - if c.ocClient != nil { - if err := c.ocClient.DeleteSecretReference(ctx, location.OrgName, secretRefName); err != nil { - // Ignore not found errors - the SecretReference may not exist - if !errors.Is(err, utils.ErrNotFound) { - return fmt.Errorf("failed to delete SecretReference: %w", err) - } - } - } - return nil } @@ -493,24 +389,3 @@ func (c *secretManagementClient) GetSecret(ctx context.Context, kvPath string) ( } return info, nil } - -// GetSecretWithValue retrieves a secret by its KV path including actual values. -// Returns the secret data as a key-value map. -// Returns ErrNotSupported if the provider doesn't support value retrieval. -func (c *secretManagementClient) GetSecretWithValue(ctx context.Context, kvPath string) (map[string]string, error) { - location, err := ParseKVPath(kvPath) - if err != nil { - return nil, fmt.Errorf("failed to parse KV path %q: %w", kvPath, err) - } - raw, err := c.lowLevelClient.GetSecretWithValue(ctx, location) - if err != nil { - return nil, fmt.Errorf("failed to get secret at path %q: %w", kvPath, err) - } - - var data map[string]string - if err := json.Unmarshal(raw, &data); err != nil { - return nil, fmt.Errorf("failed to unmarshal secret data: %w", err) - } - - return data, nil -} diff --git a/agent-manager-service/clients/secretmanagersvc/provider.go b/agent-manager-service/clients/secretmanagersvc/provider.go index 3cf6f42cc..a989b6218 100644 --- a/agent-manager-service/clients/secretmanagersvc/provider.go +++ b/agent-manager-service/clients/secretmanagersvc/provider.go @@ -43,30 +43,21 @@ type Provider interface { Capabilities() StoreCapabilities } -// SecretReferenceManager is an optional interface a Provider can implement to -// signal that it manages SecretReference CRDs internally (e.g., the Secret -// Manager API). When a provider implements this and ManagesSecretReferences() -// returns true, the high-level secret management client will NOT attempt to -// create/update/delete SecretReferences via the OpenChoreo client. -type SecretReferenceManager interface { - ManagesSecretReferences() bool -} - // SecretsClient performs secret operations on a backend. // This interface follows the external-secrets SecretsClient pattern. -// Each provider interprets the SecretLocation according to its storage model: -// - OpenBao: constructs KV path from location segments (org/project/env/entity) -// - Cloud Secret Manager API: uses location fields as labels for secret organization +// Each provider interprets the SecretLocation according to its storage model +// (e.g. the OpenChoreo provider derives the secret name from the location). +// Providers are expected to manage any SecretReference CRs internally. type SecretsClient interface { // PushSecret writes a secret to the backend, replacing all existing data. - // Returns the secret reference (KV path for OpenBao, secret ID for cloud). + // Returns the secret reference identifier (the secret name for OpenChoreo). // If the secret already exists, it will be fully replaced. // Metadata is used for ownership tracking (managed-by). PushSecret(ctx context.Context, location SecretLocation, value []byte, metadata *SecretMetadata) (string, error) // PatchSecret merges data with an existing secret (server-side merge). // Keys in value are added/updated, keys set to null are deleted, omitted keys are preserved. - // Returns the secret reference (KV path for OpenBao, secret ID for cloud). + // Returns the secret reference identifier (the secret name for OpenChoreo). // Returns ErrSecretNotFound if the secret doesn't exist. PatchSecret(ctx context.Context, location SecretLocation, value []byte, metadata *SecretMetadata) (string, error) @@ -80,11 +71,6 @@ type SecretsClient interface { // Returns ErrSecretNotFound if the secret doesn't exist. GetSecret(ctx context.Context, location SecretLocation) (*SecretInfo, error) - // GetSecretWithValue retrieves the actual secret values. - // Returns ErrSecretNotFound if the secret doesn't exist. - // Returns ErrNotSupported if the provider doesn't support value retrieval. - GetSecretWithValue(ctx context.Context, location SecretLocation) ([]byte, error) - // Close cleans up any resources held by the client. Close(ctx context.Context) error } diff --git a/agent-manager-service/clients/secretmanagersvc/providers/openbao/client.go b/agent-manager-service/clients/secretmanagersvc/providers/openbao/client.go deleted file mode 100644 index 60f94d510..000000000 --- a/agent-manager-service/clients/secretmanagersvc/providers/openbao/client.go +++ /dev/null @@ -1,372 +0,0 @@ -// Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com). -// -// WSO2 LLC. licenses this file to you under the Apache License, -// Version 2.0 (the "License"); you may not use this file except -// in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -package openbao - -import ( - "context" - "encoding/json" - "errors" - "fmt" - "path" - "strings" - - vault "github.com/hashicorp/vault/api" - - secretmanagersvc "github.com/wso2/agent-manager/agent-manager-service/clients/secretmanagersvc" -) - -// Client implements the secretmanagersvc.SecretsClient interface for OpenBao/Vault. -// Only KV v2 secrets engine is supported. -type Client struct { - client *vault.Client - path string -} - -// Ensure Client implements the interface. -var _ secretmanagersvc.SecretsClient = &Client{} - -func validateMetadata(metadata *secretmanagersvc.SecretMetadata) error { - if metadata == nil { - return fmt.Errorf("secret metadata is required") - } - if strings.TrimSpace(metadata.ManagedBy) == "" { - return fmt.Errorf("secret metadata managedBy is required") - } - return nil -} - -// PushSecret writes a secret to OpenBao, replacing all existing data. -// Returns the KV path where the secret was stored. -func (c *Client) PushSecret(ctx context.Context, location secretmanagersvc.SecretLocation, value []byte, metadata *secretmanagersvc.SecretMetadata) (string, error) { - if err := validateMetadata(metadata); err != nil { - return "", err - } - - // Derive KV path from location - key, err := location.KVPath() - if err != nil { - return "", fmt.Errorf("failed to derive KV path from location: %w", err) - } - - secretPath := c.buildPath(key) - // Check if secret already exists and verify ownership - _, err = c.readSecretValue(ctx, key) - if err != nil && !errors.Is(err, secretmanagersvc.ErrSecretNotFound) { - return "", err - } - - secretExists := err == nil - - // If secret exists, verify it's managed by the same owner - if secretExists { - existingMetadata, err := c.readMetadata(ctx, key) - if err != nil { - if errors.Is(err, secretmanagersvc.ErrMetadataNotFound) { - return "", secretmanagersvc.ErrNotManaged - } - return "", err - } - manager, ok := existingMetadata["managed-by"] - if !ok || manager != metadata.ManagedBy { - return "", secretmanagersvc.ErrNotManaged - } - } - - // Prepare secret data - unmarshal JSON to store as flat key-value pairs - var secretData map[string]interface{} - if err := json.Unmarshal(value, &secretData); err != nil { - // If not valid JSON, store as single "value" key - secretData = map[string]interface{}{ - "value": string(value), - } - } - - // KV v2: data is wrapped under "data" key - secretToPush := map[string]interface{}{ - "data": secretData, - } - - // Write metadata separately for v2 - metaPath := c.buildMetadataPath(key) - _, err = c.client.Logical().WriteWithContext(ctx, metaPath, map[string]interface{}{ - "custom_metadata": map[string]string{ - "managed-by": metadata.ManagedBy, - }, - }) - if err != nil { - return "", fmt.Errorf("failed to write metadata: %w", err) - } - - _, err = c.client.Logical().WriteWithContext(ctx, secretPath, secretToPush) - if err != nil { - return "", fmt.Errorf("failed to write secret: %w", err) - } - - return key, nil -} - -// PatchSecret merges data with an existing secret using JSON Merge Patch. -// Keys in value are added/updated, keys set to null are deleted, omitted keys are preserved. -// Returns the KV path where the secret was stored. -func (c *Client) PatchSecret(ctx context.Context, location secretmanagersvc.SecretLocation, value []byte, metadata *secretmanagersvc.SecretMetadata) (string, error) { - if err := validateMetadata(metadata); err != nil { - return "", err - } - - // Derive KV path from location - key, err := location.KVPath() - if err != nil { - return "", fmt.Errorf("failed to derive KV path from location: %w", err) - } - - secretPath := c.buildPath(key) - - // Check if secret exists and verify ownership - _, err = c.readSecretValue(ctx, key) - if err != nil { - return "", err - } - - existingMetadata, err := c.readMetadata(ctx, key) - if err != nil { - if errors.Is(err, secretmanagersvc.ErrMetadataNotFound) { - return "", secretmanagersvc.ErrNotManaged - } - return "", err - } - manager, ok := existingMetadata["managed-by"] - if !ok || manager != metadata.ManagedBy { - return "", secretmanagersvc.ErrNotManaged - } - - // Prepare patch data - unmarshal JSON to get key-value pairs - var patchData map[string]interface{} - if err := json.Unmarshal(value, &patchData); err != nil { - return "", fmt.Errorf("failed to unmarshal patch data: %w", err) - } - - // KV v2: data is wrapped under "data" key - secretToPatch := map[string]interface{}{ - "data": patchData, - } - - // Use JSONMergePatch for server-side merge - _, err = c.client.Logical().JSONMergePatch(ctx, secretPath, secretToPatch) - if err != nil { - return "", fmt.Errorf("failed to patch secret: %w", err) - } - - return key, nil -} - -// DeleteSecret removes a secret from OpenBao. -func (c *Client) DeleteSecret(ctx context.Context, location secretmanagersvc.SecretLocation, metadata *secretmanagersvc.SecretMetadata) error { - if err := validateMetadata(metadata); err != nil { - return err - } - - // Derive KV path from location - key, err := location.KVPath() - if err != nil { - return fmt.Errorf("failed to derive KV path from location: %w", err) - } - - secretPath := c.buildPath(key) - // Check if secret exists - _, err = c.readSecretValue(ctx, key) - if errors.Is(err, secretmanagersvc.ErrSecretNotFound) { - return nil // Idempotent - already deleted - } - if err != nil { - return err - } - - // Verify ownership - existingMetadata, err := c.readMetadata(ctx, key) - if err != nil { - if errors.Is(err, secretmanagersvc.ErrMetadataNotFound) { - return nil // No metadata = not managed by us, skip deletion - } - return err - } - manager, ok := existingMetadata["managed-by"] - if !ok || manager != metadata.ManagedBy { - return nil // Not managed by the specified owner, skip deletion - } - - // Delete the secret - _, err = c.client.Logical().DeleteWithContext(ctx, secretPath) - if err != nil { - return fmt.Errorf("failed to delete secret: %w", err) - } - - // Also delete metadata - metaPath := c.buildMetadataPath(key) - _, err = c.client.Logical().DeleteWithContext(ctx, metaPath) - if err != nil { - return fmt.Errorf("failed to delete metadata: %w", err) - } - - return nil -} - -// GetSecret retrieves secret metadata without values. -func (c *Client) GetSecret(ctx context.Context, location secretmanagersvc.SecretLocation) (*secretmanagersvc.SecretInfo, error) { - // Derive KV path from location - key, err := location.KVPath() - if err != nil { - return nil, fmt.Errorf("failed to derive KV path from location: %w", err) - } - - secretPath := c.buildPath(key) - - secret, err := c.client.Logical().ReadWithContext(ctx, secretPath) - if err != nil { - return nil, fmt.Errorf("failed to read secret: %w", err) - } - - if secret == nil || secret.Data == nil { - return nil, secretmanagersvc.ErrSecretNotFound - } - - // KV v2: data is nested under "data" key - dataMap, ok := secret.Data["data"].(map[string]interface{}) - if !ok { - return nil, secretmanagersvc.ErrSecretNotFound - } - - // Extract keys without values - keys := make([]string, 0, len(dataMap)) - for k := range dataMap { - keys = append(keys, k) - } - - // Read metadata for labels - existingMetadata, _ := c.readMetadata(ctx, key) - labels := make(map[string]string) - for k, v := range existingMetadata { - labels[k] = v - } - - return &secretmanagersvc.SecretInfo{ - ID: key, - Keys: keys, - Labels: labels, - }, nil -} - -// GetSecretWithValue retrieves the actual secret values. -func (c *Client) GetSecretWithValue(ctx context.Context, location secretmanagersvc.SecretLocation) ([]byte, error) { - // Derive KV path from location - key, err := location.KVPath() - if err != nil { - return nil, fmt.Errorf("failed to derive KV path from location: %w", err) - } - return c.readSecretValue(ctx, key) -} - -// Close cleans up resources. -func (c *Client) Close(ctx context.Context) error { - // Vault client doesn't require explicit cleanup - return nil -} - -// readSecretValue reads a secret from OpenBao and returns the value. -func (c *Client) readSecretValue(ctx context.Context, key string) ([]byte, error) { - secretPath := c.buildPath(key) - - secret, err := c.client.Logical().ReadWithContext(ctx, secretPath) - if err != nil { - return nil, fmt.Errorf("failed to read secret: %w", err) - } - - if secret == nil || secret.Data == nil { - return nil, secretmanagersvc.ErrSecretNotFound - } - - // KV v2: data is nested under "data" key - dataMap, ok := secret.Data["data"].(map[string]interface{}) - if !ok { - return nil, secretmanagersvc.ErrSecretNotFound - } - - value, ok := dataMap["value"] - if !ok { - // If there's no "value" key, return the entire data as JSON - jsonBytes, err := json.Marshal(dataMap) - if err != nil { - return nil, fmt.Errorf("failed to marshal secret data: %w", err) - } - return jsonBytes, nil - } - - switch v := value.(type) { - case string: - return []byte(v), nil - case []byte: - return v, nil - default: - jsonBytes, err := json.Marshal(value) - if err != nil { - return nil, fmt.Errorf("failed to marshal secret value: %w", err) - } - return jsonBytes, nil - } -} - -// readMetadata reads the custom metadata for a secret. -func (c *Client) readMetadata(ctx context.Context, key string) (map[string]string, error) { - // KV v2: read from metadata endpoint - metaPath := c.buildMetadataPath(key) - secret, err := c.client.Logical().ReadWithContext(ctx, metaPath) - if err != nil { - return nil, err - } - - if secret == nil || secret.Data == nil { - return nil, secretmanagersvc.ErrMetadataNotFound - } - - if customMeta, ok := secret.Data["custom_metadata"].(map[string]interface{}); ok { - result := make(map[string]string) - for k, v := range customMeta { - if str, ok := v.(string); ok { - result[k] = str - } - } - return result, nil - } - - return nil, secretmanagersvc.ErrMetadataNotFound -} - -// buildPath constructs the path for reading/writing secrets. -func (c *Client) buildPath(key string) string { - // KV v2: data is under "data" prefix - return path.Join(c.path, "data", key) -} - -// buildMetadataPath constructs the path for reading/writing metadata (v2 only). -func (c *Client) buildMetadataPath(key string) string { - return path.Join(c.path, "metadata", key) -} - -// buildListPath constructs the path for listing secrets. -func (c *Client) buildListPath(prefix string) string { - // KV v2: list is under "metadata" prefix - return path.Join(c.path, "metadata", prefix) -} diff --git a/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/client.go b/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/client.go new file mode 100644 index 000000000..857be7b4e --- /dev/null +++ b/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/client.go @@ -0,0 +1,276 @@ +// Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com). +// +// WSO2 LLC. licenses this file to you under the Apache License, +// Version 2.0 (the "License"); you may not use this file except +// in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package openchoreo + +import ( + "context" + "encoding/json" + "errors" + "fmt" + "strings" + + occlient "github.com/wso2/agent-manager/agent-manager-service/clients/openchoreosvc/client" + secretmanagersvc "github.com/wso2/agent-manager/agent-manager-service/clients/secretmanagersvc" + "github.com/wso2/agent-manager/agent-manager-service/utils" +) + +// labelKeyManagedBy is the label used for ownership tracking on the underlying +// SecretReference. Keys in the openchoreo.dev/ namespace are reserved by the +// API, so a plain key is used. +const labelKeyManagedBy = secretmanagersvc.LabelKeyManagedBy + +// Client implements the secretmanagersvc.SecretsClient interface backed by the +// OpenChoreo secret management API. Secrets are addressed by the SecretReference +// name derived from the SecretLocation (see SecretLocation.SecretRefName), and +// the API stores the values in the configured target plane's secret store. +type Client struct { + oc occlient.OpenChoreoClient + targetPlaneKind string + targetPlaneName string +} + +// Ensure Client implements the interface. +var _ secretmanagersvc.SecretsClient = &Client{} + +func validateMetadata(metadata *secretmanagersvc.SecretMetadata) error { + if metadata == nil { + return fmt.Errorf("secret metadata is required") + } + if strings.TrimSpace(metadata.ManagedBy) == "" { + return fmt.Errorf("secret metadata managedBy is required") + } + return nil +} + +// isManagedBy reports whether the secret's labels mark it as managed by managedBy. +func isManagedBy(labels map[string]string, managedBy string) bool { + return labels[labelKeyManagedBy] == managedBy +} + +// userLabels returns the labels to send on create/update: ownership plus any +// existing user-set labels, with reserved openchoreo.dev/ keys stripped (the +// API rejects them; they are system-managed). +func userLabels(existing map[string]string, managedBy string) map[string]string { + labels := make(map[string]string, len(existing)+1) + for k, v := range existing { + if strings.HasPrefix(k, "openchoreo.dev/") { + continue + } + labels[k] = v + } + labels[labelKeyManagedBy] = managedBy + return labels +} + +// decodeSecretData unmarshals a JSON object of key/value pairs. Non-string +// values are re-encoded as JSON strings; if the payload is not a JSON object, +// it is stored under a single "value" key. +func decodeSecretData(value []byte) (map[string]string, error) { + var raw map[string]any + if err := json.Unmarshal(value, &raw); err != nil { + return map[string]string{"value": string(value)}, nil + } + data := make(map[string]string, len(raw)) + for k, v := range raw { + switch s := v.(type) { + case string: + data[k] = s + default: + encoded, err := json.Marshal(v) + if err != nil { + return nil, fmt.Errorf("failed to encode secret value for key %q: %w", k, err) + } + data[k] = string(encoded) + } + } + return data, nil +} + +// PushSecret writes a secret via the OpenChoreo API, replacing all existing data. +// Returns the secret name, which is also the underlying SecretReference name. +func (c *Client) PushSecret(ctx context.Context, location secretmanagersvc.SecretLocation, value []byte, metadata *secretmanagersvc.SecretMetadata) (string, error) { + if err := validateMetadata(metadata); err != nil { + return "", err + } + + name := location.SecretRefName() + data, err := decodeSecretData(value) + if err != nil { + return "", err + } + + existing, err := c.oc.GetSecret(ctx, location.OrgName, name) + if err != nil && !errors.Is(err, utils.ErrNotFound) { + return "", fmt.Errorf("failed to check secret existence: %w", err) + } + + if err == nil { + // Secret exists — verify ownership before replacing it + if !isManagedBy(existing.Labels, metadata.ManagedBy) { + return "", secretmanagersvc.ErrNotManaged + } + if _, err := c.oc.UpdateSecret(ctx, location.OrgName, name, occlient.UpdateSecretRequest{ + Data: data, + Labels: userLabels(existing.Labels, metadata.ManagedBy), + }); err != nil { + return "", fmt.Errorf("failed to update secret: %w", err) + } + return name, nil + } + + if _, err := c.oc.CreateSecret(ctx, location.OrgName, occlient.CreateSecretRequest{ + Name: name, + Data: data, + Labels: userLabels(metadata.Labels, metadata.ManagedBy), + TargetPlaneKind: c.targetPlaneKind, + TargetPlaneName: c.targetPlaneName, + }); err != nil { + // Handle race condition: another caller may have created it between Get and Create + if errors.Is(err, utils.ErrConflict) { + if _, updateErr := c.oc.UpdateSecret(ctx, location.OrgName, name, occlient.UpdateSecretRequest{ + Data: data, + Labels: userLabels(metadata.Labels, metadata.ManagedBy), + }); updateErr != nil { + return "", fmt.Errorf("failed to update secret after create conflict: %w", updateErr) + } + return name, nil + } + return "", fmt.Errorf("failed to create secret: %w", err) + } + + return name, nil +} + +// PatchSecret merges data with an existing secret. Keys in value are +// added/updated, keys set to null are deleted, omitted keys are preserved. +// Returns the secret name, which is also the underlying SecretReference name. +func (c *Client) PatchSecret(ctx context.Context, location secretmanagersvc.SecretLocation, value []byte, metadata *secretmanagersvc.SecretMetadata) (string, error) { + if err := validateMetadata(metadata); err != nil { + return "", err + } + + name := location.SecretRefName() + existing, err := c.oc.GetSecret(ctx, location.OrgName, name) + if err != nil { + if errors.Is(err, utils.ErrNotFound) { + return "", secretmanagersvc.ErrSecretNotFound + } + return "", fmt.Errorf("failed to read secret: %w", err) + } + + if !isManagedBy(existing.Labels, metadata.ManagedBy) { + return "", secretmanagersvc.ErrNotManaged + } + + var patch map[string]any + if err := json.Unmarshal(value, &patch); err != nil { + return "", fmt.Errorf("failed to unmarshal patch data: %w", err) + } + + // Merge the patch client-side: the OpenChoreo update replaces all data, + // so the JSON Merge Patch semantics are applied against the current state. + merged := make(map[string]string, len(existing.Data)+len(patch)) + for k, v := range existing.Data { + merged[k] = string(v) + } + for k, v := range patch { + if v == nil { + delete(merged, k) // null signals deletion in JSON Merge Patch + continue + } + if s, ok := v.(string); ok { + merged[k] = s + continue + } + encoded, err := json.Marshal(v) + if err != nil { + return "", fmt.Errorf("failed to encode secret value for key %q: %w", k, err) + } + merged[k] = string(encoded) + } + + if _, err := c.oc.UpdateSecret(ctx, location.OrgName, name, occlient.UpdateSecretRequest{ + Data: merged, + Labels: userLabels(existing.Labels, metadata.ManagedBy), + }); err != nil { + return "", fmt.Errorf("failed to patch secret: %w", err) + } + + return name, nil +} + +// DeleteSecret removes a secret via the OpenChoreo API. Idempotent: returns +// nil if the secret doesn't exist. Only deletes secrets whose managed-by label +// matches the provided metadata. +func (c *Client) DeleteSecret(ctx context.Context, location secretmanagersvc.SecretLocation, metadata *secretmanagersvc.SecretMetadata) error { + if err := validateMetadata(metadata); err != nil { + return err + } + + name := location.SecretRefName() + existing, err := c.oc.GetSecret(ctx, location.OrgName, name) + if err != nil { + if errors.Is(err, utils.ErrNotFound) { + return nil // Idempotent - already deleted + } + return fmt.Errorf("failed to check secret existence: %w", err) + } + + if !isManagedBy(existing.Labels, metadata.ManagedBy) { + return nil // Not managed by the specified owner, skip deletion + } + + if err := c.oc.DeleteSecret(ctx, location.OrgName, name); err != nil { + if errors.Is(err, utils.ErrNotFound) { + return nil + } + return fmt.Errorf("failed to delete secret: %w", err) + } + + return nil +} + +// GetSecret retrieves secret metadata without values. +func (c *Client) GetSecret(ctx context.Context, location secretmanagersvc.SecretLocation) (*secretmanagersvc.SecretInfo, error) { + name := location.SecretRefName() + secret, err := c.oc.GetSecret(ctx, location.OrgName, name) + if err != nil { + if errors.Is(err, utils.ErrNotFound) { + return nil, secretmanagersvc.ErrSecretNotFound + } + return nil, fmt.Errorf("failed to read secret: %w", err) + } + + keys := make([]string, 0, len(secret.Data)) + for k := range secret.Data { + keys = append(keys, k) + } + + return &secretmanagersvc.SecretInfo{ + ID: name, + Name: secret.Name, + Keys: keys, + Labels: secret.Labels, + CreatedAt: secret.CreatedAt, + }, nil +} + +// Close cleans up resources. +func (c *Client) Close(ctx context.Context) error { + // The OpenChoreo client doesn't require explicit cleanup + return nil +} diff --git a/agent-manager-service/clients/secretmanagersvc/providers/openbao/provider.go b/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/provider.go similarity index 55% rename from agent-manager-service/clients/secretmanagersvc/providers/openbao/provider.go rename to agent-manager-service/clients/secretmanagersvc/providers/openchoreo/provider.go index 35fe9bfcd..9890e25af 100644 --- a/agent-manager-service/clients/secretmanagersvc/providers/openbao/provider.go +++ b/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/provider.go @@ -14,31 +14,27 @@ // specific language governing permissions and limitations // under the License. -package openbao +package openchoreo import ( "errors" - vault "github.com/hashicorp/vault/api" - secretmanagersvc "github.com/wso2/agent-manager/agent-manager-service/clients/secretmanagersvc" ) -const ( - // ProviderName is the name used to register this provider. - ProviderName = "openbao" - - // ManagedByValue is the value used for the managed-by metadata. - ManagedByValue = "amp-secret-manager" -) +// ProviderName is the name used to register this provider. +const ProviderName = "openchoreo" -// Provider implements the secretmanagersvc.Provider interface for OpenBao/Vault. +// Provider implements the secretmanagersvc.Provider interface backed by the +// OpenChoreo secret management API. The API stores secret values in the +// target plane's secret store and manages the underlying SecretReference CRs +// itself, so no direct KV access is needed. type Provider struct{} // Ensure Provider implements the interface. var _ secretmanagersvc.Provider = &Provider{} -// NewProvider creates a new OpenBao provider instance. +// NewProvider creates a new OpenChoreo provider instance. func NewProvider() secretmanagersvc.Provider { return &Provider{} } @@ -48,47 +44,29 @@ func (p *Provider) Capabilities() secretmanagersvc.StoreCapabilities { return secretmanagersvc.StoreCapabilityReadWrite } -// NewClient creates a new SecretsClient for OpenBao. +// NewClient creates a new SecretsClient backed by the OpenChoreo secret API. func (p *Provider) NewClient(config *secretmanagersvc.StoreConfig) (secretmanagersvc.SecretsClient, error) { if err := p.ValidateConfig(config); err != nil { return nil, err } - cfg := vault.DefaultConfig() - cfg.Address = config.OpenBao.Server - - vaultClient, err := vault.NewClient(cfg) - if err != nil { - return nil, err - } - - vaultClient.SetToken(config.OpenBao.Auth.Token) - return &Client{ - client: vaultClient, - path: config.OpenBao.Path, + oc: config.OpenChoreo.Client, + targetPlaneKind: config.OpenChoreo.TargetPlaneKind, + targetPlaneName: config.OpenChoreo.TargetPlaneName, }, nil } -// ValidateConfig validates the OpenBao configuration. +// ValidateConfig validates the OpenChoreo provider configuration. func (p *Provider) ValidateConfig(config *secretmanagersvc.StoreConfig) error { if config == nil { return errors.New("config is required") } - if config.OpenBao == nil { - return errors.New("openbao config is required") - } - if config.OpenBao.Server == "" { - return errors.New("openbao server is required") - } - if config.OpenBao.Path == "" { - return errors.New("openbao path is required") - } - if config.OpenBao.Auth == nil { - return errors.New("openbao auth is required") + if config.OpenChoreo == nil { + return errors.New("openchoreo config is required") } - if config.OpenBao.Auth.Token == "" { - return errors.New("openbao auth token is required") + if config.OpenChoreo.Client == nil { + return errors.New("openchoreo client is required") } return nil } diff --git a/agent-manager-service/clients/secretmanagersvc/types.go b/agent-manager-service/clients/secretmanagersvc/types.go index 2396c43a1..81ec48355 100644 --- a/agent-manager-service/clients/secretmanagersvc/types.go +++ b/agent-manager-service/clients/secretmanagersvc/types.go @@ -16,7 +16,11 @@ package secretmanagersvc -import "errors" +import ( + "errors" + + occlient "github.com/wso2/agent-manager/agent-manager-service/clients/openchoreosvc/client" +) // ErrSecretNotFound is returned when a secret does not exist. var ErrSecretNotFound = errors.New("secret not found") @@ -60,28 +64,23 @@ type SecretInfo struct { // StoreConfig holds configuration for secret store backends. type StoreConfig struct { - // Provider is the name of the provider to use (e.g., "openbao", "vault", "aws"). + // Provider is the name of the provider to use (e.g., "openchoreo"). Provider string `json:"provider"` - // OpenBao contains OpenBao/Vault-specific configuration. - OpenBao *OpenBaoConfig `json:"openbao,omitempty"` + // OpenChoreo contains configuration for the OpenChoreo secret API provider. + OpenChoreo *OpenChoreoConfig `json:"openchoreo,omitempty"` } -// OpenBaoConfig contains configuration for OpenBao/Vault. -// Only KV v2 secrets engine is supported. -type OpenBaoConfig struct { - // Server is the OpenBao server address (e.g., "https://openbao.example.com"). - Server string `json:"server"` - - // Path is the mount path for the KV secrets engine (e.g., "secret"). - Path string `json:"path"` +// OpenChoreoConfig contains configuration for the OpenChoreo secret API provider. +type OpenChoreoConfig struct { + // Client is the OpenChoreo API client used for secret operations. + Client occlient.OpenChoreoClient `json:"-"` - // Auth contains authentication configuration. - Auth *OpenBaoAuth `json:"auth"` -} + // TargetPlaneKind is the kind of the plane hosting the secret data + // (e.g. "ClusterDataPlane"). Defaults to the client's default when empty. + TargetPlaneKind string `json:"targetPlaneKind,omitempty"` -// OpenBaoAuth contains authentication configuration for OpenBao. -type OpenBaoAuth struct { - // Token is a static token for authentication. - Token string `json:"token,omitempty"` + // TargetPlaneName is the name of the plane hosting the secret data. + // Defaults to the client's default when empty. + TargetPlaneName string `json:"targetPlaneName,omitempty"` } diff --git a/agent-manager-service/config/config.go b/agent-manager-service/config/config.go index 03b14f95e..6ccfe2750 100644 --- a/agent-manager-service/config/config.go +++ b/agent-manager-service/config/config.go @@ -138,14 +138,13 @@ type TLSConfig struct { // SecretManagerConfig holds secret manager client configuration type SecretManagerConfig struct { - // Provider is the secret store provider name (e.g., "openbao", "vault", "secret-manager-api") + // Provider is the secret store provider name (e.g., "openchoreo") Provider string - // RefreshInterval is how often SecretReference CRs should refresh from KV (default: "1h") - RefreshInterval string - // BaseURL is the Secret Manager API base URL (only used when Provider is "secret-manager-api") - BaseURL string - // Timeout is the HTTP client timeout in seconds for Secret Manager API (default: 30) - Timeout int + // TargetPlaneKind is the kind of the plane hosting secret data + // (e.g. "ClusterDataPlane") + TargetPlaneKind string + // TargetPlaneName is the name of the plane hosting secret data + TargetPlaneName string } // OpenBaoConfig holds OpenBao KV store configuration. diff --git a/agent-manager-service/config/config_loader.go b/agent-manager-service/config/config_loader.go index 43eacb38e..19b96bdaf 100644 --- a/agent-manager-service/config/config_loader.go +++ b/agent-manager-service/config/config_loader.go @@ -205,10 +205,9 @@ func loadEnvs() { } config.SecretManager = SecretManagerConfig{ - Provider: r.readOptionalString("SECRET_MANAGER_PROVIDER", "openbao"), - RefreshInterval: r.readOptionalString("OPENBAO_REFRESH_INTERVAL", "1h"), - BaseURL: r.readOptionalString("SECRET_MANAGER_API_URL", ""), - Timeout: int(r.readOptionalInt64("SECRET_MANAGER_API_TIMEOUT", 30)), + Provider: r.readOptionalString("SECRET_MANAGER_PROVIDER", "openchoreo"), + TargetPlaneKind: r.readOptionalString("SECRET_MANAGER_TARGET_PLANE_KIND", "ClusterDataPlane"), + TargetPlaneName: r.readOptionalString("SECRET_MANAGER_TARGET_PLANE_NAME", "default"), } // OpenBao KV store configuration (data plane - for deployment secrets) diff --git a/agent-manager-service/controllers/gateway_controller.go b/agent-manager-service/controllers/gateway_controller.go index ac944d9b4..3bcb3910f 100644 --- a/agent-manager-service/controllers/gateway_controller.go +++ b/agent-manager-service/controllers/gateway_controller.go @@ -149,7 +149,7 @@ func (c *gatewayController) RegisterGateway(w http.ResponseWriter, r *http.Reque envs, err := c.ocClient.ListEnvironments(ctx, ouID) if err != nil { log.Error("environment validation failed: failed to list environments") - utils.WriteErrorResponse(w, http.StatusInternalServerError, "environment validation error") + utils.WriteErrorResponse(w, http.StatusInternalServerError, "environment validation erro") return } if len(envs) == 0 { diff --git a/agent-manager-service/main.go b/agent-manager-service/main.go index f9b6452a0..379f70580 100644 --- a/agent-manager-service/main.go +++ b/agent-manager-service/main.go @@ -22,7 +22,7 @@ import ( "github.com/wso2/agent-manager/agent-manager-service/app" ocauth "github.com/wso2/agent-manager/agent-manager-service/clients/openchoreosvc/auth" - "github.com/wso2/agent-manager/agent-manager-service/clients/secretmanagersvc/providers/openbao" + "github.com/wso2/agent-manager/agent-manager-service/clients/secretmanagersvc/providers/openchoreo" "github.com/wso2/agent-manager/agent-manager-service/config" "github.com/wso2/agent-manager/agent-manager-service/services" ) @@ -43,8 +43,8 @@ func main() { Scope: strings.Join(cfg.OAuthScopesSupported, " "), }) - // Open-source: OpenBao secret management - secretProvider := openbao.NewProvider() + // Secret management via the OpenChoreo secret management API + secretProvider := openchoreo.NewProvider() // Open-source: OpenBao-backed AgentID provisioning agentThunderProvisioning := services.NewOpenBaoAgentThunderProvisioning(*cfg) diff --git a/agent-manager-service/services/agent_configuration_service.go b/agent-manager-service/services/agent_configuration_service.go index f5df92061..1614cd769 100644 --- a/agent-manager-service/services/agent_configuration_service.go +++ b/agent-manager-service/services/agent_configuration_service.go @@ -1068,7 +1068,7 @@ func (s *agentConfigurationService) createLLMConfig(ctx context.Context, ouID, p rollbackResources[rbIdx].appEnvName = env.Name } - // Store proxy API key in OpenBao KV and create SecretReference + // Store proxy API key via the secret management client (provider manages the SecretReference) proxySecretLoc := secretmanagersvc.SecretLocation{ OrgName: ouID, ProjectName: projectName, @@ -1687,7 +1687,7 @@ func (s *agentConfigurationService) processEnvProviderChange( rbRes.appEnvName = envName } - // Store proxy API key in OpenBao KV and create/update SecretReference + // Store proxy API key via the secret management client (provider manages the SecretReference) proxySecretLoc := secretmanagersvc.SecretLocation{ OrgName: ouID, ProjectName: config.ProjectName, @@ -1943,7 +1943,7 @@ func (s *agentConfigurationService) processNewEnv( rbRes.appEnvName = envName } - // Store proxy API key in OpenBao KV and create/update SecretReference + // Store proxy API key via the secret management client (provider manages the SecretReference) proxySecretLoc := secretmanagersvc.SecretLocation{ OrgName: ouID, ProjectName: config.ProjectName, diff --git a/agent-manager-service/services/agent_manager.go b/agent-manager-service/services/agent_manager.go index bc054c678..cd56cc635 100644 --- a/agent-manager-service/services/agent_manager.go +++ b/agent-manager-service/services/agent_manager.go @@ -803,9 +803,9 @@ func agentAPIKeySecretLocation(ouID, projectName, agentName, envName string) sec // // The reference is resolved from the SecretReference CR rather than computed locally: // CreateSecret returns the SecretReference name, and only the SecretReference knows the -// provider's real remote reference. (For OpenBao that happens to be the KV path, but for -// the Secret Manager API it is the provider's own reference — location.KVPath() is wrong -// there, so we must read it back from the SecretReference.) +// provider's real remote reference. (The provider manages the SecretReference and its +// remoteRef internally — location.KVPath() is not the real reference, so we must read +// it back from the SecretReference.) func (s *agentManagerService) storeAgentAPIKey(ctx context.Context, ouID, projectName, agentName, envName, apiKey string) (key string, property string, err error) { if s.secretMgmtClient == nil { return "", "", fmt.Errorf("secret management is not initialized; cannot store agent API key") @@ -1487,7 +1487,8 @@ func (s *agentManagerService) toCreateAgentRequestWithSecrets(req *spec.CreateAg return result } -// saveSecretsAndCreateReference handles storing secrets in OpenBao and creating SecretReference CR +// saveSecretsAndCreateReference stores secrets via the secret management client; the +// provider stores the values and manages the associated SecretReference internally. func (s *agentManagerService) saveSecretsAndCreateReference( ctx context.Context, location secretmanagersvc.SecretLocation, @@ -2137,7 +2138,7 @@ func (s *agentManagerService) DeleteAgent(ctx context.Context, ouID string, proj // Step 2-4: For each secret reference, get its details, delete from KV, then delete the CR for _, secretRefName := range secretRefNames { - s.cleanupSecretReference(ctx, ouID, projectName, agentName, secretRefName) + s.cleanupSecretReference(ctx, ouID, secretRefName) } // Resolve agent type before component deletion so LLM config cleanup does not need @@ -2279,51 +2280,30 @@ func (s *agentManagerService) deleteAgentLLMConfigurations(ctx context.Context, } } -// cleanupSecretReference deletes secrets from KV and the SecretReference CR. -// It retrieves the SecretReference to get the actual KV path, parses it to a location, -// then calls DeleteSecret which handles both KV and SecretReference deletion. -func (s *agentManagerService) cleanupSecretReference(ctx context.Context, ouID, projectName, agentName, secretRefName string) { - if s.secretMgmtClient == nil { - s.logger.Warn("Secret management client not configured, skipping secret cleanup", "secretRefName", secretRefName) - return - } - - // Get the SecretReference to find the actual KV path - secretRefInfo, err := s.ocClient.GetSecretReference(ctx, ouID, secretRefName) +// cleanupSecretReference deletes an OpenChoreo-managed secret by name (the +// secret name and its SecretReference name are the same); the API removes the +// stored values and the SecretReference together. Only removes secrets owned +// by this service (managed-by label). +func (s *agentManagerService) cleanupSecretReference(ctx context.Context, ouID, secretRefName string) { + secret, err := s.ocClient.GetSecret(ctx, ouID, secretRefName) if err != nil { if errors.Is(err, utils.ErrNotFound) { - s.logger.Debug("SecretReference not found, skipping cleanup", "secretRefName", secretRefName) + s.logger.Debug("Secret not found, skipping cleanup", "secretRefName", secretRefName) return } - s.logger.Warn("Failed to get SecretReference, skipping cleanup", "secretRefName", secretRefName, "error", err) - return - } - - if len(secretRefInfo.Data) == 0 { - s.logger.Warn("SecretReference has no data sources, skipping cleanup", "secretRefName", secretRefName) - return - } - - // Parse the KV path to get the correct location - kvPath := secretRefInfo.Data[0].RemoteRef.Key - if kvPath == "" { - s.logger.Warn("SecretReference has empty KV path, skipping cleanup", "secretRefName", secretRefName) + s.logger.Warn("Failed to get secret, skipping cleanup", "secretRefName", secretRefName, "error", err) return } - location, parseErr := secretmanagersvc.ParseKVPath(kvPath) - if parseErr != nil { - s.logger.Warn("Failed to parse KV path from SecretReference, skipping cleanup", - "kvPath", kvPath, "secretRefName", secretRefName, "error", parseErr) + if secret.Labels[secretmanagersvc.LabelKeyManagedBy] != secretmanagersvc.DefaultManagedBy { + s.logger.Warn("Secret not managed by this service, skipping cleanup", "secretRefName", secretRefName) return } - // DeleteSecret handles both KV deletion and SecretReference CR deletion - if err := s.secretMgmtClient.DeleteSecret(ctx, location, secretRefName); err != nil { - s.logger.Warn("Failed to delete secret during cleanup", - "kvPath", kvPath, "secretRefName", secretRefName, "error", err) + if err := s.ocClient.DeleteSecret(ctx, ouID, secretRefName); err != nil && !errors.Is(err, utils.ErrNotFound) { + s.logger.Warn("Failed to delete secret during cleanup", "secretRefName", secretRefName, "error", err) } else { - s.logger.Debug("Deleted secret during cleanup", "kvPath", kvPath, "secretRefName", secretRefName) + s.logger.Debug("Deleted secret during cleanup", "secretRefName", secretRefName) } } @@ -3707,8 +3687,8 @@ func isValidPromotionPath(promotionPaths []models.PromotionPath, source, target // // System-managed env vars are identified by looking up the secretRef in the DB: if it is // recorded in agent_env_config_variables_mapping for this agent's LLM configurations, it is -// system-managed. This is provider-agnostic — it works for both OpenBao and the Secret Manager -// API without relying on secret reference name patterns. +// system-managed. This is provider-agnostic — it does not rely on secret reference name +// patterns. // // These must be handled separately from processEnvVars because processEnvVars would use the // env var name (e.g., "CUSTOM_API_KEY") as the SecretKeyRef.Key, but the actual key in the @@ -3783,7 +3763,7 @@ func (s *agentManagerService) getSystemManagedEnvVars( // // For sensitive env vars (isSensitive=true): // - If secretRef is provided and value is empty: preserves existing secret (no KV update) -// - If value is provided: stores/updates the secret value in OpenBao +// - If value is provided: stores/updates the secret value in the secret store // - Returns env var with secretKeyRef (Name=K8s Secret name, Key=property) // // For plain env vars: diff --git a/agent-manager-service/services/llm_proxy_provisioner.go b/agent-manager-service/services/llm_proxy_provisioner.go index 0eb234405..dd836bdec 100644 --- a/agent-manager-service/services/llm_proxy_provisioner.go +++ b/agent-manager-service/services/llm_proxy_provisioner.go @@ -84,7 +84,7 @@ type ProvisionProxyParams struct { Description string CreatedBy string // defaults to models.UserRoleSystem when empty SecretCtx ProxySecretContext - // SkipKVSecret skips storing the proxy API key in OpenBao KV. + // SkipKVSecret skips storing the proxy API key in the secret store. // Set by callers (e.g. monitors) that manage their own composite secret. SkipKVSecret bool } diff --git a/agent-manager-service/services/monitor_executor.go b/agent-manager-service/services/monitor_executor.go index 95a5cd6fa..d997c5e96 100644 --- a/agent-manager-service/services/monitor_executor.go +++ b/agent-manager-service/services/monitor_executor.go @@ -208,7 +208,7 @@ func (e *monitorExecutor) UpdateNextRunTime(ctx context.Context, monitorID uuid. // Returns empty strings if no proxy mapping exists. // The KV path and secret key are read from the persisted mapping (set during provisioning // from the OpenChoreo SecretReference remoteRef fields) rather than recomputed from the -// raw OpenBao path, which the workflow runtime cannot use to mount env vars into pods. +// raw KV path, which the workflow runtime cannot use to mount env vars into pods. func (e *monitorExecutor) resolveLLMProxyConfig(ctx context.Context, monitor *models.Monitor) (secretPath, proxyURL, templateHandle string, err error) { mappings, err := e.monitorLLMMappingRepo.ListByMonitorID(ctx, monitor.ID) if err != nil { diff --git a/agent-manager-service/wiring/wire.go b/agent-manager-service/wiring/wire.go index 8305faa97..6e34132d4 100644 --- a/agent-manager-service/wiring/wire.go +++ b/agent-manager-service/wiring/wire.go @@ -282,30 +282,20 @@ func ProvideTraceObserverClient(cfg config.Config, authProvider occlient.AuthPro }) } -// ProvideSecretManagementClient creates the secret management service client. -// If the provider implements secretmanagersvc.SecretReferenceManager and -// reports that it manages SecretReferences itself, the OpenChoreo client is -// not forwarded — preventing the high-level client from making redundant -// SecretReference CRUD calls. +// ProvideSecretManagementClient creates the secret management service client +// backed by the OpenChoreo secret management API, which stores secret values +// in the target plane's secret store and manages SecretReference CRs itself. func ProvideSecretManagementClient(cfg config.Config, secretProvider secretmanagersvc.Provider, ocClient occlient.OpenChoreoClient) (secretmanagersvc.SecretManagementClient, error) { - ocClientForSecretMgmt := ocClient - if mgr, ok := secretProvider.(secretmanagersvc.SecretReferenceManager); ok && mgr.ManagesSecretReferences() { - ocClientForSecretMgmt = nil - } return secretmanagersvc.NewSecretManagementClientWithConfig(secretmanagersvc.SecretManagementClientConfig{ StoreConfig: &secretmanagersvc.StoreConfig{ Provider: cfg.SecretManager.Provider, - OpenBao: &secretmanagersvc.OpenBaoConfig{ - Server: cfg.OpenBao.URL, - Path: cfg.OpenBao.Path, - Auth: &secretmanagersvc.OpenBaoAuth{ - Token: cfg.OpenBao.Token, - }, + OpenChoreo: &secretmanagersvc.OpenChoreoConfig{ + Client: ocClient, + TargetPlaneKind: cfg.SecretManager.TargetPlaneKind, + TargetPlaneName: cfg.SecretManager.TargetPlaneName, }, }, - Provider: secretProvider, - OCClient: ocClientForSecretMgmt, - RefreshInterval: cfg.SecretManager.RefreshInterval, + Provider: secretProvider, }) } diff --git a/agent-manager-service/wiring/wire_gen.go b/agent-manager-service/wiring/wire_gen.go index d1181c14f..43f10e51c 100644 --- a/agent-manager-service/wiring/wire_gen.go +++ b/agent-manager-service/wiring/wire_gen.go @@ -565,30 +565,20 @@ func ProvideTraceObserverClient(cfg config.Config, authProvider client.AuthProvi }) } -// ProvideSecretManagementClient creates the secret management service client. -// If the provider implements secretmanagersvc.SecretReferenceManager and -// reports that it manages SecretReferences itself, the OpenChoreo client is -// not forwarded — preventing the high-level client from making redundant -// SecretReference CRUD calls. +// ProvideSecretManagementClient creates the secret management service client +// backed by the OpenChoreo secret management API, which stores secret values +// in the target plane's secret store and manages SecretReference CRs itself. func ProvideSecretManagementClient(cfg config.Config, secretProvider secretmanagersvc.Provider, ocClient client.OpenChoreoClient) (secretmanagersvc.SecretManagementClient, error) { - ocClientForSecretMgmt := ocClient - if mgr, ok := secretProvider.(secretmanagersvc.SecretReferenceManager); ok && mgr.ManagesSecretReferences() { - ocClientForSecretMgmt = nil - } return secretmanagersvc.NewSecretManagementClientWithConfig(secretmanagersvc.SecretManagementClientConfig{ StoreConfig: &secretmanagersvc.StoreConfig{ Provider: cfg.SecretManager.Provider, - OpenBao: &secretmanagersvc.OpenBaoConfig{ - Server: cfg.OpenBao.URL, - Path: cfg.OpenBao.Path, - Auth: &secretmanagersvc.OpenBaoAuth{ - Token: cfg.OpenBao.Token, - }, + OpenChoreo: &secretmanagersvc.OpenChoreoConfig{ + Client: ocClient, + TargetPlaneKind: cfg.SecretManager.TargetPlaneKind, + TargetPlaneName: cfg.SecretManager.TargetPlaneName, }, }, - Provider: secretProvider, - OCClient: ocClientForSecretMgmt, - RefreshInterval: cfg.SecretManager.RefreshInterval, + Provider: secretProvider, }) } diff --git a/console/apps/web-ui/public/config.js b/console/apps/web-ui/public/config.js index c2ce8b37d..440c2e65a 100644 --- a/console/apps/web-ui/public/config.js +++ b/console/apps/web-ui/public/config.js @@ -18,63 +18,54 @@ window.__RUNTIME_CONFIG__ = { authConfig: { - baseUrl: "http://thunder.amp.localhost:8080", - clientId: "amp-console-client", - organizationHandle: "".trim() || "default", - signInUrl: "http://thunder.amp.localhost:8080/gate", - afterSignInUrl: "http://localhost:3000/login", - afterSignOutUrl: "http://localhost:3000/login", - scopes: ( - "openid profile email amp:org:view amp:org:modify-settings amp:org:invite-member amp:org:remove-member amp:org:assign-role amp:org:manage-idp amp:org:manage-service-account amp:project:create amp:project:read amp:project:update amp:project:delete amp:environment:create amp:environment:read amp:environment:update amp:environment:delete amp:gateway:create amp:gateway:read amp:gateway:update amp:gateway:delete amp:gateway:token-manage amp:data-plane:read amp:deployment-pipeline:create amp:deployment-pipeline:read amp:deployment-pipeline:update amp:deployment-pipeline:delete amp:git-secret:create amp:git-secret:read amp:git-secret:delete amp:llm-provider-template:create amp:llm-provider-template:read amp:llm-provider-template:update amp:llm-provider-template:delete amp:llm-provider:create amp:llm-provider:read amp:llm-provider:update amp:llm-provider:delete amp:llm-provider:configure-guardrail amp:llm-provider:connect amp:llm-provider:deploy amp:llm-provider:api-key-manage amp:mcp-server:create amp:mcp-server:read amp:mcp-server:update amp:mcp-server:delete amp:mcp-server:configure-guardrail amp:mcp-server:connect amp:mcp-server:api-key-manage amp:llm-proxy:create amp:llm-proxy:read amp:llm-proxy:update amp:llm-proxy:delete amp:llm-proxy:deploy amp:llm-proxy:api-key-manage amp:evaluator:create amp:evaluator:read amp:evaluator:update amp:evaluator:delete amp:agent:create amp:agent:read amp:agent:update amp:agent:delete amp:agent:build amp:agent:deploy-non-production amp:agent:deploy-production amp:agent:promote amp:agent:rollback amp:agent:suspend amp:agent:token-manage amp:agent:api-key-manage amp:monitor:create amp:monitor:read amp:monitor:update amp:monitor:delete amp:monitor:execute amp:monitor:score-read amp:monitor:score-publish amp:observability:org-dashboard amp:observability:project-dashboard amp:observability:guardrail-metric amp:observability:infra-metric amp:role:create amp:role:read amp:role:update amp:role:delete amp:group:create amp:group:read amp:group:update amp:group:delete amp:catalog:read amp:repository:read amp:agent-kind:read amp:agent-kind:create amp:agent-kind:update amp:agent-kind:delete amp:profile:read amp:profile:update-attributes amp:scope:create amp:scope:read amp:scope:update amp:scope:delete amp:agent-identity:read amp:agent-identity:create amp:agent-identity:update amp:agent-identity:delete".trim() || - "openid profile email" - ) - .split(/\s+/) - .filter(Boolean), - platform: "AsgardeoV2", + baseUrl: 'http://thunder.amp.localhost:8080', + clientId: 'amp-console-client', + organizationHandle: (''.trim() || 'default'), + signInUrl: 'http://thunder.amp.localhost:8080/gate', + afterSignInUrl: 'http://localhost:3000/login', + afterSignOutUrl: 'http://localhost:3000/login', + scopes: ('openid profile email amp:org:view amp:org:modify-settings amp:org:invite-member amp:org:remove-member amp:org:assign-role amp:org:manage-idp amp:org:manage-service-account amp:project:create amp:project:read amp:project:update amp:project:delete amp:environment:create amp:environment:read amp:environment:update amp:environment:delete amp:gateway:create amp:gateway:read amp:gateway:update amp:gateway:delete amp:gateway:token-manage amp:data-plane:read amp:deployment-pipeline:create amp:deployment-pipeline:read amp:deployment-pipeline:update amp:deployment-pipeline:delete amp:git-secret:create amp:git-secret:read amp:git-secret:delete amp:llm-provider-template:create amp:llm-provider-template:read amp:llm-provider-template:update amp:llm-provider-template:delete amp:llm-provider:create amp:llm-provider:read amp:llm-provider:update amp:llm-provider:delete amp:llm-provider:configure-guardrail amp:llm-provider:connect amp:llm-provider:deploy amp:llm-provider:api-key-manage amp:mcp-server:create amp:mcp-server:read amp:mcp-server:update amp:mcp-server:delete amp:mcp-server:configure-guardrail amp:mcp-server:connect amp:mcp-server:api-key-manage amp:llm-proxy:create amp:llm-proxy:read amp:llm-proxy:update amp:llm-proxy:delete amp:llm-proxy:deploy amp:llm-proxy:api-key-manage amp:evaluator:create amp:evaluator:read amp:evaluator:update amp:evaluator:delete amp:agent:create amp:agent:read amp:agent:update amp:agent:delete amp:agent:build amp:agent:deploy-non-production amp:agent:deploy-production amp:agent:promote amp:agent:rollback amp:agent:suspend amp:agent:token-manage amp:agent:api-key-manage amp:monitor:create amp:monitor:read amp:monitor:update amp:monitor:delete amp:monitor:execute amp:monitor:score-read amp:monitor:score-publish amp:observability:org-dashboard amp:observability:project-dashboard amp:observability:guardrail-metric amp:observability:infra-metric amp:role:create amp:role:read amp:role:update amp:role:delete amp:group:create amp:group:read amp:group:update amp:group:delete amp:catalog:read amp:repository:read amp:agent-kind:read amp:agent-kind:create amp:agent-kind:update amp:agent-kind:delete amp:profile:read amp:profile:update-attributes amp:scope:create amp:scope:read amp:scope:update amp:scope:delete amp:agent-identity:read amp:agent-identity:create amp:agent-identity:update amp:agent-identity:delete'.trim() || 'openid profile email').split(/\s+/).filter(Boolean), + platform: 'AsgardeoV2', tokenValidation: { idToken: { - validate: "" === "true", - clockTolerance: Number("") || 300, + validate: '' === 'true', + clockTolerance: Number('') || 300, }, }, - storage: "localStorage", + storage: 'localStorage', }, - disableAuth: "false" === "true", - rbacEnabled: "true" === "true", - apiBaseUrl: "http://localhost:9000", - obsApiBaseUrl: "http://localhost:9098", - gatewayControlPlaneUrl: "http://localhost:9243", - gatewayVersion: "v0.11.0", - ampVersion: "v0.17.0", - instrumentationUrl: "http://localhost:22893/otel", - agentManagerInternalBaseUrl: "http://host.docker.internal:9000", - agentManagerInternalCpHost: "host.docker.internal:9243", - guardrailsCatalogUrl: - "https://db720294-98fd-40f4-85a1-cc6a3b65bc9a-prod.e1-us-east-azure.choreoapis.dev/api-platform/policy-hub-api/policy-hub-public/v1.0/policies?categories=Guardrails,AI&limit=100", - guardrailsDefinitionBaseUrl: - "https://db720294-98fd-40f4-85a1-cc6a3b65bc9a-prod.e1-us-east-azure.choreoapis.dev/api-platform/policy-hub-api/policy-hub-public/v1.0/policies", + disableAuth: 'false' === 'true', + rbacEnabled: 'true' === 'true', + apiBaseUrl: 'http://localhost:9000', + obsApiBaseUrl: 'http://localhost:9098', + gatewayControlPlaneUrl: 'http://localhost:9243', + gatewayVersion: 'v0.11.0', + ampVersion: 'v0.16.0', + instrumentationUrl: 'http://default-default.gateway.localhost:19080/otel', + agentManagerInternalBaseUrl: 'http://host.docker.internal:9000', + agentManagerInternalCpHost: 'host.docker.internal:9243', + guardrailsCatalogUrl: 'https://db720294-98fd-40f4-85a1-cc6a3b65bc9a-prod.e1-us-east-azure.choreoapis.dev/api-platform/policy-hub-api/policy-hub-public/v1.0/policies?categories=Guardrails,AI&limit=100', + guardrailsDefinitionBaseUrl: 'https://db720294-98fd-40f4-85a1-cc6a3b65bc9a-prod.e1-us-east-azure.choreoapis.dev/api-platform/policy-hub-api/policy-hub-public/v1.0/policies', guardrailCapabilities: { - awsBedrock: "" === "true", - azureContentSafety: "" === "true", - graniteGuardian: "" === "true", - nemoGuard: "" === "true", - semanticGuardrails: "" === "true", + awsBedrock: '' === 'true', + azureContentSafety: '' === 'true', + graniteGuardian: '' === 'true', + nemoGuard: '' === 'true', + semanticGuardrails: '' === 'true', }, featureFlags: { - enablePrivateRepoSupport: "true" === "true", - enableIdentityProviderManagedMode: "" === "true", - enableProfileManagement: "true" === "true", - enableUserManagement: "true" === "true", + enablePrivateRepoSupport: 'true' === 'true', + enableIdentityProviderManagedMode: '' === 'true', + enableProfileManagement: 'true' === 'true', + enableUserManagement: 'true' === 'true', }, - docsUrl: "https://wso2.github.io/agent-manager/docs/next", + docsUrl: 'https://wso2.github.io/agent-manager/docs/next', footerLinks: { - privacyPolicyUrl: "https://wso2.com/agent-platform/agent-manager/", - termsOfUseUrl: "https://wso2.com/agent-platform/agent-manager/", + privacyPolicyUrl: 'https://wso2.com/agent-platform/agent-manager/', + termsOfUseUrl: 'https://wso2.com/agent-platform/agent-manager/', }, instrumentationDocLinks: { - manualInstrumentation: - "/components/amp-instrumentation/#manual-instrumentation", - versionMapping: - "/components/amp-instrumentation/#amp-instrumentation-version-mapping", + manualInstrumentation: '/components/amp-instrumentation/#manual-instrumentation', + versionMapping: '/components/amp-instrumentation/#amp-instrumentation-version-mapping', }, }; diff --git a/deployments/single-cluster/values-cp.yaml b/deployments/single-cluster/values-cp.yaml index 1886896e4..d914f5541 100644 --- a/deployments/single-cluster/values-cp.yaml +++ b/deployments/single-cluster/values-cp.yaml @@ -7,6 +7,10 @@ openchoreoApi: server: publicUrl: "http://api.openchoreo.localhost:8080" +features: + secretManagement: + enabled: true + gateway: httpPort: 8080 httpsPort: 8443 From 78c01422ff2dfa812f306822460b858597a50095 Mon Sep 17 00:00:00 2001 From: hanzjk Date: Wed, 15 Jul 2026 22:32:49 +0530 Subject: [PATCH 2/6] Add mock clients --- .../clientmocks/secret_mgmt_client_fake.go | 58 ++----------------- .../tests/apitestutils/mock_clients.go | 3 - 2 files changed, 4 insertions(+), 57 deletions(-) diff --git a/agent-manager-service/clients/clientmocks/secret_mgmt_client_fake.go b/agent-manager-service/clients/clientmocks/secret_mgmt_client_fake.go index 7a5d22b44..f7e0b82bd 100644 --- a/agent-manager-service/clients/clientmocks/secret_mgmt_client_fake.go +++ b/agent-manager-service/clients/clientmocks/secret_mgmt_client_fake.go @@ -29,9 +29,6 @@ var _ secretmanagersvc.SecretManagementClient = &SecretManagementClientMock{} // GetSecretFunc: func(ctx context.Context, kvPath string) (*secretmanagersvc.SecretInfo, error) { // panic("mock out the GetSecret method") // }, -// GetSecretWithValueFunc: func(ctx context.Context, kvPath string) (map[string]string, error) { -// panic("mock out the GetSecretWithValue method") -// }, // PatchSecretFunc: func(ctx context.Context, location secretmanagersvc.SecretLocation, data map[string]string, keysToDelete []string) (string, error) { // panic("mock out the PatchSecret method") // }, @@ -51,9 +48,6 @@ type SecretManagementClientMock struct { // GetSecretFunc mocks the GetSecret method. GetSecretFunc func(ctx context.Context, kvPath string) (*secretmanagersvc.SecretInfo, error) - // GetSecretWithValueFunc mocks the GetSecretWithValue method. - GetSecretWithValueFunc func(ctx context.Context, kvPath string) (map[string]string, error) - // PatchSecretFunc mocks the PatchSecret method. PatchSecretFunc func(ctx context.Context, location secretmanagersvc.SecretLocation, data map[string]string, keysToDelete []string) (string, error) @@ -84,13 +78,6 @@ type SecretManagementClientMock struct { // KvPath is the kvPath argument value. KvPath string } - // GetSecretWithValue holds details about calls to the GetSecretWithValue method. - GetSecretWithValue []struct { - // Ctx is the ctx argument value. - Ctx context.Context - // KvPath is the kvPath argument value. - KvPath string - } // PatchSecret holds details about calls to the PatchSecret method. PatchSecret []struct { // Ctx is the ctx argument value. @@ -103,11 +90,10 @@ type SecretManagementClientMock struct { KeysToDelete []string } } - lockCreateSecret sync.RWMutex - lockDeleteSecret sync.RWMutex - lockGetSecret sync.RWMutex - lockGetSecretWithValue sync.RWMutex - lockPatchSecret sync.RWMutex + lockCreateSecret sync.RWMutex + lockDeleteSecret sync.RWMutex + lockGetSecret sync.RWMutex + lockPatchSecret sync.RWMutex } // CreateSecret calls CreateSecretFunc. @@ -226,42 +212,6 @@ func (mock *SecretManagementClientMock) GetSecretCalls() []struct { return calls } -// GetSecretWithValue calls GetSecretWithValueFunc. -func (mock *SecretManagementClientMock) GetSecretWithValue(ctx context.Context, kvPath string) (map[string]string, error) { - if mock.GetSecretWithValueFunc == nil { - panic("SecretManagementClientMock.GetSecretWithValueFunc: method is nil but SecretManagementClient.GetSecretWithValue was just called") - } - callInfo := struct { - Ctx context.Context - KvPath string - }{ - Ctx: ctx, - KvPath: kvPath, - } - mock.lockGetSecretWithValue.Lock() - mock.calls.GetSecretWithValue = append(mock.calls.GetSecretWithValue, callInfo) - mock.lockGetSecretWithValue.Unlock() - return mock.GetSecretWithValueFunc(ctx, kvPath) -} - -// GetSecretWithValueCalls gets all the calls that were made to GetSecretWithValue. -// Check the length with: -// -// len(mockedSecretManagementClient.GetSecretWithValueCalls()) -func (mock *SecretManagementClientMock) GetSecretWithValueCalls() []struct { - Ctx context.Context - KvPath string -} { - var calls []struct { - Ctx context.Context - KvPath string - } - mock.lockGetSecretWithValue.RLock() - calls = mock.calls.GetSecretWithValue - mock.lockGetSecretWithValue.RUnlock() - return calls -} - // PatchSecret calls PatchSecretFunc. func (mock *SecretManagementClientMock) PatchSecret(ctx context.Context, location secretmanagersvc.SecretLocation, data map[string]string, keysToDelete []string) (string, error) { if mock.PatchSecretFunc == nil { diff --git a/agent-manager-service/tests/apitestutils/mock_clients.go b/agent-manager-service/tests/apitestutils/mock_clients.go index c7d8f450b..8046f264f 100644 --- a/agent-manager-service/tests/apitestutils/mock_clients.go +++ b/agent-manager-service/tests/apitestutils/mock_clients.go @@ -219,9 +219,6 @@ func CreateMockSecretManagementClient() *clientmocks.SecretManagementClientMock GetSecretFunc: func(ctx context.Context, kvPath string) (*secretmanagersvc.SecretInfo, error) { return nil, secretmanagersvc.ErrSecretNotFound }, - GetSecretWithValueFunc: func(ctx context.Context, kvPath string) (map[string]string, error) { - return nil, secretmanagersvc.ErrSecretNotFound - }, DeleteSecretFunc: func(ctx context.Context, location secretmanagersvc.SecretLocation, secretRefName string) error { return nil }, From e6c7d4695fb387da2893ad2b1130d1da36d4121b Mon Sep 17 00:00:00 2001 From: hanzjk Date: Wed, 15 Jul 2026 23:05:39 +0530 Subject: [PATCH 3/6] Remove merge-patch encodings --- .../clients/secretmanagersvc/client.go | 26 +------ .../clients/secretmanagersvc/provider.go | 8 +-- .../providers/openchoreo/client.go | 67 +++---------------- 3 files changed, 17 insertions(+), 84 deletions(-) diff --git a/agent-manager-service/clients/secretmanagersvc/client.go b/agent-manager-service/clients/secretmanagersvc/client.go index 3b6392740..97f54327c 100644 --- a/agent-manager-service/clients/secretmanagersvc/client.go +++ b/agent-manager-service/clients/secretmanagersvc/client.go @@ -18,7 +18,6 @@ package secretmanagersvc import ( "context" - "encoding/json" "fmt" "strings" ) @@ -314,17 +313,11 @@ func NewSecretManagementClientWithConfig(cfg SecretManagementClientConfig) (Secr // Returns the secret reference identifier from the provider (the name of the // secret, which is also the name of its provider-managed SecretReference). func (c *secretManagementClient) CreateSecret(ctx context.Context, location SecretLocation, secretData map[string]string) (string, error) { - // Convert map to JSON bytes - data, err := json.Marshal(secretData) - if err != nil { - return "", fmt.Errorf("failed to marshal secret data: %w", err) - } - // Push the secret - provider derives name/labels from location metadata := &SecretMetadata{ ManagedBy: c.managedBy, } - secretRef, err := c.lowLevelClient.PushSecret(ctx, location, data, metadata) + secretRef, err := c.lowLevelClient.PushSecret(ctx, location, secretData, metadata) if err != nil { return "", fmt.Errorf("failed to upsert secret: %w", err) } @@ -336,25 +329,10 @@ func (c *secretManagementClient) CreateSecret(ctx context.Context, location Secr // Keys in data are added/updated, keys in keysToDelete are removed. // Returns the secret reference identifier (same semantics as CreateSecret). func (c *secretManagementClient) PatchSecret(ctx context.Context, location SecretLocation, secretData map[string]string, keysToDelete []string) (string, error) { - // Build patch data: include updates and set deleted keys to null - patchData := make(map[string]any) - for k, v := range secretData { - patchData[k] = v - } - for _, k := range keysToDelete { - patchData[k] = nil // null signals deletion in JSON Merge Patch - } - - // Convert to JSON bytes - data, err := json.Marshal(patchData) - if err != nil { - return "", fmt.Errorf("failed to marshal patch data: %w", err) - } - metadata := &SecretMetadata{ ManagedBy: c.managedBy, } - secretRef, err := c.lowLevelClient.PatchSecret(ctx, location, data, metadata) + secretRef, err := c.lowLevelClient.PatchSecret(ctx, location, secretData, keysToDelete, metadata) if err != nil { return "", fmt.Errorf("failed to patch secret: %w", err) } diff --git a/agent-manager-service/clients/secretmanagersvc/provider.go b/agent-manager-service/clients/secretmanagersvc/provider.go index a989b6218..441e1ffd3 100644 --- a/agent-manager-service/clients/secretmanagersvc/provider.go +++ b/agent-manager-service/clients/secretmanagersvc/provider.go @@ -53,13 +53,13 @@ type SecretsClient interface { // Returns the secret reference identifier (the secret name for OpenChoreo). // If the secret already exists, it will be fully replaced. // Metadata is used for ownership tracking (managed-by). - PushSecret(ctx context.Context, location SecretLocation, value []byte, metadata *SecretMetadata) (string, error) + PushSecret(ctx context.Context, location SecretLocation, data map[string]string, metadata *SecretMetadata) (string, error) - // PatchSecret merges data with an existing secret (server-side merge). - // Keys in value are added/updated, keys set to null are deleted, omitted keys are preserved. + // PatchSecret merges data with an existing secret. + // Keys in data are added/updated, keys in keysToDelete are removed, omitted keys are preserved. // Returns the secret reference identifier (the secret name for OpenChoreo). // Returns ErrSecretNotFound if the secret doesn't exist. - PatchSecret(ctx context.Context, location SecretLocation, value []byte, metadata *SecretMetadata) (string, error) + PatchSecret(ctx context.Context, location SecretLocation, data map[string]string, keysToDelete []string, metadata *SecretMetadata) (string, error) // DeleteSecret removes a secret from the backend. // Returns nil if the secret doesn't exist (idempotent). diff --git a/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/client.go b/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/client.go index 857be7b4e..002c3648a 100644 --- a/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/client.go +++ b/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/client.go @@ -18,9 +18,9 @@ package openchoreo import ( "context" - "encoding/json" "errors" "fmt" + "maps" "strings" occlient "github.com/wso2/agent-manager/agent-manager-service/clients/openchoreosvc/client" @@ -76,43 +76,14 @@ func userLabels(existing map[string]string, managedBy string) map[string]string return labels } -// decodeSecretData unmarshals a JSON object of key/value pairs. Non-string -// values are re-encoded as JSON strings; if the payload is not a JSON object, -// it is stored under a single "value" key. -func decodeSecretData(value []byte) (map[string]string, error) { - var raw map[string]any - if err := json.Unmarshal(value, &raw); err != nil { - return map[string]string{"value": string(value)}, nil - } - data := make(map[string]string, len(raw)) - for k, v := range raw { - switch s := v.(type) { - case string: - data[k] = s - default: - encoded, err := json.Marshal(v) - if err != nil { - return nil, fmt.Errorf("failed to encode secret value for key %q: %w", k, err) - } - data[k] = string(encoded) - } - } - return data, nil -} - // PushSecret writes a secret via the OpenChoreo API, replacing all existing data. // Returns the secret name, which is also the underlying SecretReference name. -func (c *Client) PushSecret(ctx context.Context, location secretmanagersvc.SecretLocation, value []byte, metadata *secretmanagersvc.SecretMetadata) (string, error) { +func (c *Client) PushSecret(ctx context.Context, location secretmanagersvc.SecretLocation, data map[string]string, metadata *secretmanagersvc.SecretMetadata) (string, error) { if err := validateMetadata(metadata); err != nil { return "", err } name := location.SecretRefName() - data, err := decodeSecretData(value) - if err != nil { - return "", err - } - existing, err := c.oc.GetSecret(ctx, location.OrgName, name) if err != nil && !errors.Is(err, utils.ErrNotFound) { return "", fmt.Errorf("failed to check secret existence: %w", err) @@ -155,10 +126,10 @@ func (c *Client) PushSecret(ctx context.Context, location secretmanagersvc.Secre return name, nil } -// PatchSecret merges data with an existing secret. Keys in value are -// added/updated, keys set to null are deleted, omitted keys are preserved. +// PatchSecret merges data with an existing secret. Keys in data are +// added/updated, keys in keysToDelete are removed, omitted keys are preserved. // Returns the secret name, which is also the underlying SecretReference name. -func (c *Client) PatchSecret(ctx context.Context, location secretmanagersvc.SecretLocation, value []byte, metadata *secretmanagersvc.SecretMetadata) (string, error) { +func (c *Client) PatchSecret(ctx context.Context, location secretmanagersvc.SecretLocation, data map[string]string, keysToDelete []string, metadata *secretmanagersvc.SecretMetadata) (string, error) { if err := validateMetadata(metadata); err != nil { return "", err } @@ -176,31 +147,15 @@ func (c *Client) PatchSecret(ctx context.Context, location secretmanagersvc.Secr return "", secretmanagersvc.ErrNotManaged } - var patch map[string]any - if err := json.Unmarshal(value, &patch); err != nil { - return "", fmt.Errorf("failed to unmarshal patch data: %w", err) - } - - // Merge the patch client-side: the OpenChoreo update replaces all data, - // so the JSON Merge Patch semantics are applied against the current state. - merged := make(map[string]string, len(existing.Data)+len(patch)) + // Merge client-side: the OpenChoreo update replaces all data, so the merge + // semantics are applied against the current state. + merged := make(map[string]string, len(existing.Data)+len(data)) for k, v := range existing.Data { merged[k] = string(v) } - for k, v := range patch { - if v == nil { - delete(merged, k) // null signals deletion in JSON Merge Patch - continue - } - if s, ok := v.(string); ok { - merged[k] = s - continue - } - encoded, err := json.Marshal(v) - if err != nil { - return "", fmt.Errorf("failed to encode secret value for key %q: %w", k, err) - } - merged[k] = string(encoded) + maps.Copy(merged, data) + for _, k := range keysToDelete { + delete(merged, k) } if _, err := c.oc.UpdateSecret(ctx, location.OrgName, name, occlient.UpdateSecretRequest{ From 48fdee2702049aadb73ce9524ed1bf86e6c4f911 Mon Sep 17 00:00:00 2001 From: hanzjk Date: Wed, 15 Jul 2026 23:25:37 +0530 Subject: [PATCH 4/6] Restore config.js to upstream state The runtime-generated console config was unintentionally reformatted in 0500f01b; restore it so the branch carries no changes to this file. Co-Authored-By: Claude Fable 5 --- console/apps/web-ui/public/config.js | 83 +++++++++++++++------------- 1 file changed, 46 insertions(+), 37 deletions(-) diff --git a/console/apps/web-ui/public/config.js b/console/apps/web-ui/public/config.js index 440c2e65a..c2ce8b37d 100644 --- a/console/apps/web-ui/public/config.js +++ b/console/apps/web-ui/public/config.js @@ -18,54 +18,63 @@ window.__RUNTIME_CONFIG__ = { authConfig: { - baseUrl: 'http://thunder.amp.localhost:8080', - clientId: 'amp-console-client', - organizationHandle: (''.trim() || 'default'), - signInUrl: 'http://thunder.amp.localhost:8080/gate', - afterSignInUrl: 'http://localhost:3000/login', - afterSignOutUrl: 'http://localhost:3000/login', - scopes: ('openid profile email amp:org:view amp:org:modify-settings amp:org:invite-member amp:org:remove-member amp:org:assign-role amp:org:manage-idp amp:org:manage-service-account amp:project:create amp:project:read amp:project:update amp:project:delete amp:environment:create amp:environment:read amp:environment:update amp:environment:delete amp:gateway:create amp:gateway:read amp:gateway:update amp:gateway:delete amp:gateway:token-manage amp:data-plane:read amp:deployment-pipeline:create amp:deployment-pipeline:read amp:deployment-pipeline:update amp:deployment-pipeline:delete amp:git-secret:create amp:git-secret:read amp:git-secret:delete amp:llm-provider-template:create amp:llm-provider-template:read amp:llm-provider-template:update amp:llm-provider-template:delete amp:llm-provider:create amp:llm-provider:read amp:llm-provider:update amp:llm-provider:delete amp:llm-provider:configure-guardrail amp:llm-provider:connect amp:llm-provider:deploy amp:llm-provider:api-key-manage amp:mcp-server:create amp:mcp-server:read amp:mcp-server:update amp:mcp-server:delete amp:mcp-server:configure-guardrail amp:mcp-server:connect amp:mcp-server:api-key-manage amp:llm-proxy:create amp:llm-proxy:read amp:llm-proxy:update amp:llm-proxy:delete amp:llm-proxy:deploy amp:llm-proxy:api-key-manage amp:evaluator:create amp:evaluator:read amp:evaluator:update amp:evaluator:delete amp:agent:create amp:agent:read amp:agent:update amp:agent:delete amp:agent:build amp:agent:deploy-non-production amp:agent:deploy-production amp:agent:promote amp:agent:rollback amp:agent:suspend amp:agent:token-manage amp:agent:api-key-manage amp:monitor:create amp:monitor:read amp:monitor:update amp:monitor:delete amp:monitor:execute amp:monitor:score-read amp:monitor:score-publish amp:observability:org-dashboard amp:observability:project-dashboard amp:observability:guardrail-metric amp:observability:infra-metric amp:role:create amp:role:read amp:role:update amp:role:delete amp:group:create amp:group:read amp:group:update amp:group:delete amp:catalog:read amp:repository:read amp:agent-kind:read amp:agent-kind:create amp:agent-kind:update amp:agent-kind:delete amp:profile:read amp:profile:update-attributes amp:scope:create amp:scope:read amp:scope:update amp:scope:delete amp:agent-identity:read amp:agent-identity:create amp:agent-identity:update amp:agent-identity:delete'.trim() || 'openid profile email').split(/\s+/).filter(Boolean), - platform: 'AsgardeoV2', + baseUrl: "http://thunder.amp.localhost:8080", + clientId: "amp-console-client", + organizationHandle: "".trim() || "default", + signInUrl: "http://thunder.amp.localhost:8080/gate", + afterSignInUrl: "http://localhost:3000/login", + afterSignOutUrl: "http://localhost:3000/login", + scopes: ( + "openid profile email amp:org:view amp:org:modify-settings amp:org:invite-member amp:org:remove-member amp:org:assign-role amp:org:manage-idp amp:org:manage-service-account amp:project:create amp:project:read amp:project:update amp:project:delete amp:environment:create amp:environment:read amp:environment:update amp:environment:delete amp:gateway:create amp:gateway:read amp:gateway:update amp:gateway:delete amp:gateway:token-manage amp:data-plane:read amp:deployment-pipeline:create amp:deployment-pipeline:read amp:deployment-pipeline:update amp:deployment-pipeline:delete amp:git-secret:create amp:git-secret:read amp:git-secret:delete amp:llm-provider-template:create amp:llm-provider-template:read amp:llm-provider-template:update amp:llm-provider-template:delete amp:llm-provider:create amp:llm-provider:read amp:llm-provider:update amp:llm-provider:delete amp:llm-provider:configure-guardrail amp:llm-provider:connect amp:llm-provider:deploy amp:llm-provider:api-key-manage amp:mcp-server:create amp:mcp-server:read amp:mcp-server:update amp:mcp-server:delete amp:mcp-server:configure-guardrail amp:mcp-server:connect amp:mcp-server:api-key-manage amp:llm-proxy:create amp:llm-proxy:read amp:llm-proxy:update amp:llm-proxy:delete amp:llm-proxy:deploy amp:llm-proxy:api-key-manage amp:evaluator:create amp:evaluator:read amp:evaluator:update amp:evaluator:delete amp:agent:create amp:agent:read amp:agent:update amp:agent:delete amp:agent:build amp:agent:deploy-non-production amp:agent:deploy-production amp:agent:promote amp:agent:rollback amp:agent:suspend amp:agent:token-manage amp:agent:api-key-manage amp:monitor:create amp:monitor:read amp:monitor:update amp:monitor:delete amp:monitor:execute amp:monitor:score-read amp:monitor:score-publish amp:observability:org-dashboard amp:observability:project-dashboard amp:observability:guardrail-metric amp:observability:infra-metric amp:role:create amp:role:read amp:role:update amp:role:delete amp:group:create amp:group:read amp:group:update amp:group:delete amp:catalog:read amp:repository:read amp:agent-kind:read amp:agent-kind:create amp:agent-kind:update amp:agent-kind:delete amp:profile:read amp:profile:update-attributes amp:scope:create amp:scope:read amp:scope:update amp:scope:delete amp:agent-identity:read amp:agent-identity:create amp:agent-identity:update amp:agent-identity:delete".trim() || + "openid profile email" + ) + .split(/\s+/) + .filter(Boolean), + platform: "AsgardeoV2", tokenValidation: { idToken: { - validate: '' === 'true', - clockTolerance: Number('') || 300, + validate: "" === "true", + clockTolerance: Number("") || 300, }, }, - storage: 'localStorage', + storage: "localStorage", }, - disableAuth: 'false' === 'true', - rbacEnabled: 'true' === 'true', - apiBaseUrl: 'http://localhost:9000', - obsApiBaseUrl: 'http://localhost:9098', - gatewayControlPlaneUrl: 'http://localhost:9243', - gatewayVersion: 'v0.11.0', - ampVersion: 'v0.16.0', - instrumentationUrl: 'http://default-default.gateway.localhost:19080/otel', - agentManagerInternalBaseUrl: 'http://host.docker.internal:9000', - agentManagerInternalCpHost: 'host.docker.internal:9243', - guardrailsCatalogUrl: 'https://db720294-98fd-40f4-85a1-cc6a3b65bc9a-prod.e1-us-east-azure.choreoapis.dev/api-platform/policy-hub-api/policy-hub-public/v1.0/policies?categories=Guardrails,AI&limit=100', - guardrailsDefinitionBaseUrl: 'https://db720294-98fd-40f4-85a1-cc6a3b65bc9a-prod.e1-us-east-azure.choreoapis.dev/api-platform/policy-hub-api/policy-hub-public/v1.0/policies', + disableAuth: "false" === "true", + rbacEnabled: "true" === "true", + apiBaseUrl: "http://localhost:9000", + obsApiBaseUrl: "http://localhost:9098", + gatewayControlPlaneUrl: "http://localhost:9243", + gatewayVersion: "v0.11.0", + ampVersion: "v0.17.0", + instrumentationUrl: "http://localhost:22893/otel", + agentManagerInternalBaseUrl: "http://host.docker.internal:9000", + agentManagerInternalCpHost: "host.docker.internal:9243", + guardrailsCatalogUrl: + "https://db720294-98fd-40f4-85a1-cc6a3b65bc9a-prod.e1-us-east-azure.choreoapis.dev/api-platform/policy-hub-api/policy-hub-public/v1.0/policies?categories=Guardrails,AI&limit=100", + guardrailsDefinitionBaseUrl: + "https://db720294-98fd-40f4-85a1-cc6a3b65bc9a-prod.e1-us-east-azure.choreoapis.dev/api-platform/policy-hub-api/policy-hub-public/v1.0/policies", guardrailCapabilities: { - awsBedrock: '' === 'true', - azureContentSafety: '' === 'true', - graniteGuardian: '' === 'true', - nemoGuard: '' === 'true', - semanticGuardrails: '' === 'true', + awsBedrock: "" === "true", + azureContentSafety: "" === "true", + graniteGuardian: "" === "true", + nemoGuard: "" === "true", + semanticGuardrails: "" === "true", }, featureFlags: { - enablePrivateRepoSupport: 'true' === 'true', - enableIdentityProviderManagedMode: '' === 'true', - enableProfileManagement: 'true' === 'true', - enableUserManagement: 'true' === 'true', + enablePrivateRepoSupport: "true" === "true", + enableIdentityProviderManagedMode: "" === "true", + enableProfileManagement: "true" === "true", + enableUserManagement: "true" === "true", }, - docsUrl: 'https://wso2.github.io/agent-manager/docs/next', + docsUrl: "https://wso2.github.io/agent-manager/docs/next", footerLinks: { - privacyPolicyUrl: 'https://wso2.com/agent-platform/agent-manager/', - termsOfUseUrl: 'https://wso2.com/agent-platform/agent-manager/', + privacyPolicyUrl: "https://wso2.com/agent-platform/agent-manager/", + termsOfUseUrl: "https://wso2.com/agent-platform/agent-manager/", }, instrumentationDocLinks: { - manualInstrumentation: '/components/amp-instrumentation/#manual-instrumentation', - versionMapping: '/components/amp-instrumentation/#amp-instrumentation-version-mapping', + manualInstrumentation: + "/components/amp-instrumentation/#manual-instrumentation", + versionMapping: + "/components/amp-instrumentation/#amp-instrumentation-version-mapping", }, }; From ae1ec2948755aefde62e0eddcde112a74d530576 Mon Sep 17 00:00:00 2001 From: hanzjk Date: Thu, 16 Jul 2026 20:16:14 +0530 Subject: [PATCH 5/6] FIx secret reference sharing across environments --- .../services/agent_manager.go | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/agent-manager-service/services/agent_manager.go b/agent-manager-service/services/agent_manager.go index 307067e2b..1b3c27f08 100644 --- a/agent-manager-service/services/agent_manager.go +++ b/agent-manager-service/services/agent_manager.go @@ -3344,6 +3344,15 @@ func (s *agentManagerService) PromoteAgent(ctx context.Context, ouID string, pro } } fileOverrides = srcFileVars + + // The cloned overrides reference the SOURCE environment's secret by name. + // Give the target environment its own copy and re-point the references, + // so a later secret edit in one environment cannot break the other. + envOverrides, fileOverrides, err = s.cloneEnvSecretForPromotion(ctx, ouID, projectName, agentName, req.SourceEnvironment, req.TargetEnvironment, envOverrides, fileOverrides) + if err != nil { + s.logger.Error("Failed to clone env secret for promotion", "agentName", agentName, "error", err) + return fmt.Errorf("failed to clone environment secret for promotion: %w", err) + } } else { // User-driven overrides: only what the request carries (plus target system vars // appended below). Source env's user-managed env/files are NOT inherited. @@ -3810,6 +3819,86 @@ func (s *agentManagerService) getSystemManagedEnvVars( return result, keySet, nil } +// cloneEnvSecretForPromotion gives the target environment its own copy of the +// source environment's agent secret. Workload overrides cloned from the source +// environment reference the source secret by name; without a copy, both +// environments would share one secret and a later secret edit in either +// environment could break the other's rendering. Env var and file mount +// references to the source secret are re-pointed at the target copy. +// No-op when the cloned overrides don't reference the source env secret. +func (s *agentManagerService) cloneEnvSecretForPromotion( + ctx context.Context, + ouID, projectName, agentName, sourceEnv, targetEnv string, + envVars []client.EnvVar, + fileVars []client.FileVar, +) ([]client.EnvVar, []client.FileVar, error) { + srcLocation := secretmanagersvc.SecretLocation{ + OrgName: ouID, + ProjectName: projectName, + EnvironmentName: sourceEnv, + EntityName: agentName, + } + srcSecretName := srcLocation.SecretRefName() + + refersToSrc := func(vf *client.EnvVarValueFrom) bool { + return vf != nil && vf.SecretKeyRef != nil && vf.SecretKeyRef.Name == srcSecretName + } + referenced := false + for _, ev := range envVars { + if refersToSrc(ev.ValueFrom) { + referenced = true + break + } + } + if !referenced { + for _, fv := range fileVars { + if refersToSrc(fv.ValueFrom) { + referenced = true + break + } + } + } + if !referenced { + return envVars, fileVars, nil + } + + if s.secretMgmtClient == nil { + return nil, nil, fmt.Errorf("secret management is not initialized; cannot clone secret for promotion") + } + + srcSecret, err := s.ocClient.GetSecret(ctx, ouID, srcSecretName) + if err != nil { + return nil, nil, fmt.Errorf("failed to read source environment secret %q: %w", srcSecretName, err) + } + data := make(map[string]string, len(srcSecret.Data)) + for k, v := range srcSecret.Data { + data[k] = string(v) + } + + tgtLocation := srcLocation + tgtLocation.EnvironmentName = targetEnv + tgtSecretName, err := s.secretMgmtClient.CreateSecret(ctx, tgtLocation, data) + if err != nil { + return nil, nil, fmt.Errorf("failed to create target environment secret: %w", err) + } + + for i := range envVars { + if refersToSrc(envVars[i].ValueFrom) { + envVars[i].ValueFrom.SecretKeyRef.Name = tgtSecretName + } + } + for i := range fileVars { + if refersToSrc(fileVars[i].ValueFrom) { + fileVars[i].ValueFrom.SecretKeyRef.Name = tgtSecretName + } + } + + s.logger.Info("Cloned environment secret for promotion", + "agentName", agentName, "sourceSecret", srcSecretName, "targetSecret", tgtSecretName, + "sourceEnv", sourceEnv, "targetEnv", targetEnv) + return envVars, fileVars, nil +} + // processEnvVars handles environment variables, separating secrets from plain values. // This function handles configuration updates including: // - Adding new secret keys to KV and SecretReference From ffa8d81bac7c1b33769d9ceccfdcc6ebcea7d0dd Mon Sep 17 00:00:00 2001 From: hanzjk Date: Thu, 16 Jul 2026 23:59:30 +0530 Subject: [PATCH 6/6] Add missing function implementation --- .../clientmocks/secret_mgmt_client_fake.go | 58 +++++++++++++++++-- .../clients/secretmanagersvc/client.go | 26 +++++++++ .../clients/secretmanagersvc/provider.go | 5 ++ .../providers/openchoreo/client.go | 25 ++++++++ agent-manager-service/config/config.go | 3 + agent-manager-service/config/config_loader.go | 1 + 6 files changed, 114 insertions(+), 4 deletions(-) diff --git a/agent-manager-service/clients/clientmocks/secret_mgmt_client_fake.go b/agent-manager-service/clients/clientmocks/secret_mgmt_client_fake.go index f7e0b82bd..7a5d22b44 100644 --- a/agent-manager-service/clients/clientmocks/secret_mgmt_client_fake.go +++ b/agent-manager-service/clients/clientmocks/secret_mgmt_client_fake.go @@ -29,6 +29,9 @@ var _ secretmanagersvc.SecretManagementClient = &SecretManagementClientMock{} // GetSecretFunc: func(ctx context.Context, kvPath string) (*secretmanagersvc.SecretInfo, error) { // panic("mock out the GetSecret method") // }, +// GetSecretWithValueFunc: func(ctx context.Context, kvPath string) (map[string]string, error) { +// panic("mock out the GetSecretWithValue method") +// }, // PatchSecretFunc: func(ctx context.Context, location secretmanagersvc.SecretLocation, data map[string]string, keysToDelete []string) (string, error) { // panic("mock out the PatchSecret method") // }, @@ -48,6 +51,9 @@ type SecretManagementClientMock struct { // GetSecretFunc mocks the GetSecret method. GetSecretFunc func(ctx context.Context, kvPath string) (*secretmanagersvc.SecretInfo, error) + // GetSecretWithValueFunc mocks the GetSecretWithValue method. + GetSecretWithValueFunc func(ctx context.Context, kvPath string) (map[string]string, error) + // PatchSecretFunc mocks the PatchSecret method. PatchSecretFunc func(ctx context.Context, location secretmanagersvc.SecretLocation, data map[string]string, keysToDelete []string) (string, error) @@ -78,6 +84,13 @@ type SecretManagementClientMock struct { // KvPath is the kvPath argument value. KvPath string } + // GetSecretWithValue holds details about calls to the GetSecretWithValue method. + GetSecretWithValue []struct { + // Ctx is the ctx argument value. + Ctx context.Context + // KvPath is the kvPath argument value. + KvPath string + } // PatchSecret holds details about calls to the PatchSecret method. PatchSecret []struct { // Ctx is the ctx argument value. @@ -90,10 +103,11 @@ type SecretManagementClientMock struct { KeysToDelete []string } } - lockCreateSecret sync.RWMutex - lockDeleteSecret sync.RWMutex - lockGetSecret sync.RWMutex - lockPatchSecret sync.RWMutex + lockCreateSecret sync.RWMutex + lockDeleteSecret sync.RWMutex + lockGetSecret sync.RWMutex + lockGetSecretWithValue sync.RWMutex + lockPatchSecret sync.RWMutex } // CreateSecret calls CreateSecretFunc. @@ -212,6 +226,42 @@ func (mock *SecretManagementClientMock) GetSecretCalls() []struct { return calls } +// GetSecretWithValue calls GetSecretWithValueFunc. +func (mock *SecretManagementClientMock) GetSecretWithValue(ctx context.Context, kvPath string) (map[string]string, error) { + if mock.GetSecretWithValueFunc == nil { + panic("SecretManagementClientMock.GetSecretWithValueFunc: method is nil but SecretManagementClient.GetSecretWithValue was just called") + } + callInfo := struct { + Ctx context.Context + KvPath string + }{ + Ctx: ctx, + KvPath: kvPath, + } + mock.lockGetSecretWithValue.Lock() + mock.calls.GetSecretWithValue = append(mock.calls.GetSecretWithValue, callInfo) + mock.lockGetSecretWithValue.Unlock() + return mock.GetSecretWithValueFunc(ctx, kvPath) +} + +// GetSecretWithValueCalls gets all the calls that were made to GetSecretWithValue. +// Check the length with: +// +// len(mockedSecretManagementClient.GetSecretWithValueCalls()) +func (mock *SecretManagementClientMock) GetSecretWithValueCalls() []struct { + Ctx context.Context + KvPath string +} { + var calls []struct { + Ctx context.Context + KvPath string + } + mock.lockGetSecretWithValue.RLock() + calls = mock.calls.GetSecretWithValue + mock.lockGetSecretWithValue.RUnlock() + return calls +} + // PatchSecret calls PatchSecretFunc. func (mock *SecretManagementClientMock) PatchSecret(ctx context.Context, location secretmanagersvc.SecretLocation, data map[string]string, keysToDelete []string) (string, error) { if mock.PatchSecretFunc == nil { diff --git a/agent-manager-service/clients/secretmanagersvc/client.go b/agent-manager-service/clients/secretmanagersvc/client.go index 448164d13..882317686 100644 --- a/agent-manager-service/clients/secretmanagersvc/client.go +++ b/agent-manager-service/clients/secretmanagersvc/client.go @@ -18,6 +18,7 @@ package secretmanagersvc import ( "context" + "encoding/json" "fmt" "strings" ) @@ -269,6 +270,11 @@ type SecretManagementClient interface { // GetSecret retrieves secret metadata without values. // Returns SecretInfo containing ID, keys list, and labels. GetSecret(ctx context.Context, kvPath string) (*SecretInfo, error) + + // GetSecretWithValue retrieves a secret by its full KV path including actual values. + // Returns the secret data as a key-value map. + // Returns ErrNotSupported if the provider doesn't support value retrieval. + GetSecretWithValue(ctx context.Context, kvPath string) (map[string]string, error) } // secretManagementClient implements SecretManagementClient using the low-level SecretsClient. @@ -372,3 +378,23 @@ func (c *secretManagementClient) GetSecret(ctx context.Context, kvPath string) ( } return info, nil } + +// GetSecretWithValue retrieves a secret by its KV path including actual values. +// Returns the secret data as a key-value map. +// Returns ErrNotSupported if the provider doesn't support value retrieval. +func (c *secretManagementClient) GetSecretWithValue(ctx context.Context, kvPath string) (map[string]string, error) { + location, err := ParseKVPath(kvPath) + if err != nil { + return nil, fmt.Errorf("failed to parse KV path %q: %w", kvPath, err) + } + raw, err := c.lowLevelClient.GetSecretWithValue(ctx, location) + if err != nil { + return nil, fmt.Errorf("failed to get secret at path %q: %w", kvPath, err) + } + + var data map[string]string + if err := json.Unmarshal(raw, &data); err != nil { + return nil, fmt.Errorf("failed to unmarshal secret data at path %q: %w", kvPath, err) + } + return data, nil +} diff --git a/agent-manager-service/clients/secretmanagersvc/provider.go b/agent-manager-service/clients/secretmanagersvc/provider.go index 441e1ffd3..8a8f140bc 100644 --- a/agent-manager-service/clients/secretmanagersvc/provider.go +++ b/agent-manager-service/clients/secretmanagersvc/provider.go @@ -71,6 +71,11 @@ type SecretsClient interface { // Returns ErrSecretNotFound if the secret doesn't exist. GetSecret(ctx context.Context, location SecretLocation) (*SecretInfo, error) + // GetSecretWithValue retrieves the actual secret values as raw JSON. + // Returns ErrSecretNotFound if the secret doesn't exist. + // Returns ErrNotSupported if the provider doesn't support value retrieval. + GetSecretWithValue(ctx context.Context, location SecretLocation) ([]byte, error) + // Close cleans up any resources held by the client. Close(ctx context.Context) error } diff --git a/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/client.go b/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/client.go index 002c3648a..184e42c68 100644 --- a/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/client.go +++ b/agent-manager-service/clients/secretmanagersvc/providers/openchoreo/client.go @@ -18,6 +18,7 @@ package openchoreo import ( "context" + "encoding/json" "errors" "fmt" "maps" @@ -224,6 +225,30 @@ func (c *Client) GetSecret(ctx context.Context, location secretmanagersvc.Secret }, nil } +// GetSecretWithValue retrieves the actual secret values as raw JSON. +func (c *Client) GetSecretWithValue(ctx context.Context, location secretmanagersvc.SecretLocation) ([]byte, error) { + name := location.SecretRefName() + secret, err := c.oc.GetSecret(ctx, location.OrgName, name) + if err != nil { + if errors.Is(err, utils.ErrNotFound) { + return nil, secretmanagersvc.ErrSecretNotFound + } + return nil, fmt.Errorf("failed to read secret: %w", err) + } + + data := make(map[string]string, len(secret.Data)) + for k, v := range secret.Data { + data[k] = string(v) + } + + raw, err := json.Marshal(data) + if err != nil { + return nil, fmt.Errorf("failed to marshal secret data: %w", err) + } + + return raw, nil +} + // Close cleans up resources. func (c *Client) Close(ctx context.Context) error { // The OpenChoreo client doesn't require explicit cleanup diff --git a/agent-manager-service/config/config.go b/agent-manager-service/config/config.go index 6ccfe2750..b44226b62 100644 --- a/agent-manager-service/config/config.go +++ b/agent-manager-service/config/config.go @@ -145,6 +145,9 @@ type SecretManagerConfig struct { TargetPlaneKind string // TargetPlaneName is the name of the plane hosting secret data TargetPlaneName string + // RefreshInterval is how often SecretReference CRs should refresh from the + // secret store (default: "1h") + RefreshInterval string } // OpenBaoConfig holds OpenBao KV store configuration. diff --git a/agent-manager-service/config/config_loader.go b/agent-manager-service/config/config_loader.go index 19b96bdaf..dda736b9f 100644 --- a/agent-manager-service/config/config_loader.go +++ b/agent-manager-service/config/config_loader.go @@ -208,6 +208,7 @@ func loadEnvs() { Provider: r.readOptionalString("SECRET_MANAGER_PROVIDER", "openchoreo"), TargetPlaneKind: r.readOptionalString("SECRET_MANAGER_TARGET_PLANE_KIND", "ClusterDataPlane"), TargetPlaneName: r.readOptionalString("SECRET_MANAGER_TARGET_PLANE_NAME", "default"), + RefreshInterval: r.readOptionalString("SECRET_MANAGER_REFRESH_INTERVAL", "1h"), } // OpenBao KV store configuration (data plane - for deployment secrets)