From 7fa797936eabf8519472929c13b2f862fa575adc Mon Sep 17 00:00:00 2001 From: Bianca Del Carretto Date: Wed, 11 Oct 2023 09:31:32 +0200 Subject: [PATCH] feat: Update client --- client/client.gen.go | 13890 ++++++++++++++++++++++++++++------------- docs/openapi.json | 2428 ++++++- 2 files changed, 11780 insertions(+), 4538 deletions(-) diff --git a/client/client.gen.go b/client/client.gen.go index 33b554c..0c90e54 100644 --- a/client/client.gen.go +++ b/client/client.gen.go @@ -18,6 +18,14 @@ import ( openapi_types "github.com/deepmap/oapi-codegen/pkg/types" ) +// Defines values for ApprovalRequestStatus. +const ( + Approved ApprovalRequestStatus = "approved" + Cancelled ApprovalRequestStatus = "cancelled" + Denied ApprovalRequestStatus = "denied" + Waiting ApprovalRequestStatus = "waiting" +) + // Defines values for ValueSetVersionResultOf. const ( AppValueCreate ValueSetVersionResultOf = "app_value_create" @@ -194,8 +202,53 @@ type ApplicationResponse struct { // Name The Human-friendly name for the Application. Name string `json:"name"` + + // OrgId The Organization id of this Application + OrgId string `json:"org_id"` +} + +// ApprovalRequest An approval object +type ApprovalRequest struct { + // AppId The id of the Application. + AppId *string `json:"app_id,omitempty"` + + // ApprovedAt The date and time when the request was approved or denied. + ApprovedAt *time.Time `json:"approved_at,omitempty"` + + // ApprovedBy The user who approved or denied the request. + ApprovedBy *string `json:"approved_by,omitempty"` + + // CreatedAt The date and time when the approval request was created. + CreatedAt *time.Time `json:"created_at,omitempty"` + + // EnvId The environment for which the approver needs to have deploy permission to approve the job. + EnvId *string `json:"env_id,omitempty"` + + // Id The id of the approval object. + Id *string `json:"id,omitempty"` + + // JobId The id of the Run's Job. + JobId *string `json:"job_id,omitempty"` + + // Message A human-readable message indicating the reason for approval. + Message *string `json:"message,omitempty"` + + // OrgId The id of the Organization. + OrgId *string `json:"org_id,omitempty"` + + // PipelineId The id of the Pipeline. + PipelineId *string `json:"pipeline_id,omitempty"` + + // RunId The id of the Pipeline's Run. + RunId *string `json:"run_id,omitempty"` + + // Status The current status of the approval request. + Status *ApprovalRequestStatus `json:"status,omitempty"` } +// ApprovalRequestStatus The current status of the approval request. +type ApprovalRequestStatus string + // ArtefactResponse Artefacts can be registered with Humanitec. Continuous Integration (CI) pipelines notify Humanitec when a new version of an Artefact becomes available. Humanitec tracks the Artefact along with metadata about how it was built. type ArtefactResponse struct { // CreatedAt The time when the Artefact was added to Humanitec. @@ -436,8 +489,8 @@ type CreateResourceDefinitionRequestRequest struct { // DriverAccount (Optional) Security account required by the driver. DriverAccount *string `json:"driver_account,omitempty"` - // DriverInputs ValuesSecrets stores data that should be passed around split by sensitivity. - DriverInputs *ValuesSecretsRequest `json:"driver_inputs,omitempty"` + // DriverInputs ValuesSecretsRefs stores data that should be passed around split by sensitivity. + DriverInputs *ValuesSecretsRefsRequest `json:"driver_inputs,omitempty"` // DriverType The driver to be used to create the resource. DriverType string `json:"driver_type"` @@ -463,9 +516,6 @@ type CreateSecretStorePayloadRequest struct { // Azurekv Azure Key Vault specification. Azurekv *AzureKVRequest `json:"azurekv,omitempty"` - // ConfigNamespace A Kubernetes namespace where the Secret Store configuration should be stored. - ConfigNamespace *string `json:"config_namespace,omitempty"` - // Gcpsm GCP Secret Manager specification. Gcpsm *GCPSMRequest `json:"gcpsm,omitempty"` @@ -803,6 +853,19 @@ type ErrorInfoResponse struct { Error string `json:"error"` } +// ErrorResponse A standard error response +type ErrorResponse struct { + // Details An optional payload of metadata associated with the error. + Details *map[string]interface{} `json:"details,omitempty"` + + // Error A short code representing the class of error. This code can be used for tracking and observability or to + // find appropriate troubleshooting documentation. + Error string `json:"error"` + + // Message A human-readable explanation of the error. + Message string `json:"message"` +} + // EventBaseRequest Properties which identify an event . type EventBaseRequest struct { // Scope Event scope @@ -1118,8 +1181,8 @@ type PatchResourceDefinitionRequestRequest struct { // DriverAccount (Optional) Security account required by the driver. DriverAccount *string `json:"driver_account"` - // DriverInputs ValuesSecrets stores data that should be passed around split by sensitivity. - DriverInputs *ValuesSecretsRequest `json:"driver_inputs,omitempty"` + // DriverInputs ValuesSecretsRefs stores data that should be passed around split by sensitivity. + DriverInputs *ValuesSecretsRefsRequest `json:"driver_inputs,omitempty"` // Name (Optional) Resource display name Name *string `json:"name"` @@ -1128,6 +1191,63 @@ type PatchResourceDefinitionRequestRequest struct { Provision *map[string]ProvisionDependenciesRequest `json:"provision,omitempty"` } +// PipelineResponse An object containing the details of a Pipeline. +type PipelineResponse struct { + // AppId The id of the Application containing this Pipeline. + AppId string `json:"app_id"` + + // CreatedAt The date and time when the Pipeline was created. + CreatedAt time.Time `json:"created_at"` + + // Etag The current entity tag value for this Pipeline. + Etag string `json:"etag"` + + // Id The id of the Pipeline. + Id string `json:"id"` + + // Metadata The map of key value pipeline additional information + Metadata *map[string]string `json:"metadata,omitempty"` + + // Name The name of the Pipeline. + Name string `json:"name"` + + // OrgId The id of the Organization containing this Pipeline. + OrgId string `json:"org_id"` + + // Status The current status of the Pipeline. + Status string `json:"status"` + + // TriggerTypes The list of trigger types in the current schema. + TriggerTypes []string `json:"trigger_types"` + + // Version The unique id of the current Pipeline Version. + Version string `json:"version"` +} + +// PipelineSchemaRequest A request containing the pipeline schema. +type PipelineSchemaRequest = map[string]interface{} + +// PipelineVersionResponse An object containing the details of a Pipeline. +type PipelineVersionResponse struct { + // AppId The id of the Application containing this Run. + AppId string `json:"app_id"` + + // CreatedAt The date and time when the specific pipeline version was created. + CreatedAt time.Time `json:"created_at"` + + // CreatedBy User id of the pipeline version. + CreatedBy string `json:"created_by"` + + // Id The unique id of the current Pipeline Version. + Id string `json:"id"` + + // OrgId The id of the Organization containing this Run. + OrgId string `json:"org_id"` + + // PipelineId The id of the Pipeline associated with the Run. + PipelineId string `json:"pipeline_id"` +} + // PlainDeltaResponse Similar to the delta response, except the id and metadata properties. // // **Basic Structure** @@ -1343,8 +1463,8 @@ type ResourceDefinitionResponse struct { // DriverAccount (Optional) Security account required by the driver. DriverAccount *string `json:"driver_account,omitempty"` - // DriverInputs ValuesSecrets stores data that should be passed around split by sensitivity. - DriverInputs *ValuesSecretsResponse `json:"driver_inputs,omitempty"` + // DriverInputs ValuesSecretsRefs stores data that should be passed around split by sensitivity. + DriverInputs *ValuesSecretsRefsResponse `json:"driver_inputs,omitempty"` // DriverType The driver to be used to create the resource. DriverType *string `json:"driver_type,omitempty"` @@ -1407,22 +1527,222 @@ type RoleRequest struct { Role *string `json:"role,omitempty"` } +// RunCreateRequest The parameters for creating a new Run for the Pipeline. +type RunCreateRequest struct { + // Inputs The inputs provided for this Run. + Inputs *map[string]interface{} `json:"inputs,omitempty"` +} + +// RunJobListResponse Details of a Job within the Run. +type RunJobListResponse struct { + // AppId The id of the Application containing this Job. + AppId *string `json:"app_id,omitempty"` + + // CancellationRequestedAt The date and time when cancellation of this Job was requested. + CancellationRequestedAt *time.Time `json:"cancellation_requested_at,omitempty"` + + // CompletedAt The date and time when this Job entered a successful, failed, or cancelled status. + CompletedAt *time.Time `json:"completed_at,omitempty"` + + // CreatedAt The date and time when this Job was first created within the Run. + CreatedAt *time.Time `json:"created_at,omitempty"` + + // Etag The current entity tag value for this Job. + Etag *string `json:"etag,omitempty"` + + // Id The id of the Job within the Run. + Id *string `json:"id,omitempty"` + + // OrgId The id of the Organization containing this Job. + OrgId *string `json:"org_id,omitempty"` + + // PipelineId The id of the Pipeline. + PipelineId *string `json:"pipeline_id,omitempty"` + + // PipelineVersion The id of the Pipeline Version associated with the Run. + PipelineVersion *string `json:"pipeline_version,omitempty"` + + // RunId The id of the Run containing this Job. + RunId *string `json:"run_id,omitempty"` + + // Status The current status of this Job. + Status *string `json:"status,omitempty"` + + // StatusMessage A human-readable message indicating the reason for the status. + StatusMessage *string `json:"status_message,omitempty"` + + // TimeoutSeconds The timeout for this Job. + TimeoutSeconds *int `json:"timeout_seconds,omitempty"` + + // WaitingFor An event on which job is waiting + WaitingFor *string `json:"waiting_for,omitempty"` +} + +// RunJobResponse defines model for RunJobResponse. +type RunJobResponse struct { + // AppId The id of the Application containing this Job. + AppId *string `json:"app_id,omitempty"` + + // CancellationRequestedAt The date and time when cancellation of this Job was requested. + CancellationRequestedAt *time.Time `json:"cancellation_requested_at,omitempty"` + + // CompletedAt The date and time when this Job entered a successful, failed, or cancelled status. + CompletedAt *time.Time `json:"completed_at,omitempty"` + + // CreatedAt The date and time when this Job was first created within the Run. + CreatedAt *time.Time `json:"created_at,omitempty"` + + // Etag The current entity tag value for this Job. + Etag *string `json:"etag,omitempty"` + + // Id The id of the Job within the Run. + Id *string `json:"id,omitempty"` + + // OrgId The id of the Organization containing this Job. + OrgId *string `json:"org_id,omitempty"` + + // PipelineId The id of the Pipeline. + PipelineId *string `json:"pipeline_id,omitempty"` + + // PipelineVersion The id of the Pipeline Version associated with the Run. + PipelineVersion *string `json:"pipeline_version,omitempty"` + + // RunId The id of the Run containing this Job. + RunId *string `json:"run_id,omitempty"` + + // Status The current status of this Job. + Status *string `json:"status,omitempty"` + + // StatusMessage A human-readable message indicating the reason for the status. + StatusMessage *string `json:"status_message,omitempty"` + + // Steps The collection of Steps that completed along with the current Step being executed. + Steps *[]RunJobStep `json:"steps,omitempty"` + + // TimeoutSeconds The timeout for this Job. + TimeoutSeconds *int `json:"timeout_seconds,omitempty"` + + // WaitingFor An event on which job is waiting + WaitingFor *string `json:"waiting_for,omitempty"` +} + +// RunJobStep A Step within a Job. +type RunJobStep struct { + // CompletedAt The date and time when this Step entered a successful, failed, or cancelled status. + CompletedAt *time.Time `json:"completed_at,omitempty"` + + // CreatedAt The date and time when this Step was first created within the Job. + CreatedAt *time.Time `json:"created_at,omitempty"` + + // Index The index of the Step within the Pipeline Schema. + Index *int `json:"index,omitempty"` + + // Status The current status of this Step within the Job. + Status *string `json:"status,omitempty"` + + // StatusMessage A human-readable message indicating the reason for the status. + StatusMessage *string `json:"status_message,omitempty"` + + // TimeoutSeconds The timeout for this Job. + TimeoutSeconds *int `json:"timeout_seconds,omitempty"` +} + +// RunJobStepLog An item from the logs of a Step. +type RunJobStepLog struct { + // At The date and time when this message was emitted or captured. + At time.Time `json:"at"` + + // Level The log level of the message. + Level string `json:"level"` + + // Message The content of the message. + Message string `json:"message"` +} + +// RunResponse Details of a Run within the Pipeline. +type RunResponse struct { + // AppId The id of the Application containing this Run. + AppId *string `json:"app_id,omitempty"` + + // CancellationRequestedAt The date and time when cancellation of this Run was requested. + CancellationRequestedAt *time.Time `json:"cancellation_requested_at,omitempty"` + + // CompletedAt The date and time when this Run entered a successful, failed, or cancelled status. + CompletedAt *time.Time `json:"completed_at,omitempty"` + + // ConcurrencyGroup The optional concurrency group for this run within the application + ConcurrencyGroup *string `json:"concurrency_group,omitempty"` + + // CreatedAt The date and time when this Run was first created. + CreatedAt *time.Time `json:"created_at,omitempty"` + + // Etag The current entity tag value for this Run. + Etag *string `json:"etag,omitempty"` + + // ExecutingAt The date and time when this Run entered executing status. + ExecutingAt *time.Time `json:"executing_at,omitempty"` + + // Id The unique id of the Run. + Id *string `json:"id,omitempty"` + + // Inputs The inputs that were provided for this Run. + Inputs *map[string]interface{} `json:"inputs,omitempty"` + + // OrgId The id of the Organization containing this Run. + OrgId *string `json:"org_id,omitempty"` + + // PipelineId The id of the Pipeline associated with the Run. + PipelineId *string `json:"pipeline_id,omitempty"` + + // PipelineVersion The id of the Pipeline Version associated with the Run. + PipelineVersion *string `json:"pipeline_version,omitempty"` + + // RunAs The user id that the pipeline run is executing as when it calls Humanitec APIs. + RunAs *string `json:"run_as,omitempty"` + + // Status The current status of this Run. + Status *string `json:"status,omitempty"` + + // StatusMessage A human-readable message indicating the reason for the status. + StatusMessage *string `json:"status_message,omitempty"` + + // TimeoutSeconds The timeout for this Run. + TimeoutSeconds *int `json:"timeout_seconds,omitempty"` + + // WaitingFor Aggregated events on which run's jobs are waiting for + WaitingFor map[string]string `json:"waiting_for"` +} + // RuntimeInfoResponse RuntimeInfo object returned by the runtime endpoint. Represents a list post statuses grouped by modules and controllers (deployments and stateful sets). type RuntimeInfoResponse struct { Modules map[string]ModuleResponse `json:"modules"` Namespace string `json:"namespace"` } +// SecretReference SecretReference stores sensitive value in the organization primary store or a reference to a sensitive value stored in a store registered under the organization. +type SecretReference struct { + // Ref secret reference in the format of the target store. It can't be defined if `value` is defined. + Ref *string `json:"ref,omitempty"` + + // Store Secret Store id. This can't be `humanitec` (our internal Secret Store). It's mandatory if `ref` is defined and can't be used if `value` is defined. + Store *string `json:"store,omitempty"` + + // Value base64 encoded value to store in the secret store. It can't be defined if `ref` is defined. + Value *string `json:"value,omitempty"` + + // Version Optional, only valid if `ref` is defined. It's the version of the secret as defined in the target store. + Version *string `json:"version,omitempty"` +} + // SecretStoreResponse Secret Store represents external secret management system used by an organization to store secrets referenced in Humanitec. type SecretStoreResponse struct { // Awssm AWS Secret Manager specification. Awssm *AWSSMResponse `json:"awssm,omitempty"` // Azurekv Azure Key Vault specification. - Azurekv *AzureKVResponse `json:"azurekv,omitempty"` - ConfigNamespace string `json:"config_namespace"` - CreatedAt string `json:"created_at"` - CreatedBy string `json:"created_by"` + Azurekv *AzureKVResponse `json:"azurekv,omitempty"` + CreatedAt string `json:"created_at"` + CreatedBy string `json:"created_by"` // Gcpsm GCP Secret Manager specification. Gcpsm *GCPSMResponse `json:"gcpsm,omitempty"` @@ -1578,8 +1898,8 @@ type UpdateResourceDefinitionRequestRequest struct { // DriverAccount (Optional) Security account required by the driver. DriverAccount *string `json:"driver_account"` - // DriverInputs ValuesSecrets stores data that should be passed around split by sensitivity. - DriverInputs *ValuesSecretsRequest `json:"driver_inputs,omitempty"` + // DriverInputs ValuesSecretsRefs stores data that should be passed around split by sensitivity. + DriverInputs *ValuesSecretsRefsRequest `json:"driver_inputs,omitempty"` // Name The display name. Name string `json:"name"` @@ -1596,9 +1916,6 @@ type UpdateSecretStorePayloadRequest struct { // Azurekv Azure Key Vault specification. Azurekv *AzureKVRequest `json:"azurekv,omitempty"` - // ConfigNamespace A Kubernetes namespace where the Secret Store configuration should be stored. - ConfigNamespace *string `json:"config_namespace"` - // Gcpsm GCP Secret Manager specification. Gcpsm *GCPSMRequest `json:"gcpsm,omitempty"` @@ -1753,7 +2070,10 @@ type ValueCreatePayloadRequest struct { Description *string `json:"description"` IsSecret *bool `json:"is_secret,omitempty"` Key string `json:"key"` - Value string `json:"value"` + + // SecretRef SecretReference stores sensitive value in the organization primary store or a reference to a sensitive value stored in a store registered under the organization. + SecretRef *SecretReference `json:"secret_ref"` + Value *string `json:"value"` } // ValueEditPayloadRequest defines model for ValueEditPayloadRequest. @@ -1761,13 +2081,19 @@ type ValueEditPayloadRequest struct { Description *string `json:"description"` IsSecret *bool `json:"is_secret,omitempty"` Key *string `json:"key,omitempty"` - Value *string `json:"value"` + + // SecretRef SecretReference stores sensitive value in the organization primary store or a reference to a sensitive value stored in a store registered under the organization. + SecretRef *SecretReference `json:"secret_ref"` + Value *string `json:"value"` } // ValuePatchPayloadRequest defines model for ValuePatchPayloadRequest. type ValuePatchPayloadRequest struct { Description *string `json:"description"` - Value *string `json:"value"` + + // SecretRef SecretReference stores sensitive value in the organization primary store or a reference to a sensitive value stored in a store registered under the organization. + SecretRef *SecretReference `json:"secret_ref"` + Value *string `json:"value"` } // ValueResponse Shared Values can be used to manage variables and configuration that might vary between environments. They are also the way that secrets can be stored securely. @@ -1829,18 +2155,44 @@ type ValueSetVersionResultOf string // ValueSource Source of the value, "app" for app level, "env" for app env level. type ValueSource string -// ValuesSecretsRequest ValuesSecrets stores data that should be passed around split by sensitivity. -type ValuesSecretsRequest struct { - // Secrets Secrets section of the data set. Sensitive information is stored in the Vault and replaced with the Vault paths when sent outside. +// ValuesSecretsRefsRequest ValuesSecretsRefs stores data that should be passed around split by sensitivity. +type ValuesSecretsRefsRequest struct { + // SecretRefs Secrets section of the data set. They can hold sensitive information that will be stored in the primary organization secret store and replaced with the secret store paths when sent outside, or secret references stored in a defined secret store. Can't be used together with `secrets`. + // + // They can hold a nested structure but leaf objects need to be of type SecretReference, where: + // + // - `store` is a Secret Store id. It can't be `humanitec`. It's mandatory if `ref` is defined and can't be used in request payloads if `value` is defined. + // + // - `ref` is the secret key in the format of the target store. It can't be used in request payloads if `value` is defined. + // + // - `version` is the version of the secret as defined in the target store. It can be defined only if `ref` is defined. + // + // - `value` is the value to store in the organizations primary secret store. It can't be used in request payloads if `ref` is defined. + SecretRefs *map[string]interface{} `json:"secret_refs,omitempty"` + + // Secrets Secrets section of the data set. Sensitive information is stored in the primary organization secret store and replaced with the secret store paths when sent outside. Can't be used together with `secret_refs`. Secrets *map[string]interface{} `json:"secrets,omitempty"` // Values Values section of the data set. Passed around as-is. Values *map[string]interface{} `json:"values,omitempty"` } -// ValuesSecretsResponse ValuesSecrets stores data that should be passed around split by sensitivity. -type ValuesSecretsResponse struct { - // Secrets Secrets section of the data set. Sensitive information is stored in the Vault and replaced with the Vault paths when sent outside. +// ValuesSecretsRefsResponse ValuesSecretsRefs stores data that should be passed around split by sensitivity. +type ValuesSecretsRefsResponse struct { + // SecretRefs Secrets section of the data set. They can hold sensitive information that will be stored in the primary organization secret store and replaced with the secret store paths when sent outside, or secret references stored in a defined secret store. Can't be used together with `secrets`. + // + // They can hold a nested structure but leaf objects need to be of type SecretReference, where: + // + // - `store` is a Secret Store id. It can't be `humanitec`. It's mandatory if `ref` is defined and can't be used in request payloads if `value` is defined. + // + // - `ref` is the secret key in the format of the target store. It can't be used in request payloads if `value` is defined. + // + // - `version` is the version of the secret as defined in the target store. It can be defined only if `ref` is defined. + // + // - `value` is the value to store in the organizations primary secret store. It can't be used in request payloads if `ref` is defined. + SecretRefs *map[string]interface{} `json:"secret_refs,omitempty"` + + // Secrets Secrets section of the data set. Sensitive information is stored in the primary organization secret store and replaced with the secret store paths when sent outside. Can't be used together with `secret_refs`. Secrets *map[string]interface{} `json:"secrets,omitempty"` // Values Values section of the data set. Passed around as-is. @@ -1924,6 +2276,24 @@ type WebhookUpdateResponse struct { Url *string `json:"url"` } +// WorkloadProfileChartVersionResponse Each Workload Profile Chart has one or more Versions associated with it. +type WorkloadProfileChartVersionResponse struct { + // CreatedAt Creation date + CreatedAt time.Time `json:"created_at"` + + // CreatedBy User created the profile + CreatedBy string `json:"created_by"` + + // Id Workload Profile Chart Version ID + Id string `json:"id"` + + // OrgId Organization ID + OrgId string `json:"org_id"` + + // Version Version + Version string `json:"version"` +} + // WorkloadProfileRequest Workload Profiles provide the baseline configuration for Workloads in Applications in Humanitec. Developers can configure various features of a workload profile to suit their needs. Examples of features might be `schedules` used in Kubernetes CronJobs or `ingress` which might be used to expose Pods controlled by a Kubernetes Deployment. // // Workloads in Humanitec are implemented as Helm Charts which must implement a specific schema. @@ -2043,6 +2413,108 @@ type WorkloadProfileVersionSpecDefinitionRuntimeProperty struct { // WorkloadProfileVersionSpecDefinitionRuntimePropertyType defines model for WorkloadProfileVersionSpecDefinitionRuntimePropertyType. type WorkloadProfileVersionSpecDefinitionRuntimePropertyType string +// AppIdPathParam defines model for appIdPathParam. +type AppIdPathParam = string + +// ApprovalIdPathParam defines model for approvalIdPathParam. +type ApprovalIdPathParam = string + +// ByAppIdQueryParam defines model for byAppIdQueryParam. +type ByAppIdQueryParam = []string + +// ByApprovalStatusQueryParam defines model for byApprovalStatusQueryParam. +type ByApprovalStatusQueryParam = string + +// ByCompletedQueryParam defines model for byCompletedQueryParam. +type ByCompletedQueryParam = bool + +// ByCreatedAfterParam defines model for byCreatedAfterParam. +type ByCreatedAfterParam = time.Time + +// ByCreatedBeforeParam defines model for byCreatedBeforeParam. +type ByCreatedBeforeParam = time.Time + +// ByMetadata defines model for byMetadata. +type ByMetadata map[string]string + +// ByPipelineIdQueryParam defines model for byPipelineIdQueryParam. +type ByPipelineIdQueryParam = []string + +// ByRunIdQueryParam defines model for byRunIdQueryParam. +type ByRunIdQueryParam = []string + +// ByStatusQueryParam defines model for byStatusQueryParam. +type ByStatusQueryParam = []string + +// ByTriggerTypeQueryParam defines model for byTriggerTypeQueryParam. +type ByTriggerTypeQueryParam = string + +// ByVersionQueryParam defines model for byVersionQueryParam. +type ByVersionQueryParam = string + +// IdempotencyKey defines model for idempotencyKey. +type IdempotencyKey = string + +// IfMatchHeaderParam defines model for ifMatchHeaderParam. +type IfMatchHeaderParam = string + +// JobIdPathParam defines model for jobIdPathParam. +type JobIdPathParam = string + +// OrgIdPathParam defines model for orgIdPathParam. +type OrgIdPathParam = string + +// PageTokenQueryParam defines model for pageTokenQueryParam. +type PageTokenQueryParam = string + +// PerPageQueryParam defines model for perPageQueryParam. +type PerPageQueryParam = int + +// PipelineIdPathParam defines model for pipelineIdPathParam. +type PipelineIdPathParam = string + +// RunIdPathParam defines model for runIdPathParam. +type RunIdPathParam = string + +// StepIndexPathParam defines model for stepIndexPathParam. +type StepIndexPathParam = int + +// N400BadRequest HumanitecError represents a standard Humanitec Error +type N400BadRequest = HumanitecErrorResponse + +// N403Forbidden A standard error response +type N403Forbidden = ErrorResponse + +// N404NotFound HumanitecError represents a standard Humanitec Error +type N404NotFound = HumanitecErrorResponse + +// N409Conflict HumanitecError represents a standard Humanitec Error +type N409Conflict = HumanitecErrorResponse + +// N412PreconditionFailed A standard error response +type N412PreconditionFailed = ErrorResponse + +// N422UnprocessableContent A standard error response +type N422UnprocessableContent = ErrorResponse + +// ListApprovalRequestsParams defines parameters for ListApprovalRequests. +type ListApprovalRequestsParams struct { + // PerPage The maximum number of items to return in a page of results + PerPage *PerPageQueryParam `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page The page token to request from + Page *PageTokenQueryParam `form:"page,omitempty" json:"page,omitempty"` + + // Pipeline An optional Pipeline ID. + Pipeline *ByPipelineIdQueryParam `form:"pipeline,omitempty" json:"pipeline,omitempty"` + + // Run An optional Pipeline Run ID. + Run *ByRunIdQueryParam `form:"run,omitempty" json:"run,omitempty"` + + // Status Optional filter by status. + Status *ByApprovalStatusQueryParam `form:"status,omitempty" json:"status,omitempty"` +} + // GetOrgsOrgIdAppsAppIdDeltasParams defines parameters for GetOrgsOrgIdAppsAppIdDeltas. type GetOrgsOrgIdAppsAppIdDeltasParams struct { // Archived If true, return archived Deltas. @@ -2085,6 +2557,118 @@ type GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsParams struct { KeyChanged *string `form:"key_changed,omitempty" json:"key_changed,omitempty"` } +// ListPipelinesParams defines parameters for ListPipelines. +type ListPipelinesParams struct { + // PerPage The maximum number of items to return in a page of results + PerPage *PerPageQueryParam `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page The page token to request from + Page *PageTokenQueryParam `form:"page,omitempty" json:"page,omitempty"` + + // Trigger An optional filter by trigger type. + Trigger *ByTriggerTypeQueryParam `form:"trigger,omitempty" json:"trigger,omitempty"` + + // Metadata Optional filter by pipeline metadata + Metadata *ByMetadata `json:"metadata,omitempty"` +} + +// DeletePipelineParams defines parameters for DeletePipeline. +type DeletePipelineParams struct { + // IfMatch Indicate that the request should only succeed if there is an etag match + IfMatch *IfMatchHeaderParam `json:"If-Match,omitempty"` +} + +// GetPipelineParams defines parameters for GetPipeline. +type GetPipelineParams struct { + // Version An optional Pipeline Version ID. + Version *ByVersionQueryParam `form:"version,omitempty" json:"version,omitempty"` +} + +// UpdatePipelineParams defines parameters for UpdatePipeline. +type UpdatePipelineParams struct { + // IfMatch Indicate that the request should only succeed if there is an etag match + IfMatch *IfMatchHeaderParam `json:"If-Match,omitempty"` +} + +// ListPipelineRunsParams defines parameters for ListPipelineRuns. +type ListPipelineRunsParams struct { + // Status Optional filter by status. + Status *ByStatusQueryParam `form:"status,omitempty" json:"status,omitempty"` + + // Completed Optional filer by completed or not. + Completed *ByCompletedQueryParam `form:"completed,omitempty" json:"completed,omitempty"` + + // CreatedAfter Optional filter by creation after date time. + CreatedAfter *ByCreatedAfterParam `form:"created_after,omitempty" json:"created_after,omitempty"` + + // CreatedBefore Optional filter by creation before date time + CreatedBefore *ByCreatedBeforeParam `form:"created_before,omitempty" json:"created_before,omitempty"` + + // PerPage The maximum number of items to return in a page of results + PerPage *PerPageQueryParam `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page The page token to request from + Page *PageTokenQueryParam `form:"page,omitempty" json:"page,omitempty"` +} + +// CreatePipelineRunParams defines parameters for CreatePipelineRun. +type CreatePipelineRunParams struct { + // IdempotencyKey The HTTP Idempotency-Key + IdempotencyKey *IdempotencyKey `json:"Idempotency-Key,omitempty"` +} + +// DeleteRunParams defines parameters for DeleteRun. +type DeleteRunParams struct { + // IfMatch Indicate that the request should only succeed if there is an etag match + IfMatch *IfMatchHeaderParam `json:"If-Match,omitempty"` +} + +// CancelRunParams defines parameters for CancelRun. +type CancelRunParams struct { + // IfMatch Indicate that the request should only succeed if there is an etag match + IfMatch *IfMatchHeaderParam `json:"If-Match,omitempty"` +} + +// ListRunJobsParams defines parameters for ListRunJobs. +type ListRunJobsParams struct { + // Status Optional filter by status. + Status *ByStatusQueryParam `form:"status,omitempty" json:"status,omitempty"` + + // PerPage The maximum number of items to return in a page of results + PerPage *PerPageQueryParam `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page The page token to request from + Page *PageTokenQueryParam `form:"page,omitempty" json:"page,omitempty"` +} + +// ListRunJobStepLogsParams defines parameters for ListRunJobStepLogs. +type ListRunJobStepLogsParams struct { + // Page The page token to request from + Page *PageTokenQueryParam `form:"page,omitempty" json:"page,omitempty"` +} + +// RestartRunParams defines parameters for RestartRun. +type RestartRunParams struct { + // IdempotencyKey The HTTP Idempotency-Key + IdempotencyKey *IdempotencyKey `json:"Idempotency-Key,omitempty"` +} + +// GetPipelineSchemaParams defines parameters for GetPipelineSchema. +type GetPipelineSchemaParams struct { + // Version An optional Pipeline Version ID. + Version *ByVersionQueryParam `form:"version,omitempty" json:"version,omitempty"` + Accept *string `json:"Accept,omitempty"` +} + +// ListPipelineVersionsParams defines parameters for ListPipelineVersions. +type ListPipelineVersionsParams struct { + // PerPage The maximum number of items to return in a page of results + PerPage *PerPageQueryParam `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page The page token to request from + Page *PageTokenQueryParam `form:"page,omitempty" json:"page,omitempty"` +} + // GetOrgsOrgIdAppsAppIdRuntimeParams defines parameters for GetOrgsOrgIdAppsAppIdRuntime. type GetOrgsOrgIdAppsAppIdRuntimeParams struct { // Id Filter environments by ID (required). Up to 5 ids can be supplied per request. @@ -2153,22 +2737,67 @@ type GetOrgsOrgIdArtefactsArtefactIdVersionsParams struct { Limit *string `form:"limit,omitempty" json:"limit,omitempty"` } -// GetOrgsOrgIdResourcesDefsParams defines parameters for GetOrgsOrgIdResourcesDefs. -type GetOrgsOrgIdResourcesDefsParams struct { - // App (Optional) Filter Resource Definitions that may match a specific Application. - // - App *string `form:"app,omitempty" json:"app,omitempty"` +// ListPipelineRunsByOrgParams defines parameters for ListPipelineRunsByOrg. +type ListPipelineRunsByOrgParams struct { + // App An optional Application ID + App *ByAppIdQueryParam `form:"app,omitempty" json:"app,omitempty"` - // Env (Optional) Filter Resource Definitions that may match a specific Environment. - // - Env *string `form:"env,omitempty" json:"env,omitempty"` + // Pipeline An optional Pipeline ID. + Pipeline *ByPipelineIdQueryParam `form:"pipeline,omitempty" json:"pipeline,omitempty"` - // EnvType (Optional) Filter Resource Definitions that may match a specific Environment Type. - // - EnvType *string `form:"env_type,omitempty" json:"env_type,omitempty"` + // Status Optional filter by status. + Status *ByStatusQueryParam `form:"status,omitempty" json:"status,omitempty"` - // Res (Optional) Filter Resource Definitions that may match a specific Resource. - // + // Completed Optional filer by completed or not. + Completed *ByCompletedQueryParam `form:"completed,omitempty" json:"completed,omitempty"` + + // CreatedAfter Optional filter by creation after date time. + CreatedAfter *ByCreatedAfterParam `form:"created_after,omitempty" json:"created_after,omitempty"` + + // CreatedBefore Optional filter by creation before date time + CreatedBefore *ByCreatedBeforeParam `form:"created_before,omitempty" json:"created_before,omitempty"` + + // PerPage The maximum number of items to return in a page of results + PerPage *PerPageQueryParam `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page The page token to request from + Page *PageTokenQueryParam `form:"page,omitempty" json:"page,omitempty"` +} + +// ListPipelinesByOrgParams defines parameters for ListPipelinesByOrg. +type ListPipelinesByOrgParams struct { + // App An optional Application ID + App *ByAppIdQueryParam `form:"app,omitempty" json:"app,omitempty"` + + // PerPage The maximum number of items to return in a page of results + PerPage *PerPageQueryParam `form:"per_page,omitempty" json:"per_page,omitempty"` + + // Page The page token to request from + Page *PageTokenQueryParam `form:"page,omitempty" json:"page,omitempty"` + + // Trigger An optional filter by trigger type. + Trigger *ByTriggerTypeQueryParam `form:"trigger,omitempty" json:"trigger,omitempty"` + + // Metadata Optional filter by pipeline metadata + Metadata *ByMetadata `json:"metadata,omitempty"` +} + +// GetOrgsOrgIdResourcesDefsParams defines parameters for GetOrgsOrgIdResourcesDefs. +type GetOrgsOrgIdResourcesDefsParams struct { + // App (Optional) Filter Resource Definitions that may match a specific Application. + // + App *string `form:"app,omitempty" json:"app,omitempty"` + + // Env (Optional) Filter Resource Definitions that may match a specific Environment. + // + Env *string `form:"env,omitempty" json:"env,omitempty"` + + // EnvType (Optional) Filter Resource Definitions that may match a specific Environment Type. + // + EnvType *string `form:"env_type,omitempty" json:"env_type,omitempty"` + + // Res (Optional) Filter Resource Definitions that may match a specific Resource. + // Res *string `form:"res,omitempty" json:"res,omitempty"` // ResType (Optional) Filter Resource Definitions that may match a specific Resource Type. @@ -2194,6 +2823,11 @@ type DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdParams struct { Force *bool `form:"force,omitempty" json:"force,omitempty"` } +// PostWorkloadProfileChartVersionMultipartBody defines parameters for PostWorkloadProfileChartVersion. +type PostWorkloadProfileChartVersionMultipartBody struct { + File *openapi_types.File `json:"file,omitempty"` +} + // GetOrgsOrgIdWorkloadProfilesProfileQidVersionsParams defines parameters for GetOrgsOrgIdWorkloadProfilesProfileQidVersions. type GetOrgsOrgIdWorkloadProfilesProfileQidVersionsParams struct { // Version Optional query parameter, defines version constraint pattern (https://github.com/Masterminds/semver#checking-version-constraints). @@ -2275,6 +2909,9 @@ type PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody = ValuePatchPayloa // PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody defines body for PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey for application/json ContentType. type PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody = ValueEditPayloadRequest +// CreatePipelineRunJSONRequestBody defines body for CreatePipelineRun for application/json ContentType. +type CreatePipelineRunJSONRequestBody = RunCreateRequest + // PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody defines body for PostOrgsOrgIdAppsAppIdSetsSetId for application/json ContentType. type PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody = DeltaRequest @@ -2371,6 +3008,9 @@ type PostOrgsOrgIdUsersJSONRequestBody = NewServiceUserRequest // PatchOrgsOrgIdUsersUserIdJSONRequestBody defines body for PatchOrgsOrgIdUsersUserId for application/json ContentType. type PatchOrgsOrgIdUsersUserIdJSONRequestBody = RoleRequest +// PostWorkloadProfileChartVersionMultipartRequestBody defines body for PostWorkloadProfileChartVersion for multipart/form-data ContentType. +type PostWorkloadProfileChartVersionMultipartRequestBody PostWorkloadProfileChartVersionMultipartBody + // PostOrgsOrgIdWorkloadProfilesJSONRequestBody defines body for PostOrgsOrgIdWorkloadProfiles for application/json ContentType. type PostOrgsOrgIdWorkloadProfilesJSONRequestBody = WorkloadProfileRequest @@ -2701,6 +3341,9 @@ type ClientInterface interface { // GetOrgsOrgIdAppsAppId request GetOrgsOrgIdAppsAppId(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListApprovalRequests request + ListApprovalRequests(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListApprovalRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetOrgsOrgIdAppsAppIdDeltas request GetOrgsOrgIdAppsAppIdDeltas(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2861,6 +3504,65 @@ type ClientInterface interface { // DeleteOrgsOrgIdAppsAppIdJobs request DeleteOrgsOrgIdAppsAppIdJobs(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListPipelines request + ListPipelines(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelinesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreatePipeline request with any body + CreatePipelineWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeletePipeline request + DeletePipeline(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *DeletePipelineParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPipeline request + GetPipeline(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *GetPipelineParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdatePipeline request with any body + UpdatePipelineWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *UpdatePipelineParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListPipelineRuns request + ListPipelineRuns(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreatePipelineRun request with any body + CreatePipelineRunWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *CreatePipelineRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreatePipelineRun(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *CreatePipelineRunParams, body CreatePipelineRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteRun request + DeleteRun(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *DeleteRunParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetRun request + GetRun(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CancelRun request + CancelRun(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *CancelRunParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListRunJobs request + ListRunJobs(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *ListRunJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetRunJob request + GetRunJob(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetApprovalRequest request + GetApprovalRequest(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ApproveApprovalRequest request + ApproveApprovalRequest(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DenyApprovalRequest request + DenyApprovalRequest(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListRunJobStepLogs request + ListRunJobStepLogs(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, stepIndex StepIndexPathParam, params *ListRunJobStepLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RestartRun request + RestartRun(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *RestartRunParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPipelineSchema request + GetPipelineSchema(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *GetPipelineSchemaParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListPipelineVersions request + ListPipelineVersions(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetOrgsOrgIdAppsAppIdRuntime request GetOrgsOrgIdAppsAppIdRuntime(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdRuntimeParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -3041,6 +3743,15 @@ type ClientInterface interface { PostOrgsOrgIdInvitations(ctx context.Context, orgId string, body PostOrgsOrgIdInvitationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListPipelineRunsByOrg request + ListPipelineRunsByOrg(ctx context.Context, orgId OrgIdPathParam, params *ListPipelineRunsByOrgParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetLatestPipelineSchema request + GetLatestPipelineSchema(ctx context.Context, orgId OrgIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListPipelinesByOrg request + ListPipelinesByOrg(ctx context.Context, orgId OrgIdPathParam, params *ListPipelinesByOrgParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetOrgsOrgIdRegistries request GetOrgsOrgIdRegistries(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -3180,6 +3891,12 @@ type ClientInterface interface { PatchOrgsOrgIdUsersUserId(ctx context.Context, orgId string, userId string, body PatchOrgsOrgIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetWorkloadProfileChartVersions request + GetWorkloadProfileChartVersions(ctx context.Context, orgId OrgIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostWorkloadProfileChartVersion request with any body + PostWorkloadProfileChartVersionWithBody(ctx context.Context, orgId OrgIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetOrgsOrgIdWorkloadProfiles request GetOrgsOrgIdWorkloadProfiles(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -3350,6 +4067,18 @@ func (c *Client) GetOrgsOrgIdAppsAppId(ctx context.Context, orgId string, appId return c.Client.Do(req) } +func (c *Client) ListApprovalRequests(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListApprovalRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListApprovalRequestsRequest(c.Server, orgId, appId, 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) GetOrgsOrgIdAppsAppIdDeltas(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetOrgsOrgIdAppsAppIdDeltasRequest(c.Server, orgId, appId, params) if err != nil { @@ -4070,8 +4799,8 @@ func (c *Client) DeleteOrgsOrgIdAppsAppIdJobs(ctx context.Context, orgId string, return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdAppsAppIdRuntime(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdRuntimeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdAppsAppIdRuntimeRequest(c.Server, orgId, appId, params) +func (c *Client) ListPipelines(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelinesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPipelinesRequest(c.Server, orgId, appId, params) if err != nil { return nil, err } @@ -4082,8 +4811,8 @@ func (c *Client) GetOrgsOrgIdAppsAppIdRuntime(ctx context.Context, orgId string, return c.Client.Do(req) } -func (c *Client) GetSets(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSetsRequest(c.Server, orgId, appId) +func (c *Client) CreatePipelineWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreatePipelineRequestWithBody(c.Server, orgId, appId, contentType, body) if err != nil { return nil, err } @@ -4094,8 +4823,8 @@ func (c *Client) GetSets(ctx context.Context, orgId string, appId string, reqEdi return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdAppsAppIdSetsSetId(ctx context.Context, orgId string, appId string, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest(c.Server, orgId, appId, setId, params) +func (c *Client) DeletePipeline(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *DeletePipelineParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeletePipelineRequest(c.Server, orgId, appId, pipelineId, params) if err != nil { return nil, err } @@ -4106,8 +4835,8 @@ func (c *Client) GetOrgsOrgIdAppsAppIdSetsSetId(ctx context.Context, orgId strin return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdSetsSetIdWithBody(ctx context.Context, orgId string, appId string, setId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody(c.Server, orgId, appId, setId, contentType, body) +func (c *Client) GetPipeline(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *GetPipelineParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPipelineRequest(c.Server, orgId, appId, pipelineId, params) if err != nil { return nil, err } @@ -4118,8 +4847,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdSetsSetIdWithBody(ctx context.Context, or return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdSetsSetId(ctx context.Context, orgId string, appId string, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdSetsSetIdRequest(c.Server, orgId, appId, setId, body) +func (c *Client) UpdatePipelineWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *UpdatePipelineParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdatePipelineRequestWithBody(c.Server, orgId, appId, pipelineId, params, contentType, body) if err != nil { return nil, err } @@ -4130,8 +4859,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdSetsSetId(ctx context.Context, orgId stri return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId(ctx context.Context, orgId string, appId string, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest(c.Server, orgId, appId, setId, sourceSetId) +func (c *Client) ListPipelineRuns(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPipelineRunsRequest(c.Server, orgId, appId, pipelineId, params) if err != nil { return nil, err } @@ -4142,8 +4871,8 @@ func (c *Client) GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId(ctx context.Conte return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdAppsAppIdUsers(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdAppsAppIdUsersRequest(c.Server, orgId, appId) +func (c *Client) CreatePipelineRunWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *CreatePipelineRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreatePipelineRunRequestWithBody(c.Server, orgId, appId, pipelineId, params, contentType, body) if err != nil { return nil, err } @@ -4154,8 +4883,8 @@ func (c *Client) GetOrgsOrgIdAppsAppIdUsers(ctx context.Context, orgId string, a return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdUsersWithBody(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdUsersRequestWithBody(c.Server, orgId, appId, contentType, body) +func (c *Client) CreatePipelineRun(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *CreatePipelineRunParams, body CreatePipelineRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreatePipelineRunRequest(c.Server, orgId, appId, pipelineId, params, body) if err != nil { return nil, err } @@ -4166,8 +4895,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdUsersWithBody(ctx context.Context, orgId return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdUsers(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdUsersRequest(c.Server, orgId, appId, body) +func (c *Client) DeleteRun(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *DeleteRunParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteRunRequest(c.Server, orgId, appId, pipelineId, runId, params) if err != nil { return nil, err } @@ -4178,8 +4907,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdUsers(ctx context.Context, orgId string, return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdAppsAppIdUsersUserId(ctx context.Context, orgId string, appId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdAppsAppIdUsersUserIdRequest(c.Server, orgId, appId, userId) +func (c *Client) GetRun(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRunRequest(c.Server, orgId, appId, pipelineId, runId) if err != nil { return nil, err } @@ -4190,8 +4919,8 @@ func (c *Client) DeleteOrgsOrgIdAppsAppIdUsersUserId(ctx context.Context, orgId return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdAppsAppIdUsersUserId(ctx context.Context, orgId string, appId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdAppsAppIdUsersUserIdRequest(c.Server, orgId, appId, userId) +func (c *Client) CancelRun(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *CancelRunParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCancelRunRequest(c.Server, orgId, appId, pipelineId, runId, params) if err != nil { return nil, err } @@ -4202,8 +4931,8 @@ func (c *Client) GetOrgsOrgIdAppsAppIdUsersUserId(ctx context.Context, orgId str return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdAppsAppIdUsersUserIdWithBody(ctx context.Context, orgId string, appId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequestWithBody(c.Server, orgId, appId, userId, contentType, body) +func (c *Client) ListRunJobs(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *ListRunJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListRunJobsRequest(c.Server, orgId, appId, pipelineId, runId, params) if err != nil { return nil, err } @@ -4214,8 +4943,8 @@ func (c *Client) PatchOrgsOrgIdAppsAppIdUsersUserIdWithBody(ctx context.Context, return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdAppsAppIdUsersUserId(ctx context.Context, orgId string, appId string, userId string, body PatchOrgsOrgIdAppsAppIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequest(c.Server, orgId, appId, userId, body) +func (c *Client) GetRunJob(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRunJobRequest(c.Server, orgId, appId, pipelineId, runId, jobId) if err != nil { return nil, err } @@ -4226,8 +4955,8 @@ func (c *Client) PatchOrgsOrgIdAppsAppIdUsersUserId(ctx context.Context, orgId s return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdAppsAppIdValueSetVersions(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdValueSetVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdAppsAppIdValueSetVersionsRequest(c.Server, orgId, appId, params) +func (c *Client) GetApprovalRequest(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetApprovalRequestRequest(c.Server, orgId, appId, pipelineId, runId, jobId, approvalId) if err != nil { return nil, err } @@ -4238,8 +4967,8 @@ func (c *Client) GetOrgsOrgIdAppsAppIdValueSetVersions(ctx context.Context, orgI return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionId(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRequest(c.Server, orgId, appId, valueSetVersionId) +func (c *Client) ApproveApprovalRequest(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewApproveApprovalRequestRequest(c.Server, orgId, appId, pipelineId, runId, jobId, approvalId) if err != nil { return nil, err } @@ -4250,8 +4979,8 @@ func (c *Client) GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionId(ctx cont return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithBody(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequestWithBody(c.Server, orgId, appId, valueSetVersionId, key, contentType, body) +func (c *Client) DenyApprovalRequest(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDenyApprovalRequestRequest(c.Server, orgId, appId, pipelineId, runId, jobId, approvalId) if err != nil { return nil, err } @@ -4262,8 +4991,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKey return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKey(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequest(c.Server, orgId, appId, valueSetVersionId, key, body) +func (c *Client) ListRunJobStepLogs(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, stepIndex StepIndexPathParam, params *ListRunJobStepLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListRunJobStepLogsRequest(c.Server, orgId, appId, pipelineId, runId, jobId, stepIndex, params) if err != nil { return nil, err } @@ -4274,8 +5003,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKey return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithBody(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequestWithBody(c.Server, orgId, appId, valueSetVersionId, contentType, body) +func (c *Client) RestartRun(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *RestartRunParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRestartRunRequest(c.Server, orgId, appId, pipelineId, runId, params) if err != nil { return nil, err } @@ -4286,8 +5015,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreW return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestore(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequest(c.Server, orgId, appId, valueSetVersionId, body) +func (c *Client) GetPipelineSchema(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *GetPipelineSchemaParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPipelineSchemaRequest(c.Server, orgId, appId, pipelineId, params) if err != nil { return nil, err } @@ -4298,8 +5027,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestore( return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithBody(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequestWithBody(c.Server, orgId, appId, valueSetVersionId, key, contentType, body) +func (c *Client) ListPipelineVersions(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPipelineVersionsRequest(c.Server, orgId, appId, pipelineId, params) if err != nil { return nil, err } @@ -4310,8 +5039,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreK return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKey(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequest(c.Server, orgId, appId, valueSetVersionId, key, body) +func (c *Client) GetOrgsOrgIdAppsAppIdRuntime(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdRuntimeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdAppsAppIdRuntimeRequest(c.Server, orgId, appId, params) if err != nil { return nil, err } @@ -4322,8 +5051,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreK return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdAppsAppIdValues(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdAppsAppIdValuesRequest(c.Server, orgId, appId) +func (c *Client) GetSets(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSetsRequest(c.Server, orgId, appId) if err != nil { return nil, err } @@ -4334,8 +5063,8 @@ func (c *Client) DeleteOrgsOrgIdAppsAppIdValues(ctx context.Context, orgId strin return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdAppsAppIdValues(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdAppsAppIdValuesRequest(c.Server, orgId, appId) +func (c *Client) GetOrgsOrgIdAppsAppIdSetsSetId(ctx context.Context, orgId string, appId string, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest(c.Server, orgId, appId, setId, params) if err != nil { return nil, err } @@ -4346,8 +5075,8 @@ func (c *Client) GetOrgsOrgIdAppsAppIdValues(ctx context.Context, orgId string, return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdValuesWithBody(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdValuesRequestWithBody(c.Server, orgId, appId, contentType, body) +func (c *Client) PostOrgsOrgIdAppsAppIdSetsSetIdWithBody(ctx context.Context, orgId string, appId string, setId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody(c.Server, orgId, appId, setId, contentType, body) if err != nil { return nil, err } @@ -4358,8 +5087,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdValuesWithBody(ctx context.Context, orgId return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdValues(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdValuesRequest(c.Server, orgId, appId, body) +func (c *Client) PostOrgsOrgIdAppsAppIdSetsSetId(ctx context.Context, orgId string, appId string, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdSetsSetIdRequest(c.Server, orgId, appId, setId, body) if err != nil { return nil, err } @@ -4370,8 +5099,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdValues(ctx context.Context, orgId string, return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdAppsAppIdValuesKey(ctx context.Context, orgId string, appId string, key string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdAppsAppIdValuesKeyRequest(c.Server, orgId, appId, key) +func (c *Client) GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId(ctx context.Context, orgId string, appId string, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest(c.Server, orgId, appId, setId, sourceSetId) if err != nil { return nil, err } @@ -4382,8 +5111,8 @@ func (c *Client) DeleteOrgsOrgIdAppsAppIdValuesKey(ctx context.Context, orgId st return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdAppsAppIdValuesKeyWithBody(ctx context.Context, orgId string, appId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(c.Server, orgId, appId, key, contentType, body) +func (c *Client) GetOrgsOrgIdAppsAppIdUsers(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdAppsAppIdUsersRequest(c.Server, orgId, appId) if err != nil { return nil, err } @@ -4394,8 +5123,8 @@ func (c *Client) PatchOrgsOrgIdAppsAppIdValuesKeyWithBody(ctx context.Context, o return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdAppsAppIdValuesKey(ctx context.Context, orgId string, appId string, key string, body PatchOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdAppsAppIdValuesKeyRequest(c.Server, orgId, appId, key, body) +func (c *Client) PostOrgsOrgIdAppsAppIdUsersWithBody(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdUsersRequestWithBody(c.Server, orgId, appId, contentType, body) if err != nil { return nil, err } @@ -4406,8 +5135,8 @@ func (c *Client) PatchOrgsOrgIdAppsAppIdValuesKey(ctx context.Context, orgId str return c.Client.Do(req) } -func (c *Client) PutOrgsOrgIdAppsAppIdValuesKeyWithBody(ctx context.Context, orgId string, appId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(c.Server, orgId, appId, key, contentType, body) +func (c *Client) PostOrgsOrgIdAppsAppIdUsers(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdUsersRequest(c.Server, orgId, appId, body) if err != nil { return nil, err } @@ -4418,8 +5147,8 @@ func (c *Client) PutOrgsOrgIdAppsAppIdValuesKeyWithBody(ctx context.Context, org return c.Client.Do(req) } -func (c *Client) PutOrgsOrgIdAppsAppIdValuesKey(ctx context.Context, orgId string, appId string, key string, body PutOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutOrgsOrgIdAppsAppIdValuesKeyRequest(c.Server, orgId, appId, key, body) +func (c *Client) DeleteOrgsOrgIdAppsAppIdUsersUserId(ctx context.Context, orgId string, appId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdAppsAppIdUsersUserIdRequest(c.Server, orgId, appId, userId) if err != nil { return nil, err } @@ -4430,8 +5159,8 @@ func (c *Client) PutOrgsOrgIdAppsAppIdValuesKey(ctx context.Context, orgId strin return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdAppsAppIdWebhooks(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdAppsAppIdWebhooksRequest(c.Server, orgId, appId) +func (c *Client) GetOrgsOrgIdAppsAppIdUsersUserId(ctx context.Context, orgId string, appId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdAppsAppIdUsersUserIdRequest(c.Server, orgId, appId, userId) if err != nil { return nil, err } @@ -4442,8 +5171,8 @@ func (c *Client) GetOrgsOrgIdAppsAppIdWebhooks(ctx context.Context, orgId string return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdWebhooksWithBody(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdWebhooksRequestWithBody(c.Server, orgId, appId, contentType, body) +func (c *Client) PatchOrgsOrgIdAppsAppIdUsersUserIdWithBody(ctx context.Context, orgId string, appId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequestWithBody(c.Server, orgId, appId, userId, contentType, body) if err != nil { return nil, err } @@ -4454,8 +5183,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdWebhooksWithBody(ctx context.Context, org return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdAppsAppIdWebhooks(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdAppsAppIdWebhooksRequest(c.Server, orgId, appId, body) +func (c *Client) PatchOrgsOrgIdAppsAppIdUsersUserId(ctx context.Context, orgId string, appId string, userId string, body PatchOrgsOrgIdAppsAppIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequest(c.Server, orgId, appId, userId, body) if err != nil { return nil, err } @@ -4466,8 +5195,8 @@ func (c *Client) PostOrgsOrgIdAppsAppIdWebhooks(ctx context.Context, orgId strin return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdAppsAppIdWebhooksJobId(ctx context.Context, orgId string, appId string, jobId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdAppsAppIdWebhooksJobIdRequest(c.Server, orgId, appId, jobId) +func (c *Client) GetOrgsOrgIdAppsAppIdValueSetVersions(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdValueSetVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdAppsAppIdValueSetVersionsRequest(c.Server, orgId, appId, params) if err != nil { return nil, err } @@ -4478,8 +5207,8 @@ func (c *Client) DeleteOrgsOrgIdAppsAppIdWebhooksJobId(ctx context.Context, orgI return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdAppsAppIdWebhooksJobId(ctx context.Context, orgId string, appId string, jobId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdAppsAppIdWebhooksJobIdRequest(c.Server, orgId, appId, jobId) +func (c *Client) GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionId(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRequest(c.Server, orgId, appId, valueSetVersionId) if err != nil { return nil, err } @@ -4490,8 +5219,8 @@ func (c *Client) GetOrgsOrgIdAppsAppIdWebhooksJobId(ctx context.Context, orgId s return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithBody(ctx context.Context, orgId string, appId string, jobId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequestWithBody(c.Server, orgId, appId, jobId, contentType, body) +func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithBody(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequestWithBody(c.Server, orgId, appId, valueSetVersionId, key, contentType, body) if err != nil { return nil, err } @@ -4502,8 +5231,8 @@ func (c *Client) PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithBody(ctx context.Contex return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdAppsAppIdWebhooksJobId(ctx context.Context, orgId string, appId string, jobId string, body PatchOrgsOrgIdAppsAppIdWebhooksJobIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequest(c.Server, orgId, appId, jobId, body) +func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKey(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequest(c.Server, orgId, appId, valueSetVersionId, key, body) if err != nil { return nil, err } @@ -4514,8 +5243,8 @@ func (c *Client) PatchOrgsOrgIdAppsAppIdWebhooksJobId(ctx context.Context, orgId return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdArtefactVersions(ctx context.Context, orgId string, params *GetOrgsOrgIdArtefactVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdArtefactVersionsRequest(c.Server, orgId, params) +func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithBody(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequestWithBody(c.Server, orgId, appId, valueSetVersionId, contentType, body) if err != nil { return nil, err } @@ -4526,8 +5255,8 @@ func (c *Client) GetOrgsOrgIdArtefactVersions(ctx context.Context, orgId string, return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdArtefactVersionsWithBody(ctx context.Context, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdArtefactVersionsRequestWithBody(c.Server, orgId, params, contentType, body) +func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestore(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequest(c.Server, orgId, appId, valueSetVersionId, body) if err != nil { return nil, err } @@ -4538,8 +5267,8 @@ func (c *Client) PostOrgsOrgIdArtefactVersionsWithBody(ctx context.Context, orgI return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdArtefactVersions(ctx context.Context, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, body PostOrgsOrgIdArtefactVersionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdArtefactVersionsRequest(c.Server, orgId, params, body) +func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithBody(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequestWithBody(c.Server, orgId, appId, valueSetVersionId, key, contentType, body) if err != nil { return nil, err } @@ -4550,8 +5279,8 @@ func (c *Client) PostOrgsOrgIdArtefactVersions(ctx context.Context, orgId string return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdArtefactVersionsArtefactVersionId(ctx context.Context, orgId string, artefactVersionId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdArtefactVersionsArtefactVersionIdRequest(c.Server, orgId, artefactVersionId) +func (c *Client) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKey(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequest(c.Server, orgId, appId, valueSetVersionId, key, body) if err != nil { return nil, err } @@ -4562,8 +5291,8 @@ func (c *Client) GetOrgsOrgIdArtefactVersionsArtefactVersionId(ctx context.Conte return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdArtefacts(ctx context.Context, orgId string, params *GetOrgsOrgIdArtefactsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdArtefactsRequest(c.Server, orgId, params) +func (c *Client) DeleteOrgsOrgIdAppsAppIdValues(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdAppsAppIdValuesRequest(c.Server, orgId, appId) if err != nil { return nil, err } @@ -4574,8 +5303,8 @@ func (c *Client) GetOrgsOrgIdArtefacts(ctx context.Context, orgId string, params return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdArtefactsArtefactId(ctx context.Context, orgId string, artefactId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdArtefactsArtefactIdRequest(c.Server, orgId, artefactId) +func (c *Client) GetOrgsOrgIdAppsAppIdValues(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdAppsAppIdValuesRequest(c.Server, orgId, appId) if err != nil { return nil, err } @@ -4586,8 +5315,8 @@ func (c *Client) DeleteOrgsOrgIdArtefactsArtefactId(ctx context.Context, orgId s return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdArtefactsArtefactIdVersions(ctx context.Context, orgId string, artefactId string, params *GetOrgsOrgIdArtefactsArtefactIdVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdArtefactsArtefactIdVersionsRequest(c.Server, orgId, artefactId, params) +func (c *Client) PostOrgsOrgIdAppsAppIdValuesWithBody(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdValuesRequestWithBody(c.Server, orgId, appId, contentType, body) if err != nil { return nil, err } @@ -4598,8 +5327,8 @@ func (c *Client) GetOrgsOrgIdArtefactsArtefactIdVersions(ctx context.Context, or return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithBody(ctx context.Context, orgId string, artefactId string, versionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequestWithBody(c.Server, orgId, artefactId, versionId, contentType, body) +func (c *Client) PostOrgsOrgIdAppsAppIdValues(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdValuesRequest(c.Server, orgId, appId, body) if err != nil { return nil, err } @@ -4610,8 +5339,8 @@ func (c *Client) PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithBody(ctx return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionId(ctx context.Context, orgId string, artefactId string, versionId string, body PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequest(c.Server, orgId, artefactId, versionId, body) +func (c *Client) DeleteOrgsOrgIdAppsAppIdValuesKey(ctx context.Context, orgId string, appId string, key string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdAppsAppIdValuesKeyRequest(c.Server, orgId, appId, key) if err != nil { return nil, err } @@ -4622,8 +5351,8 @@ func (c *Client) PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionId(ctx context. return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdEnvTypes(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdEnvTypesRequest(c.Server, orgId) +func (c *Client) PatchOrgsOrgIdAppsAppIdValuesKeyWithBody(ctx context.Context, orgId string, appId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(c.Server, orgId, appId, key, contentType, body) if err != nil { return nil, err } @@ -4634,8 +5363,8 @@ func (c *Client) GetOrgsOrgIdEnvTypes(ctx context.Context, orgId string, reqEdit return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdEnvTypesWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdEnvTypesRequestWithBody(c.Server, orgId, contentType, body) +func (c *Client) PatchOrgsOrgIdAppsAppIdValuesKey(ctx context.Context, orgId string, appId string, key string, body PatchOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdAppsAppIdValuesKeyRequest(c.Server, orgId, appId, key, body) if err != nil { return nil, err } @@ -4646,8 +5375,8 @@ func (c *Client) PostOrgsOrgIdEnvTypesWithBody(ctx context.Context, orgId string return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdEnvTypes(ctx context.Context, orgId string, body PostOrgsOrgIdEnvTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdEnvTypesRequest(c.Server, orgId, body) +func (c *Client) PutOrgsOrgIdAppsAppIdValuesKeyWithBody(ctx context.Context, orgId string, appId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPutOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(c.Server, orgId, appId, key, contentType, body) if err != nil { return nil, err } @@ -4658,8 +5387,8 @@ func (c *Client) PostOrgsOrgIdEnvTypes(ctx context.Context, orgId string, body P return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdEnvTypesEnvTypeId(ctx context.Context, orgId string, envTypeId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdEnvTypesEnvTypeIdRequest(c.Server, orgId, envTypeId) +func (c *Client) PutOrgsOrgIdAppsAppIdValuesKey(ctx context.Context, orgId string, appId string, key string, body PutOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPutOrgsOrgIdAppsAppIdValuesKeyRequest(c.Server, orgId, appId, key, body) if err != nil { return nil, err } @@ -4670,8 +5399,8 @@ func (c *Client) DeleteOrgsOrgIdEnvTypesEnvTypeId(ctx context.Context, orgId str return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdEnvTypesEnvTypeId(ctx context.Context, orgId string, envTypeId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdEnvTypesEnvTypeIdRequest(c.Server, orgId, envTypeId) +func (c *Client) GetOrgsOrgIdAppsAppIdWebhooks(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdAppsAppIdWebhooksRequest(c.Server, orgId, appId) if err != nil { return nil, err } @@ -4682,8 +5411,8 @@ func (c *Client) GetOrgsOrgIdEnvTypesEnvTypeId(ctx context.Context, orgId string return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdEnvTypesEnvTypeUsersWithBody(ctx context.Context, orgId string, envType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequestWithBody(c.Server, orgId, envType, contentType, body) +func (c *Client) PostOrgsOrgIdAppsAppIdWebhooksWithBody(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdWebhooksRequestWithBody(c.Server, orgId, appId, contentType, body) if err != nil { return nil, err } @@ -4694,8 +5423,8 @@ func (c *Client) PostOrgsOrgIdEnvTypesEnvTypeUsersWithBody(ctx context.Context, return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdEnvTypesEnvTypeUsers(ctx context.Context, orgId string, envType string, body PostOrgsOrgIdEnvTypesEnvTypeUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequest(c.Server, orgId, envType, body) +func (c *Client) PostOrgsOrgIdAppsAppIdWebhooks(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAppsAppIdWebhooksRequest(c.Server, orgId, appId, body) if err != nil { return nil, err } @@ -4706,8 +5435,8 @@ func (c *Client) PostOrgsOrgIdEnvTypesEnvTypeUsers(ctx context.Context, orgId st return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx context.Context, orgId string, envType string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(c.Server, orgId, envType, userId) +func (c *Client) DeleteOrgsOrgIdAppsAppIdWebhooksJobId(ctx context.Context, orgId string, appId string, jobId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdAppsAppIdWebhooksJobIdRequest(c.Server, orgId, appId, jobId) if err != nil { return nil, err } @@ -4718,8 +5447,8 @@ func (c *Client) DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx context.Context, return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx context.Context, orgId string, envType string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(c.Server, orgId, envType, userId) +func (c *Client) GetOrgsOrgIdAppsAppIdWebhooksJobId(ctx context.Context, orgId string, appId string, jobId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdAppsAppIdWebhooksJobIdRequest(c.Server, orgId, appId, jobId) if err != nil { return nil, err } @@ -4730,8 +5459,8 @@ func (c *Client) GetOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx context.Context, org return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithBody(ctx context.Context, orgId string, envType string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequestWithBody(c.Server, orgId, envType, userId, contentType, body) +func (c *Client) PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithBody(ctx context.Context, orgId string, appId string, jobId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequestWithBody(c.Server, orgId, appId, jobId, contentType, body) if err != nil { return nil, err } @@ -4742,9 +5471,9 @@ func (c *Client) PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithBody(ctx context.Co return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx context.Context, orgId string, envType string, userId string, body PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(c.Server, orgId, envType, userId, body) - if err != nil { +func (c *Client) PatchOrgsOrgIdAppsAppIdWebhooksJobId(ctx context.Context, orgId string, appId string, jobId string, body PatchOrgsOrgIdAppsAppIdWebhooksJobIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequest(c.Server, orgId, appId, jobId, body) + if err != nil { return nil, err } req = req.WithContext(ctx) @@ -4754,8 +5483,8 @@ func (c *Client) PatchOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx context.Context, o return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdEvents(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdEventsRequest(c.Server, orgId) +func (c *Client) GetOrgsOrgIdArtefactVersions(ctx context.Context, orgId string, params *GetOrgsOrgIdArtefactVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdArtefactVersionsRequest(c.Server, orgId, params) if err != nil { return nil, err } @@ -4766,8 +5495,8 @@ func (c *Client) GetOrgsOrgIdEvents(ctx context.Context, orgId string, reqEditor return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdImages(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdImagesRequest(c.Server, orgId) +func (c *Client) PostOrgsOrgIdArtefactVersionsWithBody(ctx context.Context, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdArtefactVersionsRequestWithBody(c.Server, orgId, params, contentType, body) if err != nil { return nil, err } @@ -4778,8 +5507,8 @@ func (c *Client) GetOrgsOrgIdImages(ctx context.Context, orgId string, reqEditor return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdImagesImageId(ctx context.Context, orgId string, imageId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdImagesImageIdRequest(c.Server, orgId, imageId) +func (c *Client) PostOrgsOrgIdArtefactVersions(ctx context.Context, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, body PostOrgsOrgIdArtefactVersionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdArtefactVersionsRequest(c.Server, orgId, params, body) if err != nil { return nil, err } @@ -4790,8 +5519,8 @@ func (c *Client) GetOrgsOrgIdImagesImageId(ctx context.Context, orgId string, im return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdImagesImageIdBuilds(ctx context.Context, orgId string, imageId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdImagesImageIdBuildsRequest(c.Server, orgId, imageId) +func (c *Client) GetOrgsOrgIdArtefactVersionsArtefactVersionId(ctx context.Context, orgId string, artefactVersionId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdArtefactVersionsArtefactVersionIdRequest(c.Server, orgId, artefactVersionId) if err != nil { return nil, err } @@ -4802,8 +5531,8 @@ func (c *Client) GetOrgsOrgIdImagesImageIdBuilds(ctx context.Context, orgId stri return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdImagesImageIdBuildsWithBody(ctx context.Context, orgId string, imageId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdImagesImageIdBuildsRequestWithBody(c.Server, orgId, imageId, contentType, body) +func (c *Client) GetOrgsOrgIdArtefacts(ctx context.Context, orgId string, params *GetOrgsOrgIdArtefactsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdArtefactsRequest(c.Server, orgId, params) if err != nil { return nil, err } @@ -4814,8 +5543,8 @@ func (c *Client) PostOrgsOrgIdImagesImageIdBuildsWithBody(ctx context.Context, o return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdImagesImageIdBuilds(ctx context.Context, orgId string, imageId string, body PostOrgsOrgIdImagesImageIdBuildsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdImagesImageIdBuildsRequest(c.Server, orgId, imageId, body) +func (c *Client) DeleteOrgsOrgIdArtefactsArtefactId(ctx context.Context, orgId string, artefactId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdArtefactsArtefactIdRequest(c.Server, orgId, artefactId) if err != nil { return nil, err } @@ -4826,8 +5555,8 @@ func (c *Client) PostOrgsOrgIdImagesImageIdBuilds(ctx context.Context, orgId str return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdInvitations(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdInvitationsRequest(c.Server, orgId) +func (c *Client) GetOrgsOrgIdArtefactsArtefactIdVersions(ctx context.Context, orgId string, artefactId string, params *GetOrgsOrgIdArtefactsArtefactIdVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdArtefactsArtefactIdVersionsRequest(c.Server, orgId, artefactId, params) if err != nil { return nil, err } @@ -4838,8 +5567,8 @@ func (c *Client) GetOrgsOrgIdInvitations(ctx context.Context, orgId string, reqE return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdInvitationsWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdInvitationsRequestWithBody(c.Server, orgId, contentType, body) +func (c *Client) PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithBody(ctx context.Context, orgId string, artefactId string, versionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequestWithBody(c.Server, orgId, artefactId, versionId, contentType, body) if err != nil { return nil, err } @@ -4850,8 +5579,8 @@ func (c *Client) PostOrgsOrgIdInvitationsWithBody(ctx context.Context, orgId str return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdInvitations(ctx context.Context, orgId string, body PostOrgsOrgIdInvitationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdInvitationsRequest(c.Server, orgId, body) +func (c *Client) PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionId(ctx context.Context, orgId string, artefactId string, versionId string, body PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequest(c.Server, orgId, artefactId, versionId, body) if err != nil { return nil, err } @@ -4862,8 +5591,8 @@ func (c *Client) PostOrgsOrgIdInvitations(ctx context.Context, orgId string, bod return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdRegistries(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdRegistriesRequest(c.Server, orgId) +func (c *Client) GetOrgsOrgIdEnvTypes(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdEnvTypesRequest(c.Server, orgId) if err != nil { return nil, err } @@ -4874,8 +5603,8 @@ func (c *Client) GetOrgsOrgIdRegistries(ctx context.Context, orgId string, reqEd return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdRegistriesWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdRegistriesRequestWithBody(c.Server, orgId, contentType, body) +func (c *Client) PostOrgsOrgIdEnvTypesWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdEnvTypesRequestWithBody(c.Server, orgId, contentType, body) if err != nil { return nil, err } @@ -4886,8 +5615,8 @@ func (c *Client) PostOrgsOrgIdRegistriesWithBody(ctx context.Context, orgId stri return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdRegistries(ctx context.Context, orgId string, body PostOrgsOrgIdRegistriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdRegistriesRequest(c.Server, orgId, body) +func (c *Client) PostOrgsOrgIdEnvTypes(ctx context.Context, orgId string, body PostOrgsOrgIdEnvTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdEnvTypesRequest(c.Server, orgId, body) if err != nil { return nil, err } @@ -4898,8 +5627,8 @@ func (c *Client) PostOrgsOrgIdRegistries(ctx context.Context, orgId string, body return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdRegistriesRegId(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdRegistriesRegIdRequest(c.Server, orgId, regId) +func (c *Client) DeleteOrgsOrgIdEnvTypesEnvTypeId(ctx context.Context, orgId string, envTypeId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdEnvTypesEnvTypeIdRequest(c.Server, orgId, envTypeId) if err != nil { return nil, err } @@ -4910,8 +5639,8 @@ func (c *Client) DeleteOrgsOrgIdRegistriesRegId(ctx context.Context, orgId strin return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdRegistriesRegId(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdRegistriesRegIdRequest(c.Server, orgId, regId) +func (c *Client) GetOrgsOrgIdEnvTypesEnvTypeId(ctx context.Context, orgId string, envTypeId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdEnvTypesEnvTypeIdRequest(c.Server, orgId, envTypeId) if err != nil { return nil, err } @@ -4922,8 +5651,8 @@ func (c *Client) GetOrgsOrgIdRegistriesRegId(ctx context.Context, orgId string, return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdRegistriesRegIdWithBody(ctx context.Context, orgId string, regId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdRegistriesRegIdRequestWithBody(c.Server, orgId, regId, contentType, body) +func (c *Client) PostOrgsOrgIdEnvTypesEnvTypeUsersWithBody(ctx context.Context, orgId string, envType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequestWithBody(c.Server, orgId, envType, contentType, body) if err != nil { return nil, err } @@ -4934,8 +5663,8 @@ func (c *Client) PatchOrgsOrgIdRegistriesRegIdWithBody(ctx context.Context, orgI return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdRegistriesRegId(ctx context.Context, orgId string, regId string, body PatchOrgsOrgIdRegistriesRegIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdRegistriesRegIdRequest(c.Server, orgId, regId, body) +func (c *Client) PostOrgsOrgIdEnvTypesEnvTypeUsers(ctx context.Context, orgId string, envType string, body PostOrgsOrgIdEnvTypesEnvTypeUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequest(c.Server, orgId, envType, body) if err != nil { return nil, err } @@ -4946,8 +5675,8 @@ func (c *Client) PatchOrgsOrgIdRegistriesRegId(ctx context.Context, orgId string return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdRegistriesRegIdCreds(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdRegistriesRegIdCredsRequest(c.Server, orgId, regId) +func (c *Client) DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx context.Context, orgId string, envType string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(c.Server, orgId, envType, userId) if err != nil { return nil, err } @@ -4958,8 +5687,8 @@ func (c *Client) GetOrgsOrgIdRegistriesRegIdCreds(ctx context.Context, orgId str return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdResourcesAccountTypes(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdResourcesAccountTypesRequest(c.Server, orgId) +func (c *Client) GetOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx context.Context, orgId string, envType string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(c.Server, orgId, envType, userId) if err != nil { return nil, err } @@ -4970,8 +5699,8 @@ func (c *Client) GetOrgsOrgIdResourcesAccountTypes(ctx context.Context, orgId st return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdResourcesAccounts(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdResourcesAccountsRequest(c.Server, orgId) +func (c *Client) PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithBody(ctx context.Context, orgId string, envType string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequestWithBody(c.Server, orgId, envType, userId, contentType, body) if err != nil { return nil, err } @@ -4982,8 +5711,8 @@ func (c *Client) GetOrgsOrgIdResourcesAccounts(ctx context.Context, orgId string return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdResourcesAccountsWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdResourcesAccountsRequestWithBody(c.Server, orgId, contentType, body) +func (c *Client) PatchOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx context.Context, orgId string, envType string, userId string, body PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(c.Server, orgId, envType, userId, body) if err != nil { return nil, err } @@ -4994,8 +5723,8 @@ func (c *Client) PostOrgsOrgIdResourcesAccountsWithBody(ctx context.Context, org return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdResourcesAccounts(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesAccountsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdResourcesAccountsRequest(c.Server, orgId, body) +func (c *Client) GetOrgsOrgIdEvents(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdEventsRequest(c.Server, orgId) if err != nil { return nil, err } @@ -5006,8 +5735,8 @@ func (c *Client) PostOrgsOrgIdResourcesAccounts(ctx context.Context, orgId strin return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdResourcesAccountsAccId(ctx context.Context, orgId string, accId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdResourcesAccountsAccIdRequest(c.Server, orgId, accId) +func (c *Client) GetOrgsOrgIdImages(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdImagesRequest(c.Server, orgId) if err != nil { return nil, err } @@ -5018,8 +5747,8 @@ func (c *Client) DeleteOrgsOrgIdResourcesAccountsAccId(ctx context.Context, orgI return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdResourcesAccountsAccId(ctx context.Context, orgId string, accId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdResourcesAccountsAccIdRequest(c.Server, orgId, accId) +func (c *Client) GetOrgsOrgIdImagesImageId(ctx context.Context, orgId string, imageId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdImagesImageIdRequest(c.Server, orgId, imageId) if err != nil { return nil, err } @@ -5030,8 +5759,8 @@ func (c *Client) GetOrgsOrgIdResourcesAccountsAccId(ctx context.Context, orgId s return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdResourcesAccountsAccIdWithBody(ctx context.Context, orgId string, accId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdResourcesAccountsAccIdRequestWithBody(c.Server, orgId, accId, contentType, body) +func (c *Client) GetOrgsOrgIdImagesImageIdBuilds(ctx context.Context, orgId string, imageId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdImagesImageIdBuildsRequest(c.Server, orgId, imageId) if err != nil { return nil, err } @@ -5042,8 +5771,8 @@ func (c *Client) PatchOrgsOrgIdResourcesAccountsAccIdWithBody(ctx context.Contex return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdResourcesAccountsAccId(ctx context.Context, orgId string, accId string, body PatchOrgsOrgIdResourcesAccountsAccIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdResourcesAccountsAccIdRequest(c.Server, orgId, accId, body) +func (c *Client) PostOrgsOrgIdImagesImageIdBuildsWithBody(ctx context.Context, orgId string, imageId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdImagesImageIdBuildsRequestWithBody(c.Server, orgId, imageId, contentType, body) if err != nil { return nil, err } @@ -5054,8 +5783,8 @@ func (c *Client) PatchOrgsOrgIdResourcesAccountsAccId(ctx context.Context, orgId return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdResourcesDefs(ctx context.Context, orgId string, params *GetOrgsOrgIdResourcesDefsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdResourcesDefsRequest(c.Server, orgId, params) +func (c *Client) PostOrgsOrgIdImagesImageIdBuilds(ctx context.Context, orgId string, imageId string, body PostOrgsOrgIdImagesImageIdBuildsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdImagesImageIdBuildsRequest(c.Server, orgId, imageId, body) if err != nil { return nil, err } @@ -5066,8 +5795,8 @@ func (c *Client) GetOrgsOrgIdResourcesDefs(ctx context.Context, orgId string, pa return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdResourcesDefsWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdResourcesDefsRequestWithBody(c.Server, orgId, contentType, body) +func (c *Client) GetOrgsOrgIdInvitations(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdInvitationsRequest(c.Server, orgId) if err != nil { return nil, err } @@ -5078,8 +5807,8 @@ func (c *Client) PostOrgsOrgIdResourcesDefsWithBody(ctx context.Context, orgId s return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdResourcesDefs(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesDefsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdResourcesDefsRequest(c.Server, orgId, body) +func (c *Client) PostOrgsOrgIdInvitationsWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdInvitationsRequestWithBody(c.Server, orgId, contentType, body) if err != nil { return nil, err } @@ -5090,8 +5819,8 @@ func (c *Client) PostOrgsOrgIdResourcesDefs(ctx context.Context, orgId string, b return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdResourcesDefsDefId(ctx context.Context, orgId string, defId string, params *DeleteOrgsOrgIdResourcesDefsDefIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdResourcesDefsDefIdRequest(c.Server, orgId, defId, params) +func (c *Client) PostOrgsOrgIdInvitations(ctx context.Context, orgId string, body PostOrgsOrgIdInvitationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdInvitationsRequest(c.Server, orgId, body) if err != nil { return nil, err } @@ -5102,8 +5831,8 @@ func (c *Client) DeleteOrgsOrgIdResourcesDefsDefId(ctx context.Context, orgId st return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdResourcesDefsDefId(ctx context.Context, orgId string, defId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdResourcesDefsDefIdRequest(c.Server, orgId, defId) +func (c *Client) ListPipelineRunsByOrg(ctx context.Context, orgId OrgIdPathParam, params *ListPipelineRunsByOrgParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPipelineRunsByOrgRequest(c.Server, orgId, params) if err != nil { return nil, err } @@ -5114,8 +5843,8 @@ func (c *Client) GetOrgsOrgIdResourcesDefsDefId(ctx context.Context, orgId strin return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdResourcesDefsDefIdWithBody(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdResourcesDefsDefIdRequestWithBody(c.Server, orgId, defId, contentType, body) +func (c *Client) GetLatestPipelineSchema(ctx context.Context, orgId OrgIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetLatestPipelineSchemaRequest(c.Server, orgId) if err != nil { return nil, err } @@ -5126,8 +5855,8 @@ func (c *Client) PatchOrgsOrgIdResourcesDefsDefIdWithBody(ctx context.Context, o return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdResourcesDefsDefId(ctx context.Context, orgId string, defId string, body PatchOrgsOrgIdResourcesDefsDefIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdResourcesDefsDefIdRequest(c.Server, orgId, defId, body) +func (c *Client) ListPipelinesByOrg(ctx context.Context, orgId OrgIdPathParam, params *ListPipelinesByOrgParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListPipelinesByOrgRequest(c.Server, orgId, params) if err != nil { return nil, err } @@ -5138,8 +5867,8 @@ func (c *Client) PatchOrgsOrgIdResourcesDefsDefId(ctx context.Context, orgId str return c.Client.Do(req) } -func (c *Client) PutOrgsOrgIdResourcesDefsDefIdWithBody(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutOrgsOrgIdResourcesDefsDefIdRequestWithBody(c.Server, orgId, defId, contentType, body) +func (c *Client) GetOrgsOrgIdRegistries(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdRegistriesRequest(c.Server, orgId) if err != nil { return nil, err } @@ -5150,8 +5879,8 @@ func (c *Client) PutOrgsOrgIdResourcesDefsDefIdWithBody(ctx context.Context, org return c.Client.Do(req) } -func (c *Client) PutOrgsOrgIdResourcesDefsDefId(ctx context.Context, orgId string, defId string, body PutOrgsOrgIdResourcesDefsDefIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutOrgsOrgIdResourcesDefsDefIdRequest(c.Server, orgId, defId, body) +func (c *Client) PostOrgsOrgIdRegistriesWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdRegistriesRequestWithBody(c.Server, orgId, contentType, body) if err != nil { return nil, err } @@ -5162,8 +5891,8 @@ func (c *Client) PutOrgsOrgIdResourcesDefsDefId(ctx context.Context, orgId strin return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdResourcesDefsDefIdCriteriaWithBody(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequestWithBody(c.Server, orgId, defId, contentType, body) +func (c *Client) PostOrgsOrgIdRegistries(ctx context.Context, orgId string, body PostOrgsOrgIdRegistriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdRegistriesRequest(c.Server, orgId, body) if err != nil { return nil, err } @@ -5174,8 +5903,8 @@ func (c *Client) PostOrgsOrgIdResourcesDefsDefIdCriteriaWithBody(ctx context.Con return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdResourcesDefsDefIdCriteria(ctx context.Context, orgId string, defId string, body PostOrgsOrgIdResourcesDefsDefIdCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequest(c.Server, orgId, defId, body) +func (c *Client) DeleteOrgsOrgIdRegistriesRegId(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdRegistriesRegIdRequest(c.Server, orgId, regId) if err != nil { return nil, err } @@ -5186,8 +5915,8 @@ func (c *Client) PostOrgsOrgIdResourcesDefsDefIdCriteria(ctx context.Context, or return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaId(ctx context.Context, orgId string, defId string, criteriaId string, params *DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdRequest(c.Server, orgId, defId, criteriaId, params) +func (c *Client) GetOrgsOrgIdRegistriesRegId(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdRegistriesRegIdRequest(c.Server, orgId, regId) if err != nil { return nil, err } @@ -5198,8 +5927,8 @@ func (c *Client) DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaId(ctx context return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdResourcesDefsDefIdResources(ctx context.Context, orgId string, defId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdResourcesDefsDefIdResourcesRequest(c.Server, orgId, defId) +func (c *Client) PatchOrgsOrgIdRegistriesRegIdWithBody(ctx context.Context, orgId string, regId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdRegistriesRegIdRequestWithBody(c.Server, orgId, regId, contentType, body) if err != nil { return nil, err } @@ -5210,8 +5939,8 @@ func (c *Client) GetOrgsOrgIdResourcesDefsDefIdResources(ctx context.Context, or return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdResourcesDrivers(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdResourcesDriversRequest(c.Server, orgId) +func (c *Client) PatchOrgsOrgIdRegistriesRegId(ctx context.Context, orgId string, regId string, body PatchOrgsOrgIdRegistriesRegIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdRegistriesRegIdRequest(c.Server, orgId, regId, body) if err != nil { return nil, err } @@ -5222,8 +5951,8 @@ func (c *Client) GetOrgsOrgIdResourcesDrivers(ctx context.Context, orgId string, return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdResourcesDriversWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdResourcesDriversRequestWithBody(c.Server, orgId, contentType, body) +func (c *Client) GetOrgsOrgIdRegistriesRegIdCreds(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdRegistriesRegIdCredsRequest(c.Server, orgId, regId) if err != nil { return nil, err } @@ -5234,8 +5963,8 @@ func (c *Client) PostOrgsOrgIdResourcesDriversWithBody(ctx context.Context, orgI return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdResourcesDrivers(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesDriversJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdResourcesDriversRequest(c.Server, orgId, body) +func (c *Client) GetOrgsOrgIdResourcesAccountTypes(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdResourcesAccountTypesRequest(c.Server, orgId) if err != nil { return nil, err } @@ -5246,8 +5975,8 @@ func (c *Client) PostOrgsOrgIdResourcesDrivers(ctx context.Context, orgId string return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdResourcesDriversDriverId(ctx context.Context, orgId string, driverId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdResourcesDriversDriverIdRequest(c.Server, orgId, driverId) +func (c *Client) GetOrgsOrgIdResourcesAccounts(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdResourcesAccountsRequest(c.Server, orgId) if err != nil { return nil, err } @@ -5258,8 +5987,8 @@ func (c *Client) DeleteOrgsOrgIdResourcesDriversDriverId(ctx context.Context, or return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdResourcesDriversDriverId(ctx context.Context, orgId string, driverId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdResourcesDriversDriverIdRequest(c.Server, orgId, driverId) +func (c *Client) PostOrgsOrgIdResourcesAccountsWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdResourcesAccountsRequestWithBody(c.Server, orgId, contentType, body) if err != nil { return nil, err } @@ -5270,8 +5999,8 @@ func (c *Client) GetOrgsOrgIdResourcesDriversDriverId(ctx context.Context, orgId return c.Client.Do(req) } -func (c *Client) PutOrgsOrgIdResourcesDriversDriverIdWithBody(ctx context.Context, orgId string, driverId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutOrgsOrgIdResourcesDriversDriverIdRequestWithBody(c.Server, orgId, driverId, contentType, body) +func (c *Client) PostOrgsOrgIdResourcesAccounts(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesAccountsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdResourcesAccountsRequest(c.Server, orgId, body) if err != nil { return nil, err } @@ -5282,8 +6011,8 @@ func (c *Client) PutOrgsOrgIdResourcesDriversDriverIdWithBody(ctx context.Contex return c.Client.Do(req) } -func (c *Client) PutOrgsOrgIdResourcesDriversDriverId(ctx context.Context, orgId string, driverId string, body PutOrgsOrgIdResourcesDriversDriverIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutOrgsOrgIdResourcesDriversDriverIdRequest(c.Server, orgId, driverId, body) +func (c *Client) DeleteOrgsOrgIdResourcesAccountsAccId(ctx context.Context, orgId string, accId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdResourcesAccountsAccIdRequest(c.Server, orgId, accId) if err != nil { return nil, err } @@ -5294,8 +6023,8 @@ func (c *Client) PutOrgsOrgIdResourcesDriversDriverId(ctx context.Context, orgId return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdResourcesTypes(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdResourcesTypesRequest(c.Server, orgId) +func (c *Client) GetOrgsOrgIdResourcesAccountsAccId(ctx context.Context, orgId string, accId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdResourcesAccountsAccIdRequest(c.Server, orgId, accId) if err != nil { return nil, err } @@ -5306,8 +6035,8 @@ func (c *Client) GetOrgsOrgIdResourcesTypes(ctx context.Context, orgId string, r return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdSecretstores(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdSecretstoresRequest(c.Server, orgId) +func (c *Client) PatchOrgsOrgIdResourcesAccountsAccIdWithBody(ctx context.Context, orgId string, accId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdResourcesAccountsAccIdRequestWithBody(c.Server, orgId, accId, contentType, body) if err != nil { return nil, err } @@ -5318,8 +6047,8 @@ func (c *Client) GetOrgsOrgIdSecretstores(ctx context.Context, orgId string, req return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdSecretstoresWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdSecretstoresRequestWithBody(c.Server, orgId, contentType, body) +func (c *Client) PatchOrgsOrgIdResourcesAccountsAccId(ctx context.Context, orgId string, accId string, body PatchOrgsOrgIdResourcesAccountsAccIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdResourcesAccountsAccIdRequest(c.Server, orgId, accId, body) if err != nil { return nil, err } @@ -5330,8 +6059,8 @@ func (c *Client) PostOrgsOrgIdSecretstoresWithBody(ctx context.Context, orgId st return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdSecretstores(ctx context.Context, orgId string, body PostOrgsOrgIdSecretstoresJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdSecretstoresRequest(c.Server, orgId, body) +func (c *Client) GetOrgsOrgIdResourcesDefs(ctx context.Context, orgId string, params *GetOrgsOrgIdResourcesDefsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdResourcesDefsRequest(c.Server, orgId, params) if err != nil { return nil, err } @@ -5342,8 +6071,8 @@ func (c *Client) PostOrgsOrgIdSecretstores(ctx context.Context, orgId string, bo return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdSecretstoresStoreId(ctx context.Context, orgId string, storeId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdSecretstoresStoreIdRequest(c.Server, orgId, storeId) +func (c *Client) PostOrgsOrgIdResourcesDefsWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdResourcesDefsRequestWithBody(c.Server, orgId, contentType, body) if err != nil { return nil, err } @@ -5354,8 +6083,8 @@ func (c *Client) DeleteOrgsOrgIdSecretstoresStoreId(ctx context.Context, orgId s return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdSecretstoresStoreId(ctx context.Context, orgId string, storeId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdSecretstoresStoreIdRequest(c.Server, orgId, storeId) +func (c *Client) PostOrgsOrgIdResourcesDefs(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesDefsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdResourcesDefsRequest(c.Server, orgId, body) if err != nil { return nil, err } @@ -5366,8 +6095,8 @@ func (c *Client) GetOrgsOrgIdSecretstoresStoreId(ctx context.Context, orgId stri return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdSecretstoresStoreIdWithBody(ctx context.Context, orgId string, storeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdSecretstoresStoreIdRequestWithBody(c.Server, orgId, storeId, contentType, body) +func (c *Client) DeleteOrgsOrgIdResourcesDefsDefId(ctx context.Context, orgId string, defId string, params *DeleteOrgsOrgIdResourcesDefsDefIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdResourcesDefsDefIdRequest(c.Server, orgId, defId, params) if err != nil { return nil, err } @@ -5378,8 +6107,8 @@ func (c *Client) PatchOrgsOrgIdSecretstoresStoreIdWithBody(ctx context.Context, return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdSecretstoresStoreId(ctx context.Context, orgId string, storeId string, body PatchOrgsOrgIdSecretstoresStoreIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdSecretstoresStoreIdRequest(c.Server, orgId, storeId, body) +func (c *Client) GetOrgsOrgIdResourcesDefsDefId(ctx context.Context, orgId string, defId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdResourcesDefsDefIdRequest(c.Server, orgId, defId) if err != nil { return nil, err } @@ -5390,8 +6119,8 @@ func (c *Client) PatchOrgsOrgIdSecretstoresStoreId(ctx context.Context, orgId st return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdUsers(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdUsersRequest(c.Server, orgId) +func (c *Client) PatchOrgsOrgIdResourcesDefsDefIdWithBody(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdResourcesDefsDefIdRequestWithBody(c.Server, orgId, defId, contentType, body) if err != nil { return nil, err } @@ -5402,8 +6131,8 @@ func (c *Client) GetOrgsOrgIdUsers(ctx context.Context, orgId string, reqEditors return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdUsersWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdUsersRequestWithBody(c.Server, orgId, contentType, body) +func (c *Client) PatchOrgsOrgIdResourcesDefsDefId(ctx context.Context, orgId string, defId string, body PatchOrgsOrgIdResourcesDefsDefIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdResourcesDefsDefIdRequest(c.Server, orgId, defId, body) if err != nil { return nil, err } @@ -5414,8 +6143,8 @@ func (c *Client) PostOrgsOrgIdUsersWithBody(ctx context.Context, orgId string, c return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdUsers(ctx context.Context, orgId string, body PostOrgsOrgIdUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdUsersRequest(c.Server, orgId, body) +func (c *Client) PutOrgsOrgIdResourcesDefsDefIdWithBody(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPutOrgsOrgIdResourcesDefsDefIdRequestWithBody(c.Server, orgId, defId, contentType, body) if err != nil { return nil, err } @@ -5426,8 +6155,8 @@ func (c *Client) PostOrgsOrgIdUsers(ctx context.Context, orgId string, body Post return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdUsersUserId(ctx context.Context, orgId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdUsersUserIdRequest(c.Server, orgId, userId) +func (c *Client) PutOrgsOrgIdResourcesDefsDefId(ctx context.Context, orgId string, defId string, body PutOrgsOrgIdResourcesDefsDefIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPutOrgsOrgIdResourcesDefsDefIdRequest(c.Server, orgId, defId, body) if err != nil { return nil, err } @@ -5438,8 +6167,8 @@ func (c *Client) DeleteOrgsOrgIdUsersUserId(ctx context.Context, orgId string, u return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdUsersUserId(ctx context.Context, orgId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdUsersUserIdRequest(c.Server, orgId, userId) +func (c *Client) PostOrgsOrgIdResourcesDefsDefIdCriteriaWithBody(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequestWithBody(c.Server, orgId, defId, contentType, body) if err != nil { return nil, err } @@ -5450,8 +6179,8 @@ func (c *Client) GetOrgsOrgIdUsersUserId(ctx context.Context, orgId string, user return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdUsersUserIdWithBody(ctx context.Context, orgId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdUsersUserIdRequestWithBody(c.Server, orgId, userId, contentType, body) +func (c *Client) PostOrgsOrgIdResourcesDefsDefIdCriteria(ctx context.Context, orgId string, defId string, body PostOrgsOrgIdResourcesDefsDefIdCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequest(c.Server, orgId, defId, body) if err != nil { return nil, err } @@ -5462,8 +6191,8 @@ func (c *Client) PatchOrgsOrgIdUsersUserIdWithBody(ctx context.Context, orgId st return c.Client.Do(req) } -func (c *Client) PatchOrgsOrgIdUsersUserId(ctx context.Context, orgId string, userId string, body PatchOrgsOrgIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchOrgsOrgIdUsersUserIdRequest(c.Server, orgId, userId, body) +func (c *Client) DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaId(ctx context.Context, orgId string, defId string, criteriaId string, params *DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdRequest(c.Server, orgId, defId, criteriaId, params) if err != nil { return nil, err } @@ -5474,8 +6203,8 @@ func (c *Client) PatchOrgsOrgIdUsersUserId(ctx context.Context, orgId string, us return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdWorkloadProfiles(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdWorkloadProfilesRequest(c.Server, orgId) +func (c *Client) GetOrgsOrgIdResourcesDefsDefIdResources(ctx context.Context, orgId string, defId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdResourcesDefsDefIdResourcesRequest(c.Server, orgId, defId) if err != nil { return nil, err } @@ -5486,8 +6215,8 @@ func (c *Client) GetOrgsOrgIdWorkloadProfiles(ctx context.Context, orgId string, return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdWorkloadProfilesWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdWorkloadProfilesRequestWithBody(c.Server, orgId, contentType, body) +func (c *Client) GetOrgsOrgIdResourcesDrivers(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdResourcesDriversRequest(c.Server, orgId) if err != nil { return nil, err } @@ -5498,8 +6227,8 @@ func (c *Client) PostOrgsOrgIdWorkloadProfilesWithBody(ctx context.Context, orgI return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdWorkloadProfiles(ctx context.Context, orgId string, body PostOrgsOrgIdWorkloadProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdWorkloadProfilesRequest(c.Server, orgId, body) +func (c *Client) PostOrgsOrgIdResourcesDriversWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdResourcesDriversRequestWithBody(c.Server, orgId, contentType, body) if err != nil { return nil, err } @@ -5510,8 +6239,8 @@ func (c *Client) PostOrgsOrgIdWorkloadProfiles(ctx context.Context, orgId string return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersion(ctx context.Context, orgId string, profileId string, version string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionRequest(c.Server, orgId, profileId, version) +func (c *Client) PostOrgsOrgIdResourcesDrivers(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesDriversJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdResourcesDriversRequest(c.Server, orgId, body) if err != nil { return nil, err } @@ -5522,9 +6251,9 @@ func (c *Client) DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersion(ctx con return c.Client.Do(req) } -func (c *Client) DeleteOrgsOrgIdWorkloadProfilesProfileQid(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteOrgsOrgIdWorkloadProfilesProfileQidRequest(c.Server, orgId, profileQid) - if err != nil { +func (c *Client) DeleteOrgsOrgIdResourcesDriversDriverId(ctx context.Context, orgId string, driverId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdResourcesDriversDriverIdRequest(c.Server, orgId, driverId) + if err != nil { return nil, err } req = req.WithContext(ctx) @@ -5534,8 +6263,8 @@ func (c *Client) DeleteOrgsOrgIdWorkloadProfilesProfileQid(ctx context.Context, return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdWorkloadProfilesProfileQid(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdWorkloadProfilesProfileQidRequest(c.Server, orgId, profileQid) +func (c *Client) GetOrgsOrgIdResourcesDriversDriverId(ctx context.Context, orgId string, driverId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdResourcesDriversDriverIdRequest(c.Server, orgId, driverId) if err != nil { return nil, err } @@ -5546,8 +6275,8 @@ func (c *Client) GetOrgsOrgIdWorkloadProfilesProfileQid(ctx context.Context, org return c.Client.Do(req) } -func (c *Client) GetOrgsOrgIdWorkloadProfilesProfileQidVersions(ctx context.Context, orgId string, profileQid string, params *GetOrgsOrgIdWorkloadProfilesProfileQidVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetOrgsOrgIdWorkloadProfilesProfileQidVersionsRequest(c.Server, orgId, profileQid, params) +func (c *Client) PutOrgsOrgIdResourcesDriversDriverIdWithBody(ctx context.Context, orgId string, driverId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPutOrgsOrgIdResourcesDriversDriverIdRequestWithBody(c.Server, orgId, driverId, contentType, body) if err != nil { return nil, err } @@ -5558,8 +6287,8 @@ func (c *Client) GetOrgsOrgIdWorkloadProfilesProfileQidVersions(ctx context.Cont return c.Client.Do(req) } -func (c *Client) PostOrgsOrgIdWorkloadProfilesProfileQidVersionsWithBody(ctx context.Context, orgId string, profileQid string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostOrgsOrgIdWorkloadProfilesProfileQidVersionsRequestWithBody(c.Server, orgId, profileQid, contentType, body) +func (c *Client) PutOrgsOrgIdResourcesDriversDriverId(ctx context.Context, orgId string, driverId string, body PutOrgsOrgIdResourcesDriversDriverIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPutOrgsOrgIdResourcesDriversDriverIdRequest(c.Server, orgId, driverId, body) if err != nil { return nil, err } @@ -5570,8 +6299,8 @@ func (c *Client) PostOrgsOrgIdWorkloadProfilesProfileQidVersionsWithBody(ctx con return c.Client.Do(req) } -func (c *Client) GetLatestWorkloadProfileVersion(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetLatestWorkloadProfileVersionRequest(c.Server, orgId, profileQid) +func (c *Client) GetOrgsOrgIdResourcesTypes(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdResourcesTypesRequest(c.Server, orgId) if err != nil { return nil, err } @@ -5582,8 +6311,8 @@ func (c *Client) GetLatestWorkloadProfileVersion(ctx context.Context, orgId stri return c.Client.Do(req) } -func (c *Client) GetTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetTokensRequest(c.Server) +func (c *Client) GetOrgsOrgIdSecretstores(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdSecretstoresRequest(c.Server, orgId) if err != nil { return nil, err } @@ -5594,8 +6323,8 @@ func (c *Client) GetTokens(ctx context.Context, reqEditors ...RequestEditorFn) ( return c.Client.Do(req) } -func (c *Client) DeleteTokensTokenId(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteTokensTokenIdRequest(c.Server, tokenId) +func (c *Client) PostOrgsOrgIdSecretstoresWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdSecretstoresRequestWithBody(c.Server, orgId, contentType, body) if err != nil { return nil, err } @@ -5606,8 +6335,8 @@ func (c *Client) DeleteTokensTokenId(ctx context.Context, tokenId string, reqEdi return c.Client.Do(req) } -func (c *Client) GetUsersMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetUsersMeRequest(c.Server) +func (c *Client) PostOrgsOrgIdSecretstores(ctx context.Context, orgId string, body PostOrgsOrgIdSecretstoresJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdSecretstoresRequest(c.Server, orgId, body) if err != nil { return nil, err } @@ -5618,8 +6347,8 @@ func (c *Client) GetUsersMe(ctx context.Context, reqEditors ...RequestEditorFn) return c.Client.Do(req) } -func (c *Client) GetUsersUserIdTokens(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetUsersUserIdTokensRequest(c.Server, userId) +func (c *Client) DeleteOrgsOrgIdSecretstoresStoreId(ctx context.Context, orgId string, storeId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdSecretstoresStoreIdRequest(c.Server, orgId, storeId) if err != nil { return nil, err } @@ -5630,8 +6359,8 @@ func (c *Client) GetUsersUserIdTokens(ctx context.Context, userId string, reqEdi return c.Client.Do(req) } -func (c *Client) PostUsersUserIdTokensWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostUsersUserIdTokensRequestWithBody(c.Server, userId, contentType, body) +func (c *Client) GetOrgsOrgIdSecretstoresStoreId(ctx context.Context, orgId string, storeId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdSecretstoresStoreIdRequest(c.Server, orgId, storeId) if err != nil { return nil, err } @@ -5642,8 +6371,8 @@ func (c *Client) PostUsersUserIdTokensWithBody(ctx context.Context, userId strin return c.Client.Do(req) } -func (c *Client) PostUsersUserIdTokens(ctx context.Context, userId string, body PostUsersUserIdTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostUsersUserIdTokensRequest(c.Server, userId, body) +func (c *Client) PatchOrgsOrgIdSecretstoresStoreIdWithBody(ctx context.Context, orgId string, storeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdSecretstoresStoreIdRequestWithBody(c.Server, orgId, storeId, contentType, body) if err != nil { return nil, err } @@ -5654,8 +6383,8 @@ func (c *Client) PostUsersUserIdTokens(ctx context.Context, userId string, body return c.Client.Do(req) } -func (c *Client) DeleteUsersUserIdTokensTokenId(ctx context.Context, userId string, tokenId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteUsersUserIdTokensTokenIdRequest(c.Server, userId, tokenId) +func (c *Client) PatchOrgsOrgIdSecretstoresStoreId(ctx context.Context, orgId string, storeId string, body PatchOrgsOrgIdSecretstoresStoreIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdSecretstoresStoreIdRequest(c.Server, orgId, storeId, body) if err != nil { return nil, err } @@ -5666,8 +6395,8 @@ func (c *Client) DeleteUsersUserIdTokensTokenId(ctx context.Context, userId stri return c.Client.Do(req) } -func (c *Client) GetUsersUserIdTokensTokenId(ctx context.Context, userId string, tokenId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetUsersUserIdTokensTokenIdRequest(c.Server, userId, tokenId) +func (c *Client) GetOrgsOrgIdUsers(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdUsersRequest(c.Server, orgId) if err != nil { return nil, err } @@ -5678,239 +6407,316 @@ func (c *Client) GetUsersUserIdTokensTokenId(ctx context.Context, userId string, return c.Client.Do(req) } -// NewGetCurrentUserRequest generates requests for GetCurrentUser -func NewGetCurrentUserRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) PostOrgsOrgIdUsersWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdUsersRequestWithBody(c.Server, orgId, contentType, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/current-user") - 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) PostOrgsOrgIdUsers(ctx context.Context, orgId string, body PostOrgsOrgIdUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdUsersRequest(c.Server, orgId, 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) } -// NewPatchCurrentUserRequest calls the generic PatchCurrentUser builder with application/json body -func NewPatchCurrentUserRequest(server string, body PatchCurrentUserJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) DeleteOrgsOrgIdUsersUserId(ctx context.Context, orgId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdUsersUserIdRequest(c.Server, orgId, userId) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPatchCurrentUserRequestWithBody(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) } -// NewPatchCurrentUserRequestWithBody generates requests for PatchCurrentUser with any type of body -func NewPatchCurrentUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) GetOrgsOrgIdUsersUserId(ctx context.Context, orgId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdUsersUserIdRequest(c.Server, orgId, userId) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/current-user") - 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) PatchOrgsOrgIdUsersUserIdWithBody(ctx context.Context, orgId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdUsersUserIdRequestWithBody(c.Server, orgId, userId, contentType, body) if err != nil { return nil, err } - - req, err := http.NewRequest("PATCH", 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) } -// NewGetOrgsRequest generates requests for GetOrgs -func NewGetOrgsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +func (c *Client) PatchOrgsOrgIdUsersUserId(ctx context.Context, orgId string, userId string, body PatchOrgsOrgIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdUsersUserIdRequest(c.Server, orgId, userId, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/orgs") - 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) GetWorkloadProfileChartVersions(ctx context.Context, orgId OrgIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkloadProfileChartVersionsRequest(c.Server, orgId) 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) } -// NewGetOrgsOrgIdRequest generates requests for GetOrgsOrgId -func NewGetOrgsOrgIdRequest(server string, orgId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) +func (c *Client) PostWorkloadProfileChartVersionWithBody(ctx context.Context, orgId OrgIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostWorkloadProfileChartVersionRequestWithBody(c.Server, orgId, contentType, body) if err != nil { return nil, err } - - serverURL, err := url.Parse(server) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } + return c.Client.Do(req) +} - operationPath := fmt.Sprintf("/orgs/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) +func (c *Client) GetOrgsOrgIdWorkloadProfiles(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdWorkloadProfilesRequest(c.Server, orgId) 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) } -// NewGetOrgsOrgIdAppsRequest generates requests for GetOrgsOrgIdApps -func NewGetOrgsOrgIdAppsRequest(server string, orgId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) +func (c *Client) PostOrgsOrgIdWorkloadProfilesWithBody(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdWorkloadProfilesRequestWithBody(c.Server, orgId, 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) PostOrgsOrgIdWorkloadProfiles(ctx context.Context, orgId string, body PostOrgsOrgIdWorkloadProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdWorkloadProfilesRequest(c.Server, orgId, body) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/orgs/%s/apps", 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) DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersion(ctx context.Context, orgId string, profileId string, version string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionRequest(c.Server, orgId, profileId, version) 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) } -// NewPostOrgsOrgIdAppsRequest calls the generic PostOrgsOrgIdApps builder with application/json body -func NewPostOrgsOrgIdAppsRequest(server string, orgId string, body PostOrgsOrgIdAppsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +func (c *Client) DeleteOrgsOrgIdWorkloadProfilesProfileQid(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdWorkloadProfilesProfileQidRequest(c.Server, orgId, profileQid) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdAppsRequestWithBody(server, orgId, "application/json", bodyReader) + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// NewPostOrgsOrgIdAppsRequestWithBody generates requests for PostOrgsOrgIdApps with any type of body -func NewPostOrgsOrgIdAppsRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) +func (c *Client) GetOrgsOrgIdWorkloadProfilesProfileQid(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdWorkloadProfilesProfileQidRequest(c.Server, orgId, profileQid) 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) GetOrgsOrgIdWorkloadProfilesProfileQidVersions(ctx context.Context, orgId string, profileQid string, params *GetOrgsOrgIdWorkloadProfilesProfileQidVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdWorkloadProfilesProfileQidVersionsRequest(c.Server, orgId, profileQid, params) if err != nil { return nil, err } - - operationPath := fmt.Sprintf("/orgs/%s/apps", 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) PostOrgsOrgIdWorkloadProfilesProfileQidVersionsWithBody(ctx context.Context, orgId string, profileQid string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdWorkloadProfilesProfileQidVersionsRequestWithBody(c.Server, orgId, profileQid, 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("POST", queryURL.String(), body) +func (c *Client) GetLatestWorkloadProfileVersion(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetLatestWorkloadProfileVersionRequest(c.Server, orgId, profileQid) 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.Header.Add("Content-Type", contentType) +func (c *Client) GetTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTokensRequest(c.Server) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - return req, nil +func (c *Client) DeleteTokensTokenId(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteTokensTokenIdRequest(c.Server, tokenId) + 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) } -// NewDeleteOrgsOrgIdAppsAppIdRequest generates requests for DeleteOrgsOrgIdAppsAppId -func NewDeleteOrgsOrgIdAppsAppIdRequest(server string, orgId string, appId string) (*http.Request, error) { - var err error +func (c *Client) GetUsersMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersMeRequest(c.Server) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - var pathParam0 string +func (c *Client) GetUsersUserIdTokens(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersUserIdTokensRequest(c.Server, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) +func (c *Client) PostUsersUserIdTokensWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostUsersUserIdTokensRequestWithBody(c.Server, userId, contentType, body) if err != nil { return nil, err } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - var pathParam1 string +func (c *Client) PostUsersUserIdTokens(ctx context.Context, userId string, body PostUsersUserIdTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostUsersUserIdTokensRequest(c.Server, userId, 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) +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) +func (c *Client) DeleteUsersUserIdTokensTokenId(ctx context.Context, userId string, tokenId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteUsersUserIdTokensTokenIdRequest(c.Server, userId, tokenId) + 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) GetUsersUserIdTokensTokenId(ctx context.Context, userId string, tokenId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersUserIdTokensTokenIdRequest(c.Server, userId, tokenId) 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) +} + +// NewGetCurrentUserRequest generates requests for GetCurrentUser +func NewGetCurrentUserRequest(server string) (*http.Request, error) { + var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/current-user") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5920,7 +6726,7 @@ func NewDeleteOrgsOrgIdAppsAppIdRequest(server string, orgId string, appId strin 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 } @@ -5928,30 +6734,56 @@ func NewDeleteOrgsOrgIdAppsAppIdRequest(server string, orgId string, appId strin return req, nil } -// NewGetOrgsOrgIdAppsAppIdRequest generates requests for GetOrgsOrgIdAppsAppId -func NewGetOrgsOrgIdAppsAppIdRequest(server string, orgId string, appId string) (*http.Request, error) { - var err error +// NewPatchCurrentUserRequest calls the generic PatchCurrentUser builder with application/json body +func NewPatchCurrentUserRequest(server string, body PatchCurrentUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPatchCurrentUserRequestWithBody(server, "application/json", bodyReader) +} - var pathParam0 string +// NewPatchCurrentUserRequestWithBody generates requests for PatchCurrentUser with any type of body +func NewPatchCurrentUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - var pathParam1 string + operationPath := fmt.Sprintf("/current-user") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetOrgsRequest generates requests for GetOrgs +func NewGetOrgsRequest(server string) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -5969,8 +6801,8 @@ func NewGetOrgsOrgIdAppsAppIdRequest(server string, orgId string, appId string) return req, nil } -// NewGetOrgsOrgIdAppsAppIdDeltasRequest generates requests for GetOrgsOrgIdAppsAppIdDeltas -func NewGetOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams) (*http.Request, error) { +// NewGetOrgsOrgIdRequest generates requests for GetOrgsOrgId +func NewGetOrgsOrgIdRequest(server string, orgId string) (*http.Request, error) { var err error var pathParam0 string @@ -5980,19 +6812,12 @@ func NewGetOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId string, appId st return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6002,42 +6827,38 @@ func NewGetOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId string, appId st 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.Archived != nil { + return req, nil +} - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } +// NewGetOrgsOrgIdAppsRequest generates requests for GetOrgsOrgIdApps +func NewGetOrgsOrgIdAppsRequest(server string, orgId string) (*http.Request, error) { + var err error - } + var pathParam0 string - if params.Env != nil { + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "env", runtime.ParamLocationQuery, *params.Env); err != nil { - return nil, err - } else if 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("/orgs/%s/apps", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - queryURL.RawQuery = queryValues.Encode() + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -6048,19 +6869,19 @@ func NewGetOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId string, appId st return req, nil } -// NewPostOrgsOrgIdAppsAppIdDeltasRequest calls the generic PostOrgsOrgIdAppsAppIdDeltas builder with application/json body -func NewPostOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId string, appId string, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdAppsRequest calls the generic PostOrgsOrgIdApps builder with application/json body +func NewPostOrgsOrgIdAppsRequest(server string, orgId string, body PostOrgsOrgIdAppsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdAppsAppIdDeltasRequestWithBody(server, orgId, appId, "application/json", bodyReader) + return NewPostOrgsOrgIdAppsRequestWithBody(server, orgId, "application/json", bodyReader) } -// NewPostOrgsOrgIdAppsAppIdDeltasRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdDeltas with any type of body -func NewPostOrgsOrgIdAppsAppIdDeltasRequestWithBody(server string, orgId string, appId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdAppsRequestWithBody generates requests for PostOrgsOrgIdApps with any type of body +func NewPostOrgsOrgIdAppsRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6070,19 +6891,12 @@ func NewPostOrgsOrgIdAppsAppIdDeltasRequestWithBody(server string, orgId string, return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6102,8 +6916,8 @@ func NewPostOrgsOrgIdAppsAppIdDeltasRequestWithBody(server string, orgId string, return req, nil } -// NewGetDeltaRequest generates requests for GetDelta -func NewGetDeltaRequest(server string, orgId string, appId string, deltaId string) (*http.Request, error) { +// NewDeleteOrgsOrgIdAppsAppIdRequest generates requests for DeleteOrgsOrgIdAppsAppId +func NewDeleteOrgsOrgIdAppsAppIdRequest(server string, orgId string, appId string) (*http.Request, error) { var err error var pathParam0 string @@ -6120,19 +6934,12 @@ func NewGetDeltaRequest(server string, orgId string, appId string, deltaId strin return nil, err } - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "deltaId", runtime.ParamLocationPath, deltaId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6142,7 +6949,7 @@ func NewGetDeltaRequest(server string, orgId string, appId string, deltaId strin 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 } @@ -6150,19 +6957,8 @@ func NewGetDeltaRequest(server string, orgId string, appId string, deltaId strin return req, nil } -// NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequest calls the generic PatchOrgsOrgIdAppsAppIdDeltasDeltaId builder with application/json body -func NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequest(server string, orgId string, appId string, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequestWithBody(server, orgId, appId, deltaId, "application/json", bodyReader) -} - -// NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequestWithBody generates requests for PatchOrgsOrgIdAppsAppIdDeltasDeltaId with any type of body -func NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequestWithBody(server string, orgId string, appId string, deltaId string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetOrgsOrgIdAppsAppIdRequest generates requests for GetOrgsOrgIdAppsAppId +func NewGetOrgsOrgIdAppsAppIdRequest(server string, orgId string, appId string) (*http.Request, error) { var err error var pathParam0 string @@ -6179,9 +6975,43 @@ func NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequestWithBody(server string, orgId return nil, err } - var pathParam2 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "deltaId", runtime.ParamLocationPath, deltaId) + operationPath := fmt.Sprintf("/orgs/%s/apps/%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 +} + +// NewListApprovalRequestsRequest generates requests for ListApprovalRequests +func NewListApprovalRequestsRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, params *ListApprovalRequestsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) if err != nil { return nil, err } @@ -6191,7 +7021,7 @@ func NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequestWithBody(server string, orgId return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/approvals", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6201,29 +7031,102 @@ func NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequestWithBody(server string, orgId return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - req.Header.Add("Content-Type", contentType) + if params.PerPage != nil { - return req, nil -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } -// NewPutDeltaRequest calls the generic PutDelta builder with application/json body -func NewPutDeltaRequest(server string, orgId string, appId string, deltaId string, body PutDeltaJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if 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.Pipeline != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pipeline", runtime.ParamLocationQuery, *params.Pipeline); err != nil { + return nil, err + } else if 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.Run != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "run", runtime.ParamLocationQuery, *params.Run); err != nil { + return nil, err + } else if 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.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPutDeltaRequestWithBody(server, orgId, appId, deltaId, "application/json", bodyReader) + + return req, nil } -// NewPutDeltaRequestWithBody generates requests for PutDelta with any type of body -func NewPutDeltaRequestWithBody(server string, orgId string, appId string, deltaId string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetOrgsOrgIdAppsAppIdDeltasRequest generates requests for GetOrgsOrgIdAppsAppIdDeltas +func NewGetOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams) (*http.Request, error) { var err error var pathParam0 string @@ -6240,19 +7143,12 @@ func NewPutDeltaRequestWithBody(server string, orgId string, appId string, delta return nil, err } - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "deltaId", runtime.ParamLocationPath, deltaId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6262,29 +7158,65 @@ func NewPutDeltaRequestWithBody(server string, orgId string, appId string, delta return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + if params != nil { + queryValues := queryURL.Query() + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if 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.Env != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "env", runtime.ParamLocationQuery, *params.Env); err != nil { + return nil, err + } else if 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 } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequest calls the generic PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived builder with application/json body -func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequest(server string, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdAppsAppIdDeltasRequest calls the generic PostOrgsOrgIdAppsAppIdDeltas builder with application/json body +func NewPostOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId string, appId string, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequestWithBody(server, orgId, appId, deltaId, "application/json", bodyReader) + return NewPostOrgsOrgIdAppsAppIdDeltasRequestWithBody(server, orgId, appId, "application/json", bodyReader) } -// NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequestWithBody generates requests for PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived with any type of body -func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequestWithBody(server string, orgId string, appId string, deltaId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdAppsAppIdDeltasRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdDeltas with any type of body +func NewPostOrgsOrgIdAppsAppIdDeltasRequestWithBody(server string, orgId string, appId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6301,19 +7233,12 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequestWithBody(server return nil, err } - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "deltaId", runtime.ParamLocationPath, deltaId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas/%s/metadata/archived", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6323,7 +7248,7 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequestWithBody(server 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 } @@ -6333,19 +7258,8 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequestWithBody(server return req, nil } -// NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequest calls the generic PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId builder with application/json body -func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequest(server string, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequestWithBody(server, orgId, appId, deltaId, "application/json", bodyReader) -} - -// NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequestWithBody generates requests for PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId with any type of body -func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequestWithBody(server string, orgId string, appId string, deltaId string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetDeltaRequest generates requests for GetDelta +func NewGetDeltaRequest(server string, orgId string, appId string, deltaId string) (*http.Request, error) { var err error var pathParam0 string @@ -6374,7 +7288,7 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequestWithBody(server st return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas/%s/metadata/env_id", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6384,29 +7298,27 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequestWithBody(server st 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 } -// NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequest calls the generic PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName builder with application/json body -func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequest(server string, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody) (*http.Request, error) { +// NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequest calls the generic PatchOrgsOrgIdAppsAppIdDeltasDeltaId builder with application/json body +func NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequest(server string, orgId string, appId string, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequestWithBody(server, orgId, appId, deltaId, "application/json", bodyReader) + return NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequestWithBody(server, orgId, appId, deltaId, "application/json", bodyReader) } -// NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequestWithBody generates requests for PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName with any type of body -func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequestWithBody(server string, orgId string, appId string, deltaId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequestWithBody generates requests for PatchOrgsOrgIdAppsAppIdDeltasDeltaId with any type of body +func NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequestWithBody(server string, orgId string, appId string, deltaId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -6435,7 +7347,7 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequestWithBody(server str return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas/%s/metadata/name", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -6445,7 +7357,7 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequestWithBody(server str return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -6455,9 +7367,253 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequestWithBody(server str return req, nil } -// NewGetOrgsOrgIdAppsAppIdEnvsRequest generates requests for GetOrgsOrgIdAppsAppIdEnvs -func NewGetOrgsOrgIdAppsAppIdEnvsRequest(server string, orgId string, appId string) (*http.Request, error) { - var err error +// NewPutDeltaRequest calls the generic PutDelta builder with application/json body +func NewPutDeltaRequest(server string, orgId string, appId string, deltaId string, body PutDeltaJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPutDeltaRequestWithBody(server, orgId, appId, deltaId, "application/json", bodyReader) +} + +// NewPutDeltaRequestWithBody generates requests for PutDelta with any type of body +func NewPutDeltaRequestWithBody(server string, orgId string, appId string, deltaId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "deltaId", runtime.ParamLocationPath, deltaId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas/%s", pathParam0, pathParam1, pathParam2) + 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 +} + +// NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequest calls the generic PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived builder with application/json body +func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequest(server string, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequestWithBody(server, orgId, appId, deltaId, "application/json", bodyReader) +} + +// NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequestWithBody generates requests for PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived with any type of body +func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequestWithBody(server string, orgId string, appId string, deltaId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "deltaId", runtime.ParamLocationPath, deltaId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas/%s/metadata/archived", pathParam0, pathParam1, pathParam2) + 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 +} + +// NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequest calls the generic PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId builder with application/json body +func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequest(server string, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequestWithBody(server, orgId, appId, deltaId, "application/json", bodyReader) +} + +// NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequestWithBody generates requests for PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId with any type of body +func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequestWithBody(server string, orgId string, appId string, deltaId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "deltaId", runtime.ParamLocationPath, deltaId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas/%s/metadata/env_id", pathParam0, pathParam1, pathParam2) + 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 +} + +// NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequest calls the generic PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName builder with application/json body +func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequest(server string, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequestWithBody(server, orgId, appId, deltaId, "application/json", bodyReader) +} + +// NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequestWithBody generates requests for PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName with any type of body +func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequestWithBody(server string, orgId string, appId string, deltaId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "deltaId", runtime.ParamLocationPath, deltaId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/deltas/%s/metadata/name", pathParam0, pathParam1, pathParam2) + 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 +} + +// NewGetOrgsOrgIdAppsAppIdEnvsRequest generates requests for GetOrgsOrgIdAppsAppIdEnvs +func NewGetOrgsOrgIdAppsAppIdEnvsRequest(server string, orgId string, appId string) (*http.Request, error) { + var err error var pathParam0 string @@ -8286,8 +9442,8 @@ func NewDeleteOrgsOrgIdAppsAppIdJobsRequest(server string, orgId string, appId s return req, nil } -// NewGetOrgsOrgIdAppsAppIdRuntimeRequest generates requests for GetOrgsOrgIdAppsAppIdRuntime -func NewGetOrgsOrgIdAppsAppIdRuntimeRequest(server string, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdRuntimeParams) (*http.Request, error) { +// NewListPipelinesRequest generates requests for ListPipelines +func NewListPipelinesRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelinesParams) (*http.Request, error) { var err error var pathParam0 string @@ -8309,7 +9465,7 @@ func NewGetOrgsOrgIdAppsAppIdRuntimeRequest(server string, orgId string, appId s return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/runtime", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8322,9 +9478,9 @@ func NewGetOrgsOrgIdAppsAppIdRuntimeRequest(server string, orgId string, appId s if params != nil { queryValues := queryURL.Query() - if params.Id != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -8338,19 +9494,67 @@ func NewGetOrgsOrgIdAppsAppIdRuntimeRequest(server string, orgId string, appId s } - queryURL.RawQuery = queryValues.Encode() - } + if params.Page != nil { - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if 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.Trigger != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "trigger", runtime.ParamLocationQuery, *params.Trigger); err != nil { + return nil, err + } else if 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.Metadata != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("deepObject", true, "metadata", runtime.ParamLocationQuery, *params.Metadata); err != nil { + return nil, err + } else if 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 } -// NewGetSetsRequest generates requests for GetSets -func NewGetSetsRequest(server string, orgId string, appId string) (*http.Request, error) { +// NewCreatePipelineRequestWithBody generates requests for CreatePipeline with any type of body +func NewCreatePipelineRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8372,7 +9576,7 @@ func NewGetSetsRequest(server string, orgId string, appId string) (*http.Request return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/sets", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8382,16 +9586,18 @@ func NewGetSetsRequest(server string, orgId string, appId string) (*http.Request return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest generates requests for GetOrgsOrgIdAppsAppIdSetsSetId -func NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest(server string, orgId string, appId string, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams) (*http.Request, error) { +// NewDeletePipelineRequest generates requests for DeletePipeline +func NewDeletePipelineRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *DeletePipelineParams) (*http.Request, error) { var err error var pathParam0 string @@ -8410,7 +9616,7 @@ func NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest(server string, orgId string, appId var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "setId", runtime.ParamLocationPath, setId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) if err != nil { return nil, err } @@ -8420,7 +9626,7 @@ func NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest(server string, orgId string, appId return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/sets/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8430,49 +9636,27 @@ func NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest(server string, orgId string, appId return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Diff != nil { + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "diff", runtime.ParamLocationQuery, *params.Diff); err != nil { - return nil, err - } else if 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.IfMatch != nil { + var headerParam0 string + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "If-Match", runtime.ParamLocationHeader, *params.IfMatch) + if err != nil { + return nil, err } - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err + req.Header.Set("If-Match", headerParam0) } return req, nil } -// NewPostOrgsOrgIdAppsAppIdSetsSetIdRequest calls the generic PostOrgsOrgIdAppsAppIdSetsSetId builder with application/json body -func NewPostOrgsOrgIdAppsAppIdSetsSetIdRequest(server string, orgId string, appId string, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody(server, orgId, appId, setId, "application/json", bodyReader) -} - -// NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdSetsSetId with any type of body -func NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody(server string, orgId string, appId string, setId string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetPipelineRequest generates requests for GetPipeline +func NewGetPipelineRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *GetPipelineParams) (*http.Request, error) { var err error var pathParam0 string @@ -8491,7 +9675,7 @@ func NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody(server string, orgId stri var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "setId", runtime.ParamLocationPath, setId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) if err != nil { return nil, err } @@ -8501,7 +9685,7 @@ func NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody(server string, orgId stri return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/sets/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8511,18 +9695,38 @@ func NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody(server string, orgId stri return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + if params != nil { + queryValues := queryURL.Query() + + if params.Version != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version", runtime.ParamLocationQuery, *params.Version); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest generates requests for GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId -func NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest(server string, orgId string, appId string, setId string, sourceSetId string) (*http.Request, error) { +// NewUpdatePipelineRequestWithBody generates requests for UpdatePipeline with any type of body +func NewUpdatePipelineRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *UpdatePipelineParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8541,14 +9745,7 @@ func NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest(server string, orgI var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "setId", runtime.ParamLocationPath, setId) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "sourceSetId", runtime.ParamLocationPath, sourceSetId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) if err != nil { return nil, err } @@ -8558,7 +9755,7 @@ func NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest(server string, orgI return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/sets/%s/diff/%s", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8568,16 +9765,29 @@ func NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest(server string, orgI return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + + if params.IfMatch != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "If-Match", runtime.ParamLocationHeader, *params.IfMatch) + if err != nil { + return nil, err + } + + req.Header.Set("If-Match", headerParam0) + } + return req, nil } -// NewGetOrgsOrgIdAppsAppIdUsersRequest generates requests for GetOrgsOrgIdAppsAppIdUsers -func NewGetOrgsOrgIdAppsAppIdUsersRequest(server string, orgId string, appId string) (*http.Request, error) { +// NewListPipelineRunsRequest generates requests for ListPipelineRuns +func NewListPipelineRunsRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineRunsParams) (*http.Request, error) { var err error var pathParam0 string @@ -8594,12 +9804,19 @@ func NewGetOrgsOrgIdAppsAppIdUsersRequest(server string, orgId string, appId str return nil, err } + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/users", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/runs", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8609,6 +9826,108 @@ func NewGetOrgsOrgIdAppsAppIdUsersRequest(server string, orgId string, appId str return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Completed != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "completed", runtime.ParamLocationQuery, *params.Completed); err != nil { + return nil, err + } else if 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.CreatedAfter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_after", runtime.ParamLocationQuery, *params.CreatedAfter); err != nil { + return nil, err + } else if 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.CreatedBefore != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_before", runtime.ParamLocationQuery, *params.CreatedBefore); err != nil { + return nil, err + } else if 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.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if 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.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if 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 @@ -8617,19 +9936,19 @@ func NewGetOrgsOrgIdAppsAppIdUsersRequest(server string, orgId string, appId str return req, nil } -// NewPostOrgsOrgIdAppsAppIdUsersRequest calls the generic PostOrgsOrgIdAppsAppIdUsers builder with application/json body -func NewPostOrgsOrgIdAppsAppIdUsersRequest(server string, orgId string, appId string, body PostOrgsOrgIdAppsAppIdUsersJSONRequestBody) (*http.Request, error) { +// NewCreatePipelineRunRequest calls the generic CreatePipelineRun builder with application/json body +func NewCreatePipelineRunRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *CreatePipelineRunParams, body CreatePipelineRunJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdAppsAppIdUsersRequestWithBody(server, orgId, appId, "application/json", bodyReader) + return NewCreatePipelineRunRequestWithBody(server, orgId, appId, pipelineId, params, "application/json", bodyReader) } -// NewPostOrgsOrgIdAppsAppIdUsersRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdUsers with any type of body -func NewPostOrgsOrgIdAppsAppIdUsersRequestWithBody(server string, orgId string, appId string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreatePipelineRunRequestWithBody generates requests for CreatePipelineRun with any type of body +func NewCreatePipelineRunRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *CreatePipelineRunParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -8646,13 +9965,20 @@ func NewPostOrgsOrgIdAppsAppIdUsersRequestWithBody(server string, orgId string, return nil, err } - serverURL, err := url.Parse(server) + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/users", pathParam0, pathParam1) - if operationPath[0] == '/' { + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/runs", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8668,11 +9994,22 @@ func NewPostOrgsOrgIdAppsAppIdUsersRequestWithBody(server string, orgId string, req.Header.Add("Content-Type", contentType) + if params.IdempotencyKey != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Idempotency-Key", runtime.ParamLocationHeader, *params.IdempotencyKey) + if err != nil { + return nil, err + } + + req.Header.Set("Idempotency-Key", headerParam0) + } + return req, nil } -// NewDeleteOrgsOrgIdAppsAppIdUsersUserIdRequest generates requests for DeleteOrgsOrgIdAppsAppIdUsersUserId -func NewDeleteOrgsOrgIdAppsAppIdUsersUserIdRequest(server string, orgId string, appId string, userId string) (*http.Request, error) { +// NewDeleteRunRequest generates requests for DeleteRun +func NewDeleteRunRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *DeleteRunParams) (*http.Request, error) { var err error var pathParam0 string @@ -8691,7 +10028,14 @@ func NewDeleteOrgsOrgIdAppsAppIdUsersUserIdRequest(server string, orgId string, var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "runId", runtime.ParamLocationPath, runId) if err != nil { return nil, err } @@ -8701,7 +10045,7 @@ func NewDeleteOrgsOrgIdAppsAppIdUsersUserIdRequest(server string, orgId string, return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/users/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/runs/%s", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8716,11 +10060,22 @@ func NewDeleteOrgsOrgIdAppsAppIdUsersUserIdRequest(server string, orgId string, return nil, err } + if params.IfMatch != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "If-Match", runtime.ParamLocationHeader, *params.IfMatch) + if err != nil { + return nil, err + } + + req.Header.Set("If-Match", headerParam0) + } + return req, nil } -// NewGetOrgsOrgIdAppsAppIdUsersUserIdRequest generates requests for GetOrgsOrgIdAppsAppIdUsersUserId -func NewGetOrgsOrgIdAppsAppIdUsersUserIdRequest(server string, orgId string, appId string, userId string) (*http.Request, error) { +// NewGetRunRequest generates requests for GetRun +func NewGetRunRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam) (*http.Request, error) { var err error var pathParam0 string @@ -8739,7 +10094,14 @@ func NewGetOrgsOrgIdAppsAppIdUsersUserIdRequest(server string, orgId string, app var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "runId", runtime.ParamLocationPath, runId) if err != nil { return nil, err } @@ -8749,7 +10111,7 @@ func NewGetOrgsOrgIdAppsAppIdUsersUserIdRequest(server string, orgId string, app return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/users/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/runs/%s", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8767,19 +10129,8 @@ func NewGetOrgsOrgIdAppsAppIdUsersUserIdRequest(server string, orgId string, app return req, nil } -// NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequest calls the generic PatchOrgsOrgIdAppsAppIdUsersUserId builder with application/json body -func NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequest(server string, orgId string, appId string, userId string, body PatchOrgsOrgIdAppsAppIdUsersUserIdJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequestWithBody(server, orgId, appId, userId, "application/json", bodyReader) -} - -// NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequestWithBody generates requests for PatchOrgsOrgIdAppsAppIdUsersUserId with any type of body -func NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequestWithBody(server string, orgId string, appId string, userId string, contentType string, body io.Reader) (*http.Request, error) { +// NewCancelRunRequest generates requests for CancelRun +func NewCancelRunRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *CancelRunParams) (*http.Request, error) { var err error var pathParam0 string @@ -8798,7 +10149,14 @@ func NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequestWithBody(server string, orgId s var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "runId", runtime.ParamLocationPath, runId) if err != nil { return nil, err } @@ -8808,7 +10166,7 @@ func NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequestWithBody(server string, orgId s return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/users/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/runs/%s/cancel", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8818,18 +10176,27 @@ func NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequestWithBody(server string, orgId s return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) + if params.IfMatch != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "If-Match", runtime.ParamLocationHeader, *params.IfMatch) + if err != nil { + return nil, err + } + + req.Header.Set("If-Match", headerParam0) + } return req, nil } -// NewGetOrgsOrgIdAppsAppIdValueSetVersionsRequest generates requests for GetOrgsOrgIdAppsAppIdValueSetVersions -func NewGetOrgsOrgIdAppsAppIdValueSetVersionsRequest(server string, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdValueSetVersionsParams) (*http.Request, error) { +// NewListRunJobsRequest generates requests for ListRunJobs +func NewListRunJobsRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *ListRunJobsParams) (*http.Request, error) { var err error var pathParam0 string @@ -8846,12 +10213,26 @@ func NewGetOrgsOrgIdAppsAppIdValueSetVersionsRequest(server string, orgId string return nil, err } + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "runId", runtime.ParamLocationPath, runId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/value-set-versions", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/runs/%s/jobs", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8864,9 +10245,41 @@ func NewGetOrgsOrgIdAppsAppIdValueSetVersionsRequest(server string, orgId string if params != nil { queryValues := queryURL.Query() - if params.KeyChanged != nil { + if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key_changed", runtime.ParamLocationQuery, *params.KeyChanged); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if 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.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -8891,8 +10304,8 @@ func NewGetOrgsOrgIdAppsAppIdValueSetVersionsRequest(server string, orgId string return req, nil } -// NewGetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRequest generates requests for GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionId -func NewGetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRequest(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID) (*http.Request, error) { +// NewGetRunJobRequest generates requests for GetRunJob +func NewGetRunJobRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam) (*http.Request, error) { var err error var pathParam0 string @@ -8911,7 +10324,21 @@ func NewGetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRequest(server str var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "valueSetVersionId", runtime.ParamLocationPath, valueSetVersionId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "runId", runtime.ParamLocationPath, runId) + if err != nil { + return nil, err + } + + var pathParam4 string + + pathParam4, err = runtime.StyleParamWithLocation("simple", false, "jobId", runtime.ParamLocationPath, jobId) if err != nil { return nil, err } @@ -8921,7 +10348,7 @@ func NewGetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRequest(server str return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/value-set-versions/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/runs/%s/jobs/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8939,19 +10366,8 @@ func NewGetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRequest(server str return req, nil } -// NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequest calls the generic PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKey builder with application/json body -func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequest(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequestWithBody(server, orgId, appId, valueSetVersionId, key, "application/json", bodyReader) -} - -// NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKey with any type of body -func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequestWithBody(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetApprovalRequestRequest generates requests for GetApprovalRequest +func NewGetApprovalRequestRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam) (*http.Request, error) { var err error var pathParam0 string @@ -8970,14 +10386,28 @@ func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequestWi var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "valueSetVersionId", runtime.ParamLocationPath, valueSetVersionId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "key", runtime.ParamLocationPath, key) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "runId", runtime.ParamLocationPath, runId) + if err != nil { + return nil, err + } + + var pathParam4 string + + pathParam4, err = runtime.StyleParamWithLocation("simple", false, "jobId", runtime.ParamLocationPath, jobId) + if err != nil { + return nil, err + } + + var pathParam5 string + + pathParam5, err = runtime.StyleParamWithLocation("simple", false, "approvalId", runtime.ParamLocationPath, approvalId) if err != nil { return nil, err } @@ -8987,7 +10417,7 @@ func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequestWi return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/value-set-versions/%s/purge/%s", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/runs/%s/jobs/%s/approvals/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4, pathParam5) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -8997,29 +10427,16 @@ func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequestWi 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 } -// NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequest calls the generic PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestore builder with application/json body -func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequest(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequestWithBody(server, orgId, appId, valueSetVersionId, "application/json", bodyReader) -} - -// NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestore with any type of body -func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequestWithBody(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { +// NewApproveApprovalRequestRequest generates requests for ApproveApprovalRequest +func NewApproveApprovalRequestRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam) (*http.Request, error) { var err error var pathParam0 string @@ -9038,49 +10455,57 @@ func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequestWit var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "valueSetVersionId", runtime.ParamLocationPath, valueSetVersionId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) if err != nil { return nil, err } - serverURL, err := url.Parse(server) + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "runId", runtime.ParamLocationPath, runId) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/value-set-versions/%s/restore", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath + var pathParam4 string + + pathParam4, err = runtime.StyleParamWithLocation("simple", false, "jobId", runtime.ParamLocationPath, jobId) + if err != nil { + return nil, err } - queryURL, err := serverURL.Parse(operationPath) + var pathParam5 string + + pathParam5, err = runtime.StyleParamWithLocation("simple", false, "approvalId", runtime.ParamLocationPath, approvalId) if err != nil { return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + serverURL, err := url.Parse(server) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/runs/%s/jobs/%s/approvals/%s/approve", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4, pathParam5) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - return req, nil -} + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } -// NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequest calls the generic PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKey builder with application/json body -func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequest(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequestWithBody(server, orgId, appId, valueSetVersionId, key, "application/json", bodyReader) + + return req, nil } -// NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKey with any type of body -func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequestWithBody(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader) (*http.Request, error) { +// NewDenyApprovalRequestRequest generates requests for DenyApprovalRequest +func NewDenyApprovalRequestRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam) (*http.Request, error) { var err error var pathParam0 string @@ -9099,14 +10524,28 @@ func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequest var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "valueSetVersionId", runtime.ParamLocationPath, valueSetVersionId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) if err != nil { return nil, err } var pathParam3 string - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "key", runtime.ParamLocationPath, key) + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "runId", runtime.ParamLocationPath, runId) + if err != nil { + return nil, err + } + + var pathParam4 string + + pathParam4, err = runtime.StyleParamWithLocation("simple", false, "jobId", runtime.ParamLocationPath, jobId) + if err != nil { + return nil, err + } + + var pathParam5 string + + pathParam5, err = runtime.StyleParamWithLocation("simple", false, "approvalId", runtime.ParamLocationPath, approvalId) if err != nil { return nil, err } @@ -9116,7 +10555,7 @@ func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequest return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/value-set-versions/%s/restore/%s", pathParam0, pathParam1, pathParam2, pathParam3) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/runs/%s/jobs/%s/approvals/%s/deny", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4, pathParam5) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9126,18 +10565,16 @@ func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequest return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteOrgsOrgIdAppsAppIdValuesRequest generates requests for DeleteOrgsOrgIdAppsAppIdValues -func NewDeleteOrgsOrgIdAppsAppIdValuesRequest(server string, orgId string, appId string) (*http.Request, error) { +// NewListRunJobStepLogsRequest generates requests for ListRunJobStepLogs +func NewListRunJobStepLogsRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, stepIndex StepIndexPathParam, params *ListRunJobStepLogsParams) (*http.Request, error) { var err error var pathParam0 string @@ -9154,43 +10591,30 @@ func NewDeleteOrgsOrgIdAppsAppIdValuesRequest(server string, orgId string, appId return nil, err } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/values", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + var pathParam2 string - queryURL, err := serverURL.Parse(operationPath) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) if err != nil { return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "runId", runtime.ParamLocationPath, runId) if err != nil { return nil, err } - return req, nil -} - -// NewGetOrgsOrgIdAppsAppIdValuesRequest generates requests for GetOrgsOrgIdAppsAppIdValues -func NewGetOrgsOrgIdAppsAppIdValuesRequest(server string, orgId string, appId string) (*http.Request, error) { - var err error - - var pathParam0 string + var pathParam4 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + pathParam4, err = runtime.StyleParamWithLocation("simple", false, "jobId", runtime.ParamLocationPath, jobId) if err != nil { return nil, err } - var pathParam1 string + var pathParam5 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + pathParam5, err = runtime.StyleParamWithLocation("simple", false, "stepIndex", runtime.ParamLocationPath, stepIndex) if err != nil { return nil, err } @@ -9200,7 +10624,7 @@ func NewGetOrgsOrgIdAppsAppIdValuesRequest(server string, orgId string, appId st return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/values", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/runs/%s/jobs/%s/steps/%s/logs", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4, pathParam5) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9210,70 +10634,38 @@ func NewGetOrgsOrgIdAppsAppIdValuesRequest(server string, orgId string, appId st return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostOrgsOrgIdAppsAppIdValuesRequest calls the generic PostOrgsOrgIdAppsAppIdValues builder with application/json body -func NewPostOrgsOrgIdAppsAppIdValuesRequest(server string, orgId string, appId string, body PostOrgsOrgIdAppsAppIdValuesJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdAppsAppIdValuesRequestWithBody(server, orgId, appId, "application/json", bodyReader) -} - -// NewPostOrgsOrgIdAppsAppIdValuesRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdValues with any type of body -func NewPostOrgsOrgIdAppsAppIdValuesRequestWithBody(server string, orgId string, appId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) - if err != nil { - return nil, err - } - - var pathParam1 string + if params != nil { + queryValues := queryURL.Query() - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) - if err != nil { - return nil, err - } + if params.Page != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/values", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteOrgsOrgIdAppsAppIdValuesKeyRequest generates requests for DeleteOrgsOrgIdAppsAppIdValuesKey -func NewDeleteOrgsOrgIdAppsAppIdValuesKeyRequest(server string, orgId string, appId string, key string) (*http.Request, error) { +// NewRestartRunRequest generates requests for RestartRun +func NewRestartRunRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *RestartRunParams) (*http.Request, error) { var err error var pathParam0 string @@ -9292,7 +10684,14 @@ func NewDeleteOrgsOrgIdAppsAppIdValuesKeyRequest(server string, orgId string, ap var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "key", runtime.ParamLocationPath, key) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "runId", runtime.ParamLocationPath, runId) if err != nil { return nil, err } @@ -9302,7 +10701,7 @@ func NewDeleteOrgsOrgIdAppsAppIdValuesKeyRequest(server string, orgId string, ap return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/values/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/runs/%s/restart", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9312,27 +10711,27 @@ func NewDeleteOrgsOrgIdAppsAppIdValuesKeyRequest(server string, orgId string, ap return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } - return req, nil -} + if params.IdempotencyKey != nil { + var headerParam0 string -// NewPatchOrgsOrgIdAppsAppIdValuesKeyRequest calls the generic PatchOrgsOrgIdAppsAppIdValuesKey builder with application/json body -func NewPatchOrgsOrgIdAppsAppIdValuesKeyRequest(server string, orgId string, appId string, key string, body PatchOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Idempotency-Key", runtime.ParamLocationHeader, *params.IdempotencyKey) + if err != nil { + return nil, err + } + + req.Header.Set("Idempotency-Key", headerParam0) } - bodyReader = bytes.NewReader(buf) - return NewPatchOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server, orgId, appId, key, "application/json", bodyReader) + + return req, nil } -// NewPatchOrgsOrgIdAppsAppIdValuesKeyRequestWithBody generates requests for PatchOrgsOrgIdAppsAppIdValuesKey with any type of body -func NewPatchOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server string, orgId string, appId string, key string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetPipelineSchemaRequest generates requests for GetPipelineSchema +func NewGetPipelineSchemaRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *GetPipelineSchemaParams) (*http.Request, error) { var err error var pathParam0 string @@ -9351,7 +10750,7 @@ func NewPatchOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server string, orgId str var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "key", runtime.ParamLocationPath, key) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) if err != nil { return nil, err } @@ -9361,7 +10760,7 @@ func NewPatchOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server string, orgId str return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/values/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/schema", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9371,29 +10770,49 @@ func NewPatchOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server string, orgId str return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + if params != nil { + queryValues := queryURL.Query() + + if params.Version != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "version", runtime.ParamLocationQuery, *params.Version); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) + if params.Accept != nil { + var headerParam0 string - return req, nil -} + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept) + if err != nil { + return nil, err + } -// NewPutOrgsOrgIdAppsAppIdValuesKeyRequest calls the generic PutOrgsOrgIdAppsAppIdValuesKey builder with application/json body -func NewPutOrgsOrgIdAppsAppIdValuesKeyRequest(server string, orgId string, appId string, key string, body PutOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err + req.Header.Set("Accept", headerParam0) } - bodyReader = bytes.NewReader(buf) - return NewPutOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server, orgId, appId, key, "application/json", bodyReader) + + return req, nil } -// NewPutOrgsOrgIdAppsAppIdValuesKeyRequestWithBody generates requests for PutOrgsOrgIdAppsAppIdValuesKey with any type of body -func NewPutOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server string, orgId string, appId string, key string, contentType string, body io.Reader) (*http.Request, error) { +// NewListPipelineVersionsRequest generates requests for ListPipelineVersions +func NewListPipelineVersionsRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineVersionsParams) (*http.Request, error) { var err error var pathParam0 string @@ -9412,7 +10831,7 @@ func NewPutOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server string, orgId strin var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "key", runtime.ParamLocationPath, key) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "pipelineId", runtime.ParamLocationPath, pipelineId) if err != nil { return nil, err } @@ -9422,7 +10841,7 @@ func NewPutOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server string, orgId strin return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/values/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipelines/%s/versions", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9432,18 +10851,54 @@ func NewPutOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server string, orgId strin return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + if params != nil { + queryValues := queryURL.Query() + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if 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.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if 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 } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetOrgsOrgIdAppsAppIdWebhooksRequest generates requests for GetOrgsOrgIdAppsAppIdWebhooks -func NewGetOrgsOrgIdAppsAppIdWebhooksRequest(server string, orgId string, appId string) (*http.Request, error) { +// NewGetOrgsOrgIdAppsAppIdRuntimeRequest generates requests for GetOrgsOrgIdAppsAppIdRuntime +func NewGetOrgsOrgIdAppsAppIdRuntimeRequest(server string, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdRuntimeParams) (*http.Request, error) { var err error var pathParam0 string @@ -9465,7 +10920,7 @@ func NewGetOrgsOrgIdAppsAppIdWebhooksRequest(server string, orgId string, appId return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/webhooks", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/runtime", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9475,6 +10930,28 @@ func NewGetOrgsOrgIdAppsAppIdWebhooksRequest(server string, orgId string, appId return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Id != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -9483,19 +10960,8 @@ func NewGetOrgsOrgIdAppsAppIdWebhooksRequest(server string, orgId string, appId return req, nil } -// NewPostOrgsOrgIdAppsAppIdWebhooksRequest calls the generic PostOrgsOrgIdAppsAppIdWebhooks builder with application/json body -func NewPostOrgsOrgIdAppsAppIdWebhooksRequest(server string, orgId string, appId string, body PostOrgsOrgIdAppsAppIdWebhooksJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdAppsAppIdWebhooksRequestWithBody(server, orgId, appId, "application/json", bodyReader) -} - -// NewPostOrgsOrgIdAppsAppIdWebhooksRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdWebhooks with any type of body -func NewPostOrgsOrgIdAppsAppIdWebhooksRequestWithBody(server string, orgId string, appId string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetSetsRequest generates requests for GetSets +func NewGetSetsRequest(server string, orgId string, appId string) (*http.Request, error) { var err error var pathParam0 string @@ -9517,7 +10983,7 @@ func NewPostOrgsOrgIdAppsAppIdWebhooksRequestWithBody(server string, orgId strin return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/webhooks", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/sets", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9527,18 +10993,16 @@ func NewPostOrgsOrgIdAppsAppIdWebhooksRequestWithBody(server string, orgId strin 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 } -// NewDeleteOrgsOrgIdAppsAppIdWebhooksJobIdRequest generates requests for DeleteOrgsOrgIdAppsAppIdWebhooksJobId -func NewDeleteOrgsOrgIdAppsAppIdWebhooksJobIdRequest(server string, orgId string, appId string, jobId string) (*http.Request, error) { +// NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest generates requests for GetOrgsOrgIdAppsAppIdSetsSetId +func NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest(server string, orgId string, appId string, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams) (*http.Request, error) { var err error var pathParam0 string @@ -9557,7 +11021,7 @@ func NewDeleteOrgsOrgIdAppsAppIdWebhooksJobIdRequest(server string, orgId string var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "jobId", runtime.ParamLocationPath, jobId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "setId", runtime.ParamLocationPath, setId) if err != nil { return nil, err } @@ -9567,7 +11031,7 @@ func NewDeleteOrgsOrgIdAppsAppIdWebhooksJobIdRequest(server string, orgId string return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/webhooks/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/sets/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9577,17 +11041,50 @@ func NewDeleteOrgsOrgIdAppsAppIdWebhooksJobIdRequest(server string, orgId string return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - return req, nil -} + if params.Diff != nil { -// NewGetOrgsOrgIdAppsAppIdWebhooksJobIdRequest generates requests for GetOrgsOrgIdAppsAppIdWebhooksJobId -func NewGetOrgsOrgIdAppsAppIdWebhooksJobIdRequest(server string, orgId string, appId string, jobId string) (*http.Request, error) { - var err error + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "diff", runtime.ParamLocationQuery, *params.Diff); err != nil { + return nil, err + } else if 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 +} + +// NewPostOrgsOrgIdAppsAppIdSetsSetIdRequest calls the generic PostOrgsOrgIdAppsAppIdSetsSetId builder with application/json body +func NewPostOrgsOrgIdAppsAppIdSetsSetIdRequest(server string, orgId string, appId string, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody(server, orgId, appId, setId, "application/json", bodyReader) +} + +// NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdSetsSetId with any type of body +func NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody(server string, orgId string, appId string, setId string, contentType string, body io.Reader) (*http.Request, error) { + var err error var pathParam0 string @@ -9605,7 +11102,7 @@ func NewGetOrgsOrgIdAppsAppIdWebhooksJobIdRequest(server string, orgId string, a var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "jobId", runtime.ParamLocationPath, jobId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "setId", runtime.ParamLocationPath, setId) if err != nil { return nil, err } @@ -9615,7 +11112,7 @@ func NewGetOrgsOrgIdAppsAppIdWebhooksJobIdRequest(server string, orgId string, a return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/webhooks/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/sets/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9625,27 +11122,18 @@ func NewGetOrgsOrgIdAppsAppIdWebhooksJobIdRequest(server string, orgId string, a return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequest calls the generic PatchOrgsOrgIdAppsAppIdWebhooksJobId builder with application/json body -func NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequest(server string, orgId string, appId string, jobId string, body PatchOrgsOrgIdAppsAppIdWebhooksJobIdJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequestWithBody(server, orgId, appId, jobId, "application/json", bodyReader) + return req, nil } -// NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequestWithBody generates requests for PatchOrgsOrgIdAppsAppIdWebhooksJobId with any type of body -func NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequestWithBody(server string, orgId string, appId string, jobId string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest generates requests for GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId +func NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest(server string, orgId string, appId string, setId string, sourceSetId string) (*http.Request, error) { var err error var pathParam0 string @@ -9664,7 +11152,14 @@ func NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequestWithBody(server string, orgId var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "jobId", runtime.ParamLocationPath, jobId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "setId", runtime.ParamLocationPath, setId) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "sourceSetId", runtime.ParamLocationPath, sourceSetId) if err != nil { return nil, err } @@ -9674,7 +11169,7 @@ func NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequestWithBody(server string, orgId return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/apps/%s/webhooks/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/sets/%s/diff/%s", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9684,18 +11179,16 @@ func NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequestWithBody(server string, orgId return nil, err } - req, err := http.NewRequest("PATCH", 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 } -// NewGetOrgsOrgIdArtefactVersionsRequest generates requests for GetOrgsOrgIdArtefactVersions -func NewGetOrgsOrgIdArtefactVersionsRequest(server string, orgId string, params *GetOrgsOrgIdArtefactVersionsParams) (*http.Request, error) { +// NewGetOrgsOrgIdAppsAppIdUsersRequest generates requests for GetOrgsOrgIdAppsAppIdUsers +func NewGetOrgsOrgIdAppsAppIdUsersRequest(server string, orgId string, appId string) (*http.Request, error) { var err error var pathParam0 string @@ -9705,12 +11198,19 @@ func NewGetOrgsOrgIdArtefactVersionsRequest(server string, orgId string, params return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/artefact-versions", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/users", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9720,60 +11220,6 @@ func NewGetOrgsOrgIdArtefactVersionsRequest(server string, orgId string, params return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Name != nil { - - 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.Reference != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reference", runtime.ParamLocationQuery, *params.Reference); err != nil { - return nil, err - } else if 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.Archived != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { - return nil, err - } else if 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 @@ -9782,19 +11228,19 @@ func NewGetOrgsOrgIdArtefactVersionsRequest(server string, orgId string, params return req, nil } -// NewPostOrgsOrgIdArtefactVersionsRequest calls the generic PostOrgsOrgIdArtefactVersions builder with application/json body -func NewPostOrgsOrgIdArtefactVersionsRequest(server string, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, body PostOrgsOrgIdArtefactVersionsJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdAppsAppIdUsersRequest calls the generic PostOrgsOrgIdAppsAppIdUsers builder with application/json body +func NewPostOrgsOrgIdAppsAppIdUsersRequest(server string, orgId string, appId string, body PostOrgsOrgIdAppsAppIdUsersJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdArtefactVersionsRequestWithBody(server, orgId, params, "application/json", bodyReader) + return NewPostOrgsOrgIdAppsAppIdUsersRequestWithBody(server, orgId, appId, "application/json", bodyReader) } -// NewPostOrgsOrgIdArtefactVersionsRequestWithBody generates requests for PostOrgsOrgIdArtefactVersions with any type of body -func NewPostOrgsOrgIdArtefactVersionsRequestWithBody(server string, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdAppsAppIdUsersRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdUsers with any type of body +func NewPostOrgsOrgIdAppsAppIdUsersRequestWithBody(server string, orgId string, appId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -9804,12 +11250,19 @@ func NewPostOrgsOrgIdArtefactVersionsRequestWithBody(server string, orgId string return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/artefact-versions", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/users", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9819,28 +11272,6 @@ func NewPostOrgsOrgIdArtefactVersionsRequestWithBody(server string, orgId string return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Vcs != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vcs", runtime.ParamLocationQuery, *params.Vcs); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err @@ -9851,8 +11282,8 @@ func NewPostOrgsOrgIdArtefactVersionsRequestWithBody(server string, orgId string return req, nil } -// NewGetOrgsOrgIdArtefactVersionsArtefactVersionIdRequest generates requests for GetOrgsOrgIdArtefactVersionsArtefactVersionId -func NewGetOrgsOrgIdArtefactVersionsArtefactVersionIdRequest(server string, orgId string, artefactVersionId string) (*http.Request, error) { +// NewDeleteOrgsOrgIdAppsAppIdUsersUserIdRequest generates requests for DeleteOrgsOrgIdAppsAppIdUsersUserId +func NewDeleteOrgsOrgIdAppsAppIdUsersUserIdRequest(server string, orgId string, appId string, userId string) (*http.Request, error) { var err error var pathParam0 string @@ -9864,7 +11295,14 @@ func NewGetOrgsOrgIdArtefactVersionsArtefactVersionIdRequest(server string, orgI var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "artefactVersionId", runtime.ParamLocationPath, artefactVersionId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -9874,7 +11312,7 @@ func NewGetOrgsOrgIdArtefactVersionsArtefactVersionIdRequest(server string, orgI return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/artefact-versions/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/users/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9884,7 +11322,7 @@ func NewGetOrgsOrgIdArtefactVersionsArtefactVersionIdRequest(server string, orgI 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 } @@ -9892,8 +11330,8 @@ func NewGetOrgsOrgIdArtefactVersionsArtefactVersionIdRequest(server string, orgI return req, nil } -// NewGetOrgsOrgIdArtefactsRequest generates requests for GetOrgsOrgIdArtefacts -func NewGetOrgsOrgIdArtefactsRequest(server string, orgId string, params *GetOrgsOrgIdArtefactsParams) (*http.Request, error) { +// NewGetOrgsOrgIdAppsAppIdUsersUserIdRequest generates requests for GetOrgsOrgIdAppsAppIdUsersUserId +func NewGetOrgsOrgIdAppsAppIdUsersUserIdRequest(server string, orgId string, appId string, userId string) (*http.Request, error) { var err error var pathParam0 string @@ -9903,12 +11341,26 @@ func NewGetOrgsOrgIdArtefactsRequest(server string, orgId string, params *GetOrg return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/artefacts", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/users/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9918,44 +11370,6 @@ func NewGetOrgsOrgIdArtefactsRequest(server string, orgId string, params *GetOrg return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Type != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Name != nil { - - 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 @@ -9964,20 +11378,38 @@ func NewGetOrgsOrgIdArtefactsRequest(server string, orgId string, params *GetOrg return req, nil } -// NewDeleteOrgsOrgIdArtefactsArtefactIdRequest generates requests for DeleteOrgsOrgIdArtefactsArtefactId -func NewDeleteOrgsOrgIdArtefactsArtefactIdRequest(server string, orgId string, artefactId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) +// NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequest calls the generic PatchOrgsOrgIdAppsAppIdUsersUserId builder with application/json body +func NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequest(server string, orgId string, appId string, userId string, body PatchOrgsOrgIdAppsAppIdUsersUserIdJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequestWithBody(server, orgId, appId, userId, "application/json", bodyReader) +} + +// NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequestWithBody generates requests for PatchOrgsOrgIdAppsAppIdUsersUserId with any type of body +func NewPatchOrgsOrgIdAppsAppIdUsersUserIdRequestWithBody(server string, orgId string, appId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "artefactId", runtime.ParamLocationPath, artefactId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -9987,7 +11419,7 @@ func NewDeleteOrgsOrgIdArtefactsArtefactIdRequest(server string, orgId string, a return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/artefacts/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/users/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -9997,16 +11429,18 @@ func NewDeleteOrgsOrgIdArtefactsArtefactIdRequest(server string, orgId string, a return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetOrgsOrgIdArtefactsArtefactIdVersionsRequest generates requests for GetOrgsOrgIdArtefactsArtefactIdVersions -func NewGetOrgsOrgIdArtefactsArtefactIdVersionsRequest(server string, orgId string, artefactId string, params *GetOrgsOrgIdArtefactsArtefactIdVersionsParams) (*http.Request, error) { +// NewGetOrgsOrgIdAppsAppIdValueSetVersionsRequest generates requests for GetOrgsOrgIdAppsAppIdValueSetVersions +func NewGetOrgsOrgIdAppsAppIdValueSetVersionsRequest(server string, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdValueSetVersionsParams) (*http.Request, error) { var err error var pathParam0 string @@ -10018,7 +11452,7 @@ func NewGetOrgsOrgIdArtefactsArtefactIdVersionsRequest(server string, orgId stri var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "artefactId", runtime.ParamLocationPath, artefactId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) if err != nil { return nil, err } @@ -10028,7 +11462,7 @@ func NewGetOrgsOrgIdArtefactsArtefactIdVersionsRequest(server string, orgId stri return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/artefacts/%s/versions", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/value-set-versions", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10041,9 +11475,9 @@ func NewGetOrgsOrgIdArtefactsArtefactIdVersionsRequest(server string, orgId stri if params != nil { queryValues := queryURL.Query() - if params.Archived != nil { + if params.KeyChanged != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "key_changed", runtime.ParamLocationQuery, *params.KeyChanged); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -10057,39 +11491,55 @@ func NewGetOrgsOrgIdArtefactsArtefactIdVersionsRequest(server string, orgId stri } - if params.Reference != nil { + queryURL.RawQuery = queryValues.Encode() + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reference", runtime.ParamLocationQuery, *params.Reference); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - } + return req, nil +} - if params.Limit != nil { +// NewGetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRequest generates requests for GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionId +func NewGetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRequest(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID) (*http.Request, error) { + var err 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) - } - } - } + var pathParam0 string - } + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - queryURL.RawQuery = queryValues.Encode() + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "valueSetVersionId", runtime.ParamLocationPath, valueSetVersionId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/value-set-versions/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -10100,19 +11550,19 @@ func NewGetOrgsOrgIdArtefactsArtefactIdVersionsRequest(server string, orgId stri return req, nil } -// NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequest calls the generic PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionId builder with application/json body -func NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequest(server string, orgId string, artefactId string, versionId string, body PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequest calls the generic PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKey builder with application/json body +func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequest(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequestWithBody(server, orgId, artefactId, versionId, "application/json", bodyReader) + return NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequestWithBody(server, orgId, appId, valueSetVersionId, key, "application/json", bodyReader) } -// NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequestWithBody generates requests for PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionId with any type of body -func NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequestWithBody(server string, orgId string, artefactId string, versionId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKey with any type of body +func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyRequestWithBody(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10124,14 +11574,21 @@ func NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequestWithBody(server var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "artefactId", runtime.ParamLocationPath, artefactId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "versionId", runtime.ParamLocationPath, versionId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "valueSetVersionId", runtime.ParamLocationPath, valueSetVersionId) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "key", runtime.ParamLocationPath, key) if err != nil { return nil, err } @@ -10141,7 +11598,7 @@ func NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequestWithBody(server return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/artefacts/%s/versions/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/value-set-versions/%s/purge/%s", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10151,7 +11608,7 @@ func NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequestWithBody(server return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -10161,8 +11618,19 @@ func NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequestWithBody(server return req, nil } -// NewGetOrgsOrgIdEnvTypesRequest generates requests for GetOrgsOrgIdEnvTypes -func NewGetOrgsOrgIdEnvTypesRequest(server string, orgId string) (*http.Request, error) { +// NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequest calls the generic PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestore builder with application/json body +func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequest(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequestWithBody(server, orgId, appId, valueSetVersionId, "application/json", bodyReader) +} + +// NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestore with any type of body +func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreRequestWithBody(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10172,12 +11640,26 @@ func NewGetOrgsOrgIdEnvTypesRequest(server string, orgId string) (*http.Request, return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "valueSetVersionId", runtime.ParamLocationPath, valueSetVersionId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/env-types", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/value-set-versions/%s/restore", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10187,27 +11669,29 @@ func NewGetOrgsOrgIdEnvTypesRequest(server string, orgId string) (*http.Request, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewPostOrgsOrgIdEnvTypesRequest calls the generic PostOrgsOrgIdEnvTypes builder with application/json body -func NewPostOrgsOrgIdEnvTypesRequest(server string, orgId string, body PostOrgsOrgIdEnvTypesJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequest calls the generic PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKey builder with application/json body +func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequest(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdEnvTypesRequestWithBody(server, orgId, "application/json", bodyReader) + return NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequestWithBody(server, orgId, appId, valueSetVersionId, key, "application/json", bodyReader) } -// NewPostOrgsOrgIdEnvTypesRequestWithBody generates requests for PostOrgsOrgIdEnvTypes with any type of body -func NewPostOrgsOrgIdEnvTypesRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKey with any type of body +func NewPostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRequestWithBody(server string, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10217,12 +11701,33 @@ func NewPostOrgsOrgIdEnvTypesRequestWithBody(server string, orgId string, conten return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "valueSetVersionId", runtime.ParamLocationPath, valueSetVersionId) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "key", runtime.ParamLocationPath, key) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/env-types", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/value-set-versions/%s/restore/%s", pathParam0, pathParam1, pathParam2, pathParam3) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10242,8 +11747,8 @@ func NewPostOrgsOrgIdEnvTypesRequestWithBody(server string, orgId string, conten return req, nil } -// NewDeleteOrgsOrgIdEnvTypesEnvTypeIdRequest generates requests for DeleteOrgsOrgIdEnvTypesEnvTypeId -func NewDeleteOrgsOrgIdEnvTypesEnvTypeIdRequest(server string, orgId string, envTypeId string) (*http.Request, error) { +// NewDeleteOrgsOrgIdAppsAppIdValuesRequest generates requests for DeleteOrgsOrgIdAppsAppIdValues +func NewDeleteOrgsOrgIdAppsAppIdValuesRequest(server string, orgId string, appId string) (*http.Request, error) { var err error var pathParam0 string @@ -10255,7 +11760,7 @@ func NewDeleteOrgsOrgIdEnvTypesEnvTypeIdRequest(server string, orgId string, env var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envTypeId", runtime.ParamLocationPath, envTypeId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) if err != nil { return nil, err } @@ -10265,7 +11770,7 @@ func NewDeleteOrgsOrgIdEnvTypesEnvTypeIdRequest(server string, orgId string, env return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/env-types/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/values", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10283,8 +11788,8 @@ func NewDeleteOrgsOrgIdEnvTypesEnvTypeIdRequest(server string, orgId string, env return req, nil } -// NewGetOrgsOrgIdEnvTypesEnvTypeIdRequest generates requests for GetOrgsOrgIdEnvTypesEnvTypeId -func NewGetOrgsOrgIdEnvTypesEnvTypeIdRequest(server string, orgId string, envTypeId string) (*http.Request, error) { +// NewGetOrgsOrgIdAppsAppIdValuesRequest generates requests for GetOrgsOrgIdAppsAppIdValues +func NewGetOrgsOrgIdAppsAppIdValuesRequest(server string, orgId string, appId string) (*http.Request, error) { var err error var pathParam0 string @@ -10296,7 +11801,7 @@ func NewGetOrgsOrgIdEnvTypesEnvTypeIdRequest(server string, orgId string, envTyp var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envTypeId", runtime.ParamLocationPath, envTypeId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) if err != nil { return nil, err } @@ -10306,7 +11811,7 @@ func NewGetOrgsOrgIdEnvTypesEnvTypeIdRequest(server string, orgId string, envTyp return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/env-types/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/values", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10324,19 +11829,19 @@ func NewGetOrgsOrgIdEnvTypesEnvTypeIdRequest(server string, orgId string, envTyp return req, nil } -// NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequest calls the generic PostOrgsOrgIdEnvTypesEnvTypeUsers builder with application/json body -func NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequest(server string, orgId string, envType string, body PostOrgsOrgIdEnvTypesEnvTypeUsersJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdAppsAppIdValuesRequest calls the generic PostOrgsOrgIdAppsAppIdValues builder with application/json body +func NewPostOrgsOrgIdAppsAppIdValuesRequest(server string, orgId string, appId string, body PostOrgsOrgIdAppsAppIdValuesJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequestWithBody(server, orgId, envType, "application/json", bodyReader) + return NewPostOrgsOrgIdAppsAppIdValuesRequestWithBody(server, orgId, appId, "application/json", bodyReader) } -// NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequestWithBody generates requests for PostOrgsOrgIdEnvTypesEnvTypeUsers with any type of body -func NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequestWithBody(server string, orgId string, envType string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdAppsAppIdValuesRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdValues with any type of body +func NewPostOrgsOrgIdAppsAppIdValuesRequestWithBody(server string, orgId string, appId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10348,7 +11853,7 @@ func NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequestWithBody(server string, orgId st var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envType", runtime.ParamLocationPath, envType) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) if err != nil { return nil, err } @@ -10358,7 +11863,7 @@ func NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequestWithBody(server string, orgId st return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/env-types/%s/users", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/values", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10378,8 +11883,8 @@ func NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequestWithBody(server string, orgId st return req, nil } -// NewDeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest generates requests for DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserId -func NewDeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(server string, orgId string, envType string, userId string) (*http.Request, error) { +// NewDeleteOrgsOrgIdAppsAppIdValuesKeyRequest generates requests for DeleteOrgsOrgIdAppsAppIdValuesKey +func NewDeleteOrgsOrgIdAppsAppIdValuesKeyRequest(server string, orgId string, appId string, key string) (*http.Request, error) { var err error var pathParam0 string @@ -10391,14 +11896,14 @@ func NewDeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(server string, orgId st var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envType", runtime.ParamLocationPath, envType) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "key", runtime.ParamLocationPath, key) if err != nil { return nil, err } @@ -10408,7 +11913,7 @@ func NewDeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(server string, orgId st return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/env-types/%s/users/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/values/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10426,27 +11931,38 @@ func NewDeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(server string, orgId st return req, nil } -// NewGetOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest generates requests for GetOrgsOrgIdEnvTypesEnvTypeUsersUserId -func NewGetOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(server string, orgId string, envType string, userId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) - if err != nil { +// NewPatchOrgsOrgIdAppsAppIdValuesKeyRequest calls the generic PatchOrgsOrgIdAppsAppIdValuesKey builder with application/json body +func NewPatchOrgsOrgIdAppsAppIdValuesKeyRequest(server string, orgId string, appId string, key string, body PatchOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPatchOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server, orgId, appId, key, "application/json", bodyReader) +} + +// NewPatchOrgsOrgIdAppsAppIdValuesKeyRequestWithBody generates requests for PatchOrgsOrgIdAppsAppIdValuesKey with any type of body +func NewPatchOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server string, orgId string, appId string, key string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envType", runtime.ParamLocationPath, envType) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "key", runtime.ParamLocationPath, key) if err != nil { return nil, err } @@ -10456,7 +11972,7 @@ func NewGetOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(server string, orgId strin return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/env-types/%s/users/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/values/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10466,27 +11982,29 @@ func NewGetOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(server string, orgId strin return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest calls the generic PatchOrgsOrgIdEnvTypesEnvTypeUsersUserId builder with application/json body -func NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(server string, orgId string, envType string, userId string, body PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdJSONRequestBody) (*http.Request, error) { +// NewPutOrgsOrgIdAppsAppIdValuesKeyRequest calls the generic PutOrgsOrgIdAppsAppIdValuesKey builder with application/json body +func NewPutOrgsOrgIdAppsAppIdValuesKeyRequest(server string, orgId string, appId string, key string, body PutOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequestWithBody(server, orgId, envType, userId, "application/json", bodyReader) + return NewPutOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server, orgId, appId, key, "application/json", bodyReader) } -// NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequestWithBody generates requests for PatchOrgsOrgIdEnvTypesEnvTypeUsersUserId with any type of body -func NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequestWithBody(server string, orgId string, envType string, userId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPutOrgsOrgIdAppsAppIdValuesKeyRequestWithBody generates requests for PutOrgsOrgIdAppsAppIdValuesKey with any type of body +func NewPutOrgsOrgIdAppsAppIdValuesKeyRequestWithBody(server string, orgId string, appId string, key string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10498,14 +12016,14 @@ func NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequestWithBody(server string, o var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envType", runtime.ParamLocationPath, envType) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "key", runtime.ParamLocationPath, key) if err != nil { return nil, err } @@ -10515,7 +12033,7 @@ func NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequestWithBody(server string, o return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/env-types/%s/users/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/values/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10525,7 +12043,7 @@ func NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequestWithBody(server string, o return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -10535,8 +12053,8 @@ func NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequestWithBody(server string, o return req, nil } -// NewGetOrgsOrgIdEventsRequest generates requests for GetOrgsOrgIdEvents -func NewGetOrgsOrgIdEventsRequest(server string, orgId string) (*http.Request, error) { +// NewGetOrgsOrgIdAppsAppIdWebhooksRequest generates requests for GetOrgsOrgIdAppsAppIdWebhooks +func NewGetOrgsOrgIdAppsAppIdWebhooksRequest(server string, orgId string, appId string) (*http.Request, error) { var err error var pathParam0 string @@ -10546,12 +12064,19 @@ func NewGetOrgsOrgIdEventsRequest(server string, orgId string) (*http.Request, e return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/events", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/webhooks", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10569,8 +12094,19 @@ func NewGetOrgsOrgIdEventsRequest(server string, orgId string) (*http.Request, e return req, nil } -// NewGetOrgsOrgIdImagesRequest generates requests for GetOrgsOrgIdImages -func NewGetOrgsOrgIdImagesRequest(server string, orgId string) (*http.Request, error) { +// NewPostOrgsOrgIdAppsAppIdWebhooksRequest calls the generic PostOrgsOrgIdAppsAppIdWebhooks builder with application/json body +func NewPostOrgsOrgIdAppsAppIdWebhooksRequest(server string, orgId string, appId string, body PostOrgsOrgIdAppsAppIdWebhooksJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostOrgsOrgIdAppsAppIdWebhooksRequestWithBody(server, orgId, appId, "application/json", bodyReader) +} + +// NewPostOrgsOrgIdAppsAppIdWebhooksRequestWithBody generates requests for PostOrgsOrgIdAppsAppIdWebhooks with any type of body +func NewPostOrgsOrgIdAppsAppIdWebhooksRequestWithBody(server string, orgId string, appId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10580,12 +12116,19 @@ func NewGetOrgsOrgIdImagesRequest(server string, orgId string) (*http.Request, e return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/images", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/webhooks", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10595,16 +12138,18 @@ func NewGetOrgsOrgIdImagesRequest(server string, orgId string) (*http.Request, e return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetOrgsOrgIdImagesImageIdRequest generates requests for GetOrgsOrgIdImagesImageId -func NewGetOrgsOrgIdImagesImageIdRequest(server string, orgId string, imageId string) (*http.Request, error) { +// NewDeleteOrgsOrgIdAppsAppIdWebhooksJobIdRequest generates requests for DeleteOrgsOrgIdAppsAppIdWebhooksJobId +func NewDeleteOrgsOrgIdAppsAppIdWebhooksJobIdRequest(server string, orgId string, appId string, jobId string) (*http.Request, error) { var err error var pathParam0 string @@ -10616,7 +12161,14 @@ func NewGetOrgsOrgIdImagesImageIdRequest(server string, orgId string, imageId st var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "imageId", runtime.ParamLocationPath, imageId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "jobId", runtime.ParamLocationPath, jobId) if err != nil { return nil, err } @@ -10626,7 +12178,7 @@ func NewGetOrgsOrgIdImagesImageIdRequest(server string, orgId string, imageId st return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/images/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/webhooks/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10636,7 +12188,7 @@ func NewGetOrgsOrgIdImagesImageIdRequest(server string, orgId string, imageId st 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 } @@ -10644,8 +12196,8 @@ func NewGetOrgsOrgIdImagesImageIdRequest(server string, orgId string, imageId st return req, nil } -// NewGetOrgsOrgIdImagesImageIdBuildsRequest generates requests for GetOrgsOrgIdImagesImageIdBuilds -func NewGetOrgsOrgIdImagesImageIdBuildsRequest(server string, orgId string, imageId string) (*http.Request, error) { +// NewGetOrgsOrgIdAppsAppIdWebhooksJobIdRequest generates requests for GetOrgsOrgIdAppsAppIdWebhooksJobId +func NewGetOrgsOrgIdAppsAppIdWebhooksJobIdRequest(server string, orgId string, appId string, jobId string) (*http.Request, error) { var err error var pathParam0 string @@ -10657,7 +12209,14 @@ func NewGetOrgsOrgIdImagesImageIdBuildsRequest(server string, orgId string, imag var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "imageId", runtime.ParamLocationPath, imageId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "jobId", runtime.ParamLocationPath, jobId) if err != nil { return nil, err } @@ -10667,7 +12226,7 @@ func NewGetOrgsOrgIdImagesImageIdBuildsRequest(server string, orgId string, imag return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/images/%s/builds", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/webhooks/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10685,19 +12244,19 @@ func NewGetOrgsOrgIdImagesImageIdBuildsRequest(server string, orgId string, imag return req, nil } -// NewPostOrgsOrgIdImagesImageIdBuildsRequest calls the generic PostOrgsOrgIdImagesImageIdBuilds builder with application/json body -func NewPostOrgsOrgIdImagesImageIdBuildsRequest(server string, orgId string, imageId string, body PostOrgsOrgIdImagesImageIdBuildsJSONRequestBody) (*http.Request, error) { +// NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequest calls the generic PatchOrgsOrgIdAppsAppIdWebhooksJobId builder with application/json body +func NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequest(server string, orgId string, appId string, jobId string, body PatchOrgsOrgIdAppsAppIdWebhooksJobIdJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdImagesImageIdBuildsRequestWithBody(server, orgId, imageId, "application/json", bodyReader) + return NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequestWithBody(server, orgId, appId, jobId, "application/json", bodyReader) } -// NewPostOrgsOrgIdImagesImageIdBuildsRequestWithBody generates requests for PostOrgsOrgIdImagesImageIdBuilds with any type of body -func NewPostOrgsOrgIdImagesImageIdBuildsRequestWithBody(server string, orgId string, imageId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequestWithBody generates requests for PatchOrgsOrgIdAppsAppIdWebhooksJobId with any type of body +func NewPatchOrgsOrgIdAppsAppIdWebhooksJobIdRequestWithBody(server string, orgId string, appId string, jobId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10709,7 +12268,14 @@ func NewPostOrgsOrgIdImagesImageIdBuildsRequestWithBody(server string, orgId str var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "imageId", runtime.ParamLocationPath, imageId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "appId", runtime.ParamLocationPath, appId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "jobId", runtime.ParamLocationPath, jobId) if err != nil { return nil, err } @@ -10719,7 +12285,7 @@ func NewPostOrgsOrgIdImagesImageIdBuildsRequestWithBody(server string, orgId str return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/images/%s/builds", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/apps/%s/webhooks/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10729,7 +12295,7 @@ func NewPostOrgsOrgIdImagesImageIdBuildsRequestWithBody(server string, orgId str return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -10739,8 +12305,8 @@ func NewPostOrgsOrgIdImagesImageIdBuildsRequestWithBody(server string, orgId str return req, nil } -// NewGetOrgsOrgIdInvitationsRequest generates requests for GetOrgsOrgIdInvitations -func NewGetOrgsOrgIdInvitationsRequest(server string, orgId string) (*http.Request, error) { +// NewGetOrgsOrgIdArtefactVersionsRequest generates requests for GetOrgsOrgIdArtefactVersions +func NewGetOrgsOrgIdArtefactVersionsRequest(server string, orgId string, params *GetOrgsOrgIdArtefactVersionsParams) (*http.Request, error) { var err error var pathParam0 string @@ -10755,7 +12321,7 @@ func NewGetOrgsOrgIdInvitationsRequest(server string, orgId string) (*http.Reque return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/invitations", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/artefact-versions", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10765,6 +12331,60 @@ func NewGetOrgsOrgIdInvitationsRequest(server string, orgId string) (*http.Reque return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + 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.Reference != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reference", runtime.ParamLocationQuery, *params.Reference); err != nil { + return nil, err + } else if 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.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if 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 @@ -10773,19 +12393,19 @@ func NewGetOrgsOrgIdInvitationsRequest(server string, orgId string) (*http.Reque return req, nil } -// NewPostOrgsOrgIdInvitationsRequest calls the generic PostOrgsOrgIdInvitations builder with application/json body -func NewPostOrgsOrgIdInvitationsRequest(server string, orgId string, body PostOrgsOrgIdInvitationsJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdArtefactVersionsRequest calls the generic PostOrgsOrgIdArtefactVersions builder with application/json body +func NewPostOrgsOrgIdArtefactVersionsRequest(server string, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, body PostOrgsOrgIdArtefactVersionsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdInvitationsRequestWithBody(server, orgId, "application/json", bodyReader) + return NewPostOrgsOrgIdArtefactVersionsRequestWithBody(server, orgId, params, "application/json", bodyReader) } -// NewPostOrgsOrgIdInvitationsRequestWithBody generates requests for PostOrgsOrgIdInvitations with any type of body -func NewPostOrgsOrgIdInvitationsRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdArtefactVersionsRequestWithBody generates requests for PostOrgsOrgIdArtefactVersions with any type of body +func NewPostOrgsOrgIdArtefactVersionsRequestWithBody(server string, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -10800,7 +12420,7 @@ func NewPostOrgsOrgIdInvitationsRequestWithBody(server string, orgId string, con return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/invitations", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/artefact-versions", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10810,6 +12430,28 @@ func NewPostOrgsOrgIdInvitationsRequestWithBody(server string, orgId string, con return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Vcs != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "vcs", runtime.ParamLocationQuery, *params.Vcs); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err @@ -10820,8 +12462,8 @@ func NewPostOrgsOrgIdInvitationsRequestWithBody(server string, orgId string, con return req, nil } -// NewGetOrgsOrgIdRegistriesRequest generates requests for GetOrgsOrgIdRegistries -func NewGetOrgsOrgIdRegistriesRequest(server string, orgId string) (*http.Request, error) { +// NewGetOrgsOrgIdArtefactVersionsArtefactVersionIdRequest generates requests for GetOrgsOrgIdArtefactVersionsArtefactVersionId +func NewGetOrgsOrgIdArtefactVersionsArtefactVersionIdRequest(server string, orgId string, artefactVersionId string) (*http.Request, error) { var err error var pathParam0 string @@ -10831,12 +12473,19 @@ func NewGetOrgsOrgIdRegistriesRequest(server string, orgId string) (*http.Reques return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "artefactVersionId", runtime.ParamLocationPath, artefactVersionId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/registries", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/artefact-versions/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10854,19 +12503,8 @@ func NewGetOrgsOrgIdRegistriesRequest(server string, orgId string) (*http.Reques return req, nil } -// NewPostOrgsOrgIdRegistriesRequest calls the generic PostOrgsOrgIdRegistries builder with application/json body -func NewPostOrgsOrgIdRegistriesRequest(server string, orgId string, body PostOrgsOrgIdRegistriesJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdRegistriesRequestWithBody(server, orgId, "application/json", bodyReader) -} - -// NewPostOrgsOrgIdRegistriesRequestWithBody generates requests for PostOrgsOrgIdRegistries with any type of body -func NewPostOrgsOrgIdRegistriesRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetOrgsOrgIdArtefactsRequest generates requests for GetOrgsOrgIdArtefacts +func NewGetOrgsOrgIdArtefactsRequest(server string, orgId string, params *GetOrgsOrgIdArtefactsParams) (*http.Request, error) { var err error var pathParam0 string @@ -10881,7 +12519,7 @@ func NewPostOrgsOrgIdRegistriesRequestWithBody(server string, orgId string, cont return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/registries", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/artefacts", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10891,18 +12529,54 @@ func NewPostOrgsOrgIdRegistriesRequestWithBody(server string, orgId string, cont return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + if params != nil { + queryValues := queryURL.Query() + + if params.Type != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Name != nil { + + 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 } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteOrgsOrgIdRegistriesRegIdRequest generates requests for DeleteOrgsOrgIdRegistriesRegId -func NewDeleteOrgsOrgIdRegistriesRegIdRequest(server string, orgId string, regId string) (*http.Request, error) { +// NewDeleteOrgsOrgIdArtefactsArtefactIdRequest generates requests for DeleteOrgsOrgIdArtefactsArtefactId +func NewDeleteOrgsOrgIdArtefactsArtefactIdRequest(server string, orgId string, artefactId string) (*http.Request, error) { var err error var pathParam0 string @@ -10914,7 +12588,7 @@ func NewDeleteOrgsOrgIdRegistriesRegIdRequest(server string, orgId string, regId var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "regId", runtime.ParamLocationPath, regId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "artefactId", runtime.ParamLocationPath, artefactId) if err != nil { return nil, err } @@ -10924,7 +12598,7 @@ func NewDeleteOrgsOrgIdRegistriesRegIdRequest(server string, orgId string, regId return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/registries/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/artefacts/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10942,8 +12616,8 @@ func NewDeleteOrgsOrgIdRegistriesRegIdRequest(server string, orgId string, regId return req, nil } -// NewGetOrgsOrgIdRegistriesRegIdRequest generates requests for GetOrgsOrgIdRegistriesRegId -func NewGetOrgsOrgIdRegistriesRegIdRequest(server string, orgId string, regId string) (*http.Request, error) { +// NewGetOrgsOrgIdArtefactsArtefactIdVersionsRequest generates requests for GetOrgsOrgIdArtefactsArtefactIdVersions +func NewGetOrgsOrgIdArtefactsArtefactIdVersionsRequest(server string, orgId string, artefactId string, params *GetOrgsOrgIdArtefactsArtefactIdVersionsParams) (*http.Request, error) { var err error var pathParam0 string @@ -10955,7 +12629,7 @@ func NewGetOrgsOrgIdRegistriesRegIdRequest(server string, orgId string, regId st var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "regId", runtime.ParamLocationPath, regId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "artefactId", runtime.ParamLocationPath, artefactId) if err != nil { return nil, err } @@ -10965,7 +12639,7 @@ func NewGetOrgsOrgIdRegistriesRegIdRequest(server string, orgId string, regId st return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/registries/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/artefacts/%s/versions", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -10975,70 +12649,81 @@ func NewGetOrgsOrgIdRegistriesRegIdRequest(server string, orgId string, regId st 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.Archived != nil { -// NewPatchOrgsOrgIdRegistriesRegIdRequest calls the generic PatchOrgsOrgIdRegistriesRegId builder with application/json body -func NewPatchOrgsOrgIdRegistriesRegIdRequest(server string, orgId string, regId string, body PatchOrgsOrgIdRegistriesRegIdJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPatchOrgsOrgIdRegistriesRegIdRequestWithBody(server, orgId, regId, "application/json", bodyReader) -} + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } -// NewPatchOrgsOrgIdRegistriesRegIdRequestWithBody generates requests for PatchOrgsOrgIdRegistriesRegId with any type of body -func NewPatchOrgsOrgIdRegistriesRegIdRequestWithBody(server string, orgId string, regId string, contentType string, body io.Reader) (*http.Request, error) { - var err error + } - var pathParam0 string + if params.Reference != nil { - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) - if err != nil { - return nil, err - } + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reference", runtime.ParamLocationQuery, *params.Reference); err != nil { + return nil, err + } else if 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, "regId", runtime.ParamLocationPath, regId) - if err != nil { - return nil, err - } + if params.Limit != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + 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) + } + } + } - operationPath := fmt.Sprintf("/orgs/%s/registries/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath + } + + queryURL.RawQuery = queryValues.Encode() } - queryURL, err := serverURL.Parse(operationPath) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + return req, nil +} + +// NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequest calls the generic PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionId builder with application/json body +func NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequest(server string, orgId string, artefactId string, versionId string, body PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil + bodyReader = bytes.NewReader(buf) + return NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequestWithBody(server, orgId, artefactId, versionId, "application/json", bodyReader) } -// NewGetOrgsOrgIdRegistriesRegIdCredsRequest generates requests for GetOrgsOrgIdRegistriesRegIdCreds -func NewGetOrgsOrgIdRegistriesRegIdCredsRequest(server string, orgId string, regId string) (*http.Request, error) { +// NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequestWithBody generates requests for PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionId with any type of body +func NewPatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdRequestWithBody(server string, orgId string, artefactId string, versionId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -11050,41 +12735,14 @@ func NewGetOrgsOrgIdRegistriesRegIdCredsRequest(server string, orgId string, reg var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "regId", runtime.ParamLocationPath, regId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/orgs/%s/registries/%s/creds", 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) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "artefactId", runtime.ParamLocationPath, artefactId) if err != nil { return nil, err } - return req, nil -} - -// NewGetOrgsOrgIdResourcesAccountTypesRequest generates requests for GetOrgsOrgIdResourcesAccountTypes -func NewGetOrgsOrgIdResourcesAccountTypesRequest(server string, orgId string) (*http.Request, error) { - var err error - - var pathParam0 string + var pathParam2 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "versionId", runtime.ParamLocationPath, versionId) if err != nil { return nil, err } @@ -11094,7 +12752,7 @@ func NewGetOrgsOrgIdResourcesAccountTypesRequest(server string, orgId string) (* return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/account-types", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/artefacts/%s/versions/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11104,16 +12762,18 @@ func NewGetOrgsOrgIdResourcesAccountTypesRequest(server string, orgId string) (* return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetOrgsOrgIdResourcesAccountsRequest generates requests for GetOrgsOrgIdResourcesAccounts -func NewGetOrgsOrgIdResourcesAccountsRequest(server string, orgId string) (*http.Request, error) { +// NewGetOrgsOrgIdEnvTypesRequest generates requests for GetOrgsOrgIdEnvTypes +func NewGetOrgsOrgIdEnvTypesRequest(server string, orgId string) (*http.Request, error) { var err error var pathParam0 string @@ -11128,7 +12788,7 @@ func NewGetOrgsOrgIdResourcesAccountsRequest(server string, orgId string) (*http return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/accounts", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/env-types", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11146,19 +12806,19 @@ func NewGetOrgsOrgIdResourcesAccountsRequest(server string, orgId string) (*http return req, nil } -// NewPostOrgsOrgIdResourcesAccountsRequest calls the generic PostOrgsOrgIdResourcesAccounts builder with application/json body -func NewPostOrgsOrgIdResourcesAccountsRequest(server string, orgId string, body PostOrgsOrgIdResourcesAccountsJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdEnvTypesRequest calls the generic PostOrgsOrgIdEnvTypes builder with application/json body +func NewPostOrgsOrgIdEnvTypesRequest(server string, orgId string, body PostOrgsOrgIdEnvTypesJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdResourcesAccountsRequestWithBody(server, orgId, "application/json", bodyReader) + return NewPostOrgsOrgIdEnvTypesRequestWithBody(server, orgId, "application/json", bodyReader) } -// NewPostOrgsOrgIdResourcesAccountsRequestWithBody generates requests for PostOrgsOrgIdResourcesAccounts with any type of body -func NewPostOrgsOrgIdResourcesAccountsRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdEnvTypesRequestWithBody generates requests for PostOrgsOrgIdEnvTypes with any type of body +func NewPostOrgsOrgIdEnvTypesRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -11173,7 +12833,7 @@ func NewPostOrgsOrgIdResourcesAccountsRequestWithBody(server string, orgId strin return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/accounts", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/env-types", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11193,8 +12853,8 @@ func NewPostOrgsOrgIdResourcesAccountsRequestWithBody(server string, orgId strin return req, nil } -// NewDeleteOrgsOrgIdResourcesAccountsAccIdRequest generates requests for DeleteOrgsOrgIdResourcesAccountsAccId -func NewDeleteOrgsOrgIdResourcesAccountsAccIdRequest(server string, orgId string, accId string) (*http.Request, error) { +// NewDeleteOrgsOrgIdEnvTypesEnvTypeIdRequest generates requests for DeleteOrgsOrgIdEnvTypesEnvTypeId +func NewDeleteOrgsOrgIdEnvTypesEnvTypeIdRequest(server string, orgId string, envTypeId string) (*http.Request, error) { var err error var pathParam0 string @@ -11206,7 +12866,7 @@ func NewDeleteOrgsOrgIdResourcesAccountsAccIdRequest(server string, orgId string var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "accId", runtime.ParamLocationPath, accId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envTypeId", runtime.ParamLocationPath, envTypeId) if err != nil { return nil, err } @@ -11216,7 +12876,7 @@ func NewDeleteOrgsOrgIdResourcesAccountsAccIdRequest(server string, orgId string return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/accounts/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/env-types/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11234,8 +12894,8 @@ func NewDeleteOrgsOrgIdResourcesAccountsAccIdRequest(server string, orgId string return req, nil } -// NewGetOrgsOrgIdResourcesAccountsAccIdRequest generates requests for GetOrgsOrgIdResourcesAccountsAccId -func NewGetOrgsOrgIdResourcesAccountsAccIdRequest(server string, orgId string, accId string) (*http.Request, error) { +// NewGetOrgsOrgIdEnvTypesEnvTypeIdRequest generates requests for GetOrgsOrgIdEnvTypesEnvTypeId +func NewGetOrgsOrgIdEnvTypesEnvTypeIdRequest(server string, orgId string, envTypeId string) (*http.Request, error) { var err error var pathParam0 string @@ -11247,7 +12907,7 @@ func NewGetOrgsOrgIdResourcesAccountsAccIdRequest(server string, orgId string, a var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "accId", runtime.ParamLocationPath, accId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envTypeId", runtime.ParamLocationPath, envTypeId) if err != nil { return nil, err } @@ -11257,7 +12917,7 @@ func NewGetOrgsOrgIdResourcesAccountsAccIdRequest(server string, orgId string, a return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/accounts/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/env-types/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11275,19 +12935,19 @@ func NewGetOrgsOrgIdResourcesAccountsAccIdRequest(server string, orgId string, a return req, nil } -// NewPatchOrgsOrgIdResourcesAccountsAccIdRequest calls the generic PatchOrgsOrgIdResourcesAccountsAccId builder with application/json body -func NewPatchOrgsOrgIdResourcesAccountsAccIdRequest(server string, orgId string, accId string, body PatchOrgsOrgIdResourcesAccountsAccIdJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequest calls the generic PostOrgsOrgIdEnvTypesEnvTypeUsers builder with application/json body +func NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequest(server string, orgId string, envType string, body PostOrgsOrgIdEnvTypesEnvTypeUsersJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPatchOrgsOrgIdResourcesAccountsAccIdRequestWithBody(server, orgId, accId, "application/json", bodyReader) + return NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequestWithBody(server, orgId, envType, "application/json", bodyReader) } -// NewPatchOrgsOrgIdResourcesAccountsAccIdRequestWithBody generates requests for PatchOrgsOrgIdResourcesAccountsAccId with any type of body -func NewPatchOrgsOrgIdResourcesAccountsAccIdRequestWithBody(server string, orgId string, accId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequestWithBody generates requests for PostOrgsOrgIdEnvTypesEnvTypeUsers with any type of body +func NewPostOrgsOrgIdEnvTypesEnvTypeUsersRequestWithBody(server string, orgId string, envType string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -11299,7 +12959,7 @@ func NewPatchOrgsOrgIdResourcesAccountsAccIdRequestWithBody(server string, orgId var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "accId", runtime.ParamLocationPath, accId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envType", runtime.ParamLocationPath, envType) if err != nil { return nil, err } @@ -11309,7 +12969,7 @@ func NewPatchOrgsOrgIdResourcesAccountsAccIdRequestWithBody(server string, orgId return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/accounts/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/env-types/%s/users", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11319,7 +12979,7 @@ func NewPatchOrgsOrgIdResourcesAccountsAccIdRequestWithBody(server string, orgId return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -11329,8 +12989,8 @@ func NewPatchOrgsOrgIdResourcesAccountsAccIdRequestWithBody(server string, orgId return req, nil } -// NewGetOrgsOrgIdResourcesDefsRequest generates requests for GetOrgsOrgIdResourcesDefs -func NewGetOrgsOrgIdResourcesDefsRequest(server string, orgId string, params *GetOrgsOrgIdResourcesDefsParams) (*http.Request, error) { +// NewDeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest generates requests for DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserId +func NewDeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(server string, orgId string, envType string, userId string) (*http.Request, error) { var err error var pathParam0 string @@ -11340,12 +13000,26 @@ func NewGetOrgsOrgIdResourcesDefsRequest(server string, orgId string, params *Ge return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envType", runtime.ParamLocationPath, envType) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/defs", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/env-types/%s/users/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11355,106 +13029,52 @@ func NewGetOrgsOrgIdResourcesDefsRequest(server string, orgId string, params *Ge return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.App != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app", runtime.ParamLocationQuery, *params.App); err != nil { - return nil, err - } else if 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.Env != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "env", runtime.ParamLocationQuery, *params.Env); err != nil { - return nil, err - } else if 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.EnvType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "env_type", runtime.ParamLocationQuery, *params.EnvType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - } + return req, nil +} - if params.Res != nil { +// NewGetOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest generates requests for GetOrgsOrgIdEnvTypesEnvTypeUsersUserId +func NewGetOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(server string, orgId string, envType string, userId string) (*http.Request, error) { + var err error - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "res", runtime.ParamLocationQuery, *params.Res); err != nil { - return nil, err - } else if 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, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - if params.ResType != nil { + var pathParam1 string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "res_type", runtime.ParamLocationQuery, *params.ResType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envType", runtime.ParamLocationPath, envType) + if err != nil { + return nil, err + } - } + var pathParam2 string - if params.Class != nil { + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class", runtime.ParamLocationQuery, *params.Class); err != nil { - return nil, err - } else if 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("/orgs/%s/env-types/%s/users/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - queryURL.RawQuery = queryValues.Encode() + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } req, err := http.NewRequest("GET", queryURL.String(), nil) @@ -11465,19 +13085,19 @@ func NewGetOrgsOrgIdResourcesDefsRequest(server string, orgId string, params *Ge return req, nil } -// NewPostOrgsOrgIdResourcesDefsRequest calls the generic PostOrgsOrgIdResourcesDefs builder with application/json body -func NewPostOrgsOrgIdResourcesDefsRequest(server string, orgId string, body PostOrgsOrgIdResourcesDefsJSONRequestBody) (*http.Request, error) { +// NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest calls the generic PatchOrgsOrgIdEnvTypesEnvTypeUsersUserId builder with application/json body +func NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequest(server string, orgId string, envType string, userId string, body PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdResourcesDefsRequestWithBody(server, orgId, "application/json", bodyReader) + return NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequestWithBody(server, orgId, envType, userId, "application/json", bodyReader) } -// NewPostOrgsOrgIdResourcesDefsRequestWithBody generates requests for PostOrgsOrgIdResourcesDefs with any type of body -func NewPostOrgsOrgIdResourcesDefsRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequestWithBody generates requests for PatchOrgsOrgIdEnvTypesEnvTypeUsersUserId with any type of body +func NewPatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdRequestWithBody(server string, orgId string, envType string, userId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -11487,12 +13107,26 @@ func NewPostOrgsOrgIdResourcesDefsRequestWithBody(server string, orgId string, c return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "envType", runtime.ParamLocationPath, envType) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/defs", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/env-types/%s/users/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11502,7 +13136,7 @@ func NewPostOrgsOrgIdResourcesDefsRequestWithBody(server string, orgId string, c return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -11512,8 +13146,8 @@ func NewPostOrgsOrgIdResourcesDefsRequestWithBody(server string, orgId string, c return req, nil } -// NewDeleteOrgsOrgIdResourcesDefsDefIdRequest generates requests for DeleteOrgsOrgIdResourcesDefsDefId -func NewDeleteOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, defId string, params *DeleteOrgsOrgIdResourcesDefsDefIdParams) (*http.Request, error) { +// NewGetOrgsOrgIdEventsRequest generates requests for GetOrgsOrgIdEvents +func NewGetOrgsOrgIdEventsRequest(server string, orgId string) (*http.Request, error) { var err error var pathParam0 string @@ -11523,19 +13157,12 @@ func NewDeleteOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, de return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/events", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11545,29 +13172,7 @@ func NewDeleteOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, de return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Force != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11575,8 +13180,8 @@ func NewDeleteOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, de return req, nil } -// NewGetOrgsOrgIdResourcesDefsDefIdRequest generates requests for GetOrgsOrgIdResourcesDefsDefId -func NewGetOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, defId string) (*http.Request, error) { +// NewGetOrgsOrgIdImagesRequest generates requests for GetOrgsOrgIdImages +func NewGetOrgsOrgIdImagesRequest(server string, orgId string) (*http.Request, error) { var err error var pathParam0 string @@ -11586,19 +13191,12 @@ func NewGetOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, defId return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/images", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11616,19 +13214,8 @@ func NewGetOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, defId return req, nil } -// NewPatchOrgsOrgIdResourcesDefsDefIdRequest calls the generic PatchOrgsOrgIdResourcesDefsDefId builder with application/json body -func NewPatchOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, defId string, body PatchOrgsOrgIdResourcesDefsDefIdJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPatchOrgsOrgIdResourcesDefsDefIdRequestWithBody(server, orgId, defId, "application/json", bodyReader) -} - -// NewPatchOrgsOrgIdResourcesDefsDefIdRequestWithBody generates requests for PatchOrgsOrgIdResourcesDefsDefId with any type of body -func NewPatchOrgsOrgIdResourcesDefsDefIdRequestWithBody(server string, orgId string, defId string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetOrgsOrgIdImagesImageIdRequest generates requests for GetOrgsOrgIdImagesImageId +func NewGetOrgsOrgIdImagesImageIdRequest(server string, orgId string, imageId string) (*http.Request, error) { var err error var pathParam0 string @@ -11640,7 +13227,7 @@ func NewPatchOrgsOrgIdResourcesDefsDefIdRequestWithBody(server string, orgId str var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "imageId", runtime.ParamLocationPath, imageId) if err != nil { return nil, err } @@ -11650,7 +13237,7 @@ func NewPatchOrgsOrgIdResourcesDefsDefIdRequestWithBody(server string, orgId str return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/images/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11660,29 +13247,16 @@ func NewPatchOrgsOrgIdResourcesDefsDefIdRequestWithBody(server string, orgId str return nil, err } - req, err := http.NewRequest("PATCH", 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 } -// NewPutOrgsOrgIdResourcesDefsDefIdRequest calls the generic PutOrgsOrgIdResourcesDefsDefId builder with application/json body -func NewPutOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, defId string, body PutOrgsOrgIdResourcesDefsDefIdJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPutOrgsOrgIdResourcesDefsDefIdRequestWithBody(server, orgId, defId, "application/json", bodyReader) -} - -// NewPutOrgsOrgIdResourcesDefsDefIdRequestWithBody generates requests for PutOrgsOrgIdResourcesDefsDefId with any type of body -func NewPutOrgsOrgIdResourcesDefsDefIdRequestWithBody(server string, orgId string, defId string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetOrgsOrgIdImagesImageIdBuildsRequest generates requests for GetOrgsOrgIdImagesImageIdBuilds +func NewGetOrgsOrgIdImagesImageIdBuildsRequest(server string, orgId string, imageId string) (*http.Request, error) { var err error var pathParam0 string @@ -11694,7 +13268,7 @@ func NewPutOrgsOrgIdResourcesDefsDefIdRequestWithBody(server string, orgId strin var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "imageId", runtime.ParamLocationPath, imageId) if err != nil { return nil, err } @@ -11704,7 +13278,7 @@ func NewPutOrgsOrgIdResourcesDefsDefIdRequestWithBody(server string, orgId strin return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/images/%s/builds", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11714,29 +13288,27 @@ func NewPutOrgsOrgIdResourcesDefsDefIdRequestWithBody(server string, orgId strin 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 } -// NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequest calls the generic PostOrgsOrgIdResourcesDefsDefIdCriteria builder with application/json body -func NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequest(server string, orgId string, defId string, body PostOrgsOrgIdResourcesDefsDefIdCriteriaJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdImagesImageIdBuildsRequest calls the generic PostOrgsOrgIdImagesImageIdBuilds builder with application/json body +func NewPostOrgsOrgIdImagesImageIdBuildsRequest(server string, orgId string, imageId string, body PostOrgsOrgIdImagesImageIdBuildsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequestWithBody(server, orgId, defId, "application/json", bodyReader) + return NewPostOrgsOrgIdImagesImageIdBuildsRequestWithBody(server, orgId, imageId, "application/json", bodyReader) } -// NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequestWithBody generates requests for PostOrgsOrgIdResourcesDefsDefIdCriteria with any type of body -func NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequestWithBody(server string, orgId string, defId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdImagesImageIdBuildsRequestWithBody generates requests for PostOrgsOrgIdImagesImageIdBuilds with any type of body +func NewPostOrgsOrgIdImagesImageIdBuildsRequestWithBody(server string, orgId string, imageId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -11748,7 +13320,7 @@ func NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequestWithBody(server string, or var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "imageId", runtime.ParamLocationPath, imageId) if err != nil { return nil, err } @@ -11758,7 +13330,7 @@ func NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequestWithBody(server string, or return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s/criteria", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/images/%s/builds", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11778,8 +13350,8 @@ func NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequestWithBody(server string, or return req, nil } -// NewDeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdRequest generates requests for DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaId -func NewDeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdRequest(server string, orgId string, defId string, criteriaId string, params *DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdParams) (*http.Request, error) { +// NewGetOrgsOrgIdInvitationsRequest generates requests for GetOrgsOrgIdInvitations +func NewGetOrgsOrgIdInvitationsRequest(server string, orgId string) (*http.Request, error) { var err error var pathParam0 string @@ -11789,26 +13361,12 @@ func NewDeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdRequest(server string return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "criteriaId", runtime.ParamLocationPath, criteriaId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s/criteria/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/invitations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11818,29 +13376,7 @@ func NewDeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdRequest(server string return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Force != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11848,20 +13384,24 @@ func NewDeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdRequest(server string return req, nil } -// NewGetOrgsOrgIdResourcesDefsDefIdResourcesRequest generates requests for GetOrgsOrgIdResourcesDefsDefIdResources -func NewGetOrgsOrgIdResourcesDefsDefIdResourcesRequest(server string, orgId string, defId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) +// NewPostOrgsOrgIdInvitationsRequest calls the generic PostOrgsOrgIdInvitations builder with application/json body +func NewPostOrgsOrgIdInvitationsRequest(server string, orgId string, body PostOrgsOrgIdInvitationsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewPostOrgsOrgIdInvitationsRequestWithBody(server, orgId, "application/json", bodyReader) +} - var pathParam1 string +// NewPostOrgsOrgIdInvitationsRequestWithBody generates requests for PostOrgsOrgIdInvitations with any type of body +func NewPostOrgsOrgIdInvitationsRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { + var err error - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) if err != nil { return nil, err } @@ -11871,7 +13411,7 @@ func NewGetOrgsOrgIdResourcesDefsDefIdResourcesRequest(server string, orgId stri return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s/resources", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/invitations", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11881,16 +13421,18 @@ func NewGetOrgsOrgIdResourcesDefsDefIdResourcesRequest(server string, orgId stri return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetOrgsOrgIdResourcesDriversRequest generates requests for GetOrgsOrgIdResourcesDrivers -func NewGetOrgsOrgIdResourcesDriversRequest(server string, orgId string) (*http.Request, error) { +// NewListPipelineRunsByOrgRequest generates requests for ListPipelineRunsByOrg +func NewListPipelineRunsByOrgRequest(server string, orgId OrgIdPathParam, params *ListPipelineRunsByOrgParams) (*http.Request, error) { var err error var pathParam0 string @@ -11905,7 +13447,7 @@ func NewGetOrgsOrgIdResourcesDriversRequest(server string, orgId string) (*http. return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/drivers", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/pipeline-runs", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11915,6 +13457,140 @@ func NewGetOrgsOrgIdResourcesDriversRequest(server string, orgId string) (*http. return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.App != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app", runtime.ParamLocationQuery, *params.App); err != nil { + return nil, err + } else if 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.Pipeline != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pipeline", runtime.ParamLocationQuery, *params.Pipeline); err != nil { + return nil, err + } else if 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.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Completed != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "completed", runtime.ParamLocationQuery, *params.Completed); err != nil { + return nil, err + } else if 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.CreatedAfter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_after", runtime.ParamLocationQuery, *params.CreatedAfter); err != nil { + return nil, err + } else if 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.CreatedBefore != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_before", runtime.ParamLocationQuery, *params.CreatedBefore); err != nil { + return nil, err + } else if 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.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if 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.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if 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 @@ -11923,19 +13599,8 @@ func NewGetOrgsOrgIdResourcesDriversRequest(server string, orgId string) (*http. return req, nil } -// NewPostOrgsOrgIdResourcesDriversRequest calls the generic PostOrgsOrgIdResourcesDrivers builder with application/json body -func NewPostOrgsOrgIdResourcesDriversRequest(server string, orgId string, body PostOrgsOrgIdResourcesDriversJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdResourcesDriversRequestWithBody(server, orgId, "application/json", bodyReader) -} - -// NewPostOrgsOrgIdResourcesDriversRequestWithBody generates requests for PostOrgsOrgIdResourcesDrivers with any type of body -func NewPostOrgsOrgIdResourcesDriversRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetLatestPipelineSchemaRequest generates requests for GetLatestPipelineSchema +func NewGetLatestPipelineSchemaRequest(server string, orgId OrgIdPathParam) (*http.Request, error) { var err error var pathParam0 string @@ -11950,7 +13615,7 @@ func NewPostOrgsOrgIdResourcesDriversRequestWithBody(server string, orgId string return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/drivers", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/pipeline-schemas/latest", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -11960,18 +13625,16 @@ func NewPostOrgsOrgIdResourcesDriversRequestWithBody(server string, orgId string 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 } -// NewDeleteOrgsOrgIdResourcesDriversDriverIdRequest generates requests for DeleteOrgsOrgIdResourcesDriversDriverId -func NewDeleteOrgsOrgIdResourcesDriversDriverIdRequest(server string, orgId string, driverId string) (*http.Request, error) { +// NewListPipelinesByOrgRequest generates requests for ListPipelinesByOrg +func NewListPipelinesByOrgRequest(server string, orgId OrgIdPathParam, params *ListPipelinesByOrgParams) (*http.Request, error) { var err error var pathParam0 string @@ -11981,19 +13644,12 @@ func NewDeleteOrgsOrgIdResourcesDriversDriverIdRequest(server string, orgId stri return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "driverId", runtime.ParamLocationPath, driverId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/drivers/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/pipelines", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12003,28 +13659,107 @@ func NewDeleteOrgsOrgIdResourcesDriversDriverIdRequest(server string, orgId stri return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } + if params != nil { + queryValues := queryURL.Query() - return req, nil -} + if params.App != nil { -// NewGetOrgsOrgIdResourcesDriversDriverIdRequest generates requests for GetOrgsOrgIdResourcesDriversDriverId -func NewGetOrgsOrgIdResourcesDriversDriverIdRequest(server string, orgId string, driverId string) (*http.Request, error) { - var err error + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app", runtime.ParamLocationQuery, *params.App); err != nil { + return nil, err + } else if 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, "orgId", runtime.ParamLocationPath, orgId) + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if 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.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if 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.Trigger != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "trigger", runtime.ParamLocationQuery, *params.Trigger); err != nil { + return nil, err + } else if 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.Metadata != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("deepObject", true, "metadata", runtime.ParamLocationQuery, *params.Metadata); err != nil { + return nil, err + } else if 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 } - var pathParam1 string + return req, nil +} - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "driverId", runtime.ParamLocationPath, driverId) +// NewGetOrgsOrgIdRegistriesRequest generates requests for GetOrgsOrgIdRegistries +func NewGetOrgsOrgIdRegistriesRequest(server string, orgId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) if err != nil { return nil, err } @@ -12034,7 +13769,7 @@ func NewGetOrgsOrgIdResourcesDriversDriverIdRequest(server string, orgId string, return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/drivers/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/registries", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12052,19 +13787,19 @@ func NewGetOrgsOrgIdResourcesDriversDriverIdRequest(server string, orgId string, return req, nil } -// NewPutOrgsOrgIdResourcesDriversDriverIdRequest calls the generic PutOrgsOrgIdResourcesDriversDriverId builder with application/json body -func NewPutOrgsOrgIdResourcesDriversDriverIdRequest(server string, orgId string, driverId string, body PutOrgsOrgIdResourcesDriversDriverIdJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdRegistriesRequest calls the generic PostOrgsOrgIdRegistries builder with application/json body +func NewPostOrgsOrgIdRegistriesRequest(server string, orgId string, body PostOrgsOrgIdRegistriesJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPutOrgsOrgIdResourcesDriversDriverIdRequestWithBody(server, orgId, driverId, "application/json", bodyReader) + return NewPostOrgsOrgIdRegistriesRequestWithBody(server, orgId, "application/json", bodyReader) } -// NewPutOrgsOrgIdResourcesDriversDriverIdRequestWithBody generates requests for PutOrgsOrgIdResourcesDriversDriverId with any type of body -func NewPutOrgsOrgIdResourcesDriversDriverIdRequestWithBody(server string, orgId string, driverId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdRegistriesRequestWithBody generates requests for PostOrgsOrgIdRegistries with any type of body +func NewPostOrgsOrgIdRegistriesRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -12074,19 +13809,12 @@ func NewPutOrgsOrgIdResourcesDriversDriverIdRequestWithBody(server string, orgId return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "driverId", runtime.ParamLocationPath, driverId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/drivers/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/registries", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12096,7 +13824,7 @@ func NewPutOrgsOrgIdResourcesDriversDriverIdRequestWithBody(server string, orgId 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 } @@ -12106,8 +13834,8 @@ func NewPutOrgsOrgIdResourcesDriversDriverIdRequestWithBody(server string, orgId return req, nil } -// NewGetOrgsOrgIdResourcesTypesRequest generates requests for GetOrgsOrgIdResourcesTypes -func NewGetOrgsOrgIdResourcesTypesRequest(server string, orgId string) (*http.Request, error) { +// NewDeleteOrgsOrgIdRegistriesRegIdRequest generates requests for DeleteOrgsOrgIdRegistriesRegId +func NewDeleteOrgsOrgIdRegistriesRegIdRequest(server string, orgId string, regId string) (*http.Request, error) { var err error var pathParam0 string @@ -12117,12 +13845,19 @@ func NewGetOrgsOrgIdResourcesTypesRequest(server string, orgId string) (*http.Re return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "regId", runtime.ParamLocationPath, regId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/resources/types", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/registries/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12132,7 +13867,7 @@ func NewGetOrgsOrgIdResourcesTypesRequest(server string, orgId string) (*http.Re 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 } @@ -12140,8 +13875,8 @@ func NewGetOrgsOrgIdResourcesTypesRequest(server string, orgId string) (*http.Re return req, nil } -// NewGetOrgsOrgIdSecretstoresRequest generates requests for GetOrgsOrgIdSecretstores -func NewGetOrgsOrgIdSecretstoresRequest(server string, orgId string) (*http.Request, error) { +// NewGetOrgsOrgIdRegistriesRegIdRequest generates requests for GetOrgsOrgIdRegistriesRegId +func NewGetOrgsOrgIdRegistriesRegIdRequest(server string, orgId string, regId string) (*http.Request, error) { var err error var pathParam0 string @@ -12151,12 +13886,19 @@ func NewGetOrgsOrgIdSecretstoresRequest(server string, orgId string) (*http.Requ return nil, err } + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "regId", runtime.ParamLocationPath, regId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/secretstores", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/registries/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12174,55 +13916,19 @@ func NewGetOrgsOrgIdSecretstoresRequest(server string, orgId string) (*http.Requ return req, nil } -// NewPostOrgsOrgIdSecretstoresRequest calls the generic PostOrgsOrgIdSecretstores builder with application/json body -func NewPostOrgsOrgIdSecretstoresRequest(server string, orgId string, body PostOrgsOrgIdSecretstoresJSONRequestBody) (*http.Request, error) { +// NewPatchOrgsOrgIdRegistriesRegIdRequest calls the generic PatchOrgsOrgIdRegistriesRegId builder with application/json body +func NewPatchOrgsOrgIdRegistriesRegIdRequest(server string, orgId string, regId string, body PatchOrgsOrgIdRegistriesRegIdJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdSecretstoresRequestWithBody(server, orgId, "application/json", bodyReader) -} - -// NewPostOrgsOrgIdSecretstoresRequestWithBody generates requests for PostOrgsOrgIdSecretstores with any type of body -func NewPostOrgsOrgIdSecretstoresRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/orgs/%s/secretstores", 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 + return NewPatchOrgsOrgIdRegistriesRegIdRequestWithBody(server, orgId, regId, "application/json", bodyReader) } -// NewDeleteOrgsOrgIdSecretstoresStoreIdRequest generates requests for DeleteOrgsOrgIdSecretstoresStoreId -func NewDeleteOrgsOrgIdSecretstoresStoreIdRequest(server string, orgId string, storeId string) (*http.Request, error) { +// NewPatchOrgsOrgIdRegistriesRegIdRequestWithBody generates requests for PatchOrgsOrgIdRegistriesRegId with any type of body +func NewPatchOrgsOrgIdRegistriesRegIdRequestWithBody(server string, orgId string, regId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -12234,7 +13940,7 @@ func NewDeleteOrgsOrgIdSecretstoresStoreIdRequest(server string, orgId string, s var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "storeId", runtime.ParamLocationPath, storeId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "regId", runtime.ParamLocationPath, regId) if err != nil { return nil, err } @@ -12244,7 +13950,7 @@ func NewDeleteOrgsOrgIdSecretstoresStoreIdRequest(server string, orgId string, s return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/secretstores/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/registries/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12254,16 +13960,18 @@ func NewDeleteOrgsOrgIdSecretstoresStoreIdRequest(server string, orgId string, s return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetOrgsOrgIdSecretstoresStoreIdRequest generates requests for GetOrgsOrgIdSecretstoresStoreId -func NewGetOrgsOrgIdSecretstoresStoreIdRequest(server string, orgId string, storeId string) (*http.Request, error) { +// NewGetOrgsOrgIdRegistriesRegIdCredsRequest generates requests for GetOrgsOrgIdRegistriesRegIdCreds +func NewGetOrgsOrgIdRegistriesRegIdCredsRequest(server string, orgId string, regId string) (*http.Request, error) { var err error var pathParam0 string @@ -12275,7 +13983,7 @@ func NewGetOrgsOrgIdSecretstoresStoreIdRequest(server string, orgId string, stor var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "storeId", runtime.ParamLocationPath, storeId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "regId", runtime.ParamLocationPath, regId) if err != nil { return nil, err } @@ -12285,7 +13993,7 @@ func NewGetOrgsOrgIdSecretstoresStoreIdRequest(server string, orgId string, stor return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/secretstores/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/registries/%s/creds", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12303,19 +14011,8 @@ func NewGetOrgsOrgIdSecretstoresStoreIdRequest(server string, orgId string, stor return req, nil } -// NewPatchOrgsOrgIdSecretstoresStoreIdRequest calls the generic PatchOrgsOrgIdSecretstoresStoreId builder with application/json body -func NewPatchOrgsOrgIdSecretstoresStoreIdRequest(server string, orgId string, storeId string, body PatchOrgsOrgIdSecretstoresStoreIdJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPatchOrgsOrgIdSecretstoresStoreIdRequestWithBody(server, orgId, storeId, "application/json", bodyReader) -} - -// NewPatchOrgsOrgIdSecretstoresStoreIdRequestWithBody generates requests for PatchOrgsOrgIdSecretstoresStoreId with any type of body -func NewPatchOrgsOrgIdSecretstoresStoreIdRequestWithBody(server string, orgId string, storeId string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetOrgsOrgIdResourcesAccountTypesRequest generates requests for GetOrgsOrgIdResourcesAccountTypes +func NewGetOrgsOrgIdResourcesAccountTypesRequest(server string, orgId string) (*http.Request, error) { var err error var pathParam0 string @@ -12325,19 +14022,12 @@ func NewPatchOrgsOrgIdSecretstoresStoreIdRequestWithBody(server string, orgId st return nil, err } - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "storeId", runtime.ParamLocationPath, storeId) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/secretstores/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/resources/account-types", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12347,18 +14037,16 @@ func NewPatchOrgsOrgIdSecretstoresStoreIdRequestWithBody(server string, orgId st return nil, err } - req, err := http.NewRequest("PATCH", 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 } -// NewGetOrgsOrgIdUsersRequest generates requests for GetOrgsOrgIdUsers -func NewGetOrgsOrgIdUsersRequest(server string, orgId string) (*http.Request, error) { +// NewGetOrgsOrgIdResourcesAccountsRequest generates requests for GetOrgsOrgIdResourcesAccounts +func NewGetOrgsOrgIdResourcesAccountsRequest(server string, orgId string) (*http.Request, error) { var err error var pathParam0 string @@ -12373,7 +14061,7 @@ func NewGetOrgsOrgIdUsersRequest(server string, orgId string) (*http.Request, er return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/users", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/resources/accounts", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12391,19 +14079,19 @@ func NewGetOrgsOrgIdUsersRequest(server string, orgId string) (*http.Request, er return req, nil } -// NewPostOrgsOrgIdUsersRequest calls the generic PostOrgsOrgIdUsers builder with application/json body -func NewPostOrgsOrgIdUsersRequest(server string, orgId string, body PostOrgsOrgIdUsersJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdResourcesAccountsRequest calls the generic PostOrgsOrgIdResourcesAccounts builder with application/json body +func NewPostOrgsOrgIdResourcesAccountsRequest(server string, orgId string, body PostOrgsOrgIdResourcesAccountsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdUsersRequestWithBody(server, orgId, "application/json", bodyReader) + return NewPostOrgsOrgIdResourcesAccountsRequestWithBody(server, orgId, "application/json", bodyReader) } -// NewPostOrgsOrgIdUsersRequestWithBody generates requests for PostOrgsOrgIdUsers with any type of body -func NewPostOrgsOrgIdUsersRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdResourcesAccountsRequestWithBody generates requests for PostOrgsOrgIdResourcesAccounts with any type of body +func NewPostOrgsOrgIdResourcesAccountsRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -12418,7 +14106,7 @@ func NewPostOrgsOrgIdUsersRequestWithBody(server string, orgId string, contentTy return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/users", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/resources/accounts", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12438,8 +14126,8 @@ func NewPostOrgsOrgIdUsersRequestWithBody(server string, orgId string, contentTy return req, nil } -// NewDeleteOrgsOrgIdUsersUserIdRequest generates requests for DeleteOrgsOrgIdUsersUserId -func NewDeleteOrgsOrgIdUsersUserIdRequest(server string, orgId string, userId string) (*http.Request, error) { +// NewDeleteOrgsOrgIdResourcesAccountsAccIdRequest generates requests for DeleteOrgsOrgIdResourcesAccountsAccId +func NewDeleteOrgsOrgIdResourcesAccountsAccIdRequest(server string, orgId string, accId string) (*http.Request, error) { var err error var pathParam0 string @@ -12451,7 +14139,7 @@ func NewDeleteOrgsOrgIdUsersUserIdRequest(server string, orgId string, userId st var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "accId", runtime.ParamLocationPath, accId) if err != nil { return nil, err } @@ -12461,7 +14149,7 @@ func NewDeleteOrgsOrgIdUsersUserIdRequest(server string, orgId string, userId st return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/resources/accounts/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12479,8 +14167,8 @@ func NewDeleteOrgsOrgIdUsersUserIdRequest(server string, orgId string, userId st return req, nil } -// NewGetOrgsOrgIdUsersUserIdRequest generates requests for GetOrgsOrgIdUsersUserId -func NewGetOrgsOrgIdUsersUserIdRequest(server string, orgId string, userId string) (*http.Request, error) { +// NewGetOrgsOrgIdResourcesAccountsAccIdRequest generates requests for GetOrgsOrgIdResourcesAccountsAccId +func NewGetOrgsOrgIdResourcesAccountsAccIdRequest(server string, orgId string, accId string) (*http.Request, error) { var err error var pathParam0 string @@ -12492,7 +14180,7 @@ func NewGetOrgsOrgIdUsersUserIdRequest(server string, orgId string, userId strin var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "accId", runtime.ParamLocationPath, accId) if err != nil { return nil, err } @@ -12502,7 +14190,7 @@ func NewGetOrgsOrgIdUsersUserIdRequest(server string, orgId string, userId strin return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/resources/accounts/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12520,19 +14208,19 @@ func NewGetOrgsOrgIdUsersUserIdRequest(server string, orgId string, userId strin return req, nil } -// NewPatchOrgsOrgIdUsersUserIdRequest calls the generic PatchOrgsOrgIdUsersUserId builder with application/json body -func NewPatchOrgsOrgIdUsersUserIdRequest(server string, orgId string, userId string, body PatchOrgsOrgIdUsersUserIdJSONRequestBody) (*http.Request, error) { +// NewPatchOrgsOrgIdResourcesAccountsAccIdRequest calls the generic PatchOrgsOrgIdResourcesAccountsAccId builder with application/json body +func NewPatchOrgsOrgIdResourcesAccountsAccIdRequest(server string, orgId string, accId string, body PatchOrgsOrgIdResourcesAccountsAccIdJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPatchOrgsOrgIdUsersUserIdRequestWithBody(server, orgId, userId, "application/json", bodyReader) + return NewPatchOrgsOrgIdResourcesAccountsAccIdRequestWithBody(server, orgId, accId, "application/json", bodyReader) } -// NewPatchOrgsOrgIdUsersUserIdRequestWithBody generates requests for PatchOrgsOrgIdUsersUserId with any type of body -func NewPatchOrgsOrgIdUsersUserIdRequestWithBody(server string, orgId string, userId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPatchOrgsOrgIdResourcesAccountsAccIdRequestWithBody generates requests for PatchOrgsOrgIdResourcesAccountsAccId with any type of body +func NewPatchOrgsOrgIdResourcesAccountsAccIdRequestWithBody(server string, orgId string, accId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -12544,7 +14232,7 @@ func NewPatchOrgsOrgIdUsersUserIdRequestWithBody(server string, orgId string, us var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "accId", runtime.ParamLocationPath, accId) if err != nil { return nil, err } @@ -12554,7 +14242,7 @@ func NewPatchOrgsOrgIdUsersUserIdRequestWithBody(server string, orgId string, us return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/resources/accounts/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12574,8 +14262,8 @@ func NewPatchOrgsOrgIdUsersUserIdRequestWithBody(server string, orgId string, us return req, nil } -// NewGetOrgsOrgIdWorkloadProfilesRequest generates requests for GetOrgsOrgIdWorkloadProfiles -func NewGetOrgsOrgIdWorkloadProfilesRequest(server string, orgId string) (*http.Request, error) { +// NewGetOrgsOrgIdResourcesDefsRequest generates requests for GetOrgsOrgIdResourcesDefs +func NewGetOrgsOrgIdResourcesDefsRequest(server string, orgId string, params *GetOrgsOrgIdResourcesDefsParams) (*http.Request, error) { var err error var pathParam0 string @@ -12590,7 +14278,7 @@ func NewGetOrgsOrgIdWorkloadProfilesRequest(server string, orgId string) (*http. return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/workload-profiles", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/resources/defs", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12600,6 +14288,108 @@ func NewGetOrgsOrgIdWorkloadProfilesRequest(server string, orgId string) (*http. return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.App != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "app", runtime.ParamLocationQuery, *params.App); err != nil { + return nil, err + } else if 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.Env != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "env", runtime.ParamLocationQuery, *params.Env); err != nil { + return nil, err + } else if 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.EnvType != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "env_type", runtime.ParamLocationQuery, *params.EnvType); err != nil { + return nil, err + } else if 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.Res != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "res", runtime.ParamLocationQuery, *params.Res); err != nil { + return nil, err + } else if 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.ResType != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "res_type", runtime.ParamLocationQuery, *params.ResType); err != nil { + return nil, err + } else if 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.Class != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class", runtime.ParamLocationQuery, *params.Class); err != nil { + return nil, err + } else if 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 @@ -12608,19 +14398,19 @@ func NewGetOrgsOrgIdWorkloadProfilesRequest(server string, orgId string) (*http. return req, nil } -// NewPostOrgsOrgIdWorkloadProfilesRequest calls the generic PostOrgsOrgIdWorkloadProfiles builder with application/json body -func NewPostOrgsOrgIdWorkloadProfilesRequest(server string, orgId string, body PostOrgsOrgIdWorkloadProfilesJSONRequestBody) (*http.Request, error) { +// NewPostOrgsOrgIdResourcesDefsRequest calls the generic PostOrgsOrgIdResourcesDefs builder with application/json body +func NewPostOrgsOrgIdResourcesDefsRequest(server string, orgId string, body PostOrgsOrgIdResourcesDefsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrgsOrgIdWorkloadProfilesRequestWithBody(server, orgId, "application/json", bodyReader) + return NewPostOrgsOrgIdResourcesDefsRequestWithBody(server, orgId, "application/json", bodyReader) } -// NewPostOrgsOrgIdWorkloadProfilesRequestWithBody generates requests for PostOrgsOrgIdWorkloadProfiles with any type of body -func NewPostOrgsOrgIdWorkloadProfilesRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdResourcesDefsRequestWithBody generates requests for PostOrgsOrgIdResourcesDefs with any type of body +func NewPostOrgsOrgIdResourcesDefsRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -12635,7 +14425,7 @@ func NewPostOrgsOrgIdWorkloadProfilesRequestWithBody(server string, orgId string return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/workload-profiles", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/resources/defs", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12655,8 +14445,8 @@ func NewPostOrgsOrgIdWorkloadProfilesRequestWithBody(server string, orgId string return req, nil } -// NewDeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionRequest generates requests for DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersion -func NewDeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionRequest(server string, orgId string, profileId string, version string) (*http.Request, error) { +// NewDeleteOrgsOrgIdResourcesDefsDefIdRequest generates requests for DeleteOrgsOrgIdResourcesDefsDefId +func NewDeleteOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, defId string, params *DeleteOrgsOrgIdResourcesDefsDefIdParams) (*http.Request, error) { var err error var pathParam0 string @@ -12668,14 +14458,7 @@ func NewDeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionRequest(server st var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "profileId", runtime.ParamLocationPath, profileId) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "version", runtime.ParamLocationPath, version) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) if err != nil { return nil, err } @@ -12685,7 +14468,7 @@ func NewDeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionRequest(server st return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/workload-profiles/%s/versions/%s", pathParam0, pathParam1, pathParam2) + operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12695,6 +14478,28 @@ func NewDeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionRequest(server st return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.Force != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err @@ -12703,8 +14508,8 @@ func NewDeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionRequest(server st return req, nil } -// NewDeleteOrgsOrgIdWorkloadProfilesProfileQidRequest generates requests for DeleteOrgsOrgIdWorkloadProfilesProfileQid -func NewDeleteOrgsOrgIdWorkloadProfilesProfileQidRequest(server string, orgId string, profileQid string) (*http.Request, error) { +// NewGetOrgsOrgIdResourcesDefsDefIdRequest generates requests for GetOrgsOrgIdResourcesDefsDefId +func NewGetOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, defId string) (*http.Request, error) { var err error var pathParam0 string @@ -12716,7 +14521,7 @@ func NewDeleteOrgsOrgIdWorkloadProfilesProfileQidRequest(server string, orgId st var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "profileQid", runtime.ParamLocationPath, profileQid) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) if err != nil { return nil, err } @@ -12726,7 +14531,7 @@ func NewDeleteOrgsOrgIdWorkloadProfilesProfileQidRequest(server string, orgId st return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/workload-profiles/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12736,7 +14541,7 @@ func NewDeleteOrgsOrgIdWorkloadProfilesProfileQidRequest(server string, orgId st 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 } @@ -12744,8 +14549,19 @@ func NewDeleteOrgsOrgIdWorkloadProfilesProfileQidRequest(server string, orgId st return req, nil } -// NewGetOrgsOrgIdWorkloadProfilesProfileQidRequest generates requests for GetOrgsOrgIdWorkloadProfilesProfileQid -func NewGetOrgsOrgIdWorkloadProfilesProfileQidRequest(server string, orgId string, profileQid string) (*http.Request, error) { +// NewPatchOrgsOrgIdResourcesDefsDefIdRequest calls the generic PatchOrgsOrgIdResourcesDefsDefId builder with application/json body +func NewPatchOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, defId string, body PatchOrgsOrgIdResourcesDefsDefIdJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPatchOrgsOrgIdResourcesDefsDefIdRequestWithBody(server, orgId, defId, "application/json", bodyReader) +} + +// NewPatchOrgsOrgIdResourcesDefsDefIdRequestWithBody generates requests for PatchOrgsOrgIdResourcesDefsDefId with any type of body +func NewPatchOrgsOrgIdResourcesDefsDefIdRequestWithBody(server string, orgId string, defId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -12757,7 +14573,7 @@ func NewGetOrgsOrgIdWorkloadProfilesProfileQidRequest(server string, orgId strin var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "profileQid", runtime.ParamLocationPath, profileQid) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) if err != nil { return nil, err } @@ -12767,7 +14583,7 @@ func NewGetOrgsOrgIdWorkloadProfilesProfileQidRequest(server string, orgId strin return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/workload-profiles/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12777,16 +14593,29 @@ func NewGetOrgsOrgIdWorkloadProfilesProfileQidRequest(server string, orgId strin return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetOrgsOrgIdWorkloadProfilesProfileQidVersionsRequest generates requests for GetOrgsOrgIdWorkloadProfilesProfileQidVersions -func NewGetOrgsOrgIdWorkloadProfilesProfileQidVersionsRequest(server string, orgId string, profileQid string, params *GetOrgsOrgIdWorkloadProfilesProfileQidVersionsParams) (*http.Request, error) { +// NewPutOrgsOrgIdResourcesDefsDefIdRequest calls the generic PutOrgsOrgIdResourcesDefsDefId builder with application/json body +func NewPutOrgsOrgIdResourcesDefsDefIdRequest(server string, orgId string, defId string, body PutOrgsOrgIdResourcesDefsDefIdJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPutOrgsOrgIdResourcesDefsDefIdRequestWithBody(server, orgId, defId, "application/json", bodyReader) +} + +// NewPutOrgsOrgIdResourcesDefsDefIdRequestWithBody generates requests for PutOrgsOrgIdResourcesDefsDefId with any type of body +func NewPutOrgsOrgIdResourcesDefsDefIdRequestWithBody(server string, orgId string, defId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -12798,7 +14627,7 @@ func NewGetOrgsOrgIdWorkloadProfilesProfileQidVersionsRequest(server string, org var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "profileQid", runtime.ParamLocationPath, profileQid) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) if err != nil { return nil, err } @@ -12808,7 +14637,7 @@ func NewGetOrgsOrgIdWorkloadProfilesProfileQidVersionsRequest(server string, org return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/workload-profiles/%s/versions", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12818,38 +14647,29 @@ func NewGetOrgsOrgIdWorkloadProfilesProfileQidVersionsRequest(server string, org return nil, err } - if params != nil { - queryValues := queryURL.Query() - - if params.Version != nil { + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } - 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) - } - } - } + req.Header.Add("Content-Type", contentType) - } + return req, nil +} - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) +// NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequest calls the generic PostOrgsOrgIdResourcesDefsDefIdCriteria builder with application/json body +func NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequest(server string, orgId string, defId string, body PostOrgsOrgIdResourcesDefsDefIdCriteriaJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } - - return req, nil + bodyReader = bytes.NewReader(buf) + return NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequestWithBody(server, orgId, defId, "application/json", bodyReader) } -// NewPostOrgsOrgIdWorkloadProfilesProfileQidVersionsRequestWithBody generates requests for PostOrgsOrgIdWorkloadProfilesProfileQidVersions with any type of body -func NewPostOrgsOrgIdWorkloadProfilesProfileQidVersionsRequestWithBody(server string, orgId string, profileQid string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequestWithBody generates requests for PostOrgsOrgIdResourcesDefsDefIdCriteria with any type of body +func NewPostOrgsOrgIdResourcesDefsDefIdCriteriaRequestWithBody(server string, orgId string, defId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -12861,7 +14681,7 @@ func NewPostOrgsOrgIdWorkloadProfilesProfileQidVersionsRequestWithBody(server st var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "profileQid", runtime.ParamLocationPath, profileQid) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) if err != nil { return nil, err } @@ -12871,7 +14691,7 @@ func NewPostOrgsOrgIdWorkloadProfilesProfileQidVersionsRequestWithBody(server st return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/workload-profiles/%s/versions", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s/criteria", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12891,8 +14711,8 @@ func NewPostOrgsOrgIdWorkloadProfilesProfileQidVersionsRequestWithBody(server st return req, nil } -// NewGetLatestWorkloadProfileVersionRequest generates requests for GetLatestWorkloadProfileVersion -func NewGetLatestWorkloadProfileVersionRequest(server string, orgId string, profileQid string) (*http.Request, error) { +// NewDeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdRequest generates requests for DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaId +func NewDeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdRequest(server string, orgId string, defId string, criteriaId string, params *DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdParams) (*http.Request, error) { var err error var pathParam0 string @@ -12904,7 +14724,14 @@ func NewGetLatestWorkloadProfileVersionRequest(server string, orgId string, prof var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "profileQid", runtime.ParamLocationPath, profileQid) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "criteriaId", runtime.ParamLocationPath, criteriaId) if err != nil { return nil, err } @@ -12914,7 +14741,7 @@ func NewGetLatestWorkloadProfileVersionRequest(server string, orgId string, prof return nil, err } - operationPath := fmt.Sprintf("/orgs/%s/workload-profiles/%s/versions/latest", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s/criteria/%s", pathParam0, pathParam1, pathParam2) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12924,7 +14751,29 @@ func NewGetLatestWorkloadProfileVersionRequest(server string, orgId string, prof return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + if params != nil { + queryValues := queryURL.Query() + + if params.Force != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -12932,16 +14781,30 @@ func NewGetLatestWorkloadProfileVersionRequest(server string, orgId string, prof return req, nil } -// NewGetTokensRequest generates requests for GetTokens -func NewGetTokensRequest(server string) (*http.Request, error) { +// NewGetOrgsOrgIdResourcesDefsDefIdResourcesRequest generates requests for GetOrgsOrgIdResourcesDefsDefIdResources +func NewGetOrgsOrgIdResourcesDefsDefIdResourcesRequest(server string, orgId string, defId string) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "defId", runtime.ParamLocationPath, defId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/tokens") + operationPath := fmt.Sprintf("/orgs/%s/resources/defs/%s/resources", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12959,13 +14822,13 @@ func NewGetTokensRequest(server string) (*http.Request, error) { return req, nil } -// NewDeleteTokensTokenIdRequest generates requests for DeleteTokensTokenId -func NewDeleteTokensTokenIdRequest(server string, tokenId string) (*http.Request, error) { +// NewGetOrgsOrgIdResourcesDriversRequest generates requests for GetOrgsOrgIdResourcesDrivers +func NewGetOrgsOrgIdResourcesDriversRequest(server string, orgId string) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "tokenId", runtime.ParamLocationPath, tokenId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) if err != nil { return nil, err } @@ -12975,7 +14838,7 @@ func NewDeleteTokensTokenIdRequest(server string, tokenId string) (*http.Request return nil, err } - operationPath := fmt.Sprintf("/tokens/%s", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/resources/drivers", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -12985,7 +14848,7 @@ func NewDeleteTokensTokenIdRequest(server string, tokenId string) (*http.Request 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 } @@ -12993,16 +14856,34 @@ func NewDeleteTokensTokenIdRequest(server string, tokenId string) (*http.Request return req, nil } -// NewGetUsersMeRequest generates requests for GetUsersMe -func NewGetUsersMeRequest(server string) (*http.Request, error) { +// NewPostOrgsOrgIdResourcesDriversRequest calls the generic PostOrgsOrgIdResourcesDrivers builder with application/json body +func NewPostOrgsOrgIdResourcesDriversRequest(server string, orgId string, body PostOrgsOrgIdResourcesDriversJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostOrgsOrgIdResourcesDriversRequestWithBody(server, orgId, "application/json", bodyReader) +} + +// NewPostOrgsOrgIdResourcesDriversRequestWithBody generates requests for PostOrgsOrgIdResourcesDrivers with any type of body +func NewPostOrgsOrgIdResourcesDriversRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/users/me") + operationPath := fmt.Sprintf("/orgs/%s/resources/drivers", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -13012,21 +14893,30 @@ func NewGetUsersMeRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetUsersUserIdTokensRequest generates requests for GetUsersUserIdTokens -func NewGetUsersUserIdTokensRequest(server string, userId string) (*http.Request, error) { +// NewDeleteOrgsOrgIdResourcesDriversDriverIdRequest generates requests for DeleteOrgsOrgIdResourcesDriversDriverId +func NewDeleteOrgsOrgIdResourcesDriversDriverIdRequest(server string, orgId string, driverId string) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "driverId", runtime.ParamLocationPath, driverId) if err != nil { return nil, err } @@ -13036,7 +14926,7 @@ func NewGetUsersUserIdTokensRequest(server string, userId string) (*http.Request return nil, err } - operationPath := fmt.Sprintf("/users/%s/tokens", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/resources/drivers/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -13046,7 +14936,7 @@ func NewGetUsersUserIdTokensRequest(server string, userId string) (*http.Request 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 } @@ -13054,24 +14944,20 @@ func NewGetUsersUserIdTokensRequest(server string, userId string) (*http.Request return req, nil } -// NewPostUsersUserIdTokensRequest calls the generic PostUsersUserIdTokens builder with application/json body -func NewPostUsersUserIdTokensRequest(server string, userId string, body PostUsersUserIdTokensJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewGetOrgsOrgIdResourcesDriversDriverIdRequest generates requests for GetOrgsOrgIdResourcesDriversDriverId +func NewGetOrgsOrgIdResourcesDriversDriverIdRequest(server string, orgId string, driverId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewPostUsersUserIdTokensRequestWithBody(server, userId, "application/json", bodyReader) -} - -// NewPostUsersUserIdTokensRequestWithBody generates requests for PostUsersUserIdTokens with any type of body -func NewPostUsersUserIdTokensRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - var pathParam0 string + var pathParam1 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "driverId", runtime.ParamLocationPath, driverId) if err != nil { return nil, err } @@ -13081,7 +14967,7 @@ func NewPostUsersUserIdTokensRequestWithBody(server string, userId string, conte return nil, err } - operationPath := fmt.Sprintf("/users/%s/tokens", pathParam0) + operationPath := fmt.Sprintf("/orgs/%s/resources/drivers/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -13091,30 +14977,39 @@ func NewPostUsersUserIdTokensRequestWithBody(server string, userId string, conte 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 } -// NewDeleteUsersUserIdTokensTokenIdRequest generates requests for DeleteUsersUserIdTokensTokenId -func NewDeleteUsersUserIdTokensTokenIdRequest(server string, userId string, tokenId string) (*http.Request, error) { +// NewPutOrgsOrgIdResourcesDriversDriverIdRequest calls the generic PutOrgsOrgIdResourcesDriversDriverId builder with application/json body +func NewPutOrgsOrgIdResourcesDriversDriverIdRequest(server string, orgId string, driverId string, body PutOrgsOrgIdResourcesDriversDriverIdJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPutOrgsOrgIdResourcesDriversDriverIdRequestWithBody(server, orgId, driverId, "application/json", bodyReader) +} + +// NewPutOrgsOrgIdResourcesDriversDriverIdRequestWithBody generates requests for PutOrgsOrgIdResourcesDriversDriverId with any type of body +func NewPutOrgsOrgIdResourcesDriversDriverIdRequestWithBody(server string, orgId string, driverId string, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tokenId", runtime.ParamLocationPath, tokenId) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "driverId", runtime.ParamLocationPath, driverId) if err != nil { return nil, err } @@ -13124,7 +15019,7 @@ func NewDeleteUsersUserIdTokensTokenIdRequest(server string, userId string, toke return nil, err } - operationPath := fmt.Sprintf("/users/%s/tokens/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/resources/drivers/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -13134,28 +15029,23 @@ func NewDeleteUsersUserIdTokensTokenIdRequest(server string, userId string, toke return nil, err } - req, err := http.NewRequest("DELETE", 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 } -// NewGetUsersUserIdTokensTokenIdRequest generates requests for GetUsersUserIdTokensTokenId -func NewGetUsersUserIdTokensTokenIdRequest(server string, userId string, tokenId string) (*http.Request, error) { +// NewGetOrgsOrgIdResourcesTypesRequest generates requests for GetOrgsOrgIdResourcesTypes +func NewGetOrgsOrgIdResourcesTypesRequest(server string, orgId string) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tokenId", runtime.ParamLocationPath, tokenId) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) if err != nil { return nil, err } @@ -13165,7 +15055,7 @@ func NewGetUsersUserIdTokensTokenIdRequest(server string, userId string, tokenId return nil, err } - operationPath := fmt.Sprintf("/users/%s/tokens/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/orgs/%s/resources/types", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -13183,614 +15073,2864 @@ func NewGetUsersUserIdTokensTokenIdRequest(server string, userId string, tokenId 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 - } +// NewGetOrgsOrgIdSecretstoresRequest generates requests for GetOrgsOrgIdSecretstores +func NewGetOrgsOrgIdSecretstoresRequest(server string, orgId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err } - for _, r := range additionalEditors { - if err := r(ctx, req); err != nil { - return err - } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return nil -} -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface -} + operationPath := fmt.Sprintf("/orgs/%s/secretstores", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// NewClientWithResponses creates a new ClientWithResponses, which wraps -// Client with return type handling -func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { - client, err := NewClient(server, opts...) + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - return &ClientWithResponses{client}, nil -} -// WithBaseURL overrides the baseURL. -func WithBaseURL(baseURL string) ClientOption { - return func(c *Client) error { - newBaseURL, err := url.Parse(baseURL) - if err != nil { - return err - } - c.Server = newBaseURL.String() - return nil + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err } + + return req, nil } -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - // GetCurrentUser request - GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) - - // PatchCurrentUser request with any body - PatchCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchCurrentUserResponse, error) +// NewPostOrgsOrgIdSecretstoresRequest calls the generic PostOrgsOrgIdSecretstores builder with application/json body +func NewPostOrgsOrgIdSecretstoresRequest(server string, orgId string, body PostOrgsOrgIdSecretstoresJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostOrgsOrgIdSecretstoresRequestWithBody(server, orgId, "application/json", bodyReader) +} - PatchCurrentUserWithResponse(ctx context.Context, body PatchCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchCurrentUserResponse, error) +// NewPostOrgsOrgIdSecretstoresRequestWithBody generates requests for PostOrgsOrgIdSecretstores with any type of body +func NewPostOrgsOrgIdSecretstoresRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { + var err error - // GetOrgs request - GetOrgsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrgsResponse, error) + var pathParam0 string - // GetOrgsOrgId request - GetOrgsOrgIdWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - // GetOrgsOrgIdApps request - GetOrgsOrgIdAppsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // PostOrgsOrgIdApps request with any body - PostOrgsOrgIdAppsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/secretstores", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - PostOrgsOrgIdAppsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdAppsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // DeleteOrgsOrgIdAppsAppId request - DeleteOrgsOrgIdAppsAppIdWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdResponse, error) + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - // GetOrgsOrgIdAppsAppId request - GetOrgsOrgIdAppsAppIdWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdResponse, error) + req.Header.Add("Content-Type", contentType) - // GetOrgsOrgIdAppsAppIdDeltas request - GetOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdDeltasResponse, error) + return req, nil +} - // PostOrgsOrgIdAppsAppIdDeltas request with any body - PostOrgsOrgIdAppsAppIdDeltasWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error) +// NewDeleteOrgsOrgIdSecretstoresStoreIdRequest generates requests for DeleteOrgsOrgIdSecretstoresStoreId +func NewDeleteOrgsOrgIdSecretstoresStoreIdRequest(server string, orgId string, storeId string) (*http.Request, error) { + var err error - PostOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error) + var pathParam0 string - // GetDelta request - GetDeltaWithResponse(ctx context.Context, orgId string, appId string, deltaId string, reqEditors ...RequestEditorFn) (*GetDeltaResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - // PatchOrgsOrgIdAppsAppIdDeltasDeltaId request with any body - PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error) + var pathParam1 string - PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "storeId", runtime.ParamLocationPath, storeId) + if err != nil { + return nil, err + } - // PutDelta request with any body - PutDeltaWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDeltaResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - PutDeltaWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutDeltaJSONRequestBody, reqEditors ...RequestEditorFn) (*PutDeltaResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/secretstores/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived request with any body - PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - // PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId request with any body - PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error) + return req, nil +} - PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error) +// NewGetOrgsOrgIdSecretstoresStoreIdRequest generates requests for GetOrgsOrgIdSecretstoresStoreId +func NewGetOrgsOrgIdSecretstoresStoreIdRequest(server string, orgId string, storeId string) (*http.Request, error) { + var err error - // PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName request with any body - PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error) + var pathParam0 string - PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - // GetOrgsOrgIdAppsAppIdEnvs request - GetOrgsOrgIdAppsAppIdEnvsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsResponse, error) + var pathParam1 string - // PostOrgsOrgIdAppsAppIdEnvs request with any body - PostOrgsOrgIdAppsAppIdEnvsWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "storeId", runtime.ParamLocationPath, storeId) + if err != nil { + return nil, err + } - PostOrgsOrgIdAppsAppIdEnvsWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdEnvsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // DeleteOrgsOrgIdAppsAppIdEnvsEnvId request - DeleteOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/secretstores/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetOrgsOrgIdAppsAppIdEnvsEnvId request - GetOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploys request - GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploys request with any body - PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) + return req, nil +} - PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) +// NewPatchOrgsOrgIdSecretstoresStoreIdRequest calls the generic PatchOrgsOrgIdSecretstoresStoreId builder with application/json body +func NewPatchOrgsOrgIdSecretstoresStoreIdRequest(server string, orgId string, storeId string, body PatchOrgsOrgIdSecretstoresStoreIdJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPatchOrgsOrgIdSecretstoresStoreIdRequestWithBody(server, orgId, storeId, "application/json", bodyReader) +} - // GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployId request - GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdWithResponse(ctx context.Context, orgId string, appId string, envId string, deployId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse, error) +// NewPatchOrgsOrgIdSecretstoresStoreIdRequestWithBody generates requests for PatchOrgsOrgIdSecretstoresStoreId with any type of body +func NewPatchOrgsOrgIdSecretstoresStoreIdRequestWithBody(server string, orgId string, storeId string, contentType string, body io.Reader) (*http.Request, error) { + var err error - // GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrors request - GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsWithResponse(ctx context.Context, orgId string, appId string, envId string, deployId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse, error) + var pathParam0 string - // PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployId request with any body - PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithResponse(ctx context.Context, orgId string, appId string, envId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse, error) + var pathParam1 string - // GetOrgsOrgIdAppsAppIdEnvsEnvIdResources request - GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "storeId", runtime.ParamLocationPath, storeId) + if err != nil { + return nil, err + } - // PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraph request with any body - PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/secretstores/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResId request - DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdWithResponse(ctx context.Context, orgId string, appId string, envId string, pType string, resId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetOrgsOrgIdAppsAppIdEnvsEnvIdRules request - GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } - // PostOrgsOrgIdAppsAppIdEnvsEnvIdRules request with any body - PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) + req.Header.Add("Content-Type", contentType) - PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) + return req, nil +} - // DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId request - DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) +// NewGetOrgsOrgIdUsersRequest generates requests for GetOrgsOrgIdUsers +func NewGetOrgsOrgIdUsersRequest(server string, orgId string) (*http.Request, error) { + var err error - // GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId request - GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) + var pathParam0 string - // PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId request with any body - PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntime request - GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePaused request with any body - PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithResponse(ctx context.Context, orgId string, appId string, envId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicas request with any body - PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error) + return req, nil +} - PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithResponse(ctx context.Context, orgId string, appId string, envId string, body PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error) - - // GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersions request - GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsWithResponse(ctx context.Context, orgId string, appId string, envId string, params *GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse, error) +// NewPostOrgsOrgIdUsersRequest calls the generic PostOrgsOrgIdUsers builder with application/json body +func NewPostOrgsOrgIdUsersRequest(server string, orgId string, body PostOrgsOrgIdUsersJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostOrgsOrgIdUsersRequestWithBody(server, orgId, "application/json", bodyReader) +} - // GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionId request - GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse, error) +// NewPostOrgsOrgIdUsersRequestWithBody generates requests for PostOrgsOrgIdUsers with any type of body +func NewPostOrgsOrgIdUsersRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { + var err error - // PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKey request with any body - PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) + var pathParam0 string - PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - // PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestore request with any body - PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKey request with any body - PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - // DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValues request - DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) + req.Header.Add("Content-Type", contentType) - // GetOrgsOrgIdAppsAppIdEnvsEnvIdValues request - GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) + return req, nil +} - // PostOrgsOrgIdAppsAppIdEnvsEnvIdValues request with any body - PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) +// NewDeleteOrgsOrgIdUsersUserIdRequest generates requests for DeleteOrgsOrgIdUsersUserId +func NewDeleteOrgsOrgIdUsersUserIdRequest(server string, orgId string, userId string) (*http.Request, error) { + var err error - PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) + var pathParam0 string - // DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey request - DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - // PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey request with any body - PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) + var pathParam1 string - PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, body PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } - // PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey request with any body - PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteOrgsOrgIdAppsAppIdJobs request - DeleteOrgsOrgIdAppsAppIdJobsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdJobsResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetOrgsOrgIdAppsAppIdRuntime request - GetOrgsOrgIdAppsAppIdRuntimeWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdRuntimeParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdRuntimeResponse, error) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - // GetSets request - GetSetsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetSetsResponse, error) + return req, nil +} - // GetOrgsOrgIdAppsAppIdSetsSetId request - GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdResponse, error) +// NewGetOrgsOrgIdUsersUserIdRequest generates requests for GetOrgsOrgIdUsersUserId +func NewGetOrgsOrgIdUsersUserIdRequest(server string, orgId string, userId string) (*http.Request, error) { + var err error - // PostOrgsOrgIdAppsAppIdSetsSetId request with any body - PostOrgsOrgIdAppsAppIdSetsSetIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, setId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdSetsSetIdResponse, error) + var pathParam0 string - PostOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdSetsSetIdResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - // GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId request - GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse, error) + var pathParam1 string - // GetOrgsOrgIdAppsAppIdUsers request - GetOrgsOrgIdAppsAppIdUsersWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdUsersResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } - // PostOrgsOrgIdAppsAppIdUsers request with any body - PostOrgsOrgIdAppsAppIdUsersWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdUsersResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - PostOrgsOrgIdAppsAppIdUsersWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdUsersResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteOrgsOrgIdAppsAppIdUsersUserId request - DeleteOrgsOrgIdAppsAppIdUsersUserIdWithResponse(ctx context.Context, orgId string, appId string, userId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetOrgsOrgIdAppsAppIdUsersUserId request - GetOrgsOrgIdAppsAppIdUsersUserIdWithResponse(ctx context.Context, orgId string, appId string, userId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdUsersUserIdResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // PatchOrgsOrgIdAppsAppIdUsersUserId request with any body - PatchOrgsOrgIdAppsAppIdUsersUserIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdUsersUserIdResponse, error) + return req, nil +} - PatchOrgsOrgIdAppsAppIdUsersUserIdWithResponse(ctx context.Context, orgId string, appId string, userId string, body PatchOrgsOrgIdAppsAppIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdUsersUserIdResponse, error) +// NewPatchOrgsOrgIdUsersUserIdRequest calls the generic PatchOrgsOrgIdUsersUserId builder with application/json body +func NewPatchOrgsOrgIdUsersUserIdRequest(server string, orgId string, userId string, body PatchOrgsOrgIdUsersUserIdJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPatchOrgsOrgIdUsersUserIdRequestWithBody(server, orgId, userId, "application/json", bodyReader) +} - // GetOrgsOrgIdAppsAppIdValueSetVersions request - GetOrgsOrgIdAppsAppIdValueSetVersionsWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdValueSetVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdValueSetVersionsResponse, error) +// NewPatchOrgsOrgIdUsersUserIdRequestWithBody generates requests for PatchOrgsOrgIdUsersUserId with any type of body +func NewPatchOrgsOrgIdUsersUserIdRequestWithBody(server string, orgId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error - // GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionId request - GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse, error) + var pathParam0 string - // PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKey request with any body - PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) + var pathParam1 string - // PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestore request with any body - PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithBodyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } - PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKey request with any body - PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // DeleteOrgsOrgIdAppsAppIdValues request - DeleteOrgsOrgIdAppsAppIdValuesWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdValuesResponse, error) + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } - // GetOrgsOrgIdAppsAppIdValues request - GetOrgsOrgIdAppsAppIdValuesWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdValuesResponse, error) + req.Header.Add("Content-Type", contentType) - // PostOrgsOrgIdAppsAppIdValues request with any body - PostOrgsOrgIdAppsAppIdValuesWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValuesResponse, error) + return req, nil +} - PostOrgsOrgIdAppsAppIdValuesWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValuesResponse, error) +// NewGetWorkloadProfileChartVersionsRequest generates requests for GetWorkloadProfileChartVersions +func NewGetWorkloadProfileChartVersionsRequest(server string, orgId OrgIdPathParam) (*http.Request, error) { + var err error - // DeleteOrgsOrgIdAppsAppIdValuesKey request - DeleteOrgsOrgIdAppsAppIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, key string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdValuesKeyResponse, error) + var pathParam0 string - // PatchOrgsOrgIdAppsAppIdValuesKey request with any body - PatchOrgsOrgIdAppsAppIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdValuesKeyResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - PatchOrgsOrgIdAppsAppIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, key string, body PatchOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdValuesKeyResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // PutOrgsOrgIdAppsAppIdValuesKey request with any body - PutOrgsOrgIdAppsAppIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdValuesKeyResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/workload-profile-chart-versions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - PutOrgsOrgIdAppsAppIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, key string, body PutOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdValuesKeyResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetOrgsOrgIdAppsAppIdWebhooks request - GetOrgsOrgIdAppsAppIdWebhooksWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdWebhooksResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - // PostOrgsOrgIdAppsAppIdWebhooks request with any body - PostOrgsOrgIdAppsAppIdWebhooksWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdWebhooksResponse, error) + return req, nil +} - PostOrgsOrgIdAppsAppIdWebhooksWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdWebhooksResponse, error) +// NewPostWorkloadProfileChartVersionRequestWithBody generates requests for PostWorkloadProfileChartVersion with any type of body +func NewPostWorkloadProfileChartVersionRequestWithBody(server string, orgId OrgIdPathParam, contentType string, body io.Reader) (*http.Request, error) { + var err error - // DeleteOrgsOrgIdAppsAppIdWebhooksJobId request - DeleteOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse(ctx context.Context, orgId string, appId string, jobId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) + var pathParam0 string - // GetOrgsOrgIdAppsAppIdWebhooksJobId request - GetOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse(ctx context.Context, orgId string, appId string, jobId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - // PatchOrgsOrgIdAppsAppIdWebhooksJobId request with any body - PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, jobId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse(ctx context.Context, orgId string, appId string, jobId string, body PatchOrgsOrgIdAppsAppIdWebhooksJobIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/workload-profile-chart-versions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetOrgsOrgIdArtefactVersions request - GetOrgsOrgIdArtefactVersionsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdArtefactVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactVersionsResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // PostOrgsOrgIdArtefactVersions request with any body - PostOrgsOrgIdArtefactVersionsWithBodyWithResponse(ctx context.Context, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdArtefactVersionsResponse, error) + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - PostOrgsOrgIdArtefactVersionsWithResponse(ctx context.Context, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, body PostOrgsOrgIdArtefactVersionsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdArtefactVersionsResponse, error) + req.Header.Add("Content-Type", contentType) - // GetOrgsOrgIdArtefactVersionsArtefactVersionId request - GetOrgsOrgIdArtefactVersionsArtefactVersionIdWithResponse(ctx context.Context, orgId string, artefactVersionId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse, error) + return req, nil +} - // GetOrgsOrgIdArtefacts request - GetOrgsOrgIdArtefactsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdArtefactsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactsResponse, error) +// NewGetOrgsOrgIdWorkloadProfilesRequest generates requests for GetOrgsOrgIdWorkloadProfiles +func NewGetOrgsOrgIdWorkloadProfilesRequest(server string, orgId string) (*http.Request, error) { + var err error - // DeleteOrgsOrgIdArtefactsArtefactId request - DeleteOrgsOrgIdArtefactsArtefactIdWithResponse(ctx context.Context, orgId string, artefactId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdArtefactsArtefactIdResponse, error) + var pathParam0 string - // GetOrgsOrgIdArtefactsArtefactIdVersions request - GetOrgsOrgIdArtefactsArtefactIdVersionsWithResponse(ctx context.Context, orgId string, artefactId string, params *GetOrgsOrgIdArtefactsArtefactIdVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactsArtefactIdVersionsResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - // PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionId request with any body - PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithBodyWithResponse(ctx context.Context, orgId string, artefactId string, versionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithResponse(ctx context.Context, orgId string, artefactId string, versionId string, body PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/workload-profiles", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // GetOrgsOrgIdEnvTypes request - GetOrgsOrgIdEnvTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // PostOrgsOrgIdEnvTypes request with any body - PostOrgsOrgIdEnvTypesWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - PostOrgsOrgIdEnvTypesWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdEnvTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesResponse, error) + return req, nil +} - // DeleteOrgsOrgIdEnvTypesEnvTypeId request - DeleteOrgsOrgIdEnvTypesEnvTypeIdWithResponse(ctx context.Context, orgId string, envTypeId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse, error) +// NewPostOrgsOrgIdWorkloadProfilesRequest calls the generic PostOrgsOrgIdWorkloadProfiles builder with application/json body +func NewPostOrgsOrgIdWorkloadProfilesRequest(server string, orgId string, body PostOrgsOrgIdWorkloadProfilesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostOrgsOrgIdWorkloadProfilesRequestWithBody(server, orgId, "application/json", bodyReader) +} - // GetOrgsOrgIdEnvTypesEnvTypeId request - GetOrgsOrgIdEnvTypesEnvTypeIdWithResponse(ctx context.Context, orgId string, envTypeId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesEnvTypeIdResponse, error) +// NewPostOrgsOrgIdWorkloadProfilesRequestWithBody generates requests for PostOrgsOrgIdWorkloadProfiles with any type of body +func NewPostOrgsOrgIdWorkloadProfilesRequestWithBody(server string, orgId string, contentType string, body io.Reader) (*http.Request, error) { + var err error - // PostOrgsOrgIdEnvTypesEnvTypeUsers request with any body - PostOrgsOrgIdEnvTypesEnvTypeUsersWithBodyWithResponse(ctx context.Context, orgId string, envType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesEnvTypeUsersResponse, error) + var pathParam0 string - PostOrgsOrgIdEnvTypesEnvTypeUsersWithResponse(ctx context.Context, orgId string, envType string, body PostOrgsOrgIdEnvTypesEnvTypeUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesEnvTypeUsersResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - // DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserId request - DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse(ctx context.Context, orgId string, envType string, userId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // GetOrgsOrgIdEnvTypesEnvTypeUsersUserId request - GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse(ctx context.Context, orgId string, envType string, userId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/workload-profiles", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // PatchOrgsOrgIdEnvTypesEnvTypeUsersUserId request with any body - PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithBodyWithResponse(ctx context.Context, orgId string, envType string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse(ctx context.Context, orgId string, envType string, userId string, body PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - // GetOrgsOrgIdEvents request - GetOrgsOrgIdEventsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEventsResponse, error) + req.Header.Add("Content-Type", contentType) - // GetOrgsOrgIdImages request - GetOrgsOrgIdImagesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdImagesResponse, error) + return req, nil +} - // GetOrgsOrgIdImagesImageId request - GetOrgsOrgIdImagesImageIdWithResponse(ctx context.Context, orgId string, imageId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdImagesImageIdResponse, error) +// NewDeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionRequest generates requests for DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersion +func NewDeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionRequest(server string, orgId string, profileId string, version string) (*http.Request, error) { + var err error - // GetOrgsOrgIdImagesImageIdBuilds request - GetOrgsOrgIdImagesImageIdBuildsWithResponse(ctx context.Context, orgId string, imageId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdImagesImageIdBuildsResponse, error) + var pathParam0 string - // PostOrgsOrgIdImagesImageIdBuilds request with any body - PostOrgsOrgIdImagesImageIdBuildsWithBodyWithResponse(ctx context.Context, orgId string, imageId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdImagesImageIdBuildsResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - PostOrgsOrgIdImagesImageIdBuildsWithResponse(ctx context.Context, orgId string, imageId string, body PostOrgsOrgIdImagesImageIdBuildsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdImagesImageIdBuildsResponse, error) + var pathParam1 string - // GetOrgsOrgIdInvitations request - GetOrgsOrgIdInvitationsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdInvitationsResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "profileId", runtime.ParamLocationPath, profileId) + if err != nil { + return nil, err + } - // PostOrgsOrgIdInvitations request with any body - PostOrgsOrgIdInvitationsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdInvitationsResponse, error) + var pathParam2 string - PostOrgsOrgIdInvitationsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdInvitationsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdInvitationsResponse, error) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "version", runtime.ParamLocationPath, version) + if err != nil { + return nil, err + } - // GetOrgsOrgIdRegistries request - GetOrgsOrgIdRegistriesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // PostOrgsOrgIdRegistries request with any body - PostOrgsOrgIdRegistriesWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdRegistriesResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/workload-profiles/%s/versions/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - PostOrgsOrgIdRegistriesWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdRegistriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdRegistriesResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // DeleteOrgsOrgIdRegistriesRegId request - DeleteOrgsOrgIdRegistriesRegIdWithResponse(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdRegistriesRegIdResponse, error) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - // GetOrgsOrgIdRegistriesRegId request - GetOrgsOrgIdRegistriesRegIdWithResponse(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesRegIdResponse, error) + return req, nil +} - // PatchOrgsOrgIdRegistriesRegId request with any body - PatchOrgsOrgIdRegistriesRegIdWithBodyWithResponse(ctx context.Context, orgId string, regId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdRegistriesRegIdResponse, error) +// NewDeleteOrgsOrgIdWorkloadProfilesProfileQidRequest generates requests for DeleteOrgsOrgIdWorkloadProfilesProfileQid +func NewDeleteOrgsOrgIdWorkloadProfilesProfileQidRequest(server string, orgId string, profileQid string) (*http.Request, error) { + var err error - PatchOrgsOrgIdRegistriesRegIdWithResponse(ctx context.Context, orgId string, regId string, body PatchOrgsOrgIdRegistriesRegIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdRegistriesRegIdResponse, error) + var pathParam0 string - // GetOrgsOrgIdRegistriesRegIdCreds request - GetOrgsOrgIdRegistriesRegIdCredsWithResponse(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesRegIdCredsResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - // GetOrgsOrgIdResourcesAccountTypes request - GetOrgsOrgIdResourcesAccountTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesAccountTypesResponse, error) + var pathParam1 string - // GetOrgsOrgIdResourcesAccounts request - GetOrgsOrgIdResourcesAccountsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesAccountsResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "profileQid", runtime.ParamLocationPath, profileQid) + if err != nil { + return nil, err + } - // PostOrgsOrgIdResourcesAccounts request with any body - PostOrgsOrgIdResourcesAccountsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesAccountsResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - PostOrgsOrgIdResourcesAccountsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesAccountsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesAccountsResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/workload-profiles/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteOrgsOrgIdResourcesAccountsAccId request - DeleteOrgsOrgIdResourcesAccountsAccIdWithResponse(ctx context.Context, orgId string, accId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesAccountsAccIdResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetOrgsOrgIdResourcesAccountsAccId request - GetOrgsOrgIdResourcesAccountsAccIdWithResponse(ctx context.Context, orgId string, accId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesAccountsAccIdResponse, error) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } - // PatchOrgsOrgIdResourcesAccountsAccId request with any body - PatchOrgsOrgIdResourcesAccountsAccIdWithBodyWithResponse(ctx context.Context, orgId string, accId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesAccountsAccIdResponse, error) + return req, nil +} - PatchOrgsOrgIdResourcesAccountsAccIdWithResponse(ctx context.Context, orgId string, accId string, body PatchOrgsOrgIdResourcesAccountsAccIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesAccountsAccIdResponse, error) +// NewGetOrgsOrgIdWorkloadProfilesProfileQidRequest generates requests for GetOrgsOrgIdWorkloadProfilesProfileQid +func NewGetOrgsOrgIdWorkloadProfilesProfileQidRequest(server string, orgId string, profileQid string) (*http.Request, error) { + var err error - // GetOrgsOrgIdResourcesDefs request - GetOrgsOrgIdResourcesDefsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdResourcesDefsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDefsResponse, error) + var pathParam0 string - // PostOrgsOrgIdResourcesDefs request with any body - PostOrgsOrgIdResourcesDefsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - PostOrgsOrgIdResourcesDefsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesDefsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsResponse, error) + var pathParam1 string - // DeleteOrgsOrgIdResourcesDefsDefId request - DeleteOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, params *DeleteOrgsOrgIdResourcesDefsDefIdParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesDefsDefIdResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "profileQid", runtime.ParamLocationPath, profileQid) + if err != nil { + return nil, err + } - // GetOrgsOrgIdResourcesDefsDefId request - GetOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDefsDefIdResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - // PatchOrgsOrgIdResourcesDefsDefId request with any body - PatchOrgsOrgIdResourcesDefsDefIdWithBodyWithResponse(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesDefsDefIdResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/workload-profiles/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - PatchOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, body PatchOrgsOrgIdResourcesDefsDefIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesDefsDefIdResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // PutOrgsOrgIdResourcesDefsDefId request with any body - PutOrgsOrgIdResourcesDefsDefIdWithBodyWithResponse(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDefsDefIdResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - PutOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, body PutOrgsOrgIdResourcesDefsDefIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDefsDefIdResponse, error) + return req, nil +} - // PostOrgsOrgIdResourcesDefsDefIdCriteria request with any body - PostOrgsOrgIdResourcesDefsDefIdCriteriaWithBodyWithResponse(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse, error) +// NewGetOrgsOrgIdWorkloadProfilesProfileQidVersionsRequest generates requests for GetOrgsOrgIdWorkloadProfilesProfileQidVersions +func NewGetOrgsOrgIdWorkloadProfilesProfileQidVersionsRequest(server string, orgId string, profileQid string, params *GetOrgsOrgIdWorkloadProfilesProfileQidVersionsParams) (*http.Request, error) { + var err error - PostOrgsOrgIdResourcesDefsDefIdCriteriaWithResponse(ctx context.Context, orgId string, defId string, body PostOrgsOrgIdResourcesDefsDefIdCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse, error) + var pathParam0 string - // DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaId request - DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdWithResponse(ctx context.Context, orgId string, defId string, criteriaId string, params *DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - // GetOrgsOrgIdResourcesDefsDefIdResources request - GetOrgsOrgIdResourcesDefsDefIdResourcesWithResponse(ctx context.Context, orgId string, defId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDefsDefIdResourcesResponse, error) + var pathParam1 string - // GetOrgsOrgIdResourcesDrivers request - GetOrgsOrgIdResourcesDriversWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDriversResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "profileQid", runtime.ParamLocationPath, profileQid) + if err != nil { + return nil, err + } - // PostOrgsOrgIdResourcesDrivers request with any body - PostOrgsOrgIdResourcesDriversWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDriversResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - PostOrgsOrgIdResourcesDriversWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesDriversJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDriversResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/workload-profiles/%s/versions", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteOrgsOrgIdResourcesDriversDriverId request - DeleteOrgsOrgIdResourcesDriversDriverIdWithResponse(ctx context.Context, orgId string, driverId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesDriversDriverIdResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetOrgsOrgIdResourcesDriversDriverId request - GetOrgsOrgIdResourcesDriversDriverIdWithResponse(ctx context.Context, orgId string, driverId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDriversDriverIdResponse, error) + if params != nil { + queryValues := queryURL.Query() - // PutOrgsOrgIdResourcesDriversDriverId request with any body - PutOrgsOrgIdResourcesDriversDriverIdWithBodyWithResponse(ctx context.Context, orgId string, driverId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDriversDriverIdResponse, error) + if params.Version != nil { - PutOrgsOrgIdResourcesDriversDriverIdWithResponse(ctx context.Context, orgId string, driverId string, body PutOrgsOrgIdResourcesDriversDriverIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDriversDriverIdResponse, error) + 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) + } + } + } - // GetOrgsOrgIdResourcesTypes request - GetOrgsOrgIdResourcesTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesTypesResponse, error) + } - // GetOrgsOrgIdSecretstores request - GetOrgsOrgIdSecretstoresWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdSecretstoresResponse, error) + queryURL.RawQuery = queryValues.Encode() + } - // PostOrgsOrgIdSecretstores request with any body - PostOrgsOrgIdSecretstoresWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdSecretstoresResponse, error) + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } - PostOrgsOrgIdSecretstoresWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdSecretstoresJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdSecretstoresResponse, error) + return req, nil +} - // DeleteOrgsOrgIdSecretstoresStoreId request - DeleteOrgsOrgIdSecretstoresStoreIdWithResponse(ctx context.Context, orgId string, storeId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdSecretstoresStoreIdResponse, error) +// NewPostOrgsOrgIdWorkloadProfilesProfileQidVersionsRequestWithBody generates requests for PostOrgsOrgIdWorkloadProfilesProfileQidVersions with any type of body +func NewPostOrgsOrgIdWorkloadProfilesProfileQidVersionsRequestWithBody(server string, orgId string, profileQid string, contentType string, body io.Reader) (*http.Request, error) { + var err error - // GetOrgsOrgIdSecretstoresStoreId request - GetOrgsOrgIdSecretstoresStoreIdWithResponse(ctx context.Context, orgId string, storeId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdSecretstoresStoreIdResponse, error) + var pathParam0 string - // PatchOrgsOrgIdSecretstoresStoreId request with any body - PatchOrgsOrgIdSecretstoresStoreIdWithBodyWithResponse(ctx context.Context, orgId string, storeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdSecretstoresStoreIdResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } - PatchOrgsOrgIdSecretstoresStoreIdWithResponse(ctx context.Context, orgId string, storeId string, body PatchOrgsOrgIdSecretstoresStoreIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdSecretstoresStoreIdResponse, error) + var pathParam1 string - // GetOrgsOrgIdUsers request - GetOrgsOrgIdUsersWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdUsersResponse, error) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "profileQid", runtime.ParamLocationPath, profileQid) + if err != nil { + return nil, err + } - // PostOrgsOrgIdUsers request with any body - PostOrgsOrgIdUsersWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdUsersResponse, error) + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - PostOrgsOrgIdUsersWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdUsersResponse, error) + operationPath := fmt.Sprintf("/orgs/%s/workload-profiles/%s/versions", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - // DeleteOrgsOrgIdUsersUserId request - DeleteOrgsOrgIdUsersUserIdWithResponse(ctx context.Context, orgId string, userId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdUsersUserIdResponse, error) + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - // GetOrgsOrgIdUsersUserId request - GetOrgsOrgIdUsersUserIdWithResponse(ctx context.Context, orgId string, userId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdUsersUserIdResponse, error) + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - // PatchOrgsOrgIdUsersUserId request with any body - PatchOrgsOrgIdUsersUserIdWithBodyWithResponse(ctx context.Context, orgId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdUsersUserIdResponse, error) + req.Header.Add("Content-Type", contentType) - PatchOrgsOrgIdUsersUserIdWithResponse(ctx context.Context, orgId string, userId string, body PatchOrgsOrgIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdUsersUserIdResponse, error) + return req, nil +} - // GetOrgsOrgIdWorkloadProfiles request - GetOrgsOrgIdWorkloadProfilesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdWorkloadProfilesResponse, error) +// NewGetLatestWorkloadProfileVersionRequest generates requests for GetLatestWorkloadProfileVersion +func NewGetLatestWorkloadProfileVersionRequest(server string, orgId string, profileQid string) (*http.Request, error) { + var err error - // PostOrgsOrgIdWorkloadProfiles request with any body - PostOrgsOrgIdWorkloadProfilesWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdWorkloadProfilesResponse, error) + var pathParam0 string - PostOrgsOrgIdWorkloadProfilesWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdWorkloadProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdWorkloadProfilesResponse, error) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orgId", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "profileQid", runtime.ParamLocationPath, profileQid) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/workload-profiles/%s/versions/latest", 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 +} + +// NewGetTokensRequest generates requests for GetTokens +func NewGetTokensRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/tokens") + 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 +} + +// NewDeleteTokensTokenIdRequest generates requests for DeleteTokensTokenId +func NewDeleteTokensTokenIdRequest(server string, tokenId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "tokenId", runtime.ParamLocationPath, tokenId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/tokens/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsersMeRequest generates requests for GetUsersMe +func NewGetUsersMeRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/me") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsersUserIdTokensRequest generates requests for GetUsersUserIdTokens +func NewGetUsersUserIdTokensRequest(server string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/tokens", 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 +} + +// NewPostUsersUserIdTokensRequest calls the generic PostUsersUserIdTokens builder with application/json body +func NewPostUsersUserIdTokensRequest(server string, userId string, body PostUsersUserIdTokensJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostUsersUserIdTokensRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewPostUsersUserIdTokensRequestWithBody generates requests for PostUsersUserIdTokens with any type of body +func NewPostUsersUserIdTokensRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/tokens", 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 +} + +// NewDeleteUsersUserIdTokensTokenIdRequest generates requests for DeleteUsersUserIdTokensTokenId +func NewDeleteUsersUserIdTokensTokenIdRequest(server string, userId string, tokenId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tokenId", runtime.ParamLocationPath, tokenId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/tokens/%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 +} + +// NewGetUsersUserIdTokensTokenIdRequest generates requests for GetUsersUserIdTokensTokenId +func NewGetUsersUserIdTokensTokenIdRequest(server string, userId string, tokenId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tokenId", runtime.ParamLocationPath, tokenId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/tokens/%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 +} + +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 { + // GetCurrentUser request + GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) + + // PatchCurrentUser request with any body + PatchCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchCurrentUserResponse, error) + + PatchCurrentUserWithResponse(ctx context.Context, body PatchCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchCurrentUserResponse, error) + + // GetOrgs request + GetOrgsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrgsResponse, error) + + // GetOrgsOrgId request + GetOrgsOrgIdWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResponse, error) + + // GetOrgsOrgIdApps request + GetOrgsOrgIdAppsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsResponse, error) + + // PostOrgsOrgIdApps request with any body + PostOrgsOrgIdAppsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsResponse, error) + + PostOrgsOrgIdAppsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdAppsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsResponse, error) + + // DeleteOrgsOrgIdAppsAppId request + DeleteOrgsOrgIdAppsAppIdWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdResponse, error) + + // GetOrgsOrgIdAppsAppId request + GetOrgsOrgIdAppsAppIdWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdResponse, error) + + // ListApprovalRequests request + ListApprovalRequestsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListApprovalRequestsParams, reqEditors ...RequestEditorFn) (*ListApprovalRequestsResponse, error) + + // GetOrgsOrgIdAppsAppIdDeltas request + GetOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdDeltasResponse, error) + + // PostOrgsOrgIdAppsAppIdDeltas request with any body + PostOrgsOrgIdAppsAppIdDeltasWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error) + + PostOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error) + + // GetDelta request + GetDeltaWithResponse(ctx context.Context, orgId string, appId string, deltaId string, reqEditors ...RequestEditorFn) (*GetDeltaResponse, error) + + // PatchOrgsOrgIdAppsAppIdDeltasDeltaId request with any body + PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error) + + PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error) + + // PutDelta request with any body + PutDeltaWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDeltaResponse, error) + + PutDeltaWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutDeltaJSONRequestBody, reqEditors ...RequestEditorFn) (*PutDeltaResponse, error) + + // PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived request with any body + PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error) + + PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error) + + // PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId request with any body + PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error) + + PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error) + + // PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName request with any body + PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error) + + PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error) + + // GetOrgsOrgIdAppsAppIdEnvs request + GetOrgsOrgIdAppsAppIdEnvsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsResponse, error) + + // PostOrgsOrgIdAppsAppIdEnvs request with any body + PostOrgsOrgIdAppsAppIdEnvsWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsResponse, error) + + PostOrgsOrgIdAppsAppIdEnvsWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdEnvsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsResponse, error) + + // DeleteOrgsOrgIdAppsAppIdEnvsEnvId request + DeleteOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error) + + // GetOrgsOrgIdAppsAppIdEnvsEnvId request + GetOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error) + + // GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploys request + GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) + + // PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploys request with any body + PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) + + PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) + + // GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployId request + GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdWithResponse(ctx context.Context, orgId string, appId string, envId string, deployId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse, error) + + // GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrors request + GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsWithResponse(ctx context.Context, orgId string, appId string, envId string, deployId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse, error) + + // PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployId request with any body + PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse, error) + + PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithResponse(ctx context.Context, orgId string, appId string, envId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse, error) + + // GetOrgsOrgIdAppsAppIdEnvsEnvIdResources request + GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse, error) + + // PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraph request with any body + PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse, error) + + PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse, error) + + // DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResId request + DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdWithResponse(ctx context.Context, orgId string, appId string, envId string, pType string, resId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse, error) + + // GetOrgsOrgIdAppsAppIdEnvsEnvIdRules request + GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) + + // PostOrgsOrgIdAppsAppIdEnvsEnvIdRules request with any body + PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) + + PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) + + // DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId request + DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) + + // GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId request + GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) + + // PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId request with any body + PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) + + PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) + + // GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntime request + GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse, error) + + // PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePaused request with any body + PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error) + + PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithResponse(ctx context.Context, orgId string, appId string, envId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error) + + // PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicas request with any body + PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error) + + PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithResponse(ctx context.Context, orgId string, appId string, envId string, body PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error) + + // GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersions request + GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsWithResponse(ctx context.Context, orgId string, appId string, envId string, params *GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse, error) + + // GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionId request + GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse, error) + + // PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKey request with any body + PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) + + PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) + + // PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestore request with any body + PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse, error) + + PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse, error) + + // PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKey request with any body + PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) + + PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) + + // DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValues request + DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) + + // GetOrgsOrgIdAppsAppIdEnvsEnvIdValues request + GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) + + // PostOrgsOrgIdAppsAppIdEnvsEnvIdValues request with any body + PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) + + PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) + + // DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey request + DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) + + // PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey request with any body + PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) + + PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, body PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) + + // PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey request with any body + PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) + + PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) + + // DeleteOrgsOrgIdAppsAppIdJobs request + DeleteOrgsOrgIdAppsAppIdJobsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdJobsResponse, error) + + // ListPipelines request + ListPipelinesWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelinesParams, reqEditors ...RequestEditorFn) (*ListPipelinesResponse, error) + + // CreatePipeline request with any body + CreatePipelineWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePipelineResponse, error) + + // DeletePipeline request + DeletePipelineWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *DeletePipelineParams, reqEditors ...RequestEditorFn) (*DeletePipelineResponse, error) + + // GetPipeline request + GetPipelineWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *GetPipelineParams, reqEditors ...RequestEditorFn) (*GetPipelineResponse, error) + + // UpdatePipeline request with any body + UpdatePipelineWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *UpdatePipelineParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePipelineResponse, error) + + // ListPipelineRuns request + ListPipelineRunsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineRunsParams, reqEditors ...RequestEditorFn) (*ListPipelineRunsResponse, error) + + // CreatePipelineRun request with any body + CreatePipelineRunWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *CreatePipelineRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePipelineRunResponse, error) + + CreatePipelineRunWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *CreatePipelineRunParams, body CreatePipelineRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePipelineRunResponse, error) + + // DeleteRun request + DeleteRunWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *DeleteRunParams, reqEditors ...RequestEditorFn) (*DeleteRunResponse, error) + + // GetRun request + GetRunWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, reqEditors ...RequestEditorFn) (*GetRunResponse, error) + + // CancelRun request + CancelRunWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *CancelRunParams, reqEditors ...RequestEditorFn) (*CancelRunResponse, error) + + // ListRunJobs request + ListRunJobsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *ListRunJobsParams, reqEditors ...RequestEditorFn) (*ListRunJobsResponse, error) + + // GetRunJob request + GetRunJobWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, reqEditors ...RequestEditorFn) (*GetRunJobResponse, error) + + // GetApprovalRequest request + GetApprovalRequestWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam, reqEditors ...RequestEditorFn) (*GetApprovalRequestResponse, error) + + // ApproveApprovalRequest request + ApproveApprovalRequestWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam, reqEditors ...RequestEditorFn) (*ApproveApprovalRequestResponse, error) + + // DenyApprovalRequest request + DenyApprovalRequestWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam, reqEditors ...RequestEditorFn) (*DenyApprovalRequestResponse, error) + + // ListRunJobStepLogs request + ListRunJobStepLogsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, stepIndex StepIndexPathParam, params *ListRunJobStepLogsParams, reqEditors ...RequestEditorFn) (*ListRunJobStepLogsResponse, error) + + // RestartRun request + RestartRunWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *RestartRunParams, reqEditors ...RequestEditorFn) (*RestartRunResponse, error) + + // GetPipelineSchema request + GetPipelineSchemaWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *GetPipelineSchemaParams, reqEditors ...RequestEditorFn) (*GetPipelineSchemaResponse, error) + + // ListPipelineVersions request + ListPipelineVersionsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineVersionsParams, reqEditors ...RequestEditorFn) (*ListPipelineVersionsResponse, error) + + // GetOrgsOrgIdAppsAppIdRuntime request + GetOrgsOrgIdAppsAppIdRuntimeWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdRuntimeParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdRuntimeResponse, error) + + // GetSets request + GetSetsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetSetsResponse, error) + + // GetOrgsOrgIdAppsAppIdSetsSetId request + GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdResponse, error) + + // PostOrgsOrgIdAppsAppIdSetsSetId request with any body + PostOrgsOrgIdAppsAppIdSetsSetIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, setId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdSetsSetIdResponse, error) + + PostOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdSetsSetIdResponse, error) + + // GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId request + GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse, error) + + // GetOrgsOrgIdAppsAppIdUsers request + GetOrgsOrgIdAppsAppIdUsersWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdUsersResponse, error) + + // PostOrgsOrgIdAppsAppIdUsers request with any body + PostOrgsOrgIdAppsAppIdUsersWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdUsersResponse, error) + + PostOrgsOrgIdAppsAppIdUsersWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdUsersResponse, error) + + // DeleteOrgsOrgIdAppsAppIdUsersUserId request + DeleteOrgsOrgIdAppsAppIdUsersUserIdWithResponse(ctx context.Context, orgId string, appId string, userId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse, error) + + // GetOrgsOrgIdAppsAppIdUsersUserId request + GetOrgsOrgIdAppsAppIdUsersUserIdWithResponse(ctx context.Context, orgId string, appId string, userId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdUsersUserIdResponse, error) + + // PatchOrgsOrgIdAppsAppIdUsersUserId request with any body + PatchOrgsOrgIdAppsAppIdUsersUserIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdUsersUserIdResponse, error) + + PatchOrgsOrgIdAppsAppIdUsersUserIdWithResponse(ctx context.Context, orgId string, appId string, userId string, body PatchOrgsOrgIdAppsAppIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdUsersUserIdResponse, error) + + // GetOrgsOrgIdAppsAppIdValueSetVersions request + GetOrgsOrgIdAppsAppIdValueSetVersionsWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdValueSetVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdValueSetVersionsResponse, error) + + // GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionId request + GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse, error) + + // PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKey request with any body + PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) + + PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) + + // PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestore request with any body + PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithBodyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse, error) + + PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse, error) + + // PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKey request with any body + PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) + + PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) + + // DeleteOrgsOrgIdAppsAppIdValues request + DeleteOrgsOrgIdAppsAppIdValuesWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdValuesResponse, error) + + // GetOrgsOrgIdAppsAppIdValues request + GetOrgsOrgIdAppsAppIdValuesWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdValuesResponse, error) + + // PostOrgsOrgIdAppsAppIdValues request with any body + PostOrgsOrgIdAppsAppIdValuesWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValuesResponse, error) + + PostOrgsOrgIdAppsAppIdValuesWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValuesResponse, error) + + // DeleteOrgsOrgIdAppsAppIdValuesKey request + DeleteOrgsOrgIdAppsAppIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, key string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdValuesKeyResponse, error) + + // PatchOrgsOrgIdAppsAppIdValuesKey request with any body + PatchOrgsOrgIdAppsAppIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdValuesKeyResponse, error) + + PatchOrgsOrgIdAppsAppIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, key string, body PatchOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdValuesKeyResponse, error) + + // PutOrgsOrgIdAppsAppIdValuesKey request with any body + PutOrgsOrgIdAppsAppIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdValuesKeyResponse, error) + + PutOrgsOrgIdAppsAppIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, key string, body PutOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdValuesKeyResponse, error) + + // GetOrgsOrgIdAppsAppIdWebhooks request + GetOrgsOrgIdAppsAppIdWebhooksWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdWebhooksResponse, error) + + // PostOrgsOrgIdAppsAppIdWebhooks request with any body + PostOrgsOrgIdAppsAppIdWebhooksWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdWebhooksResponse, error) + + PostOrgsOrgIdAppsAppIdWebhooksWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdWebhooksResponse, error) + + // DeleteOrgsOrgIdAppsAppIdWebhooksJobId request + DeleteOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse(ctx context.Context, orgId string, appId string, jobId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) + + // GetOrgsOrgIdAppsAppIdWebhooksJobId request + GetOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse(ctx context.Context, orgId string, appId string, jobId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) + + // PatchOrgsOrgIdAppsAppIdWebhooksJobId request with any body + PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, jobId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) + + PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse(ctx context.Context, orgId string, appId string, jobId string, body PatchOrgsOrgIdAppsAppIdWebhooksJobIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) + + // GetOrgsOrgIdArtefactVersions request + GetOrgsOrgIdArtefactVersionsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdArtefactVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactVersionsResponse, error) + + // PostOrgsOrgIdArtefactVersions request with any body + PostOrgsOrgIdArtefactVersionsWithBodyWithResponse(ctx context.Context, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdArtefactVersionsResponse, error) + + PostOrgsOrgIdArtefactVersionsWithResponse(ctx context.Context, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, body PostOrgsOrgIdArtefactVersionsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdArtefactVersionsResponse, error) + + // GetOrgsOrgIdArtefactVersionsArtefactVersionId request + GetOrgsOrgIdArtefactVersionsArtefactVersionIdWithResponse(ctx context.Context, orgId string, artefactVersionId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse, error) + + // GetOrgsOrgIdArtefacts request + GetOrgsOrgIdArtefactsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdArtefactsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactsResponse, error) + + // DeleteOrgsOrgIdArtefactsArtefactId request + DeleteOrgsOrgIdArtefactsArtefactIdWithResponse(ctx context.Context, orgId string, artefactId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdArtefactsArtefactIdResponse, error) + + // GetOrgsOrgIdArtefactsArtefactIdVersions request + GetOrgsOrgIdArtefactsArtefactIdVersionsWithResponse(ctx context.Context, orgId string, artefactId string, params *GetOrgsOrgIdArtefactsArtefactIdVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactsArtefactIdVersionsResponse, error) + + // PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionId request with any body + PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithBodyWithResponse(ctx context.Context, orgId string, artefactId string, versionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse, error) + + PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithResponse(ctx context.Context, orgId string, artefactId string, versionId string, body PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse, error) + + // GetOrgsOrgIdEnvTypes request + GetOrgsOrgIdEnvTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesResponse, error) + + // PostOrgsOrgIdEnvTypes request with any body + PostOrgsOrgIdEnvTypesWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesResponse, error) + + PostOrgsOrgIdEnvTypesWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdEnvTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesResponse, error) + + // DeleteOrgsOrgIdEnvTypesEnvTypeId request + DeleteOrgsOrgIdEnvTypesEnvTypeIdWithResponse(ctx context.Context, orgId string, envTypeId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse, error) + + // GetOrgsOrgIdEnvTypesEnvTypeId request + GetOrgsOrgIdEnvTypesEnvTypeIdWithResponse(ctx context.Context, orgId string, envTypeId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesEnvTypeIdResponse, error) + + // PostOrgsOrgIdEnvTypesEnvTypeUsers request with any body + PostOrgsOrgIdEnvTypesEnvTypeUsersWithBodyWithResponse(ctx context.Context, orgId string, envType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesEnvTypeUsersResponse, error) + + PostOrgsOrgIdEnvTypesEnvTypeUsersWithResponse(ctx context.Context, orgId string, envType string, body PostOrgsOrgIdEnvTypesEnvTypeUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesEnvTypeUsersResponse, error) + + // DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserId request + DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse(ctx context.Context, orgId string, envType string, userId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) + + // GetOrgsOrgIdEnvTypesEnvTypeUsersUserId request + GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse(ctx context.Context, orgId string, envType string, userId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) + + // PatchOrgsOrgIdEnvTypesEnvTypeUsersUserId request with any body + PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithBodyWithResponse(ctx context.Context, orgId string, envType string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) + + PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse(ctx context.Context, orgId string, envType string, userId string, body PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) + + // GetOrgsOrgIdEvents request + GetOrgsOrgIdEventsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEventsResponse, error) + + // GetOrgsOrgIdImages request + GetOrgsOrgIdImagesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdImagesResponse, error) + + // GetOrgsOrgIdImagesImageId request + GetOrgsOrgIdImagesImageIdWithResponse(ctx context.Context, orgId string, imageId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdImagesImageIdResponse, error) + + // GetOrgsOrgIdImagesImageIdBuilds request + GetOrgsOrgIdImagesImageIdBuildsWithResponse(ctx context.Context, orgId string, imageId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdImagesImageIdBuildsResponse, error) + + // PostOrgsOrgIdImagesImageIdBuilds request with any body + PostOrgsOrgIdImagesImageIdBuildsWithBodyWithResponse(ctx context.Context, orgId string, imageId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdImagesImageIdBuildsResponse, error) + + PostOrgsOrgIdImagesImageIdBuildsWithResponse(ctx context.Context, orgId string, imageId string, body PostOrgsOrgIdImagesImageIdBuildsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdImagesImageIdBuildsResponse, error) + + // GetOrgsOrgIdInvitations request + GetOrgsOrgIdInvitationsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdInvitationsResponse, error) + + // PostOrgsOrgIdInvitations request with any body + PostOrgsOrgIdInvitationsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdInvitationsResponse, error) + + PostOrgsOrgIdInvitationsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdInvitationsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdInvitationsResponse, error) + + // ListPipelineRunsByOrg request + ListPipelineRunsByOrgWithResponse(ctx context.Context, orgId OrgIdPathParam, params *ListPipelineRunsByOrgParams, reqEditors ...RequestEditorFn) (*ListPipelineRunsByOrgResponse, error) + + // GetLatestPipelineSchema request + GetLatestPipelineSchemaWithResponse(ctx context.Context, orgId OrgIdPathParam, reqEditors ...RequestEditorFn) (*GetLatestPipelineSchemaResponse, error) + + // ListPipelinesByOrg request + ListPipelinesByOrgWithResponse(ctx context.Context, orgId OrgIdPathParam, params *ListPipelinesByOrgParams, reqEditors ...RequestEditorFn) (*ListPipelinesByOrgResponse, error) + + // GetOrgsOrgIdRegistries request + GetOrgsOrgIdRegistriesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesResponse, error) + + // PostOrgsOrgIdRegistries request with any body + PostOrgsOrgIdRegistriesWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdRegistriesResponse, error) + + PostOrgsOrgIdRegistriesWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdRegistriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdRegistriesResponse, error) + + // DeleteOrgsOrgIdRegistriesRegId request + DeleteOrgsOrgIdRegistriesRegIdWithResponse(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdRegistriesRegIdResponse, error) + + // GetOrgsOrgIdRegistriesRegId request + GetOrgsOrgIdRegistriesRegIdWithResponse(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesRegIdResponse, error) + + // PatchOrgsOrgIdRegistriesRegId request with any body + PatchOrgsOrgIdRegistriesRegIdWithBodyWithResponse(ctx context.Context, orgId string, regId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdRegistriesRegIdResponse, error) + + PatchOrgsOrgIdRegistriesRegIdWithResponse(ctx context.Context, orgId string, regId string, body PatchOrgsOrgIdRegistriesRegIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdRegistriesRegIdResponse, error) + + // GetOrgsOrgIdRegistriesRegIdCreds request + GetOrgsOrgIdRegistriesRegIdCredsWithResponse(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesRegIdCredsResponse, error) + + // GetOrgsOrgIdResourcesAccountTypes request + GetOrgsOrgIdResourcesAccountTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesAccountTypesResponse, error) + + // GetOrgsOrgIdResourcesAccounts request + GetOrgsOrgIdResourcesAccountsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesAccountsResponse, error) + + // PostOrgsOrgIdResourcesAccounts request with any body + PostOrgsOrgIdResourcesAccountsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesAccountsResponse, error) + + PostOrgsOrgIdResourcesAccountsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesAccountsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesAccountsResponse, error) + + // DeleteOrgsOrgIdResourcesAccountsAccId request + DeleteOrgsOrgIdResourcesAccountsAccIdWithResponse(ctx context.Context, orgId string, accId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesAccountsAccIdResponse, error) + + // GetOrgsOrgIdResourcesAccountsAccId request + GetOrgsOrgIdResourcesAccountsAccIdWithResponse(ctx context.Context, orgId string, accId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesAccountsAccIdResponse, error) + + // PatchOrgsOrgIdResourcesAccountsAccId request with any body + PatchOrgsOrgIdResourcesAccountsAccIdWithBodyWithResponse(ctx context.Context, orgId string, accId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesAccountsAccIdResponse, error) + + PatchOrgsOrgIdResourcesAccountsAccIdWithResponse(ctx context.Context, orgId string, accId string, body PatchOrgsOrgIdResourcesAccountsAccIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesAccountsAccIdResponse, error) + + // GetOrgsOrgIdResourcesDefs request + GetOrgsOrgIdResourcesDefsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdResourcesDefsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDefsResponse, error) + + // PostOrgsOrgIdResourcesDefs request with any body + PostOrgsOrgIdResourcesDefsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsResponse, error) + + PostOrgsOrgIdResourcesDefsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesDefsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsResponse, error) + + // DeleteOrgsOrgIdResourcesDefsDefId request + DeleteOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, params *DeleteOrgsOrgIdResourcesDefsDefIdParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesDefsDefIdResponse, error) + + // GetOrgsOrgIdResourcesDefsDefId request + GetOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDefsDefIdResponse, error) + + // PatchOrgsOrgIdResourcesDefsDefId request with any body + PatchOrgsOrgIdResourcesDefsDefIdWithBodyWithResponse(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesDefsDefIdResponse, error) + + PatchOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, body PatchOrgsOrgIdResourcesDefsDefIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesDefsDefIdResponse, error) + + // PutOrgsOrgIdResourcesDefsDefId request with any body + PutOrgsOrgIdResourcesDefsDefIdWithBodyWithResponse(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDefsDefIdResponse, error) + + PutOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, body PutOrgsOrgIdResourcesDefsDefIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDefsDefIdResponse, error) + + // PostOrgsOrgIdResourcesDefsDefIdCriteria request with any body + PostOrgsOrgIdResourcesDefsDefIdCriteriaWithBodyWithResponse(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse, error) + + PostOrgsOrgIdResourcesDefsDefIdCriteriaWithResponse(ctx context.Context, orgId string, defId string, body PostOrgsOrgIdResourcesDefsDefIdCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse, error) + + // DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaId request + DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdWithResponse(ctx context.Context, orgId string, defId string, criteriaId string, params *DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse, error) + + // GetOrgsOrgIdResourcesDefsDefIdResources request + GetOrgsOrgIdResourcesDefsDefIdResourcesWithResponse(ctx context.Context, orgId string, defId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDefsDefIdResourcesResponse, error) + + // GetOrgsOrgIdResourcesDrivers request + GetOrgsOrgIdResourcesDriversWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDriversResponse, error) + + // PostOrgsOrgIdResourcesDrivers request with any body + PostOrgsOrgIdResourcesDriversWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDriversResponse, error) + + PostOrgsOrgIdResourcesDriversWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesDriversJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDriversResponse, error) + + // DeleteOrgsOrgIdResourcesDriversDriverId request + DeleteOrgsOrgIdResourcesDriversDriverIdWithResponse(ctx context.Context, orgId string, driverId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesDriversDriverIdResponse, error) + + // GetOrgsOrgIdResourcesDriversDriverId request + GetOrgsOrgIdResourcesDriversDriverIdWithResponse(ctx context.Context, orgId string, driverId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDriversDriverIdResponse, error) + + // PutOrgsOrgIdResourcesDriversDriverId request with any body + PutOrgsOrgIdResourcesDriversDriverIdWithBodyWithResponse(ctx context.Context, orgId string, driverId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDriversDriverIdResponse, error) + + PutOrgsOrgIdResourcesDriversDriverIdWithResponse(ctx context.Context, orgId string, driverId string, body PutOrgsOrgIdResourcesDriversDriverIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDriversDriverIdResponse, error) + + // GetOrgsOrgIdResourcesTypes request + GetOrgsOrgIdResourcesTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesTypesResponse, error) + + // GetOrgsOrgIdSecretstores request + GetOrgsOrgIdSecretstoresWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdSecretstoresResponse, error) + + // PostOrgsOrgIdSecretstores request with any body + PostOrgsOrgIdSecretstoresWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdSecretstoresResponse, error) + + PostOrgsOrgIdSecretstoresWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdSecretstoresJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdSecretstoresResponse, error) + + // DeleteOrgsOrgIdSecretstoresStoreId request + DeleteOrgsOrgIdSecretstoresStoreIdWithResponse(ctx context.Context, orgId string, storeId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdSecretstoresStoreIdResponse, error) + + // GetOrgsOrgIdSecretstoresStoreId request + GetOrgsOrgIdSecretstoresStoreIdWithResponse(ctx context.Context, orgId string, storeId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdSecretstoresStoreIdResponse, error) + + // PatchOrgsOrgIdSecretstoresStoreId request with any body + PatchOrgsOrgIdSecretstoresStoreIdWithBodyWithResponse(ctx context.Context, orgId string, storeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdSecretstoresStoreIdResponse, error) + + PatchOrgsOrgIdSecretstoresStoreIdWithResponse(ctx context.Context, orgId string, storeId string, body PatchOrgsOrgIdSecretstoresStoreIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdSecretstoresStoreIdResponse, error) + + // GetOrgsOrgIdUsers request + GetOrgsOrgIdUsersWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdUsersResponse, error) + + // PostOrgsOrgIdUsers request with any body + PostOrgsOrgIdUsersWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdUsersResponse, error) + + PostOrgsOrgIdUsersWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdUsersResponse, error) + + // DeleteOrgsOrgIdUsersUserId request + DeleteOrgsOrgIdUsersUserIdWithResponse(ctx context.Context, orgId string, userId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdUsersUserIdResponse, error) + + // GetOrgsOrgIdUsersUserId request + GetOrgsOrgIdUsersUserIdWithResponse(ctx context.Context, orgId string, userId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdUsersUserIdResponse, error) + + // PatchOrgsOrgIdUsersUserId request with any body + PatchOrgsOrgIdUsersUserIdWithBodyWithResponse(ctx context.Context, orgId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdUsersUserIdResponse, error) + + PatchOrgsOrgIdUsersUserIdWithResponse(ctx context.Context, orgId string, userId string, body PatchOrgsOrgIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdUsersUserIdResponse, error) + + // GetWorkloadProfileChartVersions request + GetWorkloadProfileChartVersionsWithResponse(ctx context.Context, orgId OrgIdPathParam, reqEditors ...RequestEditorFn) (*GetWorkloadProfileChartVersionsResponse, error) + + // PostWorkloadProfileChartVersion request with any body + PostWorkloadProfileChartVersionWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostWorkloadProfileChartVersionResponse, error) + + // GetOrgsOrgIdWorkloadProfiles request + GetOrgsOrgIdWorkloadProfilesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdWorkloadProfilesResponse, error) + + // PostOrgsOrgIdWorkloadProfiles request with any body + PostOrgsOrgIdWorkloadProfilesWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdWorkloadProfilesResponse, error) + + PostOrgsOrgIdWorkloadProfilesWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdWorkloadProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdWorkloadProfilesResponse, error) + + // DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersion request + DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionWithResponse(ctx context.Context, orgId string, profileId string, version string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse, error) + + // DeleteOrgsOrgIdWorkloadProfilesProfileQid request + DeleteOrgsOrgIdWorkloadProfilesProfileQidWithResponse(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdWorkloadProfilesProfileQidResponse, error) + + // GetOrgsOrgIdWorkloadProfilesProfileQid request + GetOrgsOrgIdWorkloadProfilesProfileQidWithResponse(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdWorkloadProfilesProfileQidResponse, error) + + // GetOrgsOrgIdWorkloadProfilesProfileQidVersions request + GetOrgsOrgIdWorkloadProfilesProfileQidVersionsWithResponse(ctx context.Context, orgId string, profileQid string, params *GetOrgsOrgIdWorkloadProfilesProfileQidVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse, error) + + // PostOrgsOrgIdWorkloadProfilesProfileQidVersions request with any body + PostOrgsOrgIdWorkloadProfilesProfileQidVersionsWithBodyWithResponse(ctx context.Context, orgId string, profileQid string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse, error) + + // GetLatestWorkloadProfileVersion request + GetLatestWorkloadProfileVersionWithResponse(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*GetLatestWorkloadProfileVersionResponse, error) + + // GetTokens request + GetTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTokensResponse, error) + + // DeleteTokensTokenId request + DeleteTokensTokenIdWithResponse(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*DeleteTokensTokenIdResponse, error) + + // GetUsersMe request + GetUsersMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsersMeResponse, error) + + // GetUsersUserIdTokens request + GetUsersUserIdTokensWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetUsersUserIdTokensResponse, error) + + // PostUsersUserIdTokens request with any body + PostUsersUserIdTokensWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUsersUserIdTokensResponse, error) + + PostUsersUserIdTokensWithResponse(ctx context.Context, userId string, body PostUsersUserIdTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUsersUserIdTokensResponse, error) + + // DeleteUsersUserIdTokensTokenId request + DeleteUsersUserIdTokensTokenIdWithResponse(ctx context.Context, userId string, tokenId string, reqEditors ...RequestEditorFn) (*DeleteUsersUserIdTokensTokenIdResponse, error) + + // GetUsersUserIdTokensTokenId request + GetUsersUserIdTokensTokenIdWithResponse(ctx context.Context, userId string, tokenId string, reqEditors ...RequestEditorFn) (*GetUsersUserIdTokensTokenIdResponse, error) +} + +type GetCurrentUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserProfileExtendedResponse +} + +// Status returns HTTPResponse.Status +func (r GetCurrentUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetCurrentUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchCurrentUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserProfileExtendedResponse + JSON400 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r PatchCurrentUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchCurrentUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]OrganizationResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationResponse + JSON400 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ApplicationResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrgsOrgIdAppsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ApplicationResponse + JSON400 *HumanitecErrorResponse + JSON401 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdAppsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdAppsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteOrgsOrgIdAppsAppIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON401 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r DeleteOrgsOrgIdAppsAppIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrgsOrgIdAppsAppIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ApplicationResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListApprovalRequestsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ApprovalRequest + JSON400 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r ListApprovalRequestsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListApprovalRequestsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdDeltasResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]DeltaResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdDeltasResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdDeltasResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrgsOrgIdAppsAppIdDeltasResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + union json.RawMessage + } + JSON400 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdAppsAppIdDeltasResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdAppsAppIdDeltasResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDeltaResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DeltaResponse + JSON404 *string +} + +// Status returns HTTPResponse.Status +func (r GetDeltaResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDeltaResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DeltaResponse + JSON400 *HumanitecErrorResponse + JSON404 *string +} + +// Status returns HTTPResponse.Status +func (r PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PutDeltaResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *HumanitecErrorResponse + JSON404 *string +} + +// Status returns HTTPResponse.Status +func (r PutDeltaResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PutDeltaResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *HumanitecErrorResponse + JSON404 *string +} + +// Status returns HTTPResponse.Status +func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *HumanitecErrorResponse + JSON404 *string +} + +// Status returns HTTPResponse.Status +func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *HumanitecErrorResponse + JSON404 *string +} + +// Status returns HTTPResponse.Status +func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdEnvsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]EnvironmentResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdEnvsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdEnvsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrgsOrgIdAppsAppIdEnvsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *EnvironmentResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdAppsAppIdEnvsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdAppsAppIdEnvsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *EnvironmentResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]DeploymentResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *DeploymentResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DeploymentResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]DeploymentErrorResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ActiveResourceResponse + JSON500 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]NodeBodyResponse + JSON400 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AutomationRuleResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *AutomationRuleResponse + JSON400 *ErrorInfoResponse +} + +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AutomationRuleResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AutomationRuleResponse + JSON400 *ErrorInfoResponse +} + +// Status returns HTTPResponse.Status +func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *RuntimeInfoResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *HumanitecErrorResponse + JSON403 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *HumanitecErrorResponse + JSON403 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ValueSetVersionResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ValueSetVersionResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ValueSetVersionResponse + JSON404 *HumanitecErrorResponse +} + +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ValueSetVersionResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse +} - // DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersion request - DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionWithResponse(ctx context.Context, orgId string, profileId string, version string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse, error) +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // DeleteOrgsOrgIdWorkloadProfilesProfileQid request - DeleteOrgsOrgIdWorkloadProfilesProfileQidWithResponse(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdWorkloadProfilesProfileQidResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // GetOrgsOrgIdWorkloadProfilesProfileQid request - GetOrgsOrgIdWorkloadProfilesProfileQidWithResponse(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdWorkloadProfilesProfileQidResponse, error) +type DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse struct { + Body []byte + HTTPResponse *http.Response +} - // GetOrgsOrgIdWorkloadProfilesProfileQidVersions request - GetOrgsOrgIdWorkloadProfilesProfileQidVersionsWithResponse(ctx context.Context, orgId string, profileQid string, params *GetOrgsOrgIdWorkloadProfilesProfileQidVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse, error) +// Status returns HTTPResponse.Status +func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // PostOrgsOrgIdWorkloadProfilesProfileQidVersions request with any body - PostOrgsOrgIdWorkloadProfilesProfileQidVersionsWithBodyWithResponse(ctx context.Context, orgId string, profileQid string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // GetLatestWorkloadProfileVersion request - GetLatestWorkloadProfileVersionWithResponse(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*GetLatestWorkloadProfileVersionResponse, error) +type GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ValueResponse +} - // GetTokens request - GetTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTokensResponse, error) +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // DeleteTokensTokenId request - DeleteTokensTokenIdWithResponse(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*DeleteTokensTokenIdResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // GetUsersMe request - GetUsersMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsersMeResponse, error) +type PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ValueResponse + JSON400 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse +} - // GetUsersUserIdTokens request - GetUsersUserIdTokensWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetUsersUserIdTokensResponse, error) +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // PostUsersUserIdTokens request with any body - PostUsersUserIdTokensWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUsersUserIdTokensResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - PostUsersUserIdTokensWithResponse(ctx context.Context, userId string, body PostUsersUserIdTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUsersUserIdTokensResponse, error) +type DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse +} - // DeleteUsersUserIdTokensTokenId request - DeleteUsersUserIdTokensTokenIdWithResponse(ctx context.Context, userId string, tokenId string, reqEditors ...RequestEditorFn) (*DeleteUsersUserIdTokensTokenIdResponse, error) +// Status returns HTTPResponse.Status +func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} - // GetUsersUserIdTokensTokenId request - GetUsersUserIdTokensTokenIdWithResponse(ctx context.Context, userId string, tokenId string, reqEditors ...RequestEditorFn) (*GetUsersUserIdTokensTokenIdResponse, error) +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 } -type GetCurrentUserResponse struct { +type PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserProfileExtendedResponse + JSON200 *ValueResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetCurrentUserResponse) Status() string { +func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13798,22 +17938,23 @@ func (r GetCurrentUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCurrentUserResponse) StatusCode() int { +func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchCurrentUserResponse struct { +type PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserProfileExtendedResponse + JSON200 *ValueResponse JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PatchCurrentUserResponse) Status() string { +func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13821,21 +17962,20 @@ func (r PatchCurrentUserResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PatchCurrentUserResponse) StatusCode() int { +func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsResponse struct { +type DeleteOrgsOrgIdAppsAppIdJobsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]OrganizationResponse } // Status returns HTTPResponse.Status -func (r GetOrgsResponse) Status() string { +func (r DeleteOrgsOrgIdAppsAppIdJobsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13843,23 +17983,23 @@ func (r GetOrgsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsResponse) StatusCode() int { +func (r DeleteOrgsOrgIdAppsAppIdJobsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdResponse struct { +type ListPipelinesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *OrganizationResponse - JSON400 *ErrorInfoResponse - JSON409 *ErrorInfoResponse + JSON200 *[]PipelineResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdResponse) Status() string { +func (r ListPipelinesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13867,21 +18007,24 @@ func (r GetOrgsOrgIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdResponse) StatusCode() int { +func (r ListPipelinesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsResponse struct { +type CreatePipelineResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ApplicationResponse + JSON201 *PipelineResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsResponse) Status() string { +func (r CreatePipelineResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13889,24 +18032,24 @@ func (r GetOrgsOrgIdAppsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsResponse) StatusCode() int { +func (r CreatePipelineResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsResponse struct { +type DeletePipelineResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ApplicationResponse JSON400 *HumanitecErrorResponse - JSON401 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse JSON409 *HumanitecErrorResponse + JSON412 *ErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsResponse) Status() string { +func (r DeletePipelineResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13914,22 +18057,23 @@ func (r PostOrgsOrgIdAppsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsResponse) StatusCode() int { +func (r DeletePipelineResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdAppsAppIdResponse struct { +type GetPipelineResponse struct { Body []byte HTTPResponse *http.Response - JSON401 *HumanitecErrorResponse + JSON200 *PipelineResponse + JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdAppsAppIdResponse) Status() string { +func (r GetPipelineResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13937,22 +18081,25 @@ func (r DeleteOrgsOrgIdAppsAppIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdAppsAppIdResponse) StatusCode() int { +func (r GetPipelineResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdResponse struct { +type UpdatePipelineResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ApplicationResponse + JSON200 *PipelineResponse + JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse + JSON412 *ErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdResponse) Status() string { +func (r UpdatePipelineResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13960,21 +18107,23 @@ func (r GetOrgsOrgIdAppsAppIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdResponse) StatusCode() int { +func (r UpdatePipelineResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdDeltasResponse struct { +type ListPipelineRunsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]DeltaResponse + JSON200 *[]RunResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdDeltasResponse) Status() string { +func (r ListPipelineRunsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -13982,24 +18131,50 @@ func (r GetOrgsOrgIdAppsAppIdDeltasResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdDeltasResponse) StatusCode() int { +func (r ListPipelineRunsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdDeltasResponse struct { +type CreatePipelineRunResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - union json.RawMessage + JSON201 *RunResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse + JSON422 *ErrorResponse +} + +// Status returns HTTPResponse.Status +func (r CreatePipelineRunResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - JSON400 *HumanitecErrorResponse + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreatePipelineRunResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteRunResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse + JSON412 *ErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdDeltasResponse) Status() string { +func (r DeleteRunResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14007,22 +18182,22 @@ func (r PostOrgsOrgIdAppsAppIdDeltasResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdDeltasResponse) StatusCode() int { +func (r DeleteRunResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetDeltaResponse struct { +type GetRunResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DeltaResponse - JSON404 *string + JSON200 *RunResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetDeltaResponse) Status() string { +func (r GetRunResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14030,23 +18205,24 @@ func (r GetDeltaResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDeltaResponse) StatusCode() int { +func (r GetRunResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse struct { +type CancelRunResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DeltaResponse JSON400 *HumanitecErrorResponse - JSON404 *string + JSON404 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse + JSON412 *ErrorResponse } // Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse) Status() string { +func (r CancelRunResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14054,22 +18230,22 @@ func (r PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse) StatusCode() int { +func (r CancelRunResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PutDeltaResponse struct { +type ListRunJobsResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *HumanitecErrorResponse - JSON404 *string + JSON200 *[]RunJobListResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PutDeltaResponse) Status() string { +func (r ListRunJobsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14077,22 +18253,22 @@ func (r PutDeltaResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PutDeltaResponse) StatusCode() int { +func (r ListRunJobsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse struct { +type GetRunJobResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *HumanitecErrorResponse - JSON404 *string + JSON200 *RunJobResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse) Status() string { +func (r GetRunJobResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14100,22 +18276,22 @@ func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse) Status() str } // StatusCode returns HTTPResponse.StatusCode -func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse) StatusCode() int { +func (r GetRunJobResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse struct { +type GetApprovalRequestResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *HumanitecErrorResponse - JSON404 *string + JSON200 *ApprovalRequest + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse) Status() string { +func (r GetApprovalRequestResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14123,22 +18299,24 @@ func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse) Status() string } // StatusCode returns HTTPResponse.StatusCode -func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse) StatusCode() int { +func (r GetApprovalRequestResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse struct { +type ApproveApprovalRequestResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *ApprovalRequest JSON400 *HumanitecErrorResponse - JSON404 *string + JSON403 *ErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse) Status() string { +func (r ApproveApprovalRequestResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14146,21 +18324,24 @@ func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse) Status() string } // StatusCode returns HTTPResponse.StatusCode -func (r PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse) StatusCode() int { +func (r ApproveApprovalRequestResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdEnvsResponse struct { +type DenyApprovalRequestResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]EnvironmentResponse + JSON200 *ApprovalRequest + JSON400 *HumanitecErrorResponse + JSON403 *ErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdEnvsResponse) Status() string { +func (r DenyApprovalRequestResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14168,24 +18349,22 @@ func (r GetOrgsOrgIdAppsAppIdEnvsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdEnvsResponse) StatusCode() int { +func (r DenyApprovalRequestResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdEnvsResponse struct { +type ListRunJobStepLogsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *EnvironmentResponse - JSON400 *HumanitecErrorResponse + JSON200 *[]RunJobStepLog JSON404 *HumanitecErrorResponse - JSON409 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdEnvsResponse) Status() string { +func (r ListRunJobStepLogsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14193,22 +18372,25 @@ func (r PostOrgsOrgIdAppsAppIdEnvsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdEnvsResponse) StatusCode() int { +func (r ListRunJobStepLogsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse struct { +type RestartRunResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *RunResponse JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse + JSON422 *ErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse) Status() string { +func (r RestartRunResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14216,22 +18398,23 @@ func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse) StatusCode() int { +func (r RestartRunResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse struct { +type GetPipelineSchemaResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *EnvironmentResponse + JSON200 *map[string]interface{} + JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse) Status() string { +func (r GetPipelineSchemaResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14239,22 +18422,23 @@ func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse) StatusCode() int { +func (r GetPipelineSchemaResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse struct { +type ListPipelineVersionsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]DeploymentResponse + JSON200 *[]PipelineVersionResponse + JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse) Status() string { +func (r ListPipelineVersionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14262,24 +18446,22 @@ func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse) StatusCode() int { +func (r ListPipelineVersionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse struct { +type GetOrgsOrgIdAppsAppIdRuntimeResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *DeploymentResponse + JSON200 *[]EnvironmentRuntimeInfoResponse JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse - JSON409 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse) Status() string { +func (r GetOrgsOrgIdAppsAppIdRuntimeResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14287,22 +18469,22 @@ func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse) StatusCode() int { +func (r GetOrgsOrgIdAppsAppIdRuntimeResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse struct { +type GetSetsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DeploymentResponse - JSON404 *HumanitecErrorResponse + JSON200 *[]SetResponse + JSON404 *string } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse) Status() string { +func (r GetSetsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14310,21 +18492,24 @@ func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse) StatusCode() int { +func (r GetSetsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse struct { +type GetOrgsOrgIdAppsAppIdSetsSetIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]DeploymentErrorResponse + JSON200 *struct { + union json.RawMessage + } + JSON404 *string } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse) Status() string { +func (r GetOrgsOrgIdAppsAppIdSetsSetIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14332,22 +18517,23 @@ func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse) Status() st } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse) StatusCode() int { +func (r GetOrgsOrgIdAppsAppIdSetsSetIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse struct { +type PostOrgsOrgIdAppsAppIdSetsSetIdResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *string JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse + JSON404 *string } // Status returns HTTPResponse.Status -func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse) Status() string { +func (r PostOrgsOrgIdAppsAppIdSetsSetIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14355,22 +18541,22 @@ func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse) StatusCode() int { +func (r PostOrgsOrgIdAppsAppIdSetsSetIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse struct { +type GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ActiveResourceResponse - JSON500 *HumanitecErrorResponse + JSON200 *PlainDeltaResponse + JSON404 *string } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse) Status() string { +func (r GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14378,23 +18564,21 @@ func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse) StatusCode() int { +func (r GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse struct { +type GetOrgsOrgIdAppsAppIdUsersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]NodeBodyResponse - JSON400 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse + JSON200 *[]UserRoleResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse) Status() string { +func (r GetOrgsOrgIdAppsAppIdUsersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14402,20 +18586,22 @@ func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse) StatusCode() int { +func (r GetOrgsOrgIdAppsAppIdUsersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse struct { +type PostOrgsOrgIdAppsAppIdUsersResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *UserRoleResponse + JSON400 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse) Status() string { +func (r PostOrgsOrgIdAppsAppIdUsersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14423,21 +18609,21 @@ func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse) Status() st } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse) StatusCode() int { +func (r PostOrgsOrgIdAppsAppIdUsersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse struct { +type DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]AutomationRuleResponse + JSON400 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse) Status() string { +func (r DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14445,22 +18631,22 @@ func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse) StatusCode() int { +func (r DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse struct { +type GetOrgsOrgIdAppsAppIdUsersUserIdResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *AutomationRuleResponse - JSON400 *ErrorInfoResponse + JSON200 *UserRoleResponse + JSON400 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse) Status() string { +func (r GetOrgsOrgIdAppsAppIdUsersUserIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14468,20 +18654,22 @@ func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse) StatusCode() int { +func (r GetOrgsOrgIdAppsAppIdUsersUserIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse struct { +type PatchOrgsOrgIdAppsAppIdUsersUserIdResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *UserRoleResponse + JSON400 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) Status() string { +func (r PatchOrgsOrgIdAppsAppIdUsersUserIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14489,21 +18677,21 @@ func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) StatusCode() int { +func (r PatchOrgsOrgIdAppsAppIdUsersUserIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse struct { +type GetOrgsOrgIdAppsAppIdValueSetVersionsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AutomationRuleResponse + JSON200 *[]ValueSetVersionResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) Status() string { +func (r GetOrgsOrgIdAppsAppIdValueSetVersionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14511,22 +18699,22 @@ func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) StatusCode() int { +func (r GetOrgsOrgIdAppsAppIdValueSetVersionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse struct { +type GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *AutomationRuleResponse - JSON400 *ErrorInfoResponse + JSON200 *ValueSetVersionResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) Status() string { +func (r GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14534,23 +18722,22 @@ func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) StatusCode() int { +func (r GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse struct { +type PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *RuntimeInfoResponse JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse) Status() string { +func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14558,23 +18745,22 @@ func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse) StatusCode() int { +func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse struct { +type PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *HumanitecErrorResponse - JSON403 *HumanitecErrorResponse + JSON200 *ValueSetVersionResponse JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse) Status() string { +func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14582,23 +18768,23 @@ func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse) StatusCode() int { +func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse struct { +type PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *ValueSetVersionResponse JSON400 *HumanitecErrorResponse - JSON403 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse) Status() string { +func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14606,21 +18792,20 @@ func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse) Status() string } // StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse) StatusCode() int { +func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse struct { +type DeleteOrgsOrgIdAppsAppIdValuesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ValueSetVersionResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse) Status() string { +func (r DeleteOrgsOrgIdAppsAppIdValuesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14628,22 +18813,21 @@ func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse) Status() string } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse) StatusCode() int { +func (r DeleteOrgsOrgIdAppsAppIdValuesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse struct { +type GetOrgsOrgIdAppsAppIdValuesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ValueSetVersionResponse - JSON404 *HumanitecErrorResponse + JSON200 *[]ValueResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse) Status() string { +func (r GetOrgsOrgIdAppsAppIdValuesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14651,22 +18835,23 @@ func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse) } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse) StatusCode() int { +func (r GetOrgsOrgIdAppsAppIdValuesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse struct { +type PostOrgsOrgIdAppsAppIdValuesResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *ValueResponse JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse) Status() string { +func (r PostOrgsOrgIdAppsAppIdValuesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14674,22 +18859,22 @@ func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKey } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse) StatusCode() int { +func (r PostOrgsOrgIdAppsAppIdValuesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse struct { +type DeleteOrgsOrgIdAppsAppIdValuesKeyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ValueSetVersionResponse + JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse) Status() string { +func (r DeleteOrgsOrgIdAppsAppIdValuesKeyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14697,23 +18882,23 @@ func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreR } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse) StatusCode() int { +func (r DeleteOrgsOrgIdAppsAppIdValuesKeyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse struct { +type PatchOrgsOrgIdAppsAppIdValuesKeyResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ValueSetVersionResponse + JSON200 *ValueResponse JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse) Status() string { +func (r PatchOrgsOrgIdAppsAppIdValuesKeyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14721,20 +18906,23 @@ func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreK } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse) StatusCode() int { +func (r PatchOrgsOrgIdAppsAppIdValuesKeyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse struct { +type PutOrgsOrgIdAppsAppIdValuesKeyResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *ValueResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) Status() string { +func (r PutOrgsOrgIdAppsAppIdValuesKeyResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14742,21 +18930,21 @@ func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) StatusCode() int { +func (r PutOrgsOrgIdAppsAppIdValuesKeyResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse struct { +type GetOrgsOrgIdAppsAppIdWebhooksResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ValueResponse + JSON200 *[]WebhookResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) Status() string { +func (r GetOrgsOrgIdAppsAppIdWebhooksResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14764,23 +18952,23 @@ func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) StatusCode() int { +func (r GetOrgsOrgIdAppsAppIdWebhooksResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse struct { +type PostOrgsOrgIdAppsAppIdWebhooksResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ValueResponse + JSON201 *WebhookResponse JSON400 *HumanitecErrorResponse JSON409 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) Status() string { +func (r PostOrgsOrgIdAppsAppIdWebhooksResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14788,22 +18976,21 @@ func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse) StatusCode() int { +func (r PostOrgsOrgIdAppsAppIdWebhooksResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse struct { +type DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) Status() string { +func (r DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14811,23 +18998,22 @@ func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) StatusCode() int { +func (r DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse struct { +type GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ValueResponse - JSON400 *HumanitecErrorResponse + JSON200 *WebhookResponse JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) Status() string { +func (r GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14835,23 +19021,23 @@ func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) StatusCode() int { +func (r GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse struct { +type PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ValueResponse + JSON200 *WebhookUpdateResponse JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) Status() string { +func (r PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14859,20 +19045,22 @@ func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse) StatusCode() int { +func (r PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdAppsAppIdJobsResponse struct { +type GetOrgsOrgIdArtefactVersionsResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *[]ArtefactVersionResponse + JSON400 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdAppsAppIdJobsResponse) Status() string { +func (r GetOrgsOrgIdArtefactVersionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14880,22 +19068,23 @@ func (r DeleteOrgsOrgIdAppsAppIdJobsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdAppsAppIdJobsResponse) StatusCode() int { +func (r GetOrgsOrgIdArtefactVersionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdRuntimeResponse struct { +type PostOrgsOrgIdArtefactVersionsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]EnvironmentRuntimeInfoResponse + JSON200 *ArtefactVersionResponse JSON400 *HumanitecErrorResponse + JSON401 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdRuntimeResponse) Status() string { +func (r PostOrgsOrgIdArtefactVersionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14903,22 +19092,23 @@ func (r GetOrgsOrgIdAppsAppIdRuntimeResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdRuntimeResponse) StatusCode() int { +func (r PostOrgsOrgIdArtefactVersionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetSetsResponse struct { +type GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]SetResponse - JSON404 *string + JSON200 *ArtefactVersionResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetSetsResponse) Status() string { +func (r GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14926,24 +19116,21 @@ func (r GetSetsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSetsResponse) StatusCode() int { +func (r GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdSetsSetIdResponse struct { +type GetOrgsOrgIdArtefactsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *struct { - union json.RawMessage - } - JSON404 *string + JSON200 *[]ArtefactResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdSetsSetIdResponse) Status() string { +func (r GetOrgsOrgIdArtefactsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14951,23 +19138,22 @@ func (r GetOrgsOrgIdAppsAppIdSetsSetIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdSetsSetIdResponse) StatusCode() int { +func (r GetOrgsOrgIdArtefactsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdSetsSetIdResponse struct { +type DeleteOrgsOrgIdArtefactsArtefactIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *string - JSON400 *HumanitecErrorResponse - JSON404 *string + JSON403 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdSetsSetIdResponse) Status() string { +func (r DeleteOrgsOrgIdArtefactsArtefactIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14975,22 +19161,23 @@ func (r PostOrgsOrgIdAppsAppIdSetsSetIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdSetsSetIdResponse) StatusCode() int { +func (r DeleteOrgsOrgIdArtefactsArtefactIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse struct { +type GetOrgsOrgIdArtefactsArtefactIdVersionsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *PlainDeltaResponse - JSON404 *string + JSON200 *[]ArtefactVersionResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse) Status() string { +func (r GetOrgsOrgIdArtefactsArtefactIdVersionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -14998,21 +19185,25 @@ func (r GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse) StatusCode() int { +func (r GetOrgsOrgIdArtefactsArtefactIdVersionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdUsersResponse struct { +type PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]UserRoleResponse + JSON200 *ArtefactVersionResponse + JSON400 *HumanitecErrorResponse + JSON401 *HumanitecErrorResponse + JSON403 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdUsersResponse) Status() string { +func (r PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15020,22 +19211,21 @@ func (r GetOrgsOrgIdAppsAppIdUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdUsersResponse) StatusCode() int { +func (r PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdUsersResponse struct { +type GetOrgsOrgIdEnvTypesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserRoleResponse - JSON400 *HumanitecErrorResponse + JSON200 *[]EnvironmentTypeResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdUsersResponse) Status() string { +func (r GetOrgsOrgIdEnvTypesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15043,21 +19233,24 @@ func (r PostOrgsOrgIdAppsAppIdUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdUsersResponse) StatusCode() int { +func (r GetOrgsOrgIdEnvTypesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse struct { +type PostOrgsOrgIdEnvTypesResponse struct { Body []byte HTTPResponse *http.Response + JSON201 *EnvironmentTypeResponse JSON400 *HumanitecErrorResponse + JSON401 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse) Status() string { +func (r PostOrgsOrgIdEnvTypesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15065,22 +19258,24 @@ func (r DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse) StatusCode() int { +func (r PostOrgsOrgIdEnvTypesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdUsersUserIdResponse struct { +type DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserRoleResponse - JSON400 *HumanitecErrorResponse + JSON204 *EnvironmentTypeResponse + JSON401 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse + JSON409 *[]map[string]string } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdUsersUserIdResponse) Status() string { +func (r DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15088,22 +19283,22 @@ func (r GetOrgsOrgIdAppsAppIdUsersUserIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdUsersUserIdResponse) StatusCode() int { +func (r DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchOrgsOrgIdAppsAppIdUsersUserIdResponse struct { +type GetOrgsOrgIdEnvTypesEnvTypeIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserRoleResponse - JSON400 *HumanitecErrorResponse + JSON200 *EnvironmentTypeResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdAppsAppIdUsersUserIdResponse) Status() string { +func (r GetOrgsOrgIdEnvTypesEnvTypeIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15111,21 +19306,22 @@ func (r PatchOrgsOrgIdAppsAppIdUsersUserIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdAppsAppIdUsersUserIdResponse) StatusCode() int { +func (r GetOrgsOrgIdEnvTypesEnvTypeIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdValueSetVersionsResponse struct { +type PostOrgsOrgIdEnvTypesEnvTypeUsersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ValueSetVersionResponse + JSON200 *UserRoleResponse + JSON400 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdValueSetVersionsResponse) Status() string { +func (r PostOrgsOrgIdEnvTypesEnvTypeUsersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15133,22 +19329,21 @@ func (r GetOrgsOrgIdAppsAppIdValueSetVersionsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdValueSetVersionsResponse) StatusCode() int { +func (r PostOrgsOrgIdEnvTypesEnvTypeUsersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse struct { +type DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ValueSetVersionResponse - JSON404 *HumanitecErrorResponse + JSON400 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse) Status() string { +func (r DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15156,22 +19351,22 @@ func (r GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse) Status() } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse) StatusCode() int { +func (r DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse struct { +type GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *UserRoleResponse JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse) Status() string { +func (r GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15179,22 +19374,22 @@ func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse) } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse) StatusCode() int { +func (r GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse struct { +type PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ValueSetVersionResponse - JSON404 *HumanitecErrorResponse + JSON200 *UserRoleResponse + JSON400 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse) Status() string { +func (r PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15202,23 +19397,21 @@ func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse) } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse) StatusCode() int { +func (r PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse struct { +type GetOrgsOrgIdEventsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ValueSetVersionResponse - JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse + JSON200 *[]EventResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse) Status() string { +func (r GetOrgsOrgIdEventsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15226,20 +19419,21 @@ func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyRespons } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse) StatusCode() int { +func (r GetOrgsOrgIdEventsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdAppsAppIdValuesResponse struct { +type GetOrgsOrgIdImagesResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *[]ImageResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdAppsAppIdValuesResponse) Status() string { +func (r GetOrgsOrgIdImagesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15247,21 +19441,22 @@ func (r DeleteOrgsOrgIdAppsAppIdValuesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdAppsAppIdValuesResponse) StatusCode() int { +func (r GetOrgsOrgIdImagesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdValuesResponse struct { +type GetOrgsOrgIdImagesImageIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ValueResponse + JSON200 *ImageResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdValuesResponse) Status() string { +func (r GetOrgsOrgIdImagesImageIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15269,23 +19464,22 @@ func (r GetOrgsOrgIdAppsAppIdValuesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdValuesResponse) StatusCode() int { +func (r GetOrgsOrgIdImagesImageIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdValuesResponse struct { +type GetOrgsOrgIdImagesImageIdBuildsResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *ValueResponse - JSON400 *HumanitecErrorResponse - JSON409 *HumanitecErrorResponse + JSON200 *[]ImageBuildResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdValuesResponse) Status() string { +func (r GetOrgsOrgIdImagesImageIdBuildsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15293,22 +19487,23 @@ func (r PostOrgsOrgIdAppsAppIdValuesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdValuesResponse) StatusCode() int { +func (r GetOrgsOrgIdImagesImageIdBuildsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdAppsAppIdValuesKeyResponse struct { +type PostOrgsOrgIdImagesImageIdBuildsResponse struct { Body []byte HTTPResponse *http.Response JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse + JSON401 *HumanitecErrorResponse + JSON403 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdAppsAppIdValuesKeyResponse) Status() string { +func (r PostOrgsOrgIdImagesImageIdBuildsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15316,23 +19511,21 @@ func (r DeleteOrgsOrgIdAppsAppIdValuesKeyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdAppsAppIdValuesKeyResponse) StatusCode() int { +func (r PostOrgsOrgIdImagesImageIdBuildsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchOrgsOrgIdAppsAppIdValuesKeyResponse struct { +type GetOrgsOrgIdInvitationsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ValueResponse - JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse + JSON200 *[]UserInviteResponse } // Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdAppsAppIdValuesKeyResponse) Status() string { +func (r GetOrgsOrgIdInvitationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15340,23 +19533,22 @@ func (r PatchOrgsOrgIdAppsAppIdValuesKeyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdAppsAppIdValuesKeyResponse) StatusCode() int { +func (r GetOrgsOrgIdInvitationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PutOrgsOrgIdAppsAppIdValuesKeyResponse struct { +type PostOrgsOrgIdInvitationsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ValueResponse + JSON200 *[]UserRoleResponse JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PutOrgsOrgIdAppsAppIdValuesKeyResponse) Status() string { +func (r PostOrgsOrgIdInvitationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15364,21 +19556,23 @@ func (r PutOrgsOrgIdAppsAppIdValuesKeyResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PutOrgsOrgIdAppsAppIdValuesKeyResponse) StatusCode() int { +func (r PostOrgsOrgIdInvitationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdWebhooksResponse struct { +type ListPipelineRunsByOrgResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]WebhookResponse + JSON200 *[]RunResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdWebhooksResponse) Status() string { +func (r ListPipelineRunsByOrgResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15386,23 +19580,22 @@ func (r GetOrgsOrgIdAppsAppIdWebhooksResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdWebhooksResponse) StatusCode() int { +func (r ListPipelineRunsByOrgResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdAppsAppIdWebhooksResponse struct { +type GetLatestPipelineSchemaResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *WebhookResponse + JSON200 *map[string]interface{} JSON400 *HumanitecErrorResponse - JSON409 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdAppsAppIdWebhooksResponse) Status() string { +func (r GetLatestPipelineSchemaResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15410,21 +19603,23 @@ func (r PostOrgsOrgIdAppsAppIdWebhooksResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdAppsAppIdWebhooksResponse) StatusCode() int { +func (r GetLatestPipelineSchemaResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse struct { +type ListPipelinesByOrgResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *[]PipelineResponse + JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse) Status() string { +func (r ListPipelinesByOrgResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15432,22 +19627,23 @@ func (r DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse) StatusCode() int { +func (r ListPipelinesByOrgResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse struct { +type GetOrgsOrgIdRegistriesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *WebhookResponse - JSON404 *HumanitecErrorResponse + JSON200 *[]RegistryResponse + JSON400 *ErrorInfoResponse + JSON404 *ErrorInfoResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse) Status() string { +func (r GetOrgsOrgIdRegistriesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15455,23 +19651,25 @@ func (r GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse) StatusCode() int { +func (r GetOrgsOrgIdRegistriesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse struct { +type PostOrgsOrgIdRegistriesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *WebhookUpdateResponse - JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse + JSON201 *RegistryResponse + JSON400 *ErrorInfoResponse + JSON401 *ErrorInfoResponse + JSON404 *ErrorInfoResponse + JSON409 *ErrorInfoResponse } // Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse) Status() string { +func (r PostOrgsOrgIdRegistriesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15479,22 +19677,23 @@ func (r PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse) StatusCode() int { +func (r PostOrgsOrgIdRegistriesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdArtefactVersionsResponse struct { +type DeleteOrgsOrgIdRegistriesRegIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ArtefactVersionResponse - JSON400 *HumanitecErrorResponse + JSON400 *ErrorInfoResponse + JSON403 *ErrorInfoResponse + JSON404 *ErrorInfoResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdArtefactVersionsResponse) Status() string { +func (r DeleteOrgsOrgIdRegistriesRegIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15502,23 +19701,23 @@ func (r GetOrgsOrgIdArtefactVersionsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdArtefactVersionsResponse) StatusCode() int { +func (r DeleteOrgsOrgIdRegistriesRegIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdArtefactVersionsResponse struct { +type GetOrgsOrgIdRegistriesRegIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ArtefactVersionResponse - JSON400 *HumanitecErrorResponse - JSON401 *HumanitecErrorResponse + JSON201 *RegistryResponse + JSON400 *ErrorInfoResponse + JSON404 *ErrorInfoResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdArtefactVersionsResponse) Status() string { +func (r GetOrgsOrgIdRegistriesRegIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15526,23 +19725,25 @@ func (r PostOrgsOrgIdArtefactVersionsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdArtefactVersionsResponse) StatusCode() int { +func (r GetOrgsOrgIdRegistriesRegIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse struct { +type PatchOrgsOrgIdRegistriesRegIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ArtefactVersionResponse - JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse + JSON200 *RegistryResponse + JSON400 *ErrorInfoResponse + JSON403 *ErrorInfoResponse + JSON404 *ErrorInfoResponse + JSON409 *ErrorInfoResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse) Status() string { +func (r PatchOrgsOrgIdRegistriesRegIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15550,21 +19751,24 @@ func (r GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse) StatusCode() int { +func (r PatchOrgsOrgIdRegistriesRegIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdArtefactsResponse struct { +type GetOrgsOrgIdRegistriesRegIdCredsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ArtefactResponse + JSON200 *RegistryCredsResponse + JSON400 *ErrorInfoResponse + JSON401 *ErrorInfoResponse + JSON404 *ErrorInfoResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdArtefactsResponse) Status() string { +func (r GetOrgsOrgIdRegistriesRegIdCredsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15572,22 +19776,22 @@ func (r GetOrgsOrgIdArtefactsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdArtefactsResponse) StatusCode() int { +func (r GetOrgsOrgIdRegistriesRegIdCredsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdArtefactsArtefactIdResponse struct { +type GetOrgsOrgIdResourcesAccountTypesResponse struct { Body []byte HTTPResponse *http.Response - JSON403 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse + JSON200 *[]AccountTypeResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdArtefactsArtefactIdResponse) Status() string { +func (r GetOrgsOrgIdResourcesAccountTypesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15595,23 +19799,22 @@ func (r DeleteOrgsOrgIdArtefactsArtefactIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdArtefactsArtefactIdResponse) StatusCode() int { +func (r GetOrgsOrgIdResourcesAccountTypesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdArtefactsArtefactIdVersionsResponse struct { +type GetOrgsOrgIdResourcesAccountsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ArtefactVersionResponse - JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse + JSON200 *[]ResourceAccountResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdArtefactsArtefactIdVersionsResponse) Status() string { +func (r GetOrgsOrgIdResourcesAccountsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15619,25 +19822,25 @@ func (r GetOrgsOrgIdArtefactsArtefactIdVersionsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdArtefactsArtefactIdVersionsResponse) StatusCode() int { +func (r GetOrgsOrgIdResourcesAccountsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse struct { +type PostOrgsOrgIdResourcesAccountsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ArtefactVersionResponse + JSON200 *ResourceAccountResponse JSON400 *HumanitecErrorResponse JSON401 *HumanitecErrorResponse - JSON403 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse) Status() string { +func (r PostOrgsOrgIdResourcesAccountsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15645,21 +19848,23 @@ func (r PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse) Status() str } // StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse) StatusCode() int { +func (r PostOrgsOrgIdResourcesAccountsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdEnvTypesResponse struct { +type DeleteOrgsOrgIdResourcesAccountsAccIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]EnvironmentTypeResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdEnvTypesResponse) Status() string { +func (r DeleteOrgsOrgIdResourcesAccountsAccIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15667,24 +19872,23 @@ func (r GetOrgsOrgIdEnvTypesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdEnvTypesResponse) StatusCode() int { +func (r DeleteOrgsOrgIdResourcesAccountsAccIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdEnvTypesResponse struct { +type GetOrgsOrgIdResourcesAccountsAccIdResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *EnvironmentTypeResponse - JSON400 *HumanitecErrorResponse - JSON401 *HumanitecErrorResponse - JSON409 *HumanitecErrorResponse + JSON200 *ResourceAccountResponse + JSON404 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdEnvTypesResponse) Status() string { +func (r GetOrgsOrgIdResourcesAccountsAccIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15692,24 +19896,24 @@ func (r PostOrgsOrgIdEnvTypesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdEnvTypesResponse) StatusCode() int { +func (r GetOrgsOrgIdResourcesAccountsAccIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse struct { +type PatchOrgsOrgIdResourcesAccountsAccIdResponse struct { Body []byte HTTPResponse *http.Response - JSON204 *EnvironmentTypeResponse - JSON401 *HumanitecErrorResponse + JSON200 *ResourceAccountResponse + JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse - JSON409 *[]map[string]string + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse) Status() string { +func (r PatchOrgsOrgIdResourcesAccountsAccIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15717,22 +19921,22 @@ func (r DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse) StatusCode() int { +func (r PatchOrgsOrgIdResourcesAccountsAccIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdEnvTypesEnvTypeIdResponse struct { +type GetOrgsOrgIdResourcesDefsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *EnvironmentTypeResponse - JSON404 *HumanitecErrorResponse + JSON200 *[]ResourceDefinitionResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdEnvTypesEnvTypeIdResponse) Status() string { +func (r GetOrgsOrgIdResourcesDefsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15740,22 +19944,24 @@ func (r GetOrgsOrgIdEnvTypesEnvTypeIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdEnvTypesEnvTypeIdResponse) StatusCode() int { +func (r GetOrgsOrgIdResourcesDefsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdEnvTypesEnvTypeUsersResponse struct { +type PostOrgsOrgIdResourcesDefsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserRoleResponse + JSON200 *ResourceDefinitionResponse JSON400 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdEnvTypesEnvTypeUsersResponse) Status() string { +func (r PostOrgsOrgIdResourcesDefsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15763,21 +19969,23 @@ func (r PostOrgsOrgIdEnvTypesEnvTypeUsersResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdEnvTypesEnvTypeUsersResponse) StatusCode() int { +func (r PostOrgsOrgIdResourcesDefsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse struct { +type DeleteOrgsOrgIdResourcesDefsDefIdResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse + JSON409 *[]ResourceDefinitionChangeResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) Status() string { +func (r DeleteOrgsOrgIdResourcesDefsDefIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15785,22 +19993,23 @@ func (r DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) StatusCode() int { +func (r DeleteOrgsOrgIdResourcesDefsDefIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse struct { +type GetOrgsOrgIdResourcesDefsDefIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserRoleResponse - JSON400 *HumanitecErrorResponse + JSON200 *ResourceDefinitionResponse + JSON404 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) Status() string { +func (r GetOrgsOrgIdResourcesDefsDefIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15808,22 +20017,24 @@ func (r GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) StatusCode() int { +func (r GetOrgsOrgIdResourcesDefsDefIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse struct { +type PatchOrgsOrgIdResourcesDefsDefIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *UserRoleResponse + JSON200 *ResourceDefinitionResponse JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) Status() string { +func (r PatchOrgsOrgIdResourcesDefsDefIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15831,21 +20042,24 @@ func (r PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse) StatusCode() int { +func (r PatchOrgsOrgIdResourcesDefsDefIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdEventsResponse struct { +type PutOrgsOrgIdResourcesDefsDefIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]EventResponse + JSON200 *ResourceDefinitionResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdEventsResponse) Status() string { +func (r PutOrgsOrgIdResourcesDefsDefIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15853,21 +20067,24 @@ func (r GetOrgsOrgIdEventsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdEventsResponse) StatusCode() int { +func (r PutOrgsOrgIdResourcesDefsDefIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdImagesResponse struct { +type PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ImageResponse + JSON200 *MatchingCriteriaResponse + JSON400 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdImagesResponse) Status() string { +func (r PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15875,22 +20092,23 @@ func (r GetOrgsOrgIdImagesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdImagesResponse) StatusCode() int { +func (r PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdImagesImageIdResponse struct { +type DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ImageResponse - JSON404 *HumanitecErrorResponse + JSON404 *string + JSON409 *[]ResourceDefinitionChangeResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdImagesImageIdResponse) Status() string { +func (r DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15898,22 +20116,22 @@ func (r GetOrgsOrgIdImagesImageIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdImagesImageIdResponse) StatusCode() int { +func (r DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdImagesImageIdBuildsResponse struct { +type GetOrgsOrgIdResourcesDefsDefIdResourcesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ImageBuildResponse - JSON404 *HumanitecErrorResponse + JSON200 *[]ActiveResourceResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdImagesImageIdBuildsResponse) Status() string { +func (r GetOrgsOrgIdResourcesDefsDefIdResourcesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15921,23 +20139,22 @@ func (r GetOrgsOrgIdImagesImageIdBuildsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdImagesImageIdBuildsResponse) StatusCode() int { +func (r GetOrgsOrgIdResourcesDefsDefIdResourcesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdImagesImageIdBuildsResponse struct { +type GetOrgsOrgIdResourcesDriversResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *HumanitecErrorResponse - JSON401 *HumanitecErrorResponse - JSON403 *HumanitecErrorResponse + JSON200 *[]DriverDefinitionResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdImagesImageIdBuildsResponse) Status() string { +func (r GetOrgsOrgIdResourcesDriversResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15945,21 +20162,24 @@ func (r PostOrgsOrgIdImagesImageIdBuildsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdImagesImageIdBuildsResponse) StatusCode() int { +func (r GetOrgsOrgIdResourcesDriversResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdInvitationsResponse struct { +type PostOrgsOrgIdResourcesDriversResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]UserInviteResponse + JSON200 *DriverDefinitionResponse + JSON400 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdInvitationsResponse) Status() string { +func (r PostOrgsOrgIdResourcesDriversResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15967,22 +20187,21 @@ func (r GetOrgsOrgIdInvitationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdInvitationsResponse) StatusCode() int { +func (r PostOrgsOrgIdResourcesDriversResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdInvitationsResponse struct { +type DeleteOrgsOrgIdResourcesDriversDriverIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]UserRoleResponse - JSON400 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdInvitationsResponse) Status() string { +func (r DeleteOrgsOrgIdResourcesDriversDriverIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -15990,23 +20209,23 @@ func (r PostOrgsOrgIdInvitationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdInvitationsResponse) StatusCode() int { +func (r DeleteOrgsOrgIdResourcesDriversDriverIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdRegistriesResponse struct { +type GetOrgsOrgIdResourcesDriversDriverIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]RegistryResponse - JSON400 *ErrorInfoResponse - JSON404 *ErrorInfoResponse + JSON200 *DriverDefinitionResponse + JSON404 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdRegistriesResponse) Status() string { +func (r GetOrgsOrgIdResourcesDriversDriverIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16014,25 +20233,24 @@ func (r GetOrgsOrgIdRegistriesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdRegistriesResponse) StatusCode() int { +func (r GetOrgsOrgIdResourcesDriversDriverIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdRegistriesResponse struct { +type PutOrgsOrgIdResourcesDriversDriverIdResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *RegistryResponse - JSON400 *ErrorInfoResponse - JSON401 *ErrorInfoResponse - JSON404 *ErrorInfoResponse - JSON409 *ErrorInfoResponse + JSON200 *DriverDefinitionResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdRegistriesResponse) Status() string { +func (r PutOrgsOrgIdResourcesDriversDriverIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16040,23 +20258,22 @@ func (r PostOrgsOrgIdRegistriesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdRegistriesResponse) StatusCode() int { +func (r PutOrgsOrgIdResourcesDriversDriverIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdRegistriesRegIdResponse struct { +type GetOrgsOrgIdResourcesTypesResponse struct { Body []byte HTTPResponse *http.Response - JSON400 *ErrorInfoResponse - JSON403 *ErrorInfoResponse - JSON404 *ErrorInfoResponse + JSON200 *[]ResourceTypeResponse + JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdRegistriesRegIdResponse) Status() string { +func (r GetOrgsOrgIdResourcesTypesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16064,23 +20281,21 @@ func (r DeleteOrgsOrgIdRegistriesRegIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdRegistriesRegIdResponse) StatusCode() int { +func (r GetOrgsOrgIdResourcesTypesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdRegistriesRegIdResponse struct { +type GetOrgsOrgIdSecretstoresResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *RegistryResponse - JSON400 *ErrorInfoResponse - JSON404 *ErrorInfoResponse + JSON200 *[]SecretStoreResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdRegistriesRegIdResponse) Status() string { +func (r GetOrgsOrgIdSecretstoresResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16088,25 +20303,24 @@ func (r GetOrgsOrgIdRegistriesRegIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdRegistriesRegIdResponse) StatusCode() int { +func (r GetOrgsOrgIdSecretstoresResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchOrgsOrgIdRegistriesRegIdResponse struct { +type PostOrgsOrgIdSecretstoresResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *RegistryResponse - JSON400 *ErrorInfoResponse - JSON403 *ErrorInfoResponse - JSON404 *ErrorInfoResponse - JSON409 *ErrorInfoResponse + JSON201 *SecretStoreResponse + JSON400 *HumanitecErrorResponse + JSON401 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdRegistriesRegIdResponse) Status() string { +func (r PostOrgsOrgIdSecretstoresResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16114,24 +20328,21 @@ func (r PatchOrgsOrgIdRegistriesRegIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdRegistriesRegIdResponse) StatusCode() int { +func (r PostOrgsOrgIdSecretstoresResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdRegistriesRegIdCredsResponse struct { +type DeleteOrgsOrgIdSecretstoresStoreIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *RegistryCredsResponse - JSON400 *ErrorInfoResponse - JSON401 *ErrorInfoResponse - JSON404 *ErrorInfoResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdRegistriesRegIdCredsResponse) Status() string { +func (r DeleteOrgsOrgIdSecretstoresStoreIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16139,22 +20350,22 @@ func (r GetOrgsOrgIdRegistriesRegIdCredsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdRegistriesRegIdCredsResponse) StatusCode() int { +func (r DeleteOrgsOrgIdSecretstoresStoreIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdResourcesAccountTypesResponse struct { +type GetOrgsOrgIdSecretstoresStoreIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]AccountTypeResponse - JSON500 *HumanitecErrorResponse + JSON200 *SecretStoreResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdResourcesAccountTypesResponse) Status() string { +func (r GetOrgsOrgIdSecretstoresStoreIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16162,22 +20373,23 @@ func (r GetOrgsOrgIdResourcesAccountTypesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdResourcesAccountTypesResponse) StatusCode() int { +func (r GetOrgsOrgIdSecretstoresStoreIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdResourcesAccountsResponse struct { +type PatchOrgsOrgIdSecretstoresStoreIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ResourceAccountResponse - JSON500 *HumanitecErrorResponse + JSON200 *SecretStoreResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdResourcesAccountsResponse) Status() string { +func (r PatchOrgsOrgIdSecretstoresStoreIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16185,25 +20397,21 @@ func (r GetOrgsOrgIdResourcesAccountsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdResourcesAccountsResponse) StatusCode() int { +func (r PatchOrgsOrgIdSecretstoresStoreIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdResourcesAccountsResponse struct { +type GetOrgsOrgIdUsersResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceAccountResponse - JSON400 *HumanitecErrorResponse - JSON401 *HumanitecErrorResponse - JSON409 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse + JSON200 *[]UserRoleResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdResourcesAccountsResponse) Status() string { +func (r GetOrgsOrgIdUsersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16211,23 +20419,22 @@ func (r PostOrgsOrgIdResourcesAccountsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdResourcesAccountsResponse) StatusCode() int { +func (r GetOrgsOrgIdUsersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdResourcesAccountsAccIdResponse struct { +type PostOrgsOrgIdUsersResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *UserProfileResponse JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdResourcesAccountsAccIdResponse) Status() string { +func (r PostOrgsOrgIdUsersResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16235,23 +20442,21 @@ func (r DeleteOrgsOrgIdResourcesAccountsAccIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdResourcesAccountsAccIdResponse) StatusCode() int { +func (r PostOrgsOrgIdUsersResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdResourcesAccountsAccIdResponse struct { +type DeleteOrgsOrgIdUsersUserIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceAccountResponse - JSON404 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse + JSON400 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdResourcesAccountsAccIdResponse) Status() string { +func (r DeleteOrgsOrgIdUsersUserIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16259,24 +20464,22 @@ func (r GetOrgsOrgIdResourcesAccountsAccIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdResourcesAccountsAccIdResponse) StatusCode() int { +func (r DeleteOrgsOrgIdUsersUserIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchOrgsOrgIdResourcesAccountsAccIdResponse struct { +type GetOrgsOrgIdUsersUserIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceAccountResponse + JSON200 *UserRoleResponse JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdResourcesAccountsAccIdResponse) Status() string { +func (r GetOrgsOrgIdUsersUserIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16284,22 +20487,22 @@ func (r PatchOrgsOrgIdResourcesAccountsAccIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdResourcesAccountsAccIdResponse) StatusCode() int { +func (r GetOrgsOrgIdUsersUserIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdResourcesDefsResponse struct { +type PatchOrgsOrgIdUsersUserIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ResourceDefinitionResponse - JSON500 *HumanitecErrorResponse + JSON200 *UserRoleResponse + JSON400 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdResourcesDefsResponse) Status() string { +func (r PatchOrgsOrgIdUsersUserIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16307,24 +20510,21 @@ func (r GetOrgsOrgIdResourcesDefsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdResourcesDefsResponse) StatusCode() int { +func (r PatchOrgsOrgIdUsersUserIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdResourcesDefsResponse struct { +type GetWorkloadProfileChartVersionsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceDefinitionResponse - JSON400 *HumanitecErrorResponse - JSON409 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse + JSON200 *[]WorkloadProfileChartVersionResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdResourcesDefsResponse) Status() string { +func (r GetWorkloadProfileChartVersionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16332,23 +20532,23 @@ func (r PostOrgsOrgIdResourcesDefsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdResourcesDefsResponse) StatusCode() int { +func (r GetWorkloadProfileChartVersionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdResourcesDefsDefIdResponse struct { +type PostWorkloadProfileChartVersionResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *HumanitecErrorResponse - JSON409 *[]ResourceDefinitionChangeResponse - JSON500 *HumanitecErrorResponse + JSON201 *WorkloadProfileChartVersionResponse + JSON400 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdResourcesDefsDefIdResponse) Status() string { +func (r PostWorkloadProfileChartVersionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16356,23 +20556,21 @@ func (r DeleteOrgsOrgIdResourcesDefsDefIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdResourcesDefsDefIdResponse) StatusCode() int { +func (r PostWorkloadProfileChartVersionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdResourcesDefsDefIdResponse struct { +type GetOrgsOrgIdWorkloadProfilesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceDefinitionResponse - JSON404 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse + JSON200 *[]WorkloadProfileResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdResourcesDefsDefIdResponse) Status() string { +func (r GetOrgsOrgIdWorkloadProfilesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16380,24 +20578,23 @@ func (r GetOrgsOrgIdResourcesDefsDefIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdResourcesDefsDefIdResponse) StatusCode() int { +func (r GetOrgsOrgIdWorkloadProfilesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PatchOrgsOrgIdResourcesDefsDefIdResponse struct { +type PostOrgsOrgIdWorkloadProfilesResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceDefinitionResponse + JSON200 *WorkloadProfileResponse JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdResourcesDefsDefIdResponse) Status() string { +func (r PostOrgsOrgIdWorkloadProfilesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16405,24 +20602,21 @@ func (r PatchOrgsOrgIdResourcesDefsDefIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdResourcesDefsDefIdResponse) StatusCode() int { +func (r PostOrgsOrgIdWorkloadProfilesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PutOrgsOrgIdResourcesDefsDefIdResponse struct { +type DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *ResourceDefinitionResponse - JSON400 *HumanitecErrorResponse JSON404 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PutOrgsOrgIdResourcesDefsDefIdResponse) Status() string { +func (r DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16430,24 +20624,21 @@ func (r PutOrgsOrgIdResourcesDefsDefIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PutOrgsOrgIdResourcesDefsDefIdResponse) StatusCode() int { +func (r DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse struct { +type DeleteOrgsOrgIdWorkloadProfilesProfileQidResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *MatchingCriteriaResponse - JSON400 *HumanitecErrorResponse - JSON409 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse) Status() string { +func (r DeleteOrgsOrgIdWorkloadProfilesProfileQidResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16455,23 +20646,22 @@ func (r PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse) StatusCode() int { +func (r DeleteOrgsOrgIdWorkloadProfilesProfileQidResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse struct { +type GetOrgsOrgIdWorkloadProfilesProfileQidResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *string - JSON409 *[]ResourceDefinitionChangeResponse - JSON500 *HumanitecErrorResponse + JSON200 *WorkloadProfileResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse) Status() string { +func (r GetOrgsOrgIdWorkloadProfilesProfileQidResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16479,22 +20669,22 @@ func (r DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse) Status() st } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse) StatusCode() int { +func (r GetOrgsOrgIdWorkloadProfilesProfileQidResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdResourcesDefsDefIdResourcesResponse struct { +type GetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ActiveResourceResponse - JSON500 *HumanitecErrorResponse + JSON200 *[]WorkloadProfileVersionResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdResourcesDefsDefIdResourcesResponse) Status() string { +func (r GetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16502,22 +20692,24 @@ func (r GetOrgsOrgIdResourcesDefsDefIdResourcesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdResourcesDefsDefIdResourcesResponse) StatusCode() int { +func (r GetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdResourcesDriversResponse struct { +type PostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]DriverDefinitionResponse - JSON500 *HumanitecErrorResponse + JSON200 *WorkloadProfileVersionResponse + JSON400 *HumanitecErrorResponse + JSON404 *HumanitecErrorResponse + JSON409 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdResourcesDriversResponse) Status() string { +func (r PostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16525,24 +20717,22 @@ func (r GetOrgsOrgIdResourcesDriversResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdResourcesDriversResponse) StatusCode() int { +func (r PostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdResourcesDriversResponse struct { +type GetLatestWorkloadProfileVersionResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DriverDefinitionResponse - JSON400 *HumanitecErrorResponse - JSON409 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse + JSON200 *WorkloadProfileVersionResponse + JSON404 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdResourcesDriversResponse) Status() string { +func (r GetLatestWorkloadProfileVersionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16550,21 +20740,21 @@ func (r PostOrgsOrgIdResourcesDriversResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdResourcesDriversResponse) StatusCode() int { +func (r GetLatestWorkloadProfileVersionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdResourcesDriversDriverIdResponse struct { +type GetTokensResponse struct { Body []byte HTTPResponse *http.Response - JSON500 *HumanitecErrorResponse + JSON200 *map[string]interface{} } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdResourcesDriversDriverIdResponse) Status() string { +func (r GetTokensResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16572,23 +20762,20 @@ func (r DeleteOrgsOrgIdResourcesDriversDriverIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdResourcesDriversDriverIdResponse) StatusCode() int { +func (r GetTokensResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdResourcesDriversDriverIdResponse struct { +type DeleteTokensTokenIdResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DriverDefinitionResponse - JSON404 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdResourcesDriversDriverIdResponse) Status() string { +func (r DeleteTokensTokenIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16596,24 +20783,21 @@ func (r GetOrgsOrgIdResourcesDriversDriverIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdResourcesDriversDriverIdResponse) StatusCode() int { +func (r DeleteTokensTokenIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PutOrgsOrgIdResourcesDriversDriverIdResponse struct { +type GetUsersMeResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *DriverDefinitionResponse - JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse - JSON500 *HumanitecErrorResponse + JSON200 *map[string]interface{} } // Status returns HTTPResponse.Status -func (r PutOrgsOrgIdResourcesDriversDriverIdResponse) Status() string { +func (r GetUsersMeResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16621,22 +20805,21 @@ func (r PutOrgsOrgIdResourcesDriversDriverIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PutOrgsOrgIdResourcesDriversDriverIdResponse) StatusCode() int { +func (r GetUsersMeResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdResourcesTypesResponse struct { +type GetUsersUserIdTokensResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]ResourceTypeResponse - JSON500 *HumanitecErrorResponse + JSON200 *[]TokenInfoResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdResourcesTypesResponse) Status() string { +func (r GetUsersUserIdTokensResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16644,21 +20827,22 @@ func (r GetOrgsOrgIdResourcesTypesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdResourcesTypesResponse) StatusCode() int { +func (r GetUsersUserIdTokensResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdSecretstoresResponse struct { +type PostUsersUserIdTokensResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]SecretStoreResponse + JSON200 *TokenResponse + JSON400 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r GetOrgsOrgIdSecretstoresResponse) Status() string { +func (r PostUsersUserIdTokensResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16666,24 +20850,20 @@ func (r GetOrgsOrgIdSecretstoresResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdSecretstoresResponse) StatusCode() int { +func (r PostUsersUserIdTokensResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type PostOrgsOrgIdSecretstoresResponse struct { +type DeleteUsersUserIdTokensTokenIdResponse struct { Body []byte HTTPResponse *http.Response - JSON201 *SecretStoreResponse - JSON400 *HumanitecErrorResponse - JSON401 *HumanitecErrorResponse - JSON409 *HumanitecErrorResponse } // Status returns HTTPResponse.Status -func (r PostOrgsOrgIdSecretstoresResponse) Status() string { +func (r DeleteUsersUserIdTokensTokenIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16691,21 +20871,21 @@ func (r PostOrgsOrgIdSecretstoresResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdSecretstoresResponse) StatusCode() int { +func (r DeleteUsersUserIdTokensTokenIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type DeleteOrgsOrgIdSecretstoresStoreIdResponse struct { +type GetUsersUserIdTokensTokenIdResponse struct { Body []byte HTTPResponse *http.Response - JSON404 *HumanitecErrorResponse + JSON200 *TokenInfoResponse } // Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdSecretstoresStoreIdResponse) Status() string { +func (r GetUsersUserIdTokensTokenIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -16713,2306 +20893,2857 @@ func (r DeleteOrgsOrgIdSecretstoresStoreIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdSecretstoresStoreIdResponse) StatusCode() int { +func (r GetUsersUserIdTokensTokenIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } return 0 } -type GetOrgsOrgIdSecretstoresStoreIdResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SecretStoreResponse - JSON404 *HumanitecErrorResponse +// GetCurrentUserWithResponse request returning *GetCurrentUserResponse +func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) { + rsp, err := c.GetCurrentUser(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCurrentUserResponse(rsp) +} + +// PatchCurrentUserWithBodyWithResponse request with arbitrary body returning *PatchCurrentUserResponse +func (c *ClientWithResponses) PatchCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchCurrentUserResponse, error) { + rsp, err := c.PatchCurrentUserWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchCurrentUserResponse(rsp) +} + +func (c *ClientWithResponses) PatchCurrentUserWithResponse(ctx context.Context, body PatchCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchCurrentUserResponse, error) { + rsp, err := c.PatchCurrentUser(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchCurrentUserResponse(rsp) +} + +// GetOrgsWithResponse request returning *GetOrgsResponse +func (c *ClientWithResponses) GetOrgsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrgsResponse, error) { + rsp, err := c.GetOrgs(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsResponse(rsp) +} + +// GetOrgsOrgIdWithResponse request returning *GetOrgsOrgIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResponse, error) { + rsp, err := c.GetOrgsOrgId(ctx, orgId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdResponse(rsp) +} + +// GetOrgsOrgIdAppsWithResponse request returning *GetOrgsOrgIdAppsResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsResponse, error) { + rsp, err := c.GetOrgsOrgIdApps(ctx, orgId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdAppsResponse(rsp) +} + +// PostOrgsOrgIdAppsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsWithBody(ctx, orgId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostOrgsOrgIdAppsResponse(rsp) +} + +func (c *ClientWithResponses) PostOrgsOrgIdAppsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdAppsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsResponse, error) { + rsp, err := c.PostOrgsOrgIdApps(ctx, orgId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostOrgsOrgIdAppsResponse(rsp) +} + +// DeleteOrgsOrgIdAppsAppIdWithResponse request returning *DeleteOrgsOrgIdAppsAppIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdAppsAppId(ctx, orgId, appId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteOrgsOrgIdAppsAppIdResponse(rsp) +} + +// GetOrgsOrgIdAppsAppIdWithResponse request returning *GetOrgsOrgIdAppsAppIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppId(ctx, orgId, appId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdAppsAppIdResponse(rsp) +} + +// ListApprovalRequestsWithResponse request returning *ListApprovalRequestsResponse +func (c *ClientWithResponses) ListApprovalRequestsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListApprovalRequestsParams, reqEditors ...RequestEditorFn) (*ListApprovalRequestsResponse, error) { + rsp, err := c.ListApprovalRequests(ctx, orgId, appId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListApprovalRequestsResponse(rsp) +} + +// GetOrgsOrgIdAppsAppIdDeltasWithResponse request returning *GetOrgsOrgIdAppsAppIdDeltasResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdDeltasResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdDeltas(ctx, orgId, appId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdAppsAppIdDeltasResponse(rsp) +} + +// PostOrgsOrgIdAppsAppIdDeltasWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdDeltasResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdDeltasWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdDeltasWithBody(ctx, orgId, appId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostOrgsOrgIdAppsAppIdDeltasResponse(rsp) +} + +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdDeltas(ctx, orgId, appId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostOrgsOrgIdAppsAppIdDeltasResponse(rsp) +} + +// GetDeltaWithResponse request returning *GetDeltaResponse +func (c *ClientWithResponses) GetDeltaWithResponse(ctx context.Context, orgId string, appId string, deltaId string, reqEditors ...RequestEditorFn) (*GetDeltaResponse, error) { + rsp, err := c.GetDelta(ctx, orgId, appId, deltaId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDeltaResponse(rsp) +} + +// PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse +func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBody(ctx, orgId, appId, deltaId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse(rsp) +} + +func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdAppsAppIdDeltasDeltaId(ctx, orgId, appId, deltaId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse(rsp) +} + +// PutDeltaWithBodyWithResponse request with arbitrary body returning *PutDeltaResponse +func (c *ClientWithResponses) PutDeltaWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDeltaResponse, error) { + rsp, err := c.PutDeltaWithBody(ctx, orgId, appId, deltaId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutDeltaResponse(rsp) +} + +func (c *ClientWithResponses) PutDeltaWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutDeltaJSONRequestBody, reqEditors ...RequestEditorFn) (*PutDeltaResponse, error) { + rsp, err := c.PutDelta(ctx, orgId, appId, deltaId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutDeltaResponse(rsp) +} + +// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBody(ctx, orgId, appId, deltaId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse(rsp) +} + +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived(ctx, orgId, appId, deltaId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse(rsp) +} + +// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBody(ctx, orgId, appId, deltaId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse(rsp) +} + +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId(ctx, orgId, appId, deltaId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse(rsp) +} + +// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBody(ctx, orgId, appId, deltaId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse(rsp) +} + +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName(ctx, orgId, appId, deltaId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse(rsp) +} + +// GetOrgsOrgIdAppsAppIdEnvsWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdEnvs(ctx, orgId, appId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdAppsAppIdEnvsResponse(rsp) +} + +// PostOrgsOrgIdAppsAppIdEnvsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsWithBody(ctx, orgId, appId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostOrgsOrgIdAppsAppIdEnvsResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetOrgsOrgIdSecretstoresStoreIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdEnvsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvs(ctx, orgId, appId, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePostOrgsOrgIdAppsAppIdEnvsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdSecretstoresStoreIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse request returning *DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdAppsAppIdEnvsEnvId(ctx, orgId, appId, envId, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse(rsp) } -type PatchOrgsOrgIdSecretstoresStoreIdResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *SecretStoreResponse - JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse +// GetOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvId(ctx, orgId, appId, envId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResponse(rsp) } -// Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdSecretstoresStoreIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploys(ctx, orgId, appId, envId, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdSecretstoresStoreIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse(rsp) } -type GetOrgsOrgIdUsersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]UserRoleResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploys(ctx, orgId, appId, envId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetOrgsOrgIdUsersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdWithResponse(ctx context.Context, orgId string, appId string, envId string, deployId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployId(ctx, orgId, appId, envId, deployId, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdUsersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsWithResponse(ctx context.Context, orgId string, appId string, envId string, deployId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrors(ctx, orgId, appId, envId, deployId, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse(rsp) } -type PostOrgsOrgIdUsersResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UserProfileResponse - JSON400 *HumanitecErrorResponse +// PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse(rsp) } -// Status returns HTTPResponse.Status -func (r PostOrgsOrgIdUsersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithResponse(ctx context.Context, orgId string, appId string, envId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployId(ctx, orgId, appId, envId, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdUsersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdResources(ctx, orgId, appId, envId, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse(rsp) } -type DeleteOrgsOrgIdUsersUserIdResponse struct { - Body []byte - HTTPResponse *http.Response - JSON400 *HumanitecErrorResponse +// PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdUsersUserIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraph(ctx, orgId, appId, envId, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdUsersUserIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdWithResponse request returning *DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdWithResponse(ctx context.Context, orgId string, appId string, envId string, pType string, resId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResId(ctx, orgId, appId, envId, pType, resId, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse(rsp) } -type GetOrgsOrgIdUsersUserIdResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UserRoleResponse - JSON400 *HumanitecErrorResponse +// GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdRules(ctx, orgId, appId, envId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetOrgsOrgIdUsersUserIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdUsersUserIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdRules(ctx, orgId, appId, envId, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse(rsp) } -type PatchOrgsOrgIdUsersUserIdResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *UserRoleResponse - JSON400 *HumanitecErrorResponse +// DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse request returning *DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId(ctx, orgId, appId, envId, ruleId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp) } -// Status returns HTTPResponse.Status -func (r PatchOrgsOrgIdUsersUserIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId(ctx, orgId, appId, envId, ruleId, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r PatchOrgsOrgIdUsersUserIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithBody(ctx, orgId, appId, envId, ruleId, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp) } -type GetOrgsOrgIdWorkloadProfilesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]WorkloadProfileResponse +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId(ctx, orgId, appId, envId, ruleId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetOrgsOrgIdWorkloadProfilesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntime(ctx, orgId, appId, envId, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdWorkloadProfilesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse(rsp) } -type PostOrgsOrgIdWorkloadProfilesResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkloadProfileResponse - JSON400 *HumanitecErrorResponse - JSON409 *HumanitecErrorResponse +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithResponse(ctx context.Context, orgId string, appId string, envId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePaused(ctx, orgId, appId, envId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse(rsp) } -// Status returns HTTPResponse.Status -func (r PostOrgsOrgIdWorkloadProfilesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse +func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error) { + rsp, err := c.PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdWorkloadProfilesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithResponse(ctx context.Context, orgId string, appId string, envId string, body PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error) { + rsp, err := c.PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicas(ctx, orgId, appId, envId, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse(rsp) } -type DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON404 *HumanitecErrorResponse +// GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsWithResponse(ctx context.Context, orgId string, appId string, envId string, params *GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersions(ctx, orgId, appId, envId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionId(ctx, orgId, appId, envId, valueSetVersionId, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithBody(ctx, orgId, appId, envId, valueSetVersionId, key, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse(rsp) } -type DeleteOrgsOrgIdWorkloadProfilesProfileQidResponse struct { - Body []byte - HTTPResponse *http.Response - JSON404 *HumanitecErrorResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKey(ctx, orgId, appId, envId, valueSetVersionId, key, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteOrgsOrgIdWorkloadProfilesProfileQidResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithBody(ctx, orgId, appId, envId, valueSetVersionId, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteOrgsOrgIdWorkloadProfilesProfileQidResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestore(ctx, orgId, appId, envId, valueSetVersionId, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse(rsp) } -type GetOrgsOrgIdWorkloadProfilesProfileQidResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkloadProfileResponse - JSON404 *HumanitecErrorResponse +// PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithBody(ctx, orgId, appId, envId, valueSetVersionId, key, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetOrgsOrgIdWorkloadProfilesProfileQidResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKey(ctx, orgId, appId, envId, valueSetVersionId, key, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdWorkloadProfilesProfileQidResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse request returning *DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { + rsp, err := c.DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValues(ctx, orgId, appId, envId, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp) } -type GetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]WorkloadProfileVersionResponse - JSON404 *HumanitecErrorResponse +// GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdValues(ctx, orgId, appId, envId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValues(ctx, orgId, appId, envId, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp) } -type PostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkloadProfileVersionResponse - JSON400 *HumanitecErrorResponse - JSON404 *HumanitecErrorResponse - JSON409 *HumanitecErrorResponse +// DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse request returning *DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { + rsp, err := c.DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey(ctx, orgId, appId, envId, key, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp) } -// Status returns HTTPResponse.Status -func (r PostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse +func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { + rsp, err := c.PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBody(ctx, orgId, appId, envId, key, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r PostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, body PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { + rsp, err := c.PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey(ctx, orgId, appId, envId, key, body, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp) } -type GetLatestWorkloadProfileVersionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *WorkloadProfileVersionResponse - JSON404 *HumanitecErrorResponse +// PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBody(ctx, orgId, appId, envId, key, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetLatestWorkloadProfileVersionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey(ctx, orgId, appId, envId, key, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetLatestWorkloadProfileVersionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteOrgsOrgIdAppsAppIdJobsWithResponse request returning *DeleteOrgsOrgIdAppsAppIdJobsResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdJobsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdJobsResponse, error) { + rsp, err := c.DeleteOrgsOrgIdAppsAppIdJobs(ctx, orgId, appId, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteOrgsOrgIdAppsAppIdJobsResponse(rsp) } -type GetTokensResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *map[string]interface{} +// ListPipelinesWithResponse request returning *ListPipelinesResponse +func (c *ClientWithResponses) ListPipelinesWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelinesParams, reqEditors ...RequestEditorFn) (*ListPipelinesResponse, error) { + rsp, err := c.ListPipelines(ctx, orgId, appId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListPipelinesResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetTokensResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CreatePipelineWithBodyWithResponse request with arbitrary body returning *CreatePipelineResponse +func (c *ClientWithResponses) CreatePipelineWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePipelineResponse, error) { + rsp, err := c.CreatePipelineWithBody(ctx, orgId, appId, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreatePipelineResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetTokensResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeletePipelineWithResponse request returning *DeletePipelineResponse +func (c *ClientWithResponses) DeletePipelineWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *DeletePipelineParams, reqEditors ...RequestEditorFn) (*DeletePipelineResponse, error) { + rsp, err := c.DeletePipeline(ctx, orgId, appId, pipelineId, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeletePipelineResponse(rsp) } -type DeleteTokensTokenIdResponse struct { - Body []byte - HTTPResponse *http.Response +// GetPipelineWithResponse request returning *GetPipelineResponse +func (c *ClientWithResponses) GetPipelineWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *GetPipelineParams, reqEditors ...RequestEditorFn) (*GetPipelineResponse, error) { + rsp, err := c.GetPipeline(ctx, orgId, appId, pipelineId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPipelineResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteTokensTokenIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// UpdatePipelineWithBodyWithResponse request with arbitrary body returning *UpdatePipelineResponse +func (c *ClientWithResponses) UpdatePipelineWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *UpdatePipelineParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePipelineResponse, error) { + rsp, err := c.UpdatePipelineWithBody(ctx, orgId, appId, pipelineId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseUpdatePipelineResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteTokensTokenIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListPipelineRunsWithResponse request returning *ListPipelineRunsResponse +func (c *ClientWithResponses) ListPipelineRunsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineRunsParams, reqEditors ...RequestEditorFn) (*ListPipelineRunsResponse, error) { + rsp, err := c.ListPipelineRuns(ctx, orgId, appId, pipelineId, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListPipelineRunsResponse(rsp) } -type GetUsersMeResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *map[string]interface{} +// CreatePipelineRunWithBodyWithResponse request with arbitrary body returning *CreatePipelineRunResponse +func (c *ClientWithResponses) CreatePipelineRunWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *CreatePipelineRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePipelineRunResponse, error) { + rsp, err := c.CreatePipelineRunWithBody(ctx, orgId, appId, pipelineId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreatePipelineRunResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetUsersMeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +func (c *ClientWithResponses) CreatePipelineRunWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *CreatePipelineRunParams, body CreatePipelineRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePipelineRunResponse, error) { + rsp, err := c.CreatePipelineRun(ctx, orgId, appId, pipelineId, params, body, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCreatePipelineRunResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetUsersMeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// DeleteRunWithResponse request returning *DeleteRunResponse +func (c *ClientWithResponses) DeleteRunWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *DeleteRunParams, reqEditors ...RequestEditorFn) (*DeleteRunResponse, error) { + rsp, err := c.DeleteRun(ctx, orgId, appId, pipelineId, runId, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseDeleteRunResponse(rsp) } -type GetUsersUserIdTokensResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *[]TokenInfoResponse +// GetRunWithResponse request returning *GetRunResponse +func (c *ClientWithResponses) GetRunWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, reqEditors ...RequestEditorFn) (*GetRunResponse, error) { + rsp, err := c.GetRun(ctx, orgId, appId, pipelineId, runId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetRunResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetUsersUserIdTokensResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// CancelRunWithResponse request returning *CancelRunResponse +func (c *ClientWithResponses) CancelRunWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *CancelRunParams, reqEditors ...RequestEditorFn) (*CancelRunResponse, error) { + rsp, err := c.CancelRun(ctx, orgId, appId, pipelineId, runId, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseCancelRunResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetUsersUserIdTokensResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ListRunJobsWithResponse request returning *ListRunJobsResponse +func (c *ClientWithResponses) ListRunJobsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *ListRunJobsParams, reqEditors ...RequestEditorFn) (*ListRunJobsResponse, error) { + rsp, err := c.ListRunJobs(ctx, orgId, appId, pipelineId, runId, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseListRunJobsResponse(rsp) } -type PostUsersUserIdTokensResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *TokenResponse - JSON400 *HumanitecErrorResponse +// GetRunJobWithResponse request returning *GetRunJobResponse +func (c *ClientWithResponses) GetRunJobWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, reqEditors ...RequestEditorFn) (*GetRunJobResponse, error) { + rsp, err := c.GetRunJob(ctx, orgId, appId, pipelineId, runId, jobId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetRunJobResponse(rsp) } -// Status returns HTTPResponse.Status -func (r PostUsersUserIdTokensResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// GetApprovalRequestWithResponse request returning *GetApprovalRequestResponse +func (c *ClientWithResponses) GetApprovalRequestWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam, reqEditors ...RequestEditorFn) (*GetApprovalRequestResponse, error) { + rsp, err := c.GetApprovalRequest(ctx, orgId, appId, pipelineId, runId, jobId, approvalId, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseGetApprovalRequestResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r PostUsersUserIdTokensResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// ApproveApprovalRequestWithResponse request returning *ApproveApprovalRequestResponse +func (c *ClientWithResponses) ApproveApprovalRequestWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam, reqEditors ...RequestEditorFn) (*ApproveApprovalRequestResponse, error) { + rsp, err := c.ApproveApprovalRequest(ctx, orgId, appId, pipelineId, runId, jobId, approvalId, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseApproveApprovalRequestResponse(rsp) } -type DeleteUsersUserIdTokensTokenIdResponse struct { - Body []byte - HTTPResponse *http.Response +// DenyApprovalRequestWithResponse request returning *DenyApprovalRequestResponse +func (c *ClientWithResponses) DenyApprovalRequestWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, approvalId ApprovalIdPathParam, reqEditors ...RequestEditorFn) (*DenyApprovalRequestResponse, error) { + rsp, err := c.DenyApprovalRequest(ctx, orgId, appId, pipelineId, runId, jobId, approvalId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDenyApprovalRequestResponse(rsp) } -// Status returns HTTPResponse.Status -func (r DeleteUsersUserIdTokensTokenIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListRunJobStepLogsWithResponse request returning *ListRunJobStepLogsResponse +func (c *ClientWithResponses) ListRunJobStepLogsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, jobId JobIdPathParam, stepIndex StepIndexPathParam, params *ListRunJobStepLogsParams, reqEditors ...RequestEditorFn) (*ListRunJobStepLogsResponse, error) { + rsp, err := c.ListRunJobStepLogs(ctx, orgId, appId, pipelineId, runId, jobId, stepIndex, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListRunJobStepLogsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteUsersUserIdTokensTokenIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// RestartRunWithResponse request returning *RestartRunResponse +func (c *ClientWithResponses) RestartRunWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, runId RunIdPathParam, params *RestartRunParams, reqEditors ...RequestEditorFn) (*RestartRunResponse, error) { + rsp, err := c.RestartRun(ctx, orgId, appId, pipelineId, runId, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseRestartRunResponse(rsp) } -type GetUsersUserIdTokensTokenIdResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *TokenInfoResponse +// GetPipelineSchemaWithResponse request returning *GetPipelineSchemaResponse +func (c *ClientWithResponses) GetPipelineSchemaWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *GetPipelineSchemaParams, reqEditors ...RequestEditorFn) (*GetPipelineSchemaResponse, error) { + rsp, err := c.GetPipelineSchema(ctx, orgId, appId, pipelineId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPipelineSchemaResponse(rsp) } -// Status returns HTTPResponse.Status -func (r GetUsersUserIdTokensTokenIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status +// ListPipelineVersionsWithResponse request returning *ListPipelineVersionsResponse +func (c *ClientWithResponses) ListPipelineVersionsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineVersionsParams, reqEditors ...RequestEditorFn) (*ListPipelineVersionsResponse, error) { + rsp, err := c.ListPipelineVersions(ctx, orgId, appId, pipelineId, params, reqEditors...) + if err != nil { + return nil, err } - return http.StatusText(0) + return ParseListPipelineVersionsResponse(rsp) } -// StatusCode returns HTTPResponse.StatusCode -func (r GetUsersUserIdTokensTokenIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode +// GetOrgsOrgIdAppsAppIdRuntimeWithResponse request returning *GetOrgsOrgIdAppsAppIdRuntimeResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdRuntimeWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdRuntimeParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdRuntimeResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdRuntime(ctx, orgId, appId, params, reqEditors...) + if err != nil { + return nil, err } - return 0 + return ParseGetOrgsOrgIdAppsAppIdRuntimeResponse(rsp) } -// GetCurrentUserWithResponse request returning *GetCurrentUserResponse -func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) { - rsp, err := c.GetCurrentUser(ctx, reqEditors...) +// GetSetsWithResponse request returning *GetSetsResponse +func (c *ClientWithResponses) GetSetsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetSetsResponse, error) { + rsp, err := c.GetSets(ctx, orgId, appId, reqEditors...) if err != nil { return nil, err } - return ParseGetCurrentUserResponse(rsp) + return ParseGetSetsResponse(rsp) } -// PatchCurrentUserWithBodyWithResponse request with arbitrary body returning *PatchCurrentUserResponse -func (c *ClientWithResponses) PatchCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchCurrentUserResponse, error) { - rsp, err := c.PatchCurrentUserWithBody(ctx, contentType, body, reqEditors...) +// GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse request returning *GetOrgsOrgIdAppsAppIdSetsSetIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdSetsSetId(ctx, orgId, appId, setId, params, reqEditors...) if err != nil { return nil, err } - return ParsePatchCurrentUserResponse(rsp) + return ParseGetOrgsOrgIdAppsAppIdSetsSetIdResponse(rsp) } -func (c *ClientWithResponses) PatchCurrentUserWithResponse(ctx context.Context, body PatchCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchCurrentUserResponse, error) { - rsp, err := c.PatchCurrentUser(ctx, body, reqEditors...) +// PostOrgsOrgIdAppsAppIdSetsSetIdWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdSetsSetIdResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdSetsSetIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, setId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdSetsSetIdResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdSetsSetIdWithBody(ctx, orgId, appId, setId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePatchCurrentUserResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdSetsSetIdResponse(rsp) } -// GetOrgsWithResponse request returning *GetOrgsResponse -func (c *ClientWithResponses) GetOrgsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrgsResponse, error) { - rsp, err := c.GetOrgs(ctx, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdSetsSetIdResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdSetsSetId(ctx, orgId, appId, setId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdSetsSetIdResponse(rsp) } -// GetOrgsOrgIdWithResponse request returning *GetOrgsOrgIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResponse, error) { - rsp, err := c.GetOrgsOrgId(ctx, orgId, reqEditors...) +// GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdWithResponse request returning *GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId(ctx, orgId, appId, setId, sourceSetId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdResponse(rsp) + return ParseGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse(rsp) } -// GetOrgsOrgIdAppsWithResponse request returning *GetOrgsOrgIdAppsResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsResponse, error) { - rsp, err := c.GetOrgsOrgIdApps(ctx, orgId, reqEditors...) +// GetOrgsOrgIdAppsAppIdUsersWithResponse request returning *GetOrgsOrgIdAppsAppIdUsersResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdUsersWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdUsersResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdUsers(ctx, orgId, appId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsResponse(rsp) + return ParseGetOrgsOrgIdAppsAppIdUsersResponse(rsp) } -// PostOrgsOrgIdAppsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsWithBody(ctx, orgId, contentType, body, reqEditors...) +// PostOrgsOrgIdAppsAppIdUsersWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdUsersResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdUsersWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdUsersResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdUsersWithBody(ctx, orgId, appId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdUsersResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdAppsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsResponse, error) { - rsp, err := c.PostOrgsOrgIdApps(ctx, orgId, body, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdUsersWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdUsersResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdUsers(ctx, orgId, appId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdUsersResponse(rsp) } -// DeleteOrgsOrgIdAppsAppIdWithResponse request returning *DeleteOrgsOrgIdAppsAppIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdAppsAppId(ctx, orgId, appId, reqEditors...) +// DeleteOrgsOrgIdAppsAppIdUsersUserIdWithResponse request returning *DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdUsersUserIdWithResponse(ctx context.Context, orgId string, appId string, userId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdAppsAppIdUsersUserId(ctx, orgId, appId, userId, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdAppsAppIdResponse(rsp) + return ParseDeleteOrgsOrgIdAppsAppIdUsersUserIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdWithResponse request returning *GetOrgsOrgIdAppsAppIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppId(ctx, orgId, appId, reqEditors...) +// GetOrgsOrgIdAppsAppIdUsersUserIdWithResponse request returning *GetOrgsOrgIdAppsAppIdUsersUserIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdUsersUserIdWithResponse(ctx context.Context, orgId string, appId string, userId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdUsersUserIdResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdUsersUserId(ctx, orgId, appId, userId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdResponse(rsp) + return ParseGetOrgsOrgIdAppsAppIdUsersUserIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdDeltasWithResponse request returning *GetOrgsOrgIdAppsAppIdDeltasResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdDeltasResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdDeltas(ctx, orgId, appId, params, reqEditors...) +// PatchOrgsOrgIdAppsAppIdUsersUserIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAppsAppIdUsersUserIdResponse +func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdUsersUserIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdUsersUserIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdAppsAppIdUsersUserIdWithBody(ctx, orgId, appId, userId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdDeltasResponse(rsp) + return ParsePatchOrgsOrgIdAppsAppIdUsersUserIdResponse(rsp) } -// PostOrgsOrgIdAppsAppIdDeltasWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdDeltasResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdDeltasWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdDeltasWithBody(ctx, orgId, appId, contentType, body, reqEditors...) +func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdUsersUserIdWithResponse(ctx context.Context, orgId string, appId string, userId string, body PatchOrgsOrgIdAppsAppIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdUsersUserIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdAppsAppIdUsersUserId(ctx, orgId, appId, userId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdDeltasResponse(rsp) + return ParsePatchOrgsOrgIdAppsAppIdUsersUserIdResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdDeltas(ctx, orgId, appId, body, reqEditors...) +// GetOrgsOrgIdAppsAppIdValueSetVersionsWithResponse request returning *GetOrgsOrgIdAppsAppIdValueSetVersionsResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdValueSetVersionsWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdValueSetVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdValueSetVersionsResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdValueSetVersions(ctx, orgId, appId, params, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdDeltasResponse(rsp) + return ParseGetOrgsOrgIdAppsAppIdValueSetVersionsResponse(rsp) } -// GetDeltaWithResponse request returning *GetDeltaResponse -func (c *ClientWithResponses) GetDeltaWithResponse(ctx context.Context, orgId string, appId string, deltaId string, reqEditors ...RequestEditorFn) (*GetDeltaResponse, error) { - rsp, err := c.GetDelta(ctx, orgId, appId, deltaId, reqEditors...) +// GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdWithResponse request returning *GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionId(ctx, orgId, appId, valueSetVersionId, reqEditors...) if err != nil { return nil, err } - return ParseGetDeltaResponse(rsp) + return ParseGetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse(rsp) } -// PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse -func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBody(ctx, orgId, appId, deltaId, contentType, body, reqEditors...) +// PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithBody(ctx, orgId, appId, valueSetVersionId, key, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse(rsp) } -func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdAppsAppIdDeltasDeltaId(ctx, orgId, appId, deltaId, body, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKey(ctx, orgId, appId, valueSetVersionId, key, body, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse(rsp) } -// PutDeltaWithBodyWithResponse request with arbitrary body returning *PutDeltaResponse -func (c *ClientWithResponses) PutDeltaWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDeltaResponse, error) { - rsp, err := c.PutDeltaWithBody(ctx, orgId, appId, deltaId, contentType, body, reqEditors...) +// PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithBodyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithBody(ctx, orgId, appId, valueSetVersionId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePutDeltaResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse(rsp) } -func (c *ClientWithResponses) PutDeltaWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutDeltaJSONRequestBody, reqEditors ...RequestEditorFn) (*PutDeltaResponse, error) { - rsp, err := c.PutDelta(ctx, orgId, appId, deltaId, body, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestore(ctx, orgId, appId, valueSetVersionId, body, reqEditors...) if err != nil { return nil, err } - return ParsePutDeltaResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse(rsp) } -// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBody(ctx, orgId, appId, deltaId, contentType, body, reqEditors...) +// PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithBody(ctx, orgId, appId, valueSetVersionId, key, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse(rsp) } -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived(ctx, orgId, appId, deltaId, body, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKey(ctx, orgId, appId, valueSetVersionId, key, body, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse(rsp) } -// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBody(ctx, orgId, appId, deltaId, contentType, body, reqEditors...) +// DeleteOrgsOrgIdAppsAppIdValuesWithResponse request returning *DeleteOrgsOrgIdAppsAppIdValuesResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdValuesWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdValuesResponse, error) { + rsp, err := c.DeleteOrgsOrgIdAppsAppIdValues(ctx, orgId, appId, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse(rsp) + return ParseDeleteOrgsOrgIdAppsAppIdValuesResponse(rsp) } -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId(ctx, orgId, appId, deltaId, body, reqEditors...) +// GetOrgsOrgIdAppsAppIdValuesWithResponse request returning *GetOrgsOrgIdAppsAppIdValuesResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdValuesWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdValuesResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdValues(ctx, orgId, appId, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse(rsp) + return ParseGetOrgsOrgIdAppsAppIdValuesResponse(rsp) } -// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBody(ctx, orgId, appId, deltaId, contentType, body, reqEditors...) +// PostOrgsOrgIdAppsAppIdValuesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdValuesResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValuesWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValuesResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdValuesWithBody(ctx, orgId, appId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdValuesResponse(rsp) } -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName(ctx, orgId, appId, deltaId, body, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValuesWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValuesResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdValues(ctx, orgId, appId, body, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdValuesResponse(rsp) } -// GetOrgsOrgIdAppsAppIdEnvsWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdEnvs(ctx, orgId, appId, reqEditors...) +// DeleteOrgsOrgIdAppsAppIdValuesKeyWithResponse request returning *DeleteOrgsOrgIdAppsAppIdValuesKeyResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, key string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdValuesKeyResponse, error) { + rsp, err := c.DeleteOrgsOrgIdAppsAppIdValuesKey(ctx, orgId, appId, key, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdEnvsResponse(rsp) + return ParseDeleteOrgsOrgIdAppsAppIdValuesKeyResponse(rsp) } -// PostOrgsOrgIdAppsAppIdEnvsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsWithBody(ctx, orgId, appId, contentType, body, reqEditors...) +// PatchOrgsOrgIdAppsAppIdValuesKeyWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAppsAppIdValuesKeyResponse +func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdValuesKeyResponse, error) { + rsp, err := c.PatchOrgsOrgIdAppsAppIdValuesKeyWithBody(ctx, orgId, appId, key, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsResponse(rsp) + return ParsePatchOrgsOrgIdAppsAppIdValuesKeyResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdEnvsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvs(ctx, orgId, appId, body, reqEditors...) +func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, key string, body PatchOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdValuesKeyResponse, error) { + rsp, err := c.PatchOrgsOrgIdAppsAppIdValuesKey(ctx, orgId, appId, key, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsResponse(rsp) + return ParsePatchOrgsOrgIdAppsAppIdValuesKeyResponse(rsp) } -// DeleteOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse request returning *DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdAppsAppIdEnvsEnvId(ctx, orgId, appId, envId, reqEditors...) +// PutOrgsOrgIdAppsAppIdValuesKeyWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdValuesKeyResponse +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdValuesKeyResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdValuesKeyWithBody(ctx, orgId, appId, key, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse(rsp) + return ParsePutOrgsOrgIdAppsAppIdValuesKeyResponse(rsp) } -// GetOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvId(ctx, orgId, appId, envId, reqEditors...) +func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, key string, body PutOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdValuesKeyResponse, error) { + rsp, err := c.PutOrgsOrgIdAppsAppIdValuesKey(ctx, orgId, appId, key, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResponse(rsp) + return ParsePutOrgsOrgIdAppsAppIdValuesKeyResponse(rsp) } -// GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploys(ctx, orgId, appId, envId, reqEditors...) +// GetOrgsOrgIdAppsAppIdWebhooksWithResponse request returning *GetOrgsOrgIdAppsAppIdWebhooksResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdWebhooksWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdWebhooksResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdWebhooks(ctx, orgId, appId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse(rsp) + return ParseGetOrgsOrgIdAppsAppIdWebhooksResponse(rsp) } -// PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) +// PostOrgsOrgIdAppsAppIdWebhooksWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdWebhooksResponse +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdWebhooksWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdWebhooksResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdWebhooksWithBody(ctx, orgId, appId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdWebhooksResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploys(ctx, orgId, appId, envId, body, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdWebhooksWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdWebhooksResponse, error) { + rsp, err := c.PostOrgsOrgIdAppsAppIdWebhooks(ctx, orgId, appId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse(rsp) + return ParsePostOrgsOrgIdAppsAppIdWebhooksResponse(rsp) } -// GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdWithResponse(ctx context.Context, orgId string, appId string, envId string, deployId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployId(ctx, orgId, appId, envId, deployId, reqEditors...) +// DeleteOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse request returning *DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse(ctx context.Context, orgId string, appId string, jobId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdAppsAppIdWebhooksJobId(ctx, orgId, appId, jobId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse(rsp) + return ParseDeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsWithResponse(ctx context.Context, orgId string, appId string, envId string, deployId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrors(ctx, orgId, appId, envId, deployId, reqEditors...) +// GetOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse request returning *GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse(ctx context.Context, orgId string, appId string, jobId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) { + rsp, err := c.GetOrgsOrgIdAppsAppIdWebhooksJobId(ctx, orgId, appId, jobId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse(rsp) + return ParseGetOrgsOrgIdAppsAppIdWebhooksJobIdResponse(rsp) } -// PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) +// PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse +func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, jobId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithBody(ctx, orgId, appId, jobId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse(rsp) + return ParsePatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse(rsp) } -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithResponse(ctx context.Context, orgId string, appId string, envId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployId(ctx, orgId, appId, envId, body, reqEditors...) +func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse(ctx context.Context, orgId string, appId string, jobId string, body PatchOrgsOrgIdAppsAppIdWebhooksJobIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdAppsAppIdWebhooksJobId(ctx, orgId, appId, jobId, body, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse(rsp) + return ParsePatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdResources(ctx, orgId, appId, envId, reqEditors...) +// GetOrgsOrgIdArtefactVersionsWithResponse request returning *GetOrgsOrgIdArtefactVersionsResponse +func (c *ClientWithResponses) GetOrgsOrgIdArtefactVersionsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdArtefactVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactVersionsResponse, error) { + rsp, err := c.GetOrgsOrgIdArtefactVersions(ctx, orgId, params, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse(rsp) + return ParseGetOrgsOrgIdArtefactVersionsResponse(rsp) } -// PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) +// PostOrgsOrgIdArtefactVersionsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdArtefactVersionsResponse +func (c *ClientWithResponses) PostOrgsOrgIdArtefactVersionsWithBodyWithResponse(ctx context.Context, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdArtefactVersionsResponse, error) { + rsp, err := c.PostOrgsOrgIdArtefactVersionsWithBody(ctx, orgId, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse(rsp) + return ParsePostOrgsOrgIdArtefactVersionsResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraph(ctx, orgId, appId, envId, body, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdArtefactVersionsWithResponse(ctx context.Context, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, body PostOrgsOrgIdArtefactVersionsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdArtefactVersionsResponse, error) { + rsp, err := c.PostOrgsOrgIdArtefactVersions(ctx, orgId, params, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse(rsp) + return ParsePostOrgsOrgIdArtefactVersionsResponse(rsp) } -// DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdWithResponse request returning *DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdWithResponse(ctx context.Context, orgId string, appId string, envId string, pType string, resId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResId(ctx, orgId, appId, envId, pType, resId, reqEditors...) +// GetOrgsOrgIdArtefactVersionsArtefactVersionIdWithResponse request returning *GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdArtefactVersionsArtefactVersionIdWithResponse(ctx context.Context, orgId string, artefactVersionId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse, error) { + rsp, err := c.GetOrgsOrgIdArtefactVersionsArtefactVersionId(ctx, orgId, artefactVersionId, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse(rsp) + return ParseGetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdRules(ctx, orgId, appId, envId, reqEditors...) +// GetOrgsOrgIdArtefactsWithResponse request returning *GetOrgsOrgIdArtefactsResponse +func (c *ClientWithResponses) GetOrgsOrgIdArtefactsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdArtefactsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactsResponse, error) { + rsp, err := c.GetOrgsOrgIdArtefacts(ctx, orgId, params, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse(rsp) + return ParseGetOrgsOrgIdArtefactsResponse(rsp) } -// PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) +// DeleteOrgsOrgIdArtefactsArtefactIdWithResponse request returning *DeleteOrgsOrgIdArtefactsArtefactIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdArtefactsArtefactIdWithResponse(ctx context.Context, orgId string, artefactId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdArtefactsArtefactIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdArtefactsArtefactId(ctx, orgId, artefactId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse(rsp) + return ParseDeleteOrgsOrgIdArtefactsArtefactIdResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdRules(ctx, orgId, appId, envId, body, reqEditors...) +// GetOrgsOrgIdArtefactsArtefactIdVersionsWithResponse request returning *GetOrgsOrgIdArtefactsArtefactIdVersionsResponse +func (c *ClientWithResponses) GetOrgsOrgIdArtefactsArtefactIdVersionsWithResponse(ctx context.Context, orgId string, artefactId string, params *GetOrgsOrgIdArtefactsArtefactIdVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactsArtefactIdVersionsResponse, error) { + rsp, err := c.GetOrgsOrgIdArtefactsArtefactIdVersions(ctx, orgId, artefactId, params, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse(rsp) + return ParseGetOrgsOrgIdArtefactsArtefactIdVersionsResponse(rsp) } -// DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse request returning *DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId(ctx, orgId, appId, envId, ruleId, reqEditors...) +// PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse +func (c *ClientWithResponses) PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithBodyWithResponse(ctx context.Context, orgId string, artefactId string, versionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithBody(ctx, orgId, artefactId, versionId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp) + return ParsePatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId(ctx, orgId, appId, envId, ruleId, reqEditors...) +func (c *ClientWithResponses) PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithResponse(ctx context.Context, orgId string, artefactId string, versionId string, body PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionId(ctx, orgId, artefactId, versionId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp) + return ParsePatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse(rsp) } -// PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithBody(ctx, orgId, appId, envId, ruleId, contentType, body, reqEditors...) +// GetOrgsOrgIdEnvTypesWithResponse request returning *GetOrgsOrgIdEnvTypesResponse +func (c *ClientWithResponses) GetOrgsOrgIdEnvTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesResponse, error) { + rsp, err := c.GetOrgsOrgIdEnvTypes(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp) + return ParseGetOrgsOrgIdEnvTypesResponse(rsp) } -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId(ctx, orgId, appId, envId, ruleId, body, reqEditors...) +// PostOrgsOrgIdEnvTypesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdEnvTypesResponse +func (c *ClientWithResponses) PostOrgsOrgIdEnvTypesWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesResponse, error) { + rsp, err := c.PostOrgsOrgIdEnvTypesWithBody(ctx, orgId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp) + return ParsePostOrgsOrgIdEnvTypesResponse(rsp) } -// GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntime(ctx, orgId, appId, envId, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdEnvTypesWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdEnvTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesResponse, error) { + rsp, err := c.PostOrgsOrgIdEnvTypes(ctx, orgId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse(rsp) + return ParsePostOrgsOrgIdEnvTypesResponse(rsp) } -// PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) +// DeleteOrgsOrgIdEnvTypesEnvTypeIdWithResponse request returning *DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdEnvTypesEnvTypeIdWithResponse(ctx context.Context, orgId string, envTypeId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdEnvTypesEnvTypeId(ctx, orgId, envTypeId, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse(rsp) + return ParseDeleteOrgsOrgIdEnvTypesEnvTypeIdResponse(rsp) } -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithResponse(ctx context.Context, orgId string, appId string, envId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePaused(ctx, orgId, appId, envId, body, reqEditors...) +// GetOrgsOrgIdEnvTypesEnvTypeIdWithResponse request returning *GetOrgsOrgIdEnvTypesEnvTypeIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdEnvTypesEnvTypeIdWithResponse(ctx context.Context, orgId string, envTypeId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesEnvTypeIdResponse, error) { + rsp, err := c.GetOrgsOrgIdEnvTypesEnvTypeId(ctx, orgId, envTypeId, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse(rsp) + return ParseGetOrgsOrgIdEnvTypesEnvTypeIdResponse(rsp) } -// PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse -func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error) { - rsp, err := c.PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) +// PostOrgsOrgIdEnvTypesEnvTypeUsersWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdEnvTypesEnvTypeUsersResponse +func (c *ClientWithResponses) PostOrgsOrgIdEnvTypesEnvTypeUsersWithBodyWithResponse(ctx context.Context, orgId string, envType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesEnvTypeUsersResponse, error) { + rsp, err := c.PostOrgsOrgIdEnvTypesEnvTypeUsersWithBody(ctx, orgId, envType, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse(rsp) + return ParsePostOrgsOrgIdEnvTypesEnvTypeUsersResponse(rsp) } -func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithResponse(ctx context.Context, orgId string, appId string, envId string, body PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error) { - rsp, err := c.PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicas(ctx, orgId, appId, envId, body, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdEnvTypesEnvTypeUsersWithResponse(ctx context.Context, orgId string, envType string, body PostOrgsOrgIdEnvTypesEnvTypeUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesEnvTypeUsersResponse, error) { + rsp, err := c.PostOrgsOrgIdEnvTypesEnvTypeUsers(ctx, orgId, envType, body, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse(rsp) + return ParsePostOrgsOrgIdEnvTypesEnvTypeUsersResponse(rsp) } -// GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsWithResponse(ctx context.Context, orgId string, appId string, envId string, params *GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersions(ctx, orgId, appId, envId, params, reqEditors...) +// DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse request returning *DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse(ctx context.Context, orgId string, envType string, userId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx, orgId, envType, userId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse(rsp) + return ParseDeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionId(ctx, orgId, appId, envId, valueSetVersionId, reqEditors...) +// GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse request returning *GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse(ctx context.Context, orgId string, envType string, userId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) { + rsp, err := c.GetOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx, orgId, envType, userId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse(rsp) + return ParseGetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse(rsp) } -// PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithBody(ctx, orgId, appId, envId, valueSetVersionId, key, contentType, body, reqEditors...) +// PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse +func (c *ClientWithResponses) PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithBodyWithResponse(ctx context.Context, orgId string, envType string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithBody(ctx, orgId, envType, userId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse(rsp) + return ParsePatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKey(ctx, orgId, appId, envId, valueSetVersionId, key, body, reqEditors...) +func (c *ClientWithResponses) PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse(ctx context.Context, orgId string, envType string, userId string, body PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx, orgId, envType, userId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse(rsp) + return ParsePatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse(rsp) } -// PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithBody(ctx, orgId, appId, envId, valueSetVersionId, contentType, body, reqEditors...) +// GetOrgsOrgIdEventsWithResponse request returning *GetOrgsOrgIdEventsResponse +func (c *ClientWithResponses) GetOrgsOrgIdEventsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEventsResponse, error) { + rsp, err := c.GetOrgsOrgIdEvents(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse(rsp) + return ParseGetOrgsOrgIdEventsResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestore(ctx, orgId, appId, envId, valueSetVersionId, body, reqEditors...) +// GetOrgsOrgIdImagesWithResponse request returning *GetOrgsOrgIdImagesResponse +func (c *ClientWithResponses) GetOrgsOrgIdImagesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdImagesResponse, error) { + rsp, err := c.GetOrgsOrgIdImages(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse(rsp) + return ParseGetOrgsOrgIdImagesResponse(rsp) } -// PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithBody(ctx, orgId, appId, envId, valueSetVersionId, key, contentType, body, reqEditors...) +// GetOrgsOrgIdImagesImageIdWithResponse request returning *GetOrgsOrgIdImagesImageIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdImagesImageIdWithResponse(ctx context.Context, orgId string, imageId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdImagesImageIdResponse, error) { + rsp, err := c.GetOrgsOrgIdImagesImageId(ctx, orgId, imageId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse(rsp) + return ParseGetOrgsOrgIdImagesImageIdResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKey(ctx, orgId, appId, envId, valueSetVersionId, key, body, reqEditors...) +// GetOrgsOrgIdImagesImageIdBuildsWithResponse request returning *GetOrgsOrgIdImagesImageIdBuildsResponse +func (c *ClientWithResponses) GetOrgsOrgIdImagesImageIdBuildsWithResponse(ctx context.Context, orgId string, imageId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdImagesImageIdBuildsResponse, error) { + rsp, err := c.GetOrgsOrgIdImagesImageIdBuilds(ctx, orgId, imageId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse(rsp) + return ParseGetOrgsOrgIdImagesImageIdBuildsResponse(rsp) } -// DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse request returning *DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { - rsp, err := c.DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValues(ctx, orgId, appId, envId, reqEditors...) +// PostOrgsOrgIdImagesImageIdBuildsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdImagesImageIdBuildsResponse +func (c *ClientWithResponses) PostOrgsOrgIdImagesImageIdBuildsWithBodyWithResponse(ctx context.Context, orgId string, imageId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdImagesImageIdBuildsResponse, error) { + rsp, err := c.PostOrgsOrgIdImagesImageIdBuildsWithBody(ctx, orgId, imageId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp) + return ParsePostOrgsOrgIdImagesImageIdBuildsResponse(rsp) } -// GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdEnvsEnvIdValues(ctx, orgId, appId, envId, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdImagesImageIdBuildsWithResponse(ctx context.Context, orgId string, imageId string, body PostOrgsOrgIdImagesImageIdBuildsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdImagesImageIdBuildsResponse, error) { + rsp, err := c.PostOrgsOrgIdImagesImageIdBuilds(ctx, orgId, imageId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp) + return ParsePostOrgsOrgIdImagesImageIdBuildsResponse(rsp) } -// PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...) +// GetOrgsOrgIdInvitationsWithResponse request returning *GetOrgsOrgIdInvitationsResponse +func (c *ClientWithResponses) GetOrgsOrgIdInvitationsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdInvitationsResponse, error) { + rsp, err := c.GetOrgsOrgIdInvitations(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp) + return ParseGetOrgsOrgIdInvitationsResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse(ctx context.Context, orgId string, appId string, envId string, body PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdEnvsEnvIdValues(ctx, orgId, appId, envId, body, reqEditors...) +// PostOrgsOrgIdInvitationsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdInvitationsResponse +func (c *ClientWithResponses) PostOrgsOrgIdInvitationsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdInvitationsResponse, error) { + rsp, err := c.PostOrgsOrgIdInvitationsWithBody(ctx, orgId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp) + return ParsePostOrgsOrgIdInvitationsResponse(rsp) } -// DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse request returning *DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { - rsp, err := c.DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey(ctx, orgId, appId, envId, key, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdInvitationsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdInvitationsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdInvitationsResponse, error) { + rsp, err := c.PostOrgsOrgIdInvitations(ctx, orgId, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp) + return ParsePostOrgsOrgIdInvitationsResponse(rsp) } -// PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse -func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { - rsp, err := c.PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBody(ctx, orgId, appId, envId, key, contentType, body, reqEditors...) +// ListPipelineRunsByOrgWithResponse request returning *ListPipelineRunsByOrgResponse +func (c *ClientWithResponses) ListPipelineRunsByOrgWithResponse(ctx context.Context, orgId OrgIdPathParam, params *ListPipelineRunsByOrgParams, reqEditors ...RequestEditorFn) (*ListPipelineRunsByOrgResponse, error) { + rsp, err := c.ListPipelineRunsByOrg(ctx, orgId, params, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp) + return ParseListPipelineRunsByOrgResponse(rsp) } -func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, body PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { - rsp, err := c.PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey(ctx, orgId, appId, envId, key, body, reqEditors...) +// GetLatestPipelineSchemaWithResponse request returning *GetLatestPipelineSchemaResponse +func (c *ClientWithResponses) GetLatestPipelineSchemaWithResponse(ctx context.Context, orgId OrgIdPathParam, reqEditors ...RequestEditorFn) (*GetLatestPipelineSchemaResponse, error) { + rsp, err := c.GetLatestPipelineSchema(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp) + return ParseGetLatestPipelineSchemaResponse(rsp) } -// PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithBody(ctx, orgId, appId, envId, key, contentType, body, reqEditors...) +// ListPipelinesByOrgWithResponse request returning *ListPipelinesByOrgResponse +func (c *ClientWithResponses) ListPipelinesByOrgWithResponse(ctx context.Context, orgId OrgIdPathParam, params *ListPipelinesByOrgParams, reqEditors ...RequestEditorFn) (*ListPipelinesByOrgResponse, error) { + rsp, err := c.ListPipelinesByOrg(ctx, orgId, params, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp) + return ParseListPipelinesByOrgResponse(rsp) } -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, envId string, key string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey(ctx, orgId, appId, envId, key, body, reqEditors...) +// GetOrgsOrgIdRegistriesWithResponse request returning *GetOrgsOrgIdRegistriesResponse +func (c *ClientWithResponses) GetOrgsOrgIdRegistriesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesResponse, error) { + rsp, err := c.GetOrgsOrgIdRegistries(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp) + return ParseGetOrgsOrgIdRegistriesResponse(rsp) } -// DeleteOrgsOrgIdAppsAppIdJobsWithResponse request returning *DeleteOrgsOrgIdAppsAppIdJobsResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdJobsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdJobsResponse, error) { - rsp, err := c.DeleteOrgsOrgIdAppsAppIdJobs(ctx, orgId, appId, reqEditors...) +// PostOrgsOrgIdRegistriesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdRegistriesResponse +func (c *ClientWithResponses) PostOrgsOrgIdRegistriesWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdRegistriesResponse, error) { + rsp, err := c.PostOrgsOrgIdRegistriesWithBody(ctx, orgId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdAppsAppIdJobsResponse(rsp) + return ParsePostOrgsOrgIdRegistriesResponse(rsp) } -// GetOrgsOrgIdAppsAppIdRuntimeWithResponse request returning *GetOrgsOrgIdAppsAppIdRuntimeResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdRuntimeWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdRuntimeParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdRuntimeResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdRuntime(ctx, orgId, appId, params, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdRegistriesWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdRegistriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdRegistriesResponse, error) { + rsp, err := c.PostOrgsOrgIdRegistries(ctx, orgId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdRuntimeResponse(rsp) + return ParsePostOrgsOrgIdRegistriesResponse(rsp) } -// GetSetsWithResponse request returning *GetSetsResponse -func (c *ClientWithResponses) GetSetsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetSetsResponse, error) { - rsp, err := c.GetSets(ctx, orgId, appId, reqEditors...) +// DeleteOrgsOrgIdRegistriesRegIdWithResponse request returning *DeleteOrgsOrgIdRegistriesRegIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdRegistriesRegIdWithResponse(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdRegistriesRegIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdRegistriesRegId(ctx, orgId, regId, reqEditors...) if err != nil { return nil, err } - return ParseGetSetsResponse(rsp) + return ParseDeleteOrgsOrgIdRegistriesRegIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse request returning *GetOrgsOrgIdAppsAppIdSetsSetIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdSetsSetId(ctx, orgId, appId, setId, params, reqEditors...) +// GetOrgsOrgIdRegistriesRegIdWithResponse request returning *GetOrgsOrgIdRegistriesRegIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdRegistriesRegIdWithResponse(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesRegIdResponse, error) { + rsp, err := c.GetOrgsOrgIdRegistriesRegId(ctx, orgId, regId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdSetsSetIdResponse(rsp) + return ParseGetOrgsOrgIdRegistriesRegIdResponse(rsp) } -// PostOrgsOrgIdAppsAppIdSetsSetIdWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdSetsSetIdResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdSetsSetIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, setId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdSetsSetIdResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdSetsSetIdWithBody(ctx, orgId, appId, setId, contentType, body, reqEditors...) +// PatchOrgsOrgIdRegistriesRegIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdRegistriesRegIdResponse +func (c *ClientWithResponses) PatchOrgsOrgIdRegistriesRegIdWithBodyWithResponse(ctx context.Context, orgId string, regId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdRegistriesRegIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdRegistriesRegIdWithBody(ctx, orgId, regId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdSetsSetIdResponse(rsp) + return ParsePatchOrgsOrgIdRegistriesRegIdResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdSetsSetIdResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdSetsSetId(ctx, orgId, appId, setId, body, reqEditors...) +func (c *ClientWithResponses) PatchOrgsOrgIdRegistriesRegIdWithResponse(ctx context.Context, orgId string, regId string, body PatchOrgsOrgIdRegistriesRegIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdRegistriesRegIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdRegistriesRegId(ctx, orgId, regId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdSetsSetIdResponse(rsp) + return ParsePatchOrgsOrgIdRegistriesRegIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdWithResponse request returning *GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId(ctx, orgId, appId, setId, sourceSetId, reqEditors...) +// GetOrgsOrgIdRegistriesRegIdCredsWithResponse request returning *GetOrgsOrgIdRegistriesRegIdCredsResponse +func (c *ClientWithResponses) GetOrgsOrgIdRegistriesRegIdCredsWithResponse(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesRegIdCredsResponse, error) { + rsp, err := c.GetOrgsOrgIdRegistriesRegIdCreds(ctx, orgId, regId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse(rsp) + return ParseGetOrgsOrgIdRegistriesRegIdCredsResponse(rsp) } -// GetOrgsOrgIdAppsAppIdUsersWithResponse request returning *GetOrgsOrgIdAppsAppIdUsersResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdUsersWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdUsersResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdUsers(ctx, orgId, appId, reqEditors...) +// GetOrgsOrgIdResourcesAccountTypesWithResponse request returning *GetOrgsOrgIdResourcesAccountTypesResponse +func (c *ClientWithResponses) GetOrgsOrgIdResourcesAccountTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesAccountTypesResponse, error) { + rsp, err := c.GetOrgsOrgIdResourcesAccountTypes(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdUsersResponse(rsp) + return ParseGetOrgsOrgIdResourcesAccountTypesResponse(rsp) } -// PostOrgsOrgIdAppsAppIdUsersWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdUsersResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdUsersWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdUsersResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdUsersWithBody(ctx, orgId, appId, contentType, body, reqEditors...) +// GetOrgsOrgIdResourcesAccountsWithResponse request returning *GetOrgsOrgIdResourcesAccountsResponse +func (c *ClientWithResponses) GetOrgsOrgIdResourcesAccountsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesAccountsResponse, error) { + rsp, err := c.GetOrgsOrgIdResourcesAccounts(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdUsersResponse(rsp) + return ParseGetOrgsOrgIdResourcesAccountsResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdUsersWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdUsersResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdUsers(ctx, orgId, appId, body, reqEditors...) +// PostOrgsOrgIdResourcesAccountsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdResourcesAccountsResponse +func (c *ClientWithResponses) PostOrgsOrgIdResourcesAccountsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesAccountsResponse, error) { + rsp, err := c.PostOrgsOrgIdResourcesAccountsWithBody(ctx, orgId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdUsersResponse(rsp) + return ParsePostOrgsOrgIdResourcesAccountsResponse(rsp) } -// DeleteOrgsOrgIdAppsAppIdUsersUserIdWithResponse request returning *DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdUsersUserIdWithResponse(ctx context.Context, orgId string, appId string, userId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdUsersUserIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdAppsAppIdUsersUserId(ctx, orgId, appId, userId, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdResourcesAccountsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesAccountsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesAccountsResponse, error) { + rsp, err := c.PostOrgsOrgIdResourcesAccounts(ctx, orgId, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdAppsAppIdUsersUserIdResponse(rsp) + return ParsePostOrgsOrgIdResourcesAccountsResponse(rsp) } -// GetOrgsOrgIdAppsAppIdUsersUserIdWithResponse request returning *GetOrgsOrgIdAppsAppIdUsersUserIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdUsersUserIdWithResponse(ctx context.Context, orgId string, appId string, userId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdUsersUserIdResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdUsersUserId(ctx, orgId, appId, userId, reqEditors...) +// DeleteOrgsOrgIdResourcesAccountsAccIdWithResponse request returning *DeleteOrgsOrgIdResourcesAccountsAccIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdResourcesAccountsAccIdWithResponse(ctx context.Context, orgId string, accId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesAccountsAccIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdResourcesAccountsAccId(ctx, orgId, accId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdUsersUserIdResponse(rsp) + return ParseDeleteOrgsOrgIdResourcesAccountsAccIdResponse(rsp) } -// PatchOrgsOrgIdAppsAppIdUsersUserIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAppsAppIdUsersUserIdResponse -func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdUsersUserIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdUsersUserIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdAppsAppIdUsersUserIdWithBody(ctx, orgId, appId, userId, contentType, body, reqEditors...) +// GetOrgsOrgIdResourcesAccountsAccIdWithResponse request returning *GetOrgsOrgIdResourcesAccountsAccIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdResourcesAccountsAccIdWithResponse(ctx context.Context, orgId string, accId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesAccountsAccIdResponse, error) { + rsp, err := c.GetOrgsOrgIdResourcesAccountsAccId(ctx, orgId, accId, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdAppsAppIdUsersUserIdResponse(rsp) + return ParseGetOrgsOrgIdResourcesAccountsAccIdResponse(rsp) } -func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdUsersUserIdWithResponse(ctx context.Context, orgId string, appId string, userId string, body PatchOrgsOrgIdAppsAppIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdUsersUserIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdAppsAppIdUsersUserId(ctx, orgId, appId, userId, body, reqEditors...) +// PatchOrgsOrgIdResourcesAccountsAccIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdResourcesAccountsAccIdResponse +func (c *ClientWithResponses) PatchOrgsOrgIdResourcesAccountsAccIdWithBodyWithResponse(ctx context.Context, orgId string, accId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesAccountsAccIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdResourcesAccountsAccIdWithBody(ctx, orgId, accId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdAppsAppIdUsersUserIdResponse(rsp) + return ParsePatchOrgsOrgIdResourcesAccountsAccIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdValueSetVersionsWithResponse request returning *GetOrgsOrgIdAppsAppIdValueSetVersionsResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdValueSetVersionsWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdValueSetVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdValueSetVersionsResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdValueSetVersions(ctx, orgId, appId, params, reqEditors...) +func (c *ClientWithResponses) PatchOrgsOrgIdResourcesAccountsAccIdWithResponse(ctx context.Context, orgId string, accId string, body PatchOrgsOrgIdResourcesAccountsAccIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesAccountsAccIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdResourcesAccountsAccId(ctx, orgId, accId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdValueSetVersionsResponse(rsp) + return ParsePatchOrgsOrgIdResourcesAccountsAccIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdWithResponse request returning *GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionId(ctx, orgId, appId, valueSetVersionId, reqEditors...) +// GetOrgsOrgIdResourcesDefsWithResponse request returning *GetOrgsOrgIdResourcesDefsResponse +func (c *ClientWithResponses) GetOrgsOrgIdResourcesDefsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdResourcesDefsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDefsResponse, error) { + rsp, err := c.GetOrgsOrgIdResourcesDefs(ctx, orgId, params, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdResponse(rsp) + return ParseGetOrgsOrgIdResourcesDefsResponse(rsp) } -// PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithBody(ctx, orgId, appId, valueSetVersionId, key, contentType, body, reqEditors...) +// PostOrgsOrgIdResourcesDefsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdResourcesDefsResponse +func (c *ClientWithResponses) PostOrgsOrgIdResourcesDefsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsResponse, error) { + rsp, err := c.PostOrgsOrgIdResourcesDefsWithBody(ctx, orgId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse(rsp) + return ParsePostOrgsOrgIdResourcesDefsResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKey(ctx, orgId, appId, valueSetVersionId, key, body, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdResourcesDefsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesDefsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsResponse, error) { + rsp, err := c.PostOrgsOrgIdResourcesDefs(ctx, orgId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdPurgeKeyResponse(rsp) + return ParsePostOrgsOrgIdResourcesDefsResponse(rsp) } - -// PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithBodyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithBody(ctx, orgId, appId, valueSetVersionId, contentType, body, reqEditors...) + +// DeleteOrgsOrgIdResourcesDefsDefIdWithResponse request returning *DeleteOrgsOrgIdResourcesDefsDefIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, params *DeleteOrgsOrgIdResourcesDefsDefIdParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesDefsDefIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdResourcesDefsDefId(ctx, orgId, defId, params, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse(rsp) + return ParseDeleteOrgsOrgIdResourcesDefsDefIdResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestore(ctx, orgId, appId, valueSetVersionId, body, reqEditors...) +// GetOrgsOrgIdResourcesDefsDefIdWithResponse request returning *GetOrgsOrgIdResourcesDefsDefIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDefsDefIdResponse, error) { + rsp, err := c.GetOrgsOrgIdResourcesDefsDefId(ctx, orgId, defId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreResponse(rsp) + return ParseGetOrgsOrgIdResourcesDefsDefIdResponse(rsp) } -// PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithBody(ctx, orgId, appId, valueSetVersionId, key, contentType, body, reqEditors...) +// PatchOrgsOrgIdResourcesDefsDefIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdResourcesDefsDefIdResponse +func (c *ClientWithResponses) PatchOrgsOrgIdResourcesDefsDefIdWithBodyWithResponse(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesDefsDefIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdResourcesDefsDefIdWithBody(ctx, orgId, defId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse(rsp) + return ParsePatchOrgsOrgIdResourcesDefsDefIdResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyWithResponse(ctx context.Context, orgId string, appId string, valueSetVersionId openapi_types.UUID, key string, body PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKey(ctx, orgId, appId, valueSetVersionId, key, body, reqEditors...) +func (c *ClientWithResponses) PatchOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, body PatchOrgsOrgIdResourcesDefsDefIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesDefsDefIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdResourcesDefsDefId(ctx, orgId, defId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdValueSetVersionsValueSetVersionIdRestoreKeyResponse(rsp) + return ParsePatchOrgsOrgIdResourcesDefsDefIdResponse(rsp) } -// DeleteOrgsOrgIdAppsAppIdValuesWithResponse request returning *DeleteOrgsOrgIdAppsAppIdValuesResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdValuesWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdValuesResponse, error) { - rsp, err := c.DeleteOrgsOrgIdAppsAppIdValues(ctx, orgId, appId, reqEditors...) +// PutOrgsOrgIdResourcesDefsDefIdWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdResourcesDefsDefIdResponse +func (c *ClientWithResponses) PutOrgsOrgIdResourcesDefsDefIdWithBodyWithResponse(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDefsDefIdResponse, error) { + rsp, err := c.PutOrgsOrgIdResourcesDefsDefIdWithBody(ctx, orgId, defId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdAppsAppIdValuesResponse(rsp) + return ParsePutOrgsOrgIdResourcesDefsDefIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdValuesWithResponse request returning *GetOrgsOrgIdAppsAppIdValuesResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdValuesWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdValuesResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdValues(ctx, orgId, appId, reqEditors...) +func (c *ClientWithResponses) PutOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, body PutOrgsOrgIdResourcesDefsDefIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDefsDefIdResponse, error) { + rsp, err := c.PutOrgsOrgIdResourcesDefsDefId(ctx, orgId, defId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdValuesResponse(rsp) + return ParsePutOrgsOrgIdResourcesDefsDefIdResponse(rsp) } -// PostOrgsOrgIdAppsAppIdValuesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdValuesResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValuesWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValuesResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdValuesWithBody(ctx, orgId, appId, contentType, body, reqEditors...) +// PostOrgsOrgIdResourcesDefsDefIdCriteriaWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse +func (c *ClientWithResponses) PostOrgsOrgIdResourcesDefsDefIdCriteriaWithBodyWithResponse(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse, error) { + rsp, err := c.PostOrgsOrgIdResourcesDefsDefIdCriteriaWithBody(ctx, orgId, defId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdValuesResponse(rsp) + return ParsePostOrgsOrgIdResourcesDefsDefIdCriteriaResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdValuesWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdValuesResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdValues(ctx, orgId, appId, body, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdResourcesDefsDefIdCriteriaWithResponse(ctx context.Context, orgId string, defId string, body PostOrgsOrgIdResourcesDefsDefIdCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse, error) { + rsp, err := c.PostOrgsOrgIdResourcesDefsDefIdCriteria(ctx, orgId, defId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdValuesResponse(rsp) + return ParsePostOrgsOrgIdResourcesDefsDefIdCriteriaResponse(rsp) } -// DeleteOrgsOrgIdAppsAppIdValuesKeyWithResponse request returning *DeleteOrgsOrgIdAppsAppIdValuesKeyResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, key string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdValuesKeyResponse, error) { - rsp, err := c.DeleteOrgsOrgIdAppsAppIdValuesKey(ctx, orgId, appId, key, reqEditors...) +// DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdWithResponse request returning *DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdWithResponse(ctx context.Context, orgId string, defId string, criteriaId string, params *DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaId(ctx, orgId, defId, criteriaId, params, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdAppsAppIdValuesKeyResponse(rsp) + return ParseDeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse(rsp) } -// PatchOrgsOrgIdAppsAppIdValuesKeyWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAppsAppIdValuesKeyResponse -func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdValuesKeyResponse, error) { - rsp, err := c.PatchOrgsOrgIdAppsAppIdValuesKeyWithBody(ctx, orgId, appId, key, contentType, body, reqEditors...) +// GetOrgsOrgIdResourcesDefsDefIdResourcesWithResponse request returning *GetOrgsOrgIdResourcesDefsDefIdResourcesResponse +func (c *ClientWithResponses) GetOrgsOrgIdResourcesDefsDefIdResourcesWithResponse(ctx context.Context, orgId string, defId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDefsDefIdResourcesResponse, error) { + rsp, err := c.GetOrgsOrgIdResourcesDefsDefIdResources(ctx, orgId, defId, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdAppsAppIdValuesKeyResponse(rsp) + return ParseGetOrgsOrgIdResourcesDefsDefIdResourcesResponse(rsp) } -func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, key string, body PatchOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdValuesKeyResponse, error) { - rsp, err := c.PatchOrgsOrgIdAppsAppIdValuesKey(ctx, orgId, appId, key, body, reqEditors...) +// GetOrgsOrgIdResourcesDriversWithResponse request returning *GetOrgsOrgIdResourcesDriversResponse +func (c *ClientWithResponses) GetOrgsOrgIdResourcesDriversWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDriversResponse, error) { + rsp, err := c.GetOrgsOrgIdResourcesDrivers(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdAppsAppIdValuesKeyResponse(rsp) + return ParseGetOrgsOrgIdResourcesDriversResponse(rsp) } -// PutOrgsOrgIdAppsAppIdValuesKeyWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdAppsAppIdValuesKeyResponse -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdValuesKeyWithBodyWithResponse(ctx context.Context, orgId string, appId string, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdValuesKeyResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdValuesKeyWithBody(ctx, orgId, appId, key, contentType, body, reqEditors...) +// PostOrgsOrgIdResourcesDriversWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdResourcesDriversResponse +func (c *ClientWithResponses) PostOrgsOrgIdResourcesDriversWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDriversResponse, error) { + rsp, err := c.PostOrgsOrgIdResourcesDriversWithBody(ctx, orgId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdValuesKeyResponse(rsp) + return ParsePostOrgsOrgIdResourcesDriversResponse(rsp) } -func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdValuesKeyWithResponse(ctx context.Context, orgId string, appId string, key string, body PutOrgsOrgIdAppsAppIdValuesKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdValuesKeyResponse, error) { - rsp, err := c.PutOrgsOrgIdAppsAppIdValuesKey(ctx, orgId, appId, key, body, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdResourcesDriversWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesDriversJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDriversResponse, error) { + rsp, err := c.PostOrgsOrgIdResourcesDrivers(ctx, orgId, body, reqEditors...) if err != nil { return nil, err } - return ParsePutOrgsOrgIdAppsAppIdValuesKeyResponse(rsp) + return ParsePostOrgsOrgIdResourcesDriversResponse(rsp) } -// GetOrgsOrgIdAppsAppIdWebhooksWithResponse request returning *GetOrgsOrgIdAppsAppIdWebhooksResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdWebhooksWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdWebhooksResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdWebhooks(ctx, orgId, appId, reqEditors...) +// DeleteOrgsOrgIdResourcesDriversDriverIdWithResponse request returning *DeleteOrgsOrgIdResourcesDriversDriverIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdResourcesDriversDriverIdWithResponse(ctx context.Context, orgId string, driverId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesDriversDriverIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdResourcesDriversDriverId(ctx, orgId, driverId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdWebhooksResponse(rsp) + return ParseDeleteOrgsOrgIdResourcesDriversDriverIdResponse(rsp) } -// PostOrgsOrgIdAppsAppIdWebhooksWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAppsAppIdWebhooksResponse -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdWebhooksWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdWebhooksResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdWebhooksWithBody(ctx, orgId, appId, contentType, body, reqEditors...) +// GetOrgsOrgIdResourcesDriversDriverIdWithResponse request returning *GetOrgsOrgIdResourcesDriversDriverIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdResourcesDriversDriverIdWithResponse(ctx context.Context, orgId string, driverId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDriversDriverIdResponse, error) { + rsp, err := c.GetOrgsOrgIdResourcesDriversDriverId(ctx, orgId, driverId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdWebhooksResponse(rsp) + return ParseGetOrgsOrgIdResourcesDriversDriverIdResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdWebhooksWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdWebhooksResponse, error) { - rsp, err := c.PostOrgsOrgIdAppsAppIdWebhooks(ctx, orgId, appId, body, reqEditors...) +// PutOrgsOrgIdResourcesDriversDriverIdWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdResourcesDriversDriverIdResponse +func (c *ClientWithResponses) PutOrgsOrgIdResourcesDriversDriverIdWithBodyWithResponse(ctx context.Context, orgId string, driverId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDriversDriverIdResponse, error) { + rsp, err := c.PutOrgsOrgIdResourcesDriversDriverIdWithBody(ctx, orgId, driverId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdAppsAppIdWebhooksResponse(rsp) + return ParsePutOrgsOrgIdResourcesDriversDriverIdResponse(rsp) } -// DeleteOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse request returning *DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse(ctx context.Context, orgId string, appId string, jobId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdAppsAppIdWebhooksJobId(ctx, orgId, appId, jobId, reqEditors...) +func (c *ClientWithResponses) PutOrgsOrgIdResourcesDriversDriverIdWithResponse(ctx context.Context, orgId string, driverId string, body PutOrgsOrgIdResourcesDriversDriverIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDriversDriverIdResponse, error) { + rsp, err := c.PutOrgsOrgIdResourcesDriversDriverId(ctx, orgId, driverId, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdAppsAppIdWebhooksJobIdResponse(rsp) + return ParsePutOrgsOrgIdResourcesDriversDriverIdResponse(rsp) } -// GetOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse request returning *GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse(ctx context.Context, orgId string, appId string, jobId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) { - rsp, err := c.GetOrgsOrgIdAppsAppIdWebhooksJobId(ctx, orgId, appId, jobId, reqEditors...) +// GetOrgsOrgIdResourcesTypesWithResponse request returning *GetOrgsOrgIdResourcesTypesResponse +func (c *ClientWithResponses) GetOrgsOrgIdResourcesTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesTypesResponse, error) { + rsp, err := c.GetOrgsOrgIdResourcesTypes(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdAppsAppIdWebhooksJobIdResponse(rsp) + return ParseGetOrgsOrgIdResourcesTypesResponse(rsp) } -// PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse -func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, jobId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithBody(ctx, orgId, appId, jobId, contentType, body, reqEditors...) +// GetOrgsOrgIdSecretstoresWithResponse request returning *GetOrgsOrgIdSecretstoresResponse +func (c *ClientWithResponses) GetOrgsOrgIdSecretstoresWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdSecretstoresResponse, error) { + rsp, err := c.GetOrgsOrgIdSecretstores(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse(rsp) + return ParseGetOrgsOrgIdSecretstoresResponse(rsp) } -func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdWebhooksJobIdWithResponse(ctx context.Context, orgId string, appId string, jobId string, body PatchOrgsOrgIdAppsAppIdWebhooksJobIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdAppsAppIdWebhooksJobId(ctx, orgId, appId, jobId, body, reqEditors...) +// PostOrgsOrgIdSecretstoresWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdSecretstoresResponse +func (c *ClientWithResponses) PostOrgsOrgIdSecretstoresWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdSecretstoresResponse, error) { + rsp, err := c.PostOrgsOrgIdSecretstoresWithBody(ctx, orgId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse(rsp) + return ParsePostOrgsOrgIdSecretstoresResponse(rsp) } -// GetOrgsOrgIdArtefactVersionsWithResponse request returning *GetOrgsOrgIdArtefactVersionsResponse -func (c *ClientWithResponses) GetOrgsOrgIdArtefactVersionsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdArtefactVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactVersionsResponse, error) { - rsp, err := c.GetOrgsOrgIdArtefactVersions(ctx, orgId, params, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdSecretstoresWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdSecretstoresJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdSecretstoresResponse, error) { + rsp, err := c.PostOrgsOrgIdSecretstores(ctx, orgId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdArtefactVersionsResponse(rsp) + return ParsePostOrgsOrgIdSecretstoresResponse(rsp) } -// PostOrgsOrgIdArtefactVersionsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdArtefactVersionsResponse -func (c *ClientWithResponses) PostOrgsOrgIdArtefactVersionsWithBodyWithResponse(ctx context.Context, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdArtefactVersionsResponse, error) { - rsp, err := c.PostOrgsOrgIdArtefactVersionsWithBody(ctx, orgId, params, contentType, body, reqEditors...) +// DeleteOrgsOrgIdSecretstoresStoreIdWithResponse request returning *DeleteOrgsOrgIdSecretstoresStoreIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdSecretstoresStoreIdWithResponse(ctx context.Context, orgId string, storeId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdSecretstoresStoreIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdSecretstoresStoreId(ctx, orgId, storeId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdArtefactVersionsResponse(rsp) + return ParseDeleteOrgsOrgIdSecretstoresStoreIdResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdArtefactVersionsWithResponse(ctx context.Context, orgId string, params *PostOrgsOrgIdArtefactVersionsParams, body PostOrgsOrgIdArtefactVersionsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdArtefactVersionsResponse, error) { - rsp, err := c.PostOrgsOrgIdArtefactVersions(ctx, orgId, params, body, reqEditors...) +// GetOrgsOrgIdSecretstoresStoreIdWithResponse request returning *GetOrgsOrgIdSecretstoresStoreIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdSecretstoresStoreIdWithResponse(ctx context.Context, orgId string, storeId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdSecretstoresStoreIdResponse, error) { + rsp, err := c.GetOrgsOrgIdSecretstoresStoreId(ctx, orgId, storeId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdArtefactVersionsResponse(rsp) + return ParseGetOrgsOrgIdSecretstoresStoreIdResponse(rsp) } -// GetOrgsOrgIdArtefactVersionsArtefactVersionIdWithResponse request returning *GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdArtefactVersionsArtefactVersionIdWithResponse(ctx context.Context, orgId string, artefactVersionId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse, error) { - rsp, err := c.GetOrgsOrgIdArtefactVersionsArtefactVersionId(ctx, orgId, artefactVersionId, reqEditors...) +// PatchOrgsOrgIdSecretstoresStoreIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdSecretstoresStoreIdResponse +func (c *ClientWithResponses) PatchOrgsOrgIdSecretstoresStoreIdWithBodyWithResponse(ctx context.Context, orgId string, storeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdSecretstoresStoreIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdSecretstoresStoreIdWithBody(ctx, orgId, storeId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdArtefactVersionsArtefactVersionIdResponse(rsp) + return ParsePatchOrgsOrgIdSecretstoresStoreIdResponse(rsp) } -// GetOrgsOrgIdArtefactsWithResponse request returning *GetOrgsOrgIdArtefactsResponse -func (c *ClientWithResponses) GetOrgsOrgIdArtefactsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdArtefactsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactsResponse, error) { - rsp, err := c.GetOrgsOrgIdArtefacts(ctx, orgId, params, reqEditors...) +func (c *ClientWithResponses) PatchOrgsOrgIdSecretstoresStoreIdWithResponse(ctx context.Context, orgId string, storeId string, body PatchOrgsOrgIdSecretstoresStoreIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdSecretstoresStoreIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdSecretstoresStoreId(ctx, orgId, storeId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdArtefactsResponse(rsp) + return ParsePatchOrgsOrgIdSecretstoresStoreIdResponse(rsp) } -// DeleteOrgsOrgIdArtefactsArtefactIdWithResponse request returning *DeleteOrgsOrgIdArtefactsArtefactIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdArtefactsArtefactIdWithResponse(ctx context.Context, orgId string, artefactId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdArtefactsArtefactIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdArtefactsArtefactId(ctx, orgId, artefactId, reqEditors...) +// GetOrgsOrgIdUsersWithResponse request returning *GetOrgsOrgIdUsersResponse +func (c *ClientWithResponses) GetOrgsOrgIdUsersWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdUsersResponse, error) { + rsp, err := c.GetOrgsOrgIdUsers(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdArtefactsArtefactIdResponse(rsp) + return ParseGetOrgsOrgIdUsersResponse(rsp) } -// GetOrgsOrgIdArtefactsArtefactIdVersionsWithResponse request returning *GetOrgsOrgIdArtefactsArtefactIdVersionsResponse -func (c *ClientWithResponses) GetOrgsOrgIdArtefactsArtefactIdVersionsWithResponse(ctx context.Context, orgId string, artefactId string, params *GetOrgsOrgIdArtefactsArtefactIdVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdArtefactsArtefactIdVersionsResponse, error) { - rsp, err := c.GetOrgsOrgIdArtefactsArtefactIdVersions(ctx, orgId, artefactId, params, reqEditors...) +// PostOrgsOrgIdUsersWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdUsersResponse +func (c *ClientWithResponses) PostOrgsOrgIdUsersWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdUsersResponse, error) { + rsp, err := c.PostOrgsOrgIdUsersWithBody(ctx, orgId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdArtefactsArtefactIdVersionsResponse(rsp) + return ParsePostOrgsOrgIdUsersResponse(rsp) } -// PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse -func (c *ClientWithResponses) PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithBodyWithResponse(ctx context.Context, orgId string, artefactId string, versionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithBody(ctx, orgId, artefactId, versionId, contentType, body, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdUsersWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdUsersResponse, error) { + rsp, err := c.PostOrgsOrgIdUsers(ctx, orgId, body, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse(rsp) + return ParsePostOrgsOrgIdUsersResponse(rsp) } -func (c *ClientWithResponses) PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdWithResponse(ctx context.Context, orgId string, artefactId string, versionId string, body PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdArtefactsArtefactIdVersionsVersionId(ctx, orgId, artefactId, versionId, body, reqEditors...) +// DeleteOrgsOrgIdUsersUserIdWithResponse request returning *DeleteOrgsOrgIdUsersUserIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdUsersUserIdWithResponse(ctx context.Context, orgId string, userId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdUsersUserIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdUsersUserId(ctx, orgId, userId, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdArtefactsArtefactIdVersionsVersionIdResponse(rsp) + return ParseDeleteOrgsOrgIdUsersUserIdResponse(rsp) } -// GetOrgsOrgIdEnvTypesWithResponse request returning *GetOrgsOrgIdEnvTypesResponse -func (c *ClientWithResponses) GetOrgsOrgIdEnvTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesResponse, error) { - rsp, err := c.GetOrgsOrgIdEnvTypes(ctx, orgId, reqEditors...) +// GetOrgsOrgIdUsersUserIdWithResponse request returning *GetOrgsOrgIdUsersUserIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdUsersUserIdWithResponse(ctx context.Context, orgId string, userId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdUsersUserIdResponse, error) { + rsp, err := c.GetOrgsOrgIdUsersUserId(ctx, orgId, userId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdEnvTypesResponse(rsp) + return ParseGetOrgsOrgIdUsersUserIdResponse(rsp) } -// PostOrgsOrgIdEnvTypesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdEnvTypesResponse -func (c *ClientWithResponses) PostOrgsOrgIdEnvTypesWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesResponse, error) { - rsp, err := c.PostOrgsOrgIdEnvTypesWithBody(ctx, orgId, contentType, body, reqEditors...) +// PatchOrgsOrgIdUsersUserIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdUsersUserIdResponse +func (c *ClientWithResponses) PatchOrgsOrgIdUsersUserIdWithBodyWithResponse(ctx context.Context, orgId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdUsersUserIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdUsersUserIdWithBody(ctx, orgId, userId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdEnvTypesResponse(rsp) + return ParsePatchOrgsOrgIdUsersUserIdResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdEnvTypesWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdEnvTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesResponse, error) { - rsp, err := c.PostOrgsOrgIdEnvTypes(ctx, orgId, body, reqEditors...) +func (c *ClientWithResponses) PatchOrgsOrgIdUsersUserIdWithResponse(ctx context.Context, orgId string, userId string, body PatchOrgsOrgIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdUsersUserIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdUsersUserId(ctx, orgId, userId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdEnvTypesResponse(rsp) + return ParsePatchOrgsOrgIdUsersUserIdResponse(rsp) } -// DeleteOrgsOrgIdEnvTypesEnvTypeIdWithResponse request returning *DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdEnvTypesEnvTypeIdWithResponse(ctx context.Context, orgId string, envTypeId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdEnvTypesEnvTypeIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdEnvTypesEnvTypeId(ctx, orgId, envTypeId, reqEditors...) +// GetWorkloadProfileChartVersionsWithResponse request returning *GetWorkloadProfileChartVersionsResponse +func (c *ClientWithResponses) GetWorkloadProfileChartVersionsWithResponse(ctx context.Context, orgId OrgIdPathParam, reqEditors ...RequestEditorFn) (*GetWorkloadProfileChartVersionsResponse, error) { + rsp, err := c.GetWorkloadProfileChartVersions(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdEnvTypesEnvTypeIdResponse(rsp) + return ParseGetWorkloadProfileChartVersionsResponse(rsp) } -// GetOrgsOrgIdEnvTypesEnvTypeIdWithResponse request returning *GetOrgsOrgIdEnvTypesEnvTypeIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdEnvTypesEnvTypeIdWithResponse(ctx context.Context, orgId string, envTypeId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesEnvTypeIdResponse, error) { - rsp, err := c.GetOrgsOrgIdEnvTypesEnvTypeId(ctx, orgId, envTypeId, reqEditors...) +// PostWorkloadProfileChartVersionWithBodyWithResponse request with arbitrary body returning *PostWorkloadProfileChartVersionResponse +func (c *ClientWithResponses) PostWorkloadProfileChartVersionWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostWorkloadProfileChartVersionResponse, error) { + rsp, err := c.PostWorkloadProfileChartVersionWithBody(ctx, orgId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdEnvTypesEnvTypeIdResponse(rsp) + return ParsePostWorkloadProfileChartVersionResponse(rsp) } -// PostOrgsOrgIdEnvTypesEnvTypeUsersWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdEnvTypesEnvTypeUsersResponse -func (c *ClientWithResponses) PostOrgsOrgIdEnvTypesEnvTypeUsersWithBodyWithResponse(ctx context.Context, orgId string, envType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesEnvTypeUsersResponse, error) { - rsp, err := c.PostOrgsOrgIdEnvTypesEnvTypeUsersWithBody(ctx, orgId, envType, contentType, body, reqEditors...) +// GetOrgsOrgIdWorkloadProfilesWithResponse request returning *GetOrgsOrgIdWorkloadProfilesResponse +func (c *ClientWithResponses) GetOrgsOrgIdWorkloadProfilesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdWorkloadProfilesResponse, error) { + rsp, err := c.GetOrgsOrgIdWorkloadProfiles(ctx, orgId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdEnvTypesEnvTypeUsersResponse(rsp) + return ParseGetOrgsOrgIdWorkloadProfilesResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdEnvTypesEnvTypeUsersWithResponse(ctx context.Context, orgId string, envType string, body PostOrgsOrgIdEnvTypesEnvTypeUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdEnvTypesEnvTypeUsersResponse, error) { - rsp, err := c.PostOrgsOrgIdEnvTypesEnvTypeUsers(ctx, orgId, envType, body, reqEditors...) +// PostOrgsOrgIdWorkloadProfilesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdWorkloadProfilesResponse +func (c *ClientWithResponses) PostOrgsOrgIdWorkloadProfilesWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdWorkloadProfilesResponse, error) { + rsp, err := c.PostOrgsOrgIdWorkloadProfilesWithBody(ctx, orgId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdEnvTypesEnvTypeUsersResponse(rsp) + return ParsePostOrgsOrgIdWorkloadProfilesResponse(rsp) } -// DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse request returning *DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse(ctx context.Context, orgId string, envType string, userId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx, orgId, envType, userId, reqEditors...) +func (c *ClientWithResponses) PostOrgsOrgIdWorkloadProfilesWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdWorkloadProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdWorkloadProfilesResponse, error) { + rsp, err := c.PostOrgsOrgIdWorkloadProfiles(ctx, orgId, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse(rsp) + return ParsePostOrgsOrgIdWorkloadProfilesResponse(rsp) } -// GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse request returning *GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse(ctx context.Context, orgId string, envType string, userId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) { - rsp, err := c.GetOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx, orgId, envType, userId, reqEditors...) +// DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionWithResponse request returning *DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionWithResponse(ctx context.Context, orgId string, profileId string, version string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse, error) { + rsp, err := c.DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersion(ctx, orgId, profileId, version, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse(rsp) + return ParseDeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse(rsp) } -// PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse -func (c *ClientWithResponses) PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithBodyWithResponse(ctx context.Context, orgId string, envType string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithBody(ctx, orgId, envType, userId, contentType, body, reqEditors...) +// DeleteOrgsOrgIdWorkloadProfilesProfileQidWithResponse request returning *DeleteOrgsOrgIdWorkloadProfilesProfileQidResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdWorkloadProfilesProfileQidWithResponse(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdWorkloadProfilesProfileQidResponse, error) { + rsp, err := c.DeleteOrgsOrgIdWorkloadProfilesProfileQid(ctx, orgId, profileQid, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse(rsp) + return ParseDeleteOrgsOrgIdWorkloadProfilesProfileQidResponse(rsp) } -func (c *ClientWithResponses) PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdWithResponse(ctx context.Context, orgId string, envType string, userId string, body PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdEnvTypesEnvTypeUsersUserId(ctx, orgId, envType, userId, body, reqEditors...) +// GetOrgsOrgIdWorkloadProfilesProfileQidWithResponse request returning *GetOrgsOrgIdWorkloadProfilesProfileQidResponse +func (c *ClientWithResponses) GetOrgsOrgIdWorkloadProfilesProfileQidWithResponse(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdWorkloadProfilesProfileQidResponse, error) { + rsp, err := c.GetOrgsOrgIdWorkloadProfilesProfileQid(ctx, orgId, profileQid, reqEditors...) if err != nil { return nil, err } - return ParsePatchOrgsOrgIdEnvTypesEnvTypeUsersUserIdResponse(rsp) + return ParseGetOrgsOrgIdWorkloadProfilesProfileQidResponse(rsp) } -// GetOrgsOrgIdEventsWithResponse request returning *GetOrgsOrgIdEventsResponse -func (c *ClientWithResponses) GetOrgsOrgIdEventsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEventsResponse, error) { - rsp, err := c.GetOrgsOrgIdEvents(ctx, orgId, reqEditors...) +// GetOrgsOrgIdWorkloadProfilesProfileQidVersionsWithResponse request returning *GetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse +func (c *ClientWithResponses) GetOrgsOrgIdWorkloadProfilesProfileQidVersionsWithResponse(ctx context.Context, orgId string, profileQid string, params *GetOrgsOrgIdWorkloadProfilesProfileQidVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse, error) { + rsp, err := c.GetOrgsOrgIdWorkloadProfilesProfileQidVersions(ctx, orgId, profileQid, params, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdEventsResponse(rsp) + return ParseGetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse(rsp) } -// GetOrgsOrgIdImagesWithResponse request returning *GetOrgsOrgIdImagesResponse -func (c *ClientWithResponses) GetOrgsOrgIdImagesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdImagesResponse, error) { - rsp, err := c.GetOrgsOrgIdImages(ctx, orgId, reqEditors...) +// PostOrgsOrgIdWorkloadProfilesProfileQidVersionsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse +func (c *ClientWithResponses) PostOrgsOrgIdWorkloadProfilesProfileQidVersionsWithBodyWithResponse(ctx context.Context, orgId string, profileQid string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse, error) { + rsp, err := c.PostOrgsOrgIdWorkloadProfilesProfileQidVersionsWithBody(ctx, orgId, profileQid, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdImagesResponse(rsp) + return ParsePostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse(rsp) } -// GetOrgsOrgIdImagesImageIdWithResponse request returning *GetOrgsOrgIdImagesImageIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdImagesImageIdWithResponse(ctx context.Context, orgId string, imageId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdImagesImageIdResponse, error) { - rsp, err := c.GetOrgsOrgIdImagesImageId(ctx, orgId, imageId, reqEditors...) +// GetLatestWorkloadProfileVersionWithResponse request returning *GetLatestWorkloadProfileVersionResponse +func (c *ClientWithResponses) GetLatestWorkloadProfileVersionWithResponse(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*GetLatestWorkloadProfileVersionResponse, error) { + rsp, err := c.GetLatestWorkloadProfileVersion(ctx, orgId, profileQid, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdImagesImageIdResponse(rsp) + return ParseGetLatestWorkloadProfileVersionResponse(rsp) } -// GetOrgsOrgIdImagesImageIdBuildsWithResponse request returning *GetOrgsOrgIdImagesImageIdBuildsResponse -func (c *ClientWithResponses) GetOrgsOrgIdImagesImageIdBuildsWithResponse(ctx context.Context, orgId string, imageId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdImagesImageIdBuildsResponse, error) { - rsp, err := c.GetOrgsOrgIdImagesImageIdBuilds(ctx, orgId, imageId, reqEditors...) +// GetTokensWithResponse request returning *GetTokensResponse +func (c *ClientWithResponses) GetTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTokensResponse, error) { + rsp, err := c.GetTokens(ctx, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdImagesImageIdBuildsResponse(rsp) + return ParseGetTokensResponse(rsp) } -// PostOrgsOrgIdImagesImageIdBuildsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdImagesImageIdBuildsResponse -func (c *ClientWithResponses) PostOrgsOrgIdImagesImageIdBuildsWithBodyWithResponse(ctx context.Context, orgId string, imageId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdImagesImageIdBuildsResponse, error) { - rsp, err := c.PostOrgsOrgIdImagesImageIdBuildsWithBody(ctx, orgId, imageId, contentType, body, reqEditors...) +// DeleteTokensTokenIdWithResponse request returning *DeleteTokensTokenIdResponse +func (c *ClientWithResponses) DeleteTokensTokenIdWithResponse(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*DeleteTokensTokenIdResponse, error) { + rsp, err := c.DeleteTokensTokenId(ctx, tokenId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdImagesImageIdBuildsResponse(rsp) + return ParseDeleteTokensTokenIdResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdImagesImageIdBuildsWithResponse(ctx context.Context, orgId string, imageId string, body PostOrgsOrgIdImagesImageIdBuildsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdImagesImageIdBuildsResponse, error) { - rsp, err := c.PostOrgsOrgIdImagesImageIdBuilds(ctx, orgId, imageId, body, reqEditors...) +// GetUsersMeWithResponse request returning *GetUsersMeResponse +func (c *ClientWithResponses) GetUsersMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsersMeResponse, error) { + rsp, err := c.GetUsersMe(ctx, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdImagesImageIdBuildsResponse(rsp) + return ParseGetUsersMeResponse(rsp) } -// GetOrgsOrgIdInvitationsWithResponse request returning *GetOrgsOrgIdInvitationsResponse -func (c *ClientWithResponses) GetOrgsOrgIdInvitationsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdInvitationsResponse, error) { - rsp, err := c.GetOrgsOrgIdInvitations(ctx, orgId, reqEditors...) +// GetUsersUserIdTokensWithResponse request returning *GetUsersUserIdTokensResponse +func (c *ClientWithResponses) GetUsersUserIdTokensWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetUsersUserIdTokensResponse, error) { + rsp, err := c.GetUsersUserIdTokens(ctx, userId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdInvitationsResponse(rsp) + return ParseGetUsersUserIdTokensResponse(rsp) } -// PostOrgsOrgIdInvitationsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdInvitationsResponse -func (c *ClientWithResponses) PostOrgsOrgIdInvitationsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdInvitationsResponse, error) { - rsp, err := c.PostOrgsOrgIdInvitationsWithBody(ctx, orgId, contentType, body, reqEditors...) +// PostUsersUserIdTokensWithBodyWithResponse request with arbitrary body returning *PostUsersUserIdTokensResponse +func (c *ClientWithResponses) PostUsersUserIdTokensWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUsersUserIdTokensResponse, error) { + rsp, err := c.PostUsersUserIdTokensWithBody(ctx, userId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdInvitationsResponse(rsp) + return ParsePostUsersUserIdTokensResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdInvitationsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdInvitationsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdInvitationsResponse, error) { - rsp, err := c.PostOrgsOrgIdInvitations(ctx, orgId, body, reqEditors...) +func (c *ClientWithResponses) PostUsersUserIdTokensWithResponse(ctx context.Context, userId string, body PostUsersUserIdTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUsersUserIdTokensResponse, error) { + rsp, err := c.PostUsersUserIdTokens(ctx, userId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdInvitationsResponse(rsp) + return ParsePostUsersUserIdTokensResponse(rsp) } -// GetOrgsOrgIdRegistriesWithResponse request returning *GetOrgsOrgIdRegistriesResponse -func (c *ClientWithResponses) GetOrgsOrgIdRegistriesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesResponse, error) { - rsp, err := c.GetOrgsOrgIdRegistries(ctx, orgId, reqEditors...) +// DeleteUsersUserIdTokensTokenIdWithResponse request returning *DeleteUsersUserIdTokensTokenIdResponse +func (c *ClientWithResponses) DeleteUsersUserIdTokensTokenIdWithResponse(ctx context.Context, userId string, tokenId string, reqEditors ...RequestEditorFn) (*DeleteUsersUserIdTokensTokenIdResponse, error) { + rsp, err := c.DeleteUsersUserIdTokensTokenId(ctx, userId, tokenId, reqEditors...) if err != nil { return nil, err } - return ParseGetOrgsOrgIdRegistriesResponse(rsp) + return ParseDeleteUsersUserIdTokensTokenIdResponse(rsp) } -// PostOrgsOrgIdRegistriesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdRegistriesResponse -func (c *ClientWithResponses) PostOrgsOrgIdRegistriesWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdRegistriesResponse, error) { - rsp, err := c.PostOrgsOrgIdRegistriesWithBody(ctx, orgId, contentType, body, reqEditors...) +// GetUsersUserIdTokensTokenIdWithResponse request returning *GetUsersUserIdTokensTokenIdResponse +func (c *ClientWithResponses) GetUsersUserIdTokensTokenIdWithResponse(ctx context.Context, userId string, tokenId string, reqEditors ...RequestEditorFn) (*GetUsersUserIdTokensTokenIdResponse, error) { + rsp, err := c.GetUsersUserIdTokensTokenId(ctx, userId, tokenId, reqEditors...) if err != nil { return nil, err } - return ParsePostOrgsOrgIdRegistriesResponse(rsp) + return ParseGetUsersUserIdTokensTokenIdResponse(rsp) } -func (c *ClientWithResponses) PostOrgsOrgIdRegistriesWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdRegistriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdRegistriesResponse, error) { - rsp, err := c.PostOrgsOrgIdRegistries(ctx, orgId, body, reqEditors...) +// ParseGetCurrentUserResponse parses an HTTP response from a GetCurrentUserWithResponse call +func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePostOrgsOrgIdRegistriesResponse(rsp) + + response := &GetCurrentUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserProfileExtendedResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// DeleteOrgsOrgIdRegistriesRegIdWithResponse request returning *DeleteOrgsOrgIdRegistriesRegIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdRegistriesRegIdWithResponse(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdRegistriesRegIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdRegistriesRegId(ctx, orgId, regId, reqEditors...) +// ParsePatchCurrentUserResponse parses an HTTP response from a PatchCurrentUserWithResponse call +func ParsePatchCurrentUserResponse(rsp *http.Response) (*PatchCurrentUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdRegistriesRegIdResponse(rsp) + + response := &PatchCurrentUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserProfileExtendedResponse + 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 HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil } -// GetOrgsOrgIdRegistriesRegIdWithResponse request returning *GetOrgsOrgIdRegistriesRegIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdRegistriesRegIdWithResponse(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesRegIdResponse, error) { - rsp, err := c.GetOrgsOrgIdRegistriesRegId(ctx, orgId, regId, reqEditors...) +// ParseGetOrgsResponse parses an HTTP response from a GetOrgsWithResponse call +func ParseGetOrgsResponse(rsp *http.Response) (*GetOrgsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetOrgsOrgIdRegistriesRegIdResponse(rsp) + + response := &GetOrgsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []OrganizationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// PatchOrgsOrgIdRegistriesRegIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdRegistriesRegIdResponse -func (c *ClientWithResponses) PatchOrgsOrgIdRegistriesRegIdWithBodyWithResponse(ctx context.Context, orgId string, regId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdRegistriesRegIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdRegistriesRegIdWithBody(ctx, orgId, regId, contentType, body, reqEditors...) +// ParseGetOrgsOrgIdResponse parses an HTTP response from a GetOrgsOrgIdWithResponse call +func ParseGetOrgsOrgIdResponse(rsp *http.Response) (*GetOrgsOrgIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePatchOrgsOrgIdRegistriesRegIdResponse(rsp) + + response := &GetOrgsOrgIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OrganizationResponse + 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 HumanitecErrorResponse + 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 == 409: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil } -func (c *ClientWithResponses) PatchOrgsOrgIdRegistriesRegIdWithResponse(ctx context.Context, orgId string, regId string, body PatchOrgsOrgIdRegistriesRegIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdRegistriesRegIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdRegistriesRegId(ctx, orgId, regId, body, reqEditors...) +// ParseGetOrgsOrgIdAppsResponse parses an HTTP response from a GetOrgsOrgIdAppsWithResponse call +func ParseGetOrgsOrgIdAppsResponse(rsp *http.Response) (*GetOrgsOrgIdAppsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePatchOrgsOrgIdRegistriesRegIdResponse(rsp) + + response := &GetOrgsOrgIdAppsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ApplicationResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil } -// GetOrgsOrgIdRegistriesRegIdCredsWithResponse request returning *GetOrgsOrgIdRegistriesRegIdCredsResponse -func (c *ClientWithResponses) GetOrgsOrgIdRegistriesRegIdCredsWithResponse(ctx context.Context, orgId string, regId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesRegIdCredsResponse, error) { - rsp, err := c.GetOrgsOrgIdRegistriesRegIdCreds(ctx, orgId, regId, reqEditors...) +// ParsePostOrgsOrgIdAppsResponse parses an HTTP response from a PostOrgsOrgIdAppsWithResponse call +func ParsePostOrgsOrgIdAppsResponse(rsp *http.Response) (*PostOrgsOrgIdAppsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetOrgsOrgIdRegistriesRegIdCredsResponse(rsp) -} -// GetOrgsOrgIdResourcesAccountTypesWithResponse request returning *GetOrgsOrgIdResourcesAccountTypesResponse -func (c *ClientWithResponses) GetOrgsOrgIdResourcesAccountTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesAccountTypesResponse, error) { - rsp, err := c.GetOrgsOrgIdResourcesAccountTypes(ctx, orgId, reqEditors...) - if err != nil { - return nil, err + response := &PostOrgsOrgIdAppsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetOrgsOrgIdResourcesAccountTypesResponse(rsp) -} -// GetOrgsOrgIdResourcesAccountsWithResponse request returning *GetOrgsOrgIdResourcesAccountsResponse -func (c *ClientWithResponses) GetOrgsOrgIdResourcesAccountsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesAccountsResponse, error) { - rsp, err := c.GetOrgsOrgIdResourcesAccounts(ctx, orgId, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ApplicationResponse + 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 HumanitecErrorResponse + 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 HumanitecErrorResponse + 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 == 409: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + } - return ParseGetOrgsOrgIdResourcesAccountsResponse(rsp) + + return response, nil } -// PostOrgsOrgIdResourcesAccountsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdResourcesAccountsResponse -func (c *ClientWithResponses) PostOrgsOrgIdResourcesAccountsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesAccountsResponse, error) { - rsp, err := c.PostOrgsOrgIdResourcesAccountsWithBody(ctx, orgId, contentType, body, reqEditors...) +// ParseDeleteOrgsOrgIdAppsAppIdResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdWithResponse call +func ParseDeleteOrgsOrgIdAppsAppIdResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePostOrgsOrgIdResourcesAccountsResponse(rsp) -} -func (c *ClientWithResponses) PostOrgsOrgIdResourcesAccountsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesAccountsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesAccountsResponse, error) { - rsp, err := c.PostOrgsOrgIdResourcesAccounts(ctx, orgId, body, reqEditors...) - if err != nil { - return nil, err + response := &DeleteOrgsOrgIdAppsAppIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParsePostOrgsOrgIdResourcesAccountsResponse(rsp) -} -// DeleteOrgsOrgIdResourcesAccountsAccIdWithResponse request returning *DeleteOrgsOrgIdResourcesAccountsAccIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdResourcesAccountsAccIdWithResponse(ctx context.Context, orgId string, accId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesAccountsAccIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdResourcesAccountsAccId(ctx, orgId, accId, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest HumanitecErrorResponse + 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 == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseDeleteOrgsOrgIdResourcesAccountsAccIdResponse(rsp) + + return response, nil } -// GetOrgsOrgIdResourcesAccountsAccIdWithResponse request returning *GetOrgsOrgIdResourcesAccountsAccIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdResourcesAccountsAccIdWithResponse(ctx context.Context, orgId string, accId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesAccountsAccIdResponse, error) { - rsp, err := c.GetOrgsOrgIdResourcesAccountsAccId(ctx, orgId, accId, reqEditors...) +// ParseGetOrgsOrgIdAppsAppIdResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdWithResponse call +func ParseGetOrgsOrgIdAppsAppIdResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetOrgsOrgIdResourcesAccountsAccIdResponse(rsp) -} -// PatchOrgsOrgIdResourcesAccountsAccIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdResourcesAccountsAccIdResponse -func (c *ClientWithResponses) PatchOrgsOrgIdResourcesAccountsAccIdWithBodyWithResponse(ctx context.Context, orgId string, accId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesAccountsAccIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdResourcesAccountsAccIdWithBody(ctx, orgId, accId, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &GetOrgsOrgIdAppsAppIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParsePatchOrgsOrgIdResourcesAccountsAccIdResponse(rsp) -} -func (c *ClientWithResponses) PatchOrgsOrgIdResourcesAccountsAccIdWithResponse(ctx context.Context, orgId string, accId string, body PatchOrgsOrgIdResourcesAccountsAccIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesAccountsAccIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdResourcesAccountsAccId(ctx, orgId, accId, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApplicationResponse + 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 == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParsePatchOrgsOrgIdResourcesAccountsAccIdResponse(rsp) + + return response, nil } -// GetOrgsOrgIdResourcesDefsWithResponse request returning *GetOrgsOrgIdResourcesDefsResponse -func (c *ClientWithResponses) GetOrgsOrgIdResourcesDefsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdResourcesDefsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDefsResponse, error) { - rsp, err := c.GetOrgsOrgIdResourcesDefs(ctx, orgId, params, reqEditors...) +// ParseListApprovalRequestsResponse parses an HTTP response from a ListApprovalRequestsWithResponse call +func ParseListApprovalRequestsResponse(rsp *http.Response) (*ListApprovalRequestsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetOrgsOrgIdResourcesDefsResponse(rsp) -} -// PostOrgsOrgIdResourcesDefsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdResourcesDefsResponse -func (c *ClientWithResponses) PostOrgsOrgIdResourcesDefsWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsResponse, error) { - rsp, err := c.PostOrgsOrgIdResourcesDefsWithBody(ctx, orgId, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &ListApprovalRequestsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParsePostOrgsOrgIdResourcesDefsResponse(rsp) -} -func (c *ClientWithResponses) PostOrgsOrgIdResourcesDefsWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesDefsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsResponse, error) { - rsp, err := c.PostOrgsOrgIdResourcesDefs(ctx, orgId, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ApprovalRequest + 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 HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + } - return ParsePostOrgsOrgIdResourcesDefsResponse(rsp) + + return response, nil } -// DeleteOrgsOrgIdResourcesDefsDefIdWithResponse request returning *DeleteOrgsOrgIdResourcesDefsDefIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, params *DeleteOrgsOrgIdResourcesDefsDefIdParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesDefsDefIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdResourcesDefsDefId(ctx, orgId, defId, params, reqEditors...) +// ParseGetOrgsOrgIdAppsAppIdDeltasResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdDeltasWithResponse call +func ParseGetOrgsOrgIdAppsAppIdDeltasResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdDeltasResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdResourcesDefsDefIdResponse(rsp) -} -// GetOrgsOrgIdResourcesDefsDefIdWithResponse request returning *GetOrgsOrgIdResourcesDefsDefIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDefsDefIdResponse, error) { - rsp, err := c.GetOrgsOrgIdResourcesDefsDefId(ctx, orgId, defId, reqEditors...) - if err != nil { - return nil, err + response := &GetOrgsOrgIdAppsAppIdDeltasResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetOrgsOrgIdResourcesDefsDefIdResponse(rsp) -} -// PatchOrgsOrgIdResourcesDefsDefIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdResourcesDefsDefIdResponse -func (c *ClientWithResponses) PatchOrgsOrgIdResourcesDefsDefIdWithBodyWithResponse(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesDefsDefIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdResourcesDefsDefIdWithBody(ctx, orgId, defId, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []DeltaResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParsePatchOrgsOrgIdResourcesDefsDefIdResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) PatchOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, body PatchOrgsOrgIdResourcesDefsDefIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdResourcesDefsDefIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdResourcesDefsDefId(ctx, orgId, defId, body, reqEditors...) +// ParsePostOrgsOrgIdAppsAppIdDeltasResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdDeltasWithResponse call +func ParsePostOrgsOrgIdAppsAppIdDeltasResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePatchOrgsOrgIdResourcesDefsDefIdResponse(rsp) -} -// PutOrgsOrgIdResourcesDefsDefIdWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdResourcesDefsDefIdResponse -func (c *ClientWithResponses) PutOrgsOrgIdResourcesDefsDefIdWithBodyWithResponse(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDefsDefIdResponse, error) { - rsp, err := c.PutOrgsOrgIdResourcesDefsDefIdWithBody(ctx, orgId, defId, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &PostOrgsOrgIdAppsAppIdDeltasResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParsePutOrgsOrgIdResourcesDefsDefIdResponse(rsp) -} -func (c *ClientWithResponses) PutOrgsOrgIdResourcesDefsDefIdWithResponse(ctx context.Context, orgId string, defId string, body PutOrgsOrgIdResourcesDefsDefIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDefsDefIdResponse, error) { - rsp, err := c.PutOrgsOrgIdResourcesDefsDefId(ctx, orgId, defId, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + union json.RawMessage + } + 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 HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + } - return ParsePutOrgsOrgIdResourcesDefsDefIdResponse(rsp) + + return response, nil } -// PostOrgsOrgIdResourcesDefsDefIdCriteriaWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse -func (c *ClientWithResponses) PostOrgsOrgIdResourcesDefsDefIdCriteriaWithBodyWithResponse(ctx context.Context, orgId string, defId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse, error) { - rsp, err := c.PostOrgsOrgIdResourcesDefsDefIdCriteriaWithBody(ctx, orgId, defId, contentType, body, reqEditors...) +// ParseGetDeltaResponse parses an HTTP response from a GetDeltaWithResponse call +func ParseGetDeltaResponse(rsp *http.Response) (*GetDeltaResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePostOrgsOrgIdResourcesDefsDefIdCriteriaResponse(rsp) -} -func (c *ClientWithResponses) PostOrgsOrgIdResourcesDefsDefIdCriteriaWithResponse(ctx context.Context, orgId string, defId string, body PostOrgsOrgIdResourcesDefsDefIdCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDefsDefIdCriteriaResponse, error) { - rsp, err := c.PostOrgsOrgIdResourcesDefsDefIdCriteria(ctx, orgId, defId, body, reqEditors...) - if err != nil { - return nil, err + response := &GetDeltaResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParsePostOrgsOrgIdResourcesDefsDefIdCriteriaResponse(rsp) -} -// DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdWithResponse request returning *DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdWithResponse(ctx context.Context, orgId string, defId string, criteriaId string, params *DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaId(ctx, orgId, defId, criteriaId, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DeltaResponse + 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 == 404: + var dest string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseDeleteOrgsOrgIdResourcesDefsDefIdCriteriaCriteriaIdResponse(rsp) + + return response, nil } -// GetOrgsOrgIdResourcesDefsDefIdResourcesWithResponse request returning *GetOrgsOrgIdResourcesDefsDefIdResourcesResponse -func (c *ClientWithResponses) GetOrgsOrgIdResourcesDefsDefIdResourcesWithResponse(ctx context.Context, orgId string, defId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDefsDefIdResourcesResponse, error) { - rsp, err := c.GetOrgsOrgIdResourcesDefsDefIdResources(ctx, orgId, defId, reqEditors...) +// ParsePatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse parses an HTTP response from a PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithResponse call +func ParsePatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse(rsp *http.Response) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetOrgsOrgIdResourcesDefsDefIdResourcesResponse(rsp) -} -// GetOrgsOrgIdResourcesDriversWithResponse request returning *GetOrgsOrgIdResourcesDriversResponse -func (c *ClientWithResponses) GetOrgsOrgIdResourcesDriversWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDriversResponse, error) { - rsp, err := c.GetOrgsOrgIdResourcesDrivers(ctx, orgId, reqEditors...) - if err != nil { - return nil, err + response := &PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetOrgsOrgIdResourcesDriversResponse(rsp) -} -// PostOrgsOrgIdResourcesDriversWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdResourcesDriversResponse -func (c *ClientWithResponses) PostOrgsOrgIdResourcesDriversWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDriversResponse, error) { - rsp, err := c.PostOrgsOrgIdResourcesDriversWithBody(ctx, orgId, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DeltaResponse + 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 HumanitecErrorResponse + 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 == 404: + var dest string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParsePostOrgsOrgIdResourcesDriversResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) PostOrgsOrgIdResourcesDriversWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdResourcesDriversJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdResourcesDriversResponse, error) { - rsp, err := c.PostOrgsOrgIdResourcesDrivers(ctx, orgId, body, reqEditors...) +// ParsePutDeltaResponse parses an HTTP response from a PutDeltaWithResponse call +func ParsePutDeltaResponse(rsp *http.Response) (*PutDeltaResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePostOrgsOrgIdResourcesDriversResponse(rsp) -} -// DeleteOrgsOrgIdResourcesDriversDriverIdWithResponse request returning *DeleteOrgsOrgIdResourcesDriversDriverIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdResourcesDriversDriverIdWithResponse(ctx context.Context, orgId string, driverId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdResourcesDriversDriverIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdResourcesDriversDriverId(ctx, orgId, driverId, reqEditors...) - if err != nil { - return nil, err + response := &PutDeltaResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteOrgsOrgIdResourcesDriversDriverIdResponse(rsp) -} -// GetOrgsOrgIdResourcesDriversDriverIdWithResponse request returning *GetOrgsOrgIdResourcesDriversDriverIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdResourcesDriversDriverIdWithResponse(ctx context.Context, orgId string, driverId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesDriversDriverIdResponse, error) { - rsp, err := c.GetOrgsOrgIdResourcesDriversDriverId(ctx, orgId, driverId, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest HumanitecErrorResponse + 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 == 404: + var dest string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseGetOrgsOrgIdResourcesDriversDriverIdResponse(rsp) + + return response, nil } -// PutOrgsOrgIdResourcesDriversDriverIdWithBodyWithResponse request with arbitrary body returning *PutOrgsOrgIdResourcesDriversDriverIdResponse -func (c *ClientWithResponses) PutOrgsOrgIdResourcesDriversDriverIdWithBodyWithResponse(ctx context.Context, orgId string, driverId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDriversDriverIdResponse, error) { - rsp, err := c.PutOrgsOrgIdResourcesDriversDriverIdWithBody(ctx, orgId, driverId, contentType, body, reqEditors...) +// ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithResponse call +func ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePutOrgsOrgIdResourcesDriversDriverIdResponse(rsp) -} -func (c *ClientWithResponses) PutOrgsOrgIdResourcesDriversDriverIdWithResponse(ctx context.Context, orgId string, driverId string, body PutOrgsOrgIdResourcesDriversDriverIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdResourcesDriversDriverIdResponse, error) { - rsp, err := c.PutOrgsOrgIdResourcesDriversDriverId(ctx, orgId, driverId, body, reqEditors...) - if err != nil { - return nil, err + response := &PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParsePutOrgsOrgIdResourcesDriversDriverIdResponse(rsp) -} -// GetOrgsOrgIdResourcesTypesWithResponse request returning *GetOrgsOrgIdResourcesTypesResponse -func (c *ClientWithResponses) GetOrgsOrgIdResourcesTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResourcesTypesResponse, error) { - rsp, err := c.GetOrgsOrgIdResourcesTypes(ctx, orgId, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest HumanitecErrorResponse + 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 == 404: + var dest string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseGetOrgsOrgIdResourcesTypesResponse(rsp) + + return response, nil } -// GetOrgsOrgIdSecretstoresWithResponse request returning *GetOrgsOrgIdSecretstoresResponse -func (c *ClientWithResponses) GetOrgsOrgIdSecretstoresWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdSecretstoresResponse, error) { - rsp, err := c.GetOrgsOrgIdSecretstores(ctx, orgId, reqEditors...) +// ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithResponse call +func ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetOrgsOrgIdSecretstoresResponse(rsp) -} -// PostOrgsOrgIdSecretstoresWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdSecretstoresResponse -func (c *ClientWithResponses) PostOrgsOrgIdSecretstoresWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdSecretstoresResponse, error) { - rsp, err := c.PostOrgsOrgIdSecretstoresWithBody(ctx, orgId, contentType, body, reqEditors...) - if err != nil { - return nil, err + response := &PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParsePostOrgsOrgIdSecretstoresResponse(rsp) -} -func (c *ClientWithResponses) PostOrgsOrgIdSecretstoresWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdSecretstoresJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdSecretstoresResponse, error) { - rsp, err := c.PostOrgsOrgIdSecretstores(ctx, orgId, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest HumanitecErrorResponse + 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 == 404: + var dest string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParsePostOrgsOrgIdSecretstoresResponse(rsp) + + return response, nil } -// DeleteOrgsOrgIdSecretstoresStoreIdWithResponse request returning *DeleteOrgsOrgIdSecretstoresStoreIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdSecretstoresStoreIdWithResponse(ctx context.Context, orgId string, storeId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdSecretstoresStoreIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdSecretstoresStoreId(ctx, orgId, storeId, reqEditors...) +// ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithResponse call +func ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdSecretstoresStoreIdResponse(rsp) -} -// GetOrgsOrgIdSecretstoresStoreIdWithResponse request returning *GetOrgsOrgIdSecretstoresStoreIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdSecretstoresStoreIdWithResponse(ctx context.Context, orgId string, storeId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdSecretstoresStoreIdResponse, error) { - rsp, err := c.GetOrgsOrgIdSecretstoresStoreId(ctx, orgId, storeId, reqEditors...) - if err != nil { - return nil, err + response := &PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetOrgsOrgIdSecretstoresStoreIdResponse(rsp) -} -// PatchOrgsOrgIdSecretstoresStoreIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdSecretstoresStoreIdResponse -func (c *ClientWithResponses) PatchOrgsOrgIdSecretstoresStoreIdWithBodyWithResponse(ctx context.Context, orgId string, storeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdSecretstoresStoreIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdSecretstoresStoreIdWithBody(ctx, orgId, storeId, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest HumanitecErrorResponse + 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 == 404: + var dest string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParsePatchOrgsOrgIdSecretstoresStoreIdResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) PatchOrgsOrgIdSecretstoresStoreIdWithResponse(ctx context.Context, orgId string, storeId string, body PatchOrgsOrgIdSecretstoresStoreIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdSecretstoresStoreIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdSecretstoresStoreId(ctx, orgId, storeId, body, reqEditors...) +// ParseGetOrgsOrgIdAppsAppIdEnvsResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsWithResponse call +func ParseGetOrgsOrgIdAppsAppIdEnvsResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePatchOrgsOrgIdSecretstoresStoreIdResponse(rsp) -} -// GetOrgsOrgIdUsersWithResponse request returning *GetOrgsOrgIdUsersResponse -func (c *ClientWithResponses) GetOrgsOrgIdUsersWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdUsersResponse, error) { - rsp, err := c.GetOrgsOrgIdUsers(ctx, orgId, reqEditors...) - if err != nil { - return nil, err + response := &GetOrgsOrgIdAppsAppIdEnvsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetOrgsOrgIdUsersResponse(rsp) -} -// PostOrgsOrgIdUsersWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdUsersResponse -func (c *ClientWithResponses) PostOrgsOrgIdUsersWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdUsersResponse, error) { - rsp, err := c.PostOrgsOrgIdUsersWithBody(ctx, orgId, contentType, body, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []EnvironmentResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + } - return ParsePostOrgsOrgIdUsersResponse(rsp) + + return response, nil } -func (c *ClientWithResponses) PostOrgsOrgIdUsersWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdUsersResponse, error) { - rsp, err := c.PostOrgsOrgIdUsers(ctx, orgId, body, reqEditors...) +// ParsePostOrgsOrgIdAppsAppIdEnvsResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsWithResponse call +func ParsePostOrgsOrgIdAppsAppIdEnvsResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePostOrgsOrgIdUsersResponse(rsp) -} -// DeleteOrgsOrgIdUsersUserIdWithResponse request returning *DeleteOrgsOrgIdUsersUserIdResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdUsersUserIdWithResponse(ctx context.Context, orgId string, userId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdUsersUserIdResponse, error) { - rsp, err := c.DeleteOrgsOrgIdUsersUserId(ctx, orgId, userId, reqEditors...) - if err != nil { - return nil, err + response := &PostOrgsOrgIdAppsAppIdEnvsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseDeleteOrgsOrgIdUsersUserIdResponse(rsp) -} -// GetOrgsOrgIdUsersUserIdWithResponse request returning *GetOrgsOrgIdUsersUserIdResponse -func (c *ClientWithResponses) GetOrgsOrgIdUsersUserIdWithResponse(ctx context.Context, orgId string, userId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdUsersUserIdResponse, error) { - rsp, err := c.GetOrgsOrgIdUsersUserId(ctx, orgId, userId, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest EnvironmentResponse + 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 HumanitecErrorResponse + 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 == 404: + var dest HumanitecErrorResponse + 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 HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + } - return ParseGetOrgsOrgIdUsersUserIdResponse(rsp) + + return response, nil } -// PatchOrgsOrgIdUsersUserIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdUsersUserIdResponse -func (c *ClientWithResponses) PatchOrgsOrgIdUsersUserIdWithBodyWithResponse(ctx context.Context, orgId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdUsersUserIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdUsersUserIdWithBody(ctx, orgId, userId, contentType, body, reqEditors...) +// ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse call +func ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePatchOrgsOrgIdUsersUserIdResponse(rsp) -} -func (c *ClientWithResponses) PatchOrgsOrgIdUsersUserIdWithResponse(ctx context.Context, orgId string, userId string, body PatchOrgsOrgIdUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdUsersUserIdResponse, error) { - rsp, err := c.PatchOrgsOrgIdUsersUserId(ctx, orgId, userId, body, reqEditors...) - if err != nil { - return nil, err + response := &DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParsePatchOrgsOrgIdUsersUserIdResponse(rsp) -} -// GetOrgsOrgIdWorkloadProfilesWithResponse request returning *GetOrgsOrgIdWorkloadProfilesResponse -func (c *ClientWithResponses) GetOrgsOrgIdWorkloadProfilesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdWorkloadProfilesResponse, error) { - rsp, err := c.GetOrgsOrgIdWorkloadProfiles(ctx, orgId, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest HumanitecErrorResponse + 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 == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseGetOrgsOrgIdWorkloadProfilesResponse(rsp) + + return response, nil } -// PostOrgsOrgIdWorkloadProfilesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdWorkloadProfilesResponse -func (c *ClientWithResponses) PostOrgsOrgIdWorkloadProfilesWithBodyWithResponse(ctx context.Context, orgId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdWorkloadProfilesResponse, error) { - rsp, err := c.PostOrgsOrgIdWorkloadProfilesWithBody(ctx, orgId, contentType, body, reqEditors...) +// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse call +func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePostOrgsOrgIdWorkloadProfilesResponse(rsp) -} -func (c *ClientWithResponses) PostOrgsOrgIdWorkloadProfilesWithResponse(ctx context.Context, orgId string, body PostOrgsOrgIdWorkloadProfilesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdWorkloadProfilesResponse, error) { - rsp, err := c.PostOrgsOrgIdWorkloadProfiles(ctx, orgId, body, reqEditors...) - if err != nil { - return nil, err + response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParsePostOrgsOrgIdWorkloadProfilesResponse(rsp) -} -// DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionWithResponse request returning *DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionWithResponse(ctx context.Context, orgId string, profileId string, version string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse, error) { - rsp, err := c.DeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersion(ctx, orgId, profileId, version, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest EnvironmentResponse + 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 == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseDeleteOrgsOrgIdWorkloadProfilesProfileIdVersionsVersionResponse(rsp) + + return response, nil } -// DeleteOrgsOrgIdWorkloadProfilesProfileQidWithResponse request returning *DeleteOrgsOrgIdWorkloadProfilesProfileQidResponse -func (c *ClientWithResponses) DeleteOrgsOrgIdWorkloadProfilesProfileQidWithResponse(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdWorkloadProfilesProfileQidResponse, error) { - rsp, err := c.DeleteOrgsOrgIdWorkloadProfilesProfileQid(ctx, orgId, profileQid, reqEditors...) +// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse call +func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseDeleteOrgsOrgIdWorkloadProfilesProfileQidResponse(rsp) -} -// GetOrgsOrgIdWorkloadProfilesProfileQidWithResponse request returning *GetOrgsOrgIdWorkloadProfilesProfileQidResponse -func (c *ClientWithResponses) GetOrgsOrgIdWorkloadProfilesProfileQidWithResponse(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdWorkloadProfilesProfileQidResponse, error) { - rsp, err := c.GetOrgsOrgIdWorkloadProfilesProfileQid(ctx, orgId, profileQid, reqEditors...) - if err != nil { - return nil, err + response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetOrgsOrgIdWorkloadProfilesProfileQidResponse(rsp) -} -// GetOrgsOrgIdWorkloadProfilesProfileQidVersionsWithResponse request returning *GetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse -func (c *ClientWithResponses) GetOrgsOrgIdWorkloadProfilesProfileQidVersionsWithResponse(ctx context.Context, orgId string, profileQid string, params *GetOrgsOrgIdWorkloadProfilesProfileQidVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse, error) { - rsp, err := c.GetOrgsOrgIdWorkloadProfilesProfileQidVersions(ctx, orgId, profileQid, params, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []DeploymentResponse + 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 == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } - return ParseGetOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse(rsp) + + return response, nil } -// PostOrgsOrgIdWorkloadProfilesProfileQidVersionsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse -func (c *ClientWithResponses) PostOrgsOrgIdWorkloadProfilesProfileQidVersionsWithBodyWithResponse(ctx context.Context, orgId string, profileQid string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse, error) { - rsp, err := c.PostOrgsOrgIdWorkloadProfilesProfileQidVersionsWithBody(ctx, orgId, profileQid, contentType, body, reqEditors...) +// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse call +func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParsePostOrgsOrgIdWorkloadProfilesProfileQidVersionsResponse(rsp) -} -// GetLatestWorkloadProfileVersionWithResponse request returning *GetLatestWorkloadProfileVersionResponse -func (c *ClientWithResponses) GetLatestWorkloadProfileVersionWithResponse(ctx context.Context, orgId string, profileQid string, reqEditors ...RequestEditorFn) (*GetLatestWorkloadProfileVersionResponse, error) { - rsp, err := c.GetLatestWorkloadProfileVersion(ctx, orgId, profileQid, reqEditors...) - if err != nil { - return nil, err + response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetLatestWorkloadProfileVersionResponse(rsp) -} -// GetTokensWithResponse request returning *GetTokensResponse -func (c *ClientWithResponses) GetTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTokensResponse, error) { - rsp, err := c.GetTokens(ctx, reqEditors...) - if err != nil { - return nil, err + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest DeploymentResponse + 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 HumanitecErrorResponse + 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 == 404: + var dest HumanitecErrorResponse + 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 HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + } - return ParseGetTokensResponse(rsp) -} -// DeleteTokensTokenIdWithResponse request returning *DeleteTokensTokenIdResponse -func (c *ClientWithResponses) DeleteTokensTokenIdWithResponse(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*DeleteTokensTokenIdResponse, error) { - rsp, err := c.DeleteTokensTokenId(ctx, tokenId, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteTokensTokenIdResponse(rsp) + return response, nil } -// GetUsersMeWithResponse request returning *GetUsersMeResponse -func (c *ClientWithResponses) GetUsersMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsersMeResponse, error) { - rsp, err := c.GetUsersMe(ctx, reqEditors...) +// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdWithResponse call +func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - return ParseGetUsersMeResponse(rsp) -} -// GetUsersUserIdTokensWithResponse request returning *GetUsersUserIdTokensResponse -func (c *ClientWithResponses) GetUsersUserIdTokensWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetUsersUserIdTokensResponse, error) { - rsp, err := c.GetUsersUserIdTokens(ctx, userId, reqEditors...) - if err != nil { - return nil, err + response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - return ParseGetUsersUserIdTokensResponse(rsp) -} -// PostUsersUserIdTokensWithBodyWithResponse request with arbitrary body returning *PostUsersUserIdTokensResponse -func (c *ClientWithResponses) PostUsersUserIdTokensWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUsersUserIdTokensResponse, error) { - rsp, err := c.PostUsersUserIdTokensWithBody(ctx, userId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostUsersUserIdTokensResponse(rsp) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DeploymentResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -func (c *ClientWithResponses) PostUsersUserIdTokensWithResponse(ctx context.Context, userId string, body PostUsersUserIdTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUsersUserIdTokensResponse, error) { - rsp, err := c.PostUsersUserIdTokens(ctx, userId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostUsersUserIdTokensResponse(rsp) -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest -// DeleteUsersUserIdTokensTokenIdWithResponse request returning *DeleteUsersUserIdTokensTokenIdResponse -func (c *ClientWithResponses) DeleteUsersUserIdTokensTokenIdWithResponse(ctx context.Context, userId string, tokenId string, reqEditors ...RequestEditorFn) (*DeleteUsersUserIdTokensTokenIdResponse, error) { - rsp, err := c.DeleteUsersUserIdTokensTokenId(ctx, userId, tokenId, reqEditors...) - if err != nil { - return nil, err } - return ParseDeleteUsersUserIdTokensTokenIdResponse(rsp) -} -// GetUsersUserIdTokensTokenIdWithResponse request returning *GetUsersUserIdTokensTokenIdResponse -func (c *ClientWithResponses) GetUsersUserIdTokensTokenIdWithResponse(ctx context.Context, userId string, tokenId string, reqEditors ...RequestEditorFn) (*GetUsersUserIdTokensTokenIdResponse, error) { - rsp, err := c.GetUsersUserIdTokensTokenId(ctx, userId, tokenId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetUsersUserIdTokensTokenIdResponse(rsp) + return response, nil } -// ParseGetCurrentUserResponse parses an HTTP response from a GetCurrentUserWithResponse call -func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, error) { +// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsWithResponse call +func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCurrentUserResponse{ + response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserProfileExtendedResponse + var dest []DeploymentErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19023,121 +23754,144 @@ func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, e return response, nil } -// ParsePatchCurrentUserResponse parses an HTTP response from a PatchCurrentUserWithResponse call -func ParsePatchCurrentUserResponse(rsp *http.Response) (*PatchCurrentUserResponse, error) { +// ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithResponse call +func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchCurrentUserResponse{ + response := &PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserProfileExtendedResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest HumanitecErrorResponse 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 == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON404 = &dest } return response, nil } -// ParseGetOrgsResponse parses an HTTP response from a GetOrgsWithResponse call -func ParseGetOrgsResponse(rsp *http.Response) (*GetOrgsResponse, error) { +// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesWithResponse call +func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsResponse{ + response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []OrganizationResponse + var dest []ActiveResourceResponse 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 == 500: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + } return response, nil } -// ParseGetOrgsOrgIdResponse parses an HTTP response from a GetOrgsOrgIdWithResponse call -func ParseGetOrgsOrgIdResponse(rsp *http.Response) (*GetOrgsOrgIdResponse, error) { +// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithResponse call +func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdResponse{ + response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest OrganizationResponse + var dest []NodeBodyResponse 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 ErrorInfoResponse + var dest HumanitecErrorResponse 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 == 409: - var dest ErrorInfoResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON500 = &dest } return response, nil } -// ParseGetOrgsOrgIdAppsResponse parses an HTTP response from a GetOrgsOrgIdAppsWithResponse call -func ParseGetOrgsOrgIdAppsResponse(rsp *http.Response) (*GetOrgsOrgIdAppsResponse, error) { +// ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdWithResponse call +func ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsResponse{ + response := &DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse call +func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []ApplicationResponse + var dest []AutomationRuleResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19148,203 +23902,224 @@ func ParseGetOrgsOrgIdAppsResponse(rsp *http.Response) (*GetOrgsOrgIdAppsRespons return response, nil } -// ParsePostOrgsOrgIdAppsResponse parses an HTTP response from a PostOrgsOrgIdAppsWithResponse call -func ParsePostOrgsOrgIdAppsResponse(rsp *http.Response) (*PostOrgsOrgIdAppsResponse, error) { +// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse call +func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrgsOrgIdAppsResponse{ + response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ApplicationResponse + var dest AutomationRuleResponse 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 HumanitecErrorResponse + var dest ErrorInfoResponse 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 HumanitecErrorResponse - 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 == 409: - var dest HumanitecErrorResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest + return response, nil +} + +// ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse call +func ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + response := &DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } return response, nil } -// ParseDeleteOrgsOrgIdAppsAppIdResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdWithResponse call -func ParseDeleteOrgsOrgIdAppsAppIdResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdResponse, error) { +// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse call +func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteOrgsOrgIdAppsAppIdResponse{ + response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest HumanitecErrorResponse - 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 == 404: - var dest HumanitecErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AutomationRuleResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON200 = &dest } return response, nil } -// ParseGetOrgsOrgIdAppsAppIdResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdWithResponse call -func ParseGetOrgsOrgIdAppsAppIdResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdResponse, error) { +// ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse call +func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsAppIdResponse{ + response := &PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ApplicationResponse + var dest AutomationRuleResponse 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 == 404: - var dest HumanitecErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest ErrorInfoResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON400 = &dest } return response, nil } -// ParseGetOrgsOrgIdAppsAppIdDeltasResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdDeltasWithResponse call -func ParseGetOrgsOrgIdAppsAppIdDeltasResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdDeltasResponse, error) { +// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeWithResponse call +func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsAppIdDeltasResponse{ + response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []DeltaResponse + var dest RuntimeInfoResponse 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 HumanitecErrorResponse + 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 == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } return response, nil } -// ParsePostOrgsOrgIdAppsAppIdDeltasResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdDeltasWithResponse call -func ParsePostOrgsOrgIdAppsAppIdDeltasResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error) { +// ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithResponse call +func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrgsOrgIdAppsAppIdDeltasResponse{ + response := &PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - union json.RawMessage + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest HumanitecErrorResponse + 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 HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON404 = &dest } return response, nil } -// ParseGetDeltaResponse parses an HTTP response from a GetDeltaWithResponse call -func ParseGetDeltaResponse(rsp *http.Response) (*GetDeltaResponse, error) { +// ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse parses an HTTP response from a PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithResponse call +func ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse(rsp *http.Response) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDeltaResponse{ + response := &PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DeltaResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest HumanitecErrorResponse 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 == 403: + var dest HumanitecErrorResponse + 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 string + var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19355,69 +24130,55 @@ func ParseGetDeltaResponse(rsp *http.Response) (*GetDeltaResponse, error) { return response, nil } -// ParsePatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse parses an HTTP response from a PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithResponse call -func ParsePatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse(rsp *http.Response) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error) { +// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsWithResponse call +func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse{ + response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DeltaResponse + var dest []ValueSetVersionResponse 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 HumanitecErrorResponse - 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 == 404: - var dest string - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - } return response, nil } -// ParsePutDeltaResponse parses an HTTP response from a PutDeltaWithResponse call -func ParsePutDeltaResponse(rsp *http.Response) (*PutDeltaResponse, error) { +// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdWithResponse call +func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutDeltaResponse{ + response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest HumanitecErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ValueSetVersionResponse 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 == 404: - var dest string + var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19428,15 +24189,15 @@ func ParsePutDeltaResponse(rsp *http.Response) (*PutDeltaResponse, error) { return response, nil } -// ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithResponse call -func ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error) { +// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithResponse call +func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse{ + response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -19450,7 +24211,7 @@ func ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse(rsp *http.R response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest string + var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19461,29 +24222,29 @@ func ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse(rsp *http.R return response, nil } -// ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithResponse call -func ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error) { +// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithResponse call +func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse{ + response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest HumanitecErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ValueSetVersionResponse 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 == 404: - var dest string + var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19494,20 +24255,27 @@ func ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse(rsp *http.Resp return response, nil } -// ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithResponse call -func ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error) { +// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithResponse call +func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse{ + response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ValueSetVersionResponse + 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 HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -19516,7 +24284,7 @@ func ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse(rsp *http.Respo response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest string + var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19527,22 +24295,38 @@ func ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse(rsp *http.Respo return response, nil } -// ParseGetOrgsOrgIdAppsAppIdEnvsResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsWithResponse call -func ParseGetOrgsOrgIdAppsAppIdEnvsResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsResponse, error) { +// ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse call +func ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsAppIdEnvsResponse{ + response := &DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse call +func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []EnvironmentResponse + var dest []ValueResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19553,26 +24337,26 @@ func ParseGetOrgsOrgIdAppsAppIdEnvsResponse(rsp *http.Response) (*GetOrgsOrgIdAp return response, nil } -// ParsePostOrgsOrgIdAppsAppIdEnvsResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsWithResponse call -func ParsePostOrgsOrgIdAppsAppIdEnvsResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsResponse, error) { +// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse call +func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrgsOrgIdAppsAppIdEnvsResponse{ + response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest EnvironmentResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ValueResponse 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 HumanitecErrorResponse @@ -19581,13 +24365,6 @@ func ParsePostOrgsOrgIdAppsAppIdEnvsResponse(rsp *http.Response) (*PostOrgsOrgId } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest HumanitecErrorResponse - 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 HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -19600,15 +24377,15 @@ func ParsePostOrgsOrgIdAppsAppIdEnvsResponse(rsp *http.Response) (*PostOrgsOrgId return response, nil } -// ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse call -func ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error) { +// ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse call +func ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse{ + response := &DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -19633,27 +24410,34 @@ func ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResponse(rsp *http.Response) (*Delete return response, nil } -// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse call -func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error) { +// ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse parses an HTTP response from a PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse call +func ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp *http.Response) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse{ + response := &PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest EnvironmentResponse + var dest ValueResponse 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 HumanitecErrorResponse + 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 == 404: var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -19666,27 +24450,34 @@ func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResponse(rsp *http.Response) (*GetOrgsOr return response, nil } -// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse call -func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) { +// ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse call +func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse{ + response := &PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []DeploymentResponse + var dest ValueResponse 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 HumanitecErrorResponse + 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 == 404: var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -19699,26 +24490,42 @@ func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse(rsp *http.Response) (*Ge return response, nil } -// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithResponse call -func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error) { +// ParseDeleteOrgsOrgIdAppsAppIdJobsResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdJobsWithResponse call +func ParseDeleteOrgsOrgIdAppsAppIdJobsResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdJobsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse{ + response := &DeleteOrgsOrgIdAppsAppIdJobsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseListPipelinesResponse parses an HTTP response from a ListPipelinesWithResponse call +func ParseListPipelinesResponse(rsp *http.Response) (*ListPipelinesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListPipelinesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest DeploymentResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []PipelineResponse 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 HumanitecErrorResponse @@ -19734,86 +24541,67 @@ func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse(rsp *http.Response) (*P } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest HumanitecErrorResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - } return response, nil } -// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdWithResponse call -func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse, error) { +// ParseCreatePipelineResponse parses an HTTP response from a CreatePipelineWithResponse call +func ParseCreatePipelineResponse(rsp *http.Response) (*CreatePipelineResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdResponse{ + response := &CreatePipelineResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DeploymentResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest PipelineResponse 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 == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest - - } - - return response, nil -} - -// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsWithResponse call -func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + response.JSON400 = &dest - response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdDeploysDeployIdErrorsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []DeploymentErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON409 = &dest } return response, nil } -// ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdWithResponse call -func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse, error) { +// ParseDeletePipelineResponse parses an HTTP response from a DeletePipelineWithResponse call +func ParseDeletePipelineResponse(rsp *http.Response) (*DeletePipelineResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse{ + response := &DeletePipelineResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -19833,60 +24621,81 @@ func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdResponse(rsp *http.Response) } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest HumanitecErrorResponse + 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 == 412: + var dest ErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON412 = &dest + } return response, nil } -// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesWithResponse call -func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse, error) { +// ParseGetPipelineResponse parses an HTTP response from a GetPipelineWithResponse call +func ParseGetPipelineResponse(rsp *http.Response) (*GetPipelineResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdResourcesResponse{ + response := &GetPipelineResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []ActiveResourceResponse + var dest PipelineResponse 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 == 500: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest } return response, nil } -// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphWithResponse call -func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse, error) { +// ParseUpdatePipelineResponse parses an HTTP response from a UpdatePipelineWithResponse call +func ParseUpdatePipelineResponse(rsp *http.Response) (*UpdatePipelineResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse{ + response := &UpdatePipelineResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []NodeBodyResponse + var dest PipelineResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -19899,189 +24708,140 @@ func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphResponse(rsp *http.Respon } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON500 = &dest - - } + response.JSON404 = &dest - return response, nil -} + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest -// ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdWithResponse call -func ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: + var dest ErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON412 = &dest - response := &DeleteOrgsOrgIdAppsAppIdEnvsEnvIdResourcesTypeResIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, } return response, nil } -// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse call -func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) { +// ParseListPipelineRunsResponse parses an HTTP response from a ListPipelineRunsWithResponse call +func ParseListPipelineRunsResponse(rsp *http.Response) (*ListPipelineRunsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse{ + response := &ListPipelineRunsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []AutomationRuleResponse + var dest []RunResponse 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 HumanitecErrorResponse + 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 == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } return response, nil } -// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesWithResponse call -func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse, error) { +// ParseCreatePipelineRunResponse parses an HTTP response from a CreatePipelineRunWithResponse call +func ParseCreatePipelineRunResponse(rsp *http.Response) (*CreatePipelineRunResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesResponse{ + response := &CreatePipelineRunResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest AutomationRuleResponse + var dest RunResponse 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 ErrorInfoResponse + var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON400 = &dest - } - - return response, nil -} - -// ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse call -func ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse call -func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AutomationRuleResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse call -func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON404 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AutomationRuleResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest HumanitecErrorResponse 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 == 400: - var dest ErrorInfoResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON422 = &dest } return response, nil } -// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeWithResponse call -func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse, error) { +// ParseDeleteRunResponse parses an HTTP response from a DeleteRunWithResponse call +func ParseDeleteRunResponse(rsp *http.Response) (*DeleteRunResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse{ + response := &DeleteRunResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RuntimeInfoResponse - 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 HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20096,38 +24856,45 @@ func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse(rsp *http.Response) (*Ge } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest HumanitecErrorResponse + 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 == 412: + var dest ErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON412 = &dest + } return response, nil } -// ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithResponse call -func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error) { +// ParseGetRunResponse parses an HTTP response from a GetRunWithResponse call +func ParseGetRunResponse(rsp *http.Response) (*GetRunResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse{ + response := &GetRunResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest HumanitecErrorResponse - 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 HumanitecErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest RunResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest HumanitecErrorResponse @@ -20141,15 +24908,15 @@ func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse(rsp *http.Response return response, nil } -// ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse parses an HTTP response from a PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithResponse call -func ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse(rsp *http.Response) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error) { +// ParseCancelRunResponse parses an HTTP response from a CancelRunWithResponse call +func ParseCancelRunResponse(rsp *http.Response) (*CancelRunResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse{ + response := &CancelRunResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -20162,67 +24929,81 @@ func ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse(rsp *http.Resp } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest HumanitecErrorResponse 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 == 412: + var dest ErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON412 = &dest } return response, nil } -// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsWithResponse call -func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse, error) { +// ParseListRunJobsResponse parses an HTTP response from a ListRunJobsWithResponse call +func ParseListRunJobsResponse(rsp *http.Response) (*ListRunJobsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse{ + response := &ListRunJobsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []ValueSetVersionResponse + var dest []RunJobListResponse 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 == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } return response, nil } -// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdWithResponse call -func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse, error) { +// ParseGetRunJobResponse parses an HTTP response from a GetRunJobWithResponse call +func ParseGetRunJobResponse(rsp *http.Response) (*GetRunJobResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdResponse{ + response := &GetRunJobResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ValueSetVersionResponse + var dest RunJobResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20240,26 +25021,26 @@ func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRespons return response, nil } -// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyWithResponse call -func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse, error) { +// ParseGetApprovalRequestResponse parses an HTTP response from a GetApprovalRequestWithResponse call +func ParseGetApprovalRequestResponse(rsp *http.Response) (*GetApprovalRequestResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyResponse{ + response := &GetApprovalRequestResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest HumanitecErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApprovalRequest 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 == 404: var dest HumanitecErrorResponse @@ -20273,27 +25054,41 @@ func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeK return response, nil } -// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreWithResponse call -func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse, error) { +// ParseApproveApprovalRequestResponse parses an HTTP response from a ApproveApprovalRequestWithResponse call +func ParseApproveApprovalRequestResponse(rsp *http.Response) (*ApproveApprovalRequestResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreResponse{ + response := &ApproveApprovalRequestResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ValueSetVersionResponse + var dest ApprovalRequest 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 HumanitecErrorResponse + 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 ErrorResponse + 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 HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20305,23 +25100,23 @@ func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestor return response, nil } - -// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyWithResponse call -func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse, error) { + +// ParseDenyApprovalRequestResponse parses an HTTP response from a DenyApprovalRequestWithResponse call +func ParseDenyApprovalRequestResponse(rsp *http.Response) (*DenyApprovalRequestResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestoreKeyResponse{ + response := &DenyApprovalRequestResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ValueSetVersionResponse + var dest ApprovalRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20334,6 +25129,13 @@ func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestor } response.JSON400 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest ErrorResponse + 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 HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -20346,64 +25148,55 @@ func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdRestor return response, nil } -// ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse call -func ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse call -func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { +// ParseListRunJobStepLogsResponse parses an HTTP response from a ListRunJobStepLogsWithResponse call +func ParseListRunJobStepLogsResponse(rsp *http.Response) (*ListRunJobStepLogsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse{ + response := &ListRunJobStepLogsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []ValueResponse + var dest []RunJobStepLog 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 == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + } return response, nil } -// ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse parses an HTTP response from a PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesWithResponse call -func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp *http.Response) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse, error) { +// ParseRestartRunResponse parses an HTTP response from a RestartRunWithResponse call +func ParseRestartRunResponse(rsp *http.Response) (*RestartRunResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse{ + response := &RestartRunResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ValueResponse + var dest RunResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20416,67 +25209,48 @@ func ParsePostOrgsOrgIdAppsAppIdEnvsEnvIdValuesResponse(rsp *http.Response) (*Po } response.JSON400 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest - - } - - return response, nil -} - -// ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse call -func ParseDeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + response.JSON404 = &dest - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: var dest HumanitecErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest HumanitecErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest } return response, nil } -// ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse parses an HTTP response from a PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse call -func ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp *http.Response) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { +// ParseGetPipelineSchemaResponse parses an HTTP response from a GetPipelineSchemaWithResponse call +func ParseGetPipelineSchemaResponse(rsp *http.Response) (*GetPipelineSchemaResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse{ + response := &GetPipelineSchemaResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ValueResponse + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20496,27 +25270,30 @@ func ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp *http.Response) } response.JSON404 = &dest + case rsp.StatusCode == 200: + // Content-type (application/x.humanitec-pipelines-v1.0+yaml) unsupported + } return response, nil } -// ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyWithResponse call -func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse, error) { +// ParseListPipelineVersionsResponse parses an HTTP response from a ListPipelineVersionsWithResponse call +func ParseListPipelineVersionsResponse(rsp *http.Response) (*ListPipelineVersionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse{ + response := &ListPipelineVersionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ValueResponse + var dest []PipelineVersionResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -20541,22 +25318,6 @@ func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyResponse(rsp *http.Response) (* return response, nil } -// ParseDeleteOrgsOrgIdAppsAppIdJobsResponse parses an HTTP response from a DeleteOrgsOrgIdAppsAppIdJobsWithResponse call -func ParseDeleteOrgsOrgIdAppsAppIdJobsResponse(rsp *http.Response) (*DeleteOrgsOrgIdAppsAppIdJobsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteOrgsOrgIdAppsAppIdJobsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - // ParseGetOrgsOrgIdAppsAppIdRuntimeResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdRuntimeWithResponse call func ParseGetOrgsOrgIdAppsAppIdRuntimeResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdRuntimeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -22168,6 +26929,119 @@ func ParsePostOrgsOrgIdInvitationsResponse(rsp *http.Response) (*PostOrgsOrgIdIn return response, nil } +// ParseListPipelineRunsByOrgResponse parses an HTTP response from a ListPipelineRunsByOrgWithResponse call +func ParseListPipelineRunsByOrgResponse(rsp *http.Response) (*ListPipelineRunsByOrgResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListPipelineRunsByOrgResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []RunResponse + 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 HumanitecErrorResponse + 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 == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetLatestPipelineSchemaResponse parses an HTTP response from a GetLatestPipelineSchemaWithResponse call +func ParseGetLatestPipelineSchemaResponse(rsp *http.Response) (*GetLatestPipelineSchemaResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetLatestPipelineSchemaResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseListPipelinesByOrgResponse parses an HTTP response from a ListPipelinesByOrgWithResponse call +func ParseListPipelinesByOrgResponse(rsp *http.Response) (*ListPipelinesByOrgResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListPipelinesByOrgResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []PipelineResponse + 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 HumanitecErrorResponse + 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 == 404: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + // ParseGetOrgsOrgIdRegistriesResponse parses an HTTP response from a GetOrgsOrgIdRegistriesWithResponse call func ParseGetOrgsOrgIdRegistriesResponse(rsp *http.Response) (*GetOrgsOrgIdRegistriesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -23613,6 +28487,72 @@ func ParsePatchOrgsOrgIdUsersUserIdResponse(rsp *http.Response) (*PatchOrgsOrgId return response, nil } +// ParseGetWorkloadProfileChartVersionsResponse parses an HTTP response from a GetWorkloadProfileChartVersionsWithResponse call +func ParseGetWorkloadProfileChartVersionsResponse(rsp *http.Response) (*GetWorkloadProfileChartVersionsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWorkloadProfileChartVersionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []WorkloadProfileChartVersionResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostWorkloadProfileChartVersionResponse parses an HTTP response from a PostWorkloadProfileChartVersionWithResponse call +func ParsePostWorkloadProfileChartVersionResponse(rsp *http.Response) (*PostWorkloadProfileChartVersionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostWorkloadProfileChartVersionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest WorkloadProfileChartVersionResponse + 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 HumanitecErrorResponse + 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 == 409: + var dest HumanitecErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + // ParseGetOrgsOrgIdWorkloadProfilesResponse parses an HTTP response from a GetOrgsOrgIdWorkloadProfilesWithResponse call func ParseGetOrgsOrgIdWorkloadProfilesResponse(rsp *http.Response) (*GetOrgsOrgIdWorkloadProfilesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) diff --git a/docs/openapi.json b/docs/openapi.json index 820b2e7..073b84a 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -2,7 +2,7 @@ "openapi": "3.0.0", "info": { "title": "Humanitec API", - "version": "0.22.0", + "version": "0.23.1", "description": "# Introduction\nThe *Humanitec API* allows you to automate and integrate Humanitec into your developer and operational workflows.\nThe API is a REST based API. It is based around a set of concepts:\n\n* Core\n* External Resources\n* Sets and Deltas\n\n## Authentication\nAlmost all requests made to the Humanitec API require Authentication. Humanitec provides 2 ways of authenticating with the API: `Bearer` and `JWT`.\n\n### Bearer Authentication\nThis form of authentication makes use of a **static token**. It is intended to be used when machines interact with the Humanitec API. Bearer tokens should be used for very narrow purposes. This allows for the token to be revoked if it is compromised and so limit the scope of exposure.\nNew Bearer tokens can be obtained via the UI:\n\n1. Log into Humanitec at https://app.humanitec.io\n1. Go to **Organization Settings**\n1. Select **API tokens**\n1. Enter a *name* for the new token and click on **Generate new token**\n\nThe token is passed to the API via the `Authorization` header. Assuming the issued token is `HUMANITEC_TOKEN`, the request could be made as follows:\n\n```\n curl -H 'Authorization: Bearer HUMANITEC_TOKEN' https://api.humanitec.io/orgs/my-org/apps\n```\n\n### JWT Authentication\nThis form of authentication makes use of a **JSON Web Token (JWT)**. It is intended to be used when humans interact with the Humanitec API. JWTs expire after a period of time. This means that a new JWT will need to be generated regularly. This makes them well suited to working in short sessions, but not for automation. (See Bearer Authentication.)\nThe token is passed to the API via the `Authorization` header. Assuming the issued token is `HUMANITEC_JWT`, the request could be made as follows:\n\n```\n curl -H 'Authorization: JWT HUMANITEC_JWT' https://api.humanitec.io/orgs/my-org/apps\n```\n\n## Content Types\nAll of the Humanitec API unless explicitly only accepts content types of `application/json` and will always return valid `application/json` or an empty response.\n\n## Response Codes\n### Success\nAny response code in the `2xx` range should be regarded as success.\n\n| **Code** | **Meaning** |\n| --- | --- |\n| `200` | Success |\n| `201` | Success (In future, `201` will be replaced by `200`) |\n| `204` | Success, but no content in response |\n\n_Note: We plan to simplify the interface by replacing 201 with 200 status codes._\n\n### Failure\nAny response code in the `4xx` should be regarded as an error which can be rectified by the client. `5xx` error codes indicate errors that cannot be corrected by the client.\n\n| **Code** | **Meaning** |\n| --- | --- |\n| `400` | General error. (Body will contain details) |\n| `401` | Attempt to access protected resource without `Authorization` Header. |\n| `403` | The `Bearer` or `JWT` does not grant access to the requested resource. |\n| `404` | Resource not found. |\n| `405` | Method not allowed |\n| `409` | Conflict. Usually indicated a resource with that ID already exists. |\n| `422` | Unprocessable Entity. The body was not valid JSON, was empty or contained an object different from what was expected. |\n| `429` | Too many requests - request rate limit has been reached. |\n| `500` | Internal Error. If it occurs repeatedly, contact support. |\n", "contact": { "name": "API Support", @@ -4096,26 +4096,1253 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorInfoResponse" + "$ref": "#/components/schemas/HumanitecErrorResponse" + } + } + } + }, + "401": { + "description": "Required HTTP Authorization header is missing or malformed.\n\n" + }, + "403": { + "description": "Current user is not authorized to perform the request.\n\n" + }, + "409": { + "description": "Organization can't be accessed with this request.\n\n", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HumanitecErrorResponse" + } + } + } + } + } + } + }, + "/orgs/{orgId}/pipelines": { + "get": { + "tags": [ + "public", + "Pipelines" + ], + "operationId": "ListPipelinesByOrg", + "summary": "List all pipelines within an application. This can be filtered by app.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/byAppIdQueryParam" + }, + { + "$ref": "#/components/parameters/perPageQueryParam" + }, + { + "$ref": "#/components/parameters/pageTokenQueryParam" + }, + { + "$ref": "#/components/parameters/byTriggerTypeQueryParam" + }, + { + "$ref": "#/components/parameters/byMetadata" + } + ], + "responses": { + "200": { + "description": "Successful list response. If the Link header is present, more data may be available.", + "headers": { + "Link": { + "schema": { + "type": "string" + }, + "description": "A list of request links, optionally including a \"next\" page link for pagination." + } + }, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PipelineResponse" + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines": { + "get": { + "tags": [ + "public", + "Pipelines" + ], + "operationId": "ListPipelines", + "summary": "List pipelines within an application.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/perPageQueryParam" + }, + { + "$ref": "#/components/parameters/pageTokenQueryParam" + }, + { + "$ref": "#/components/parameters/byTriggerTypeQueryParam" + }, + { + "$ref": "#/components/parameters/byMetadata" + } + ], + "responses": { + "200": { + "description": "Successful list response. If the Link header is present, more data may be available.", + "headers": { + "Link": { + "schema": { + "type": "string" + }, + "description": "A list of request links, optionally including a \"next\" page link for pagination." + } + }, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PipelineResponse" + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + } + } + }, + "post": { + "tags": [ + "public", + "Pipelines" + ], + "operationId": "CreatePipeline", + "summary": "Create a pipeline within an application.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + } + ], + "requestBody": { + "required": true, + "content": { + "application/x-yaml": { + "schema": { + "$ref": "#/components/schemas/PipelineSchemaRequest" + } + } + } + }, + "responses": { + "201": { + "description": "Successful creation response.", + "headers": { + "Etag": { + "$ref": "#/components/headers/Etag" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PipelineResponse" + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + }, + "409": { + "$ref": "#/components/responses/409Conflict" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}": { + "get": { + "tags": [ + "public", + "Pipelines" + ], + "operationId": "GetPipeline", + "summary": "Get a pipeline within an application.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/byVersionQueryParam" + } + ], + "responses": { + "200": { + "description": "Successful get response.", + "headers": { + "Etag": { + "$ref": "#/components/headers/Etag" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PipelineResponse" + } + } + } + }, + "404": { + "$ref": "#/components/responses/404NotFound" + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + } + } + }, + "patch": { + "tags": [ + "public", + "Pipelines" + ], + "operationId": "UpdatePipeline", + "summary": "Update a pipeline within an application.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/ifMatchHeaderParam" + } + ], + "requestBody": { + "required": true, + "content": { + "application/x-yaml": { + "schema": { + "$ref": "#/components/schemas/PipelineSchemaRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Successful get response.", + "headers": { + "Etag": { + "$ref": "#/components/headers/Etag" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PipelineResponse" + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + }, + "409": { + "$ref": "#/components/responses/409Conflict" + }, + "412": { + "$ref": "#/components/responses/412PreconditionFailed" + } + } + }, + "delete": { + "tags": [ + "public", + "Pipelines" + ], + "operationId": "DeletePipeline", + "summary": "Delete a pipeline within an application.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/ifMatchHeaderParam" + } + ], + "responses": { + "204": { + "description": "Pipeline has been successfully deleted" + }, + "202": { + "description": "Request for pipeline deletion successfully committed" + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + }, + "409": { + "$ref": "#/components/responses/409Conflict" + }, + "412": { + "$ref": "#/components/responses/412PreconditionFailed" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/versions": { + "get": { + "tags": [ + "public", + "Pipelines" + ], + "operationId": "ListPipelineVersions", + "summary": "List all versions of the pipeline", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/perPageQueryParam" + }, + { + "$ref": "#/components/parameters/pageTokenQueryParam" + } + ], + "responses": { + "200": { + "description": "Successful list response. If the Link header is present, more data may be available.", + "headers": { + "Link": { + "schema": { + "type": "string" + }, + "description": "A list of request links, optionally including a \"next\" page link for pagination." + } + }, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PipelineVersionResponse" + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/schema": { + "get": { + "tags": [ + "public", + "Pipelines" + ], + "operationId": "GetPipelineSchema", + "summary": "Get a pipeline schema.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/byVersionQueryParam" + }, + { + "name": "Accept", + "in": "header", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Successful get response.", + "content": { + "application/x.humanitec-pipelines-v1.0+yaml": { + "schema": { + "type": "object" + } + }, + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "$ref": "#/components/responses/404NotFound" + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + } + } + } + }, + "/orgs/{orgId}/pipeline-schemas/latest": { + "get": { + "tags": [ + "public", + "Pipelines" + ], + "operationId": "GetLatestPipelineSchema", + "summary": "Gets the latest pipeline schema", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + } + ], + "responses": { + "200": { + "description": "Successful get response.", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + } + } + } + }, + "/orgs/{orgId}/pipeline-runs": { + "get": { + "tags": [ + "public", + "PipelineRuns" + ], + "operationId": "ListPipelineRunsByOrg", + "summary": "List all pipeline runs within the Org. This can be filtered by app, pipeline, and status.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/byAppIdQueryParam" + }, + { + "$ref": "#/components/parameters/byPipelineIdQueryParam" + }, + { + "$ref": "#/components/parameters/byStatusQueryParam" + }, + { + "$ref": "#/components/parameters/byCompletedQueryParam" + }, + { + "$ref": "#/components/parameters/byCreatedAfterParam" + }, + { + "$ref": "#/components/parameters/byCreatedBeforeParam" + }, + { + "$ref": "#/components/parameters/perPageQueryParam" + }, + { + "$ref": "#/components/parameters/pageTokenQueryParam" + } + ], + "responses": { + "200": { + "description": "Successful list response. If the Link header is present, more data may be available.", + "headers": { + "Link": { + "schema": { + "type": "string" + }, + "description": "A list of request links, optionally including a \"next\" page link for pagination." + } + }, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RunResponse" + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/runs": { + "get": { + "tags": [ + "public", + "PipelineRuns" + ], + "operationId": "ListPipelineRuns", + "summary": "List runs within a pipeline.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/byStatusQueryParam" + }, + { + "$ref": "#/components/parameters/byCompletedQueryParam" + }, + { + "$ref": "#/components/parameters/byCreatedAfterParam" + }, + { + "$ref": "#/components/parameters/byCreatedBeforeParam" + }, + { + "$ref": "#/components/parameters/perPageQueryParam" + }, + { + "$ref": "#/components/parameters/pageTokenQueryParam" + } + ], + "responses": { + "200": { + "description": "Successful list response. If the Link header is present, more data may be available.", + "headers": { + "Link": { + "schema": { + "type": "string" + }, + "description": "A list of request links, optionally including a \"next\" page link for pagination." + } + }, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RunResponse" + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + } + } + }, + "post": { + "tags": [ + "public", + "PipelineRuns" + ], + "operationId": "CreatePipelineRun", + "summary": "Create a run within a pipeline.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/idempotencyKey" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RunCreateRequest" + } + } + } + }, + "responses": { + "201": { + "description": "Successful creation response.", + "headers": { + "Etag": { + "$ref": "#/components/headers/Etag" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RunResponse" + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + }, + "409": { + "$ref": "#/components/responses/409Conflict" + }, + "422": { + "$ref": "#/components/responses/422UnprocessableContent" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/runs/{runId}": { + "get": { + "tags": [ + "public", + "PipelineRuns" + ], + "operationId": "GetRun", + "summary": "Get a run within an pipeline.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/runIdPathParam" + } + ], + "responses": { + "200": { + "description": "Successful get response.", + "headers": { + "Etag": { + "$ref": "#/components/headers/Etag" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RunResponse" + } + } + } + }, + "404": { + "$ref": "#/components/responses/404NotFound" + } + } + }, + "delete": { + "tags": [ + "public", + "PipelineRuns" + ], + "operationId": "DeleteRun", + "summary": "Deleting a completed Run within a Pipeline.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/runIdPathParam" + }, + { + "$ref": "#/components/parameters/ifMatchHeaderParam" + } + ], + "responses": { + "204": { + "description": "Successfully deleted the Run." + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + }, + "409": { + "$ref": "#/components/responses/409Conflict" + }, + "412": { + "$ref": "#/components/responses/412PreconditionFailed" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/runs/{runId}/cancel": { + "post": { + "tags": [ + "public", + "PipelineRuns" + ], + "operationId": "CancelRun", + "summary": "Cancel a Run within an Pipeline.", + "description": "Attempts to cancel the specified Run. If the Run is in a queued state, this cancellation will be applied\nimmediately. If the Run is executing, the cancellation will be stored and will be resolved by the next\nJob or Step that supports in-flight cancellation. Runs that are in any other state, are not cancellable.\n", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/runIdPathParam" + }, + { + "$ref": "#/components/parameters/ifMatchHeaderParam" + } + ], + "responses": { + "204": { + "description": "Successful cancellation or the Run was already cancelled." + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + }, + "409": { + "$ref": "#/components/responses/409Conflict" + }, + "412": { + "$ref": "#/components/responses/412PreconditionFailed" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/runs/{runId}/restart": { + "post": { + "tags": [ + "public", + "PipelineRuns" + ], + "operationId": "RestartRun", + "summary": "Restart a Run within an Pipeline by cloning it with the same trigger and inputs.", + "description": "Attempts to copy and restart the specified Run. The run must be in a completed state.\n", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/runIdPathParam" + }, + { + "$ref": "#/components/parameters/idempotencyKey" + } + ], + "responses": { + "201": { + "description": "Successful restart response.", + "headers": { + "Etag": { + "$ref": "#/components/headers/Etag" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RunResponse" + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + }, + "409": { + "$ref": "#/components/responses/409Conflict" + }, + "422": { + "$ref": "#/components/responses/422UnprocessableContent" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/runs/{runId}/jobs": { + "get": { + "tags": [ + "public", + "PipelineRuns" + ], + "operationId": "ListRunJobs", + "summary": "List the details of the jobs with in a pipeline run.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/runIdPathParam" + }, + { + "$ref": "#/components/parameters/byStatusQueryParam" + }, + { + "$ref": "#/components/parameters/perPageQueryParam" + }, + { + "$ref": "#/components/parameters/pageTokenQueryParam" + } + ], + "responses": { + "200": { + "description": "Successful list response.", + "headers": { + "Link": { + "schema": { + "type": "string" + }, + "description": "A list of request links, optionally including a \"next\" page link for pagination." + } + }, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RunJobListResponse" + } + } + } + } + }, + "404": { + "$ref": "#/components/responses/404NotFound" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/runs/{runId}/jobs/{jobId}": { + "get": { + "tags": [ + "public", + "PipelineRuns" + ], + "operationId": "GetRunJob", + "summary": "List the details of a Job including Step information", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/runIdPathParam" + }, + { + "$ref": "#/components/parameters/jobIdPathParam" + } + ], + "responses": { + "200": { + "description": "Successful response", + "headers": { + "Etag": { + "$ref": "#/components/headers/Etag" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RunJobResponse" } } } }, - "401": { - "description": "Required HTTP Authorization header is missing or malformed.\n\n" + "404": { + "$ref": "#/components/responses/404NotFound" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/runs/{runId}/jobs/{jobId}/steps/{stepIndex}/logs": { + "get": { + "tags": [ + "public", + "PipelineRuns" + ], + "operationId": "ListRunJobStepLogs", + "summary": "Get a page of log output for a given step within a job.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/runIdPathParam" + }, + { + "$ref": "#/components/parameters/jobIdPathParam" + }, + { + "$ref": "#/components/parameters/stepIndexPathParam" + }, + { + "$ref": "#/components/parameters/pageTokenQueryParam" + } + ], + "responses": { + "200": { + "description": "Successful response", + "headers": { + "Etag": { + "$ref": "#/components/headers/Etag" + }, + "Link": { + "schema": { + "type": "string" + }, + "description": "A list of request links, optionally including a \"next\" page link for pagination." + } + }, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RunJobStepLog" + } + } + } + } + }, + "307": { + "$ref": "#/components/responses/307TemporaryRedirect" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/approvals": { + "get": { + "tags": [ + "public", + "PipelineApprovals" + ], + "operationId": "ListApprovalRequests", + "summary": "List of the approval requests", + "description": "List of the approval requests with in an app.\n", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/perPageQueryParam" + }, + { + "$ref": "#/components/parameters/pageTokenQueryParam" + }, + { + "$ref": "#/components/parameters/byPipelineIdQueryParam" + }, + { + "$ref": "#/components/parameters/byRunIdQueryParam" + }, + { + "$ref": "#/components/parameters/byApprovalStatusQueryParam" + } + ], + "responses": { + "200": { + "description": "Successful list response.", + "headers": { + "Link": { + "schema": { + "type": "string" + }, + "description": "A list of request links, optionally including a \"next\" page link for pagination." + } + }, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApprovalRequest" + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/runs/{runId}/jobs/{jobId}/approvals/{approvalId}": { + "get": { + "tags": [ + "public", + "PipelineApprovals" + ], + "operationId": "GetApprovalRequest", + "summary": "Get an approval request", + "description": "Get an approval request.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/runIdPathParam" + }, + { + "$ref": "#/components/parameters/jobIdPathParam" + }, + { + "$ref": "#/components/parameters/approvalIdPathParam" + } + ], + "responses": { + "200": { + "description": "Successful get approval request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalRequest" + } + } + } + }, + "404": { + "$ref": "#/components/responses/404NotFound" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/runs/{runId}/jobs/{jobId}/approvals/{approvalId}/approve": { + "post": { + "tags": [ + "public", + "PipelineApprovals" + ], + "operationId": "ApproveApprovalRequest", + "summary": "Approve the approval request", + "description": "Approve the approval requested.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + }, + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/runIdPathParam" + }, + { + "$ref": "#/components/parameters/jobIdPathParam" + }, + { + "$ref": "#/components/parameters/approvalIdPathParam" + } + ], + "responses": { + "200": { + "description": "Request successfully approved.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalRequest" + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" }, "403": { - "description": "Current user is not authorized to perform the request.\n\n" + "$ref": "#/components/responses/403Forbidden" + } + } + } + }, + "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/runs/{runId}/jobs/{jobId}/approvals/{approvalId}/deny": { + "post": { + "tags": [ + "public", + "PipelineApprovals" + ], + "operationId": "DenyApprovalRequest", + "summary": "Deny the approval request", + "description": "Deny the approval requested.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" }, - "409": { - "description": "Organization can't be accessed with this request.\n\n", + { + "$ref": "#/components/parameters/appIdPathParam" + }, + { + "$ref": "#/components/parameters/pipelineIdPathParam" + }, + { + "$ref": "#/components/parameters/runIdPathParam" + }, + { + "$ref": "#/components/parameters/jobIdPathParam" + }, + { + "$ref": "#/components/parameters/approvalIdPathParam" + } + ], + "responses": { + "200": { + "description": "Request successfully denied.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorInfoResponse" + "$ref": "#/components/schemas/ApprovalRequest" } } } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "404": { + "$ref": "#/components/responses/404NotFound" + }, + "403": { + "$ref": "#/components/responses/403Forbidden" } } } @@ -9643,6 +10870,86 @@ } } } + }, + "/orgs/{orgId}/workload-profile-chart-versions": { + "post": { + "tags": [ + "public", + "WorkloadProfile" + ], + "summary": "Add new Workload Profile Chart Version", + "operationId": "postWorkloadProfileChartVersion", + "description": "Creates a Workload Profile Chart Version from the uploaded Helm chart. The name and version is retrieved from the chart's metadata (Charts.yaml file).\n\nThe request has content type `multipart/form-data` and the request body includes one part:\n\n1. `file` with `application/x-gzip` content type which is an archive containing a Helm chart.\n\nRequest body example:\n\n\tContent-Type: multipart/form-data; boundary=----boundary \t----boundary \tContent-Disposition: form-data; name=\"file\"; filename=\"my-workload-1.0.1.tgz\" \tContent-Type: application/x-gzip \t[TGZ_DATA] \t----boundary", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + } + ], + "requestBody": { + "description": "Workload profile chart version.\n\n", + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + } + } + } + } + } + }, + "responses": { + "201": { + "description": "The newly created Workload Profile Chart Version metadata.\n\n", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkloadProfileChartVersionResponse" + } + } + } + }, + "400": { + "$ref": "#/components/responses/400BadRequest" + }, + "409": { + "$ref": "#/components/responses/409Conflict" + } + } + }, + "get": { + "tags": [ + "public", + "WorkloadProfile" + ], + "summary": "Workload Profile Chart Versions for the given organization.", + "operationId": "getWorkloadProfileChartVersions", + "description": "Returns all Workload Profile Chart Versions for the given organization.", + "parameters": [ + { + "$ref": "#/components/parameters/orgIdPathParam" + } + ], + "responses": { + "200": { + "description": "The newly created Workload Profile Chart Version metadata.\n\n", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/WorkloadProfileChartVersionResponse" + }, + "type": "array" + } + } + } + } + } + } } }, "components": { @@ -9741,11 +11048,16 @@ "name": { "description": "The Human-friendly name for the Application.", "type": "string" + }, + "org_id": { + "description": "The Organization id of this Application", + "type": "string" } }, "required": [ "id", "name", + "org_id", "created_at", "created_by", "envs" @@ -11739,31 +13051,524 @@ "title": "Simplified extended ISO format date/time string.", "type": "string" }, - "created_by": { - "description": "User ID that created the Organization.", + "created_by": { + "description": "User ID that created the Organization.", + "type": "string" + }, + "id": { + "description": "Unique ID for the Organization.", + "pattern": "^[a-z0-9][a-z0-9-]+[a-z0-9]$", + "type": "string" + }, + "logo_url": { + "nullable": true, + "type": "string" + }, + "name": { + "description": "Human friendly name for the Organization.", + "type": "string" + } + }, + "required": [ + "id", + "name", + "created_at", + "created_by" + ], + "type": "object" + }, + "ErrorResponse": { + "description": "A standard error response", + "properties": { + "error": { + "description": "A short code representing the class of error. This code can be used for tracking and observability or to\nfind appropriate troubleshooting documentation.\n", + "type": "string", + "example": "API-000" + }, + "message": { + "description": "A human-readable explanation of the error.", + "type": "string", + "example": "Something happened!" + }, + "details": { + "description": "An optional payload of metadata associated with the error.", + "additionalProperties": true, + "type": "object" + } + }, + "required": [ + "error", + "message" + ], + "type": "object" + }, + "PipelineResponse": { + "description": "An object containing the details of a Pipeline.", + "required": [ + "id", + "etag", + "org_id", + "app_id", + "name", + "status", + "version", + "created_at", + "trigger_types" + ], + "properties": { + "id": { + "description": "The id of the Pipeline.", + "example": "sample-pipeline", + "type": "string" + }, + "etag": { + "description": "The current entity tag value for this Pipeline.", + "example": "1234567890abcdef", + "type": "string" + }, + "org_id": { + "description": "The id of the Organization containing this Pipeline.", + "example": "sample-org", + "type": "string" + }, + "app_id": { + "description": "The id of the Application containing this Pipeline.", + "example": "sample-app", + "type": "string" + }, + "name": { + "description": "The name of the Pipeline.", + "example": "Sample Pipeline", + "type": "string" + }, + "status": { + "description": "The current status of the Pipeline.", + "example": "active", + "type": "string" + }, + "version": { + "description": "The unique id of the current Pipeline Version.", + "example": "01234567-89ab-cdef-0123-456789abcdef", + "type": "string" + }, + "created_at": { + "description": "The date and time when the Pipeline was created.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + }, + "trigger_types": { + "description": "The list of trigger types in the current schema.", + "example": [ + "pipeline_call" + ], + "type": "array", + "items": { + "type": "string" + } + }, + "metadata": { + "description": "The map of key value pipeline additional information", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "PipelineSchemaRequest": { + "description": "A request containing the pipeline schema.", + "type": "object" + }, + "PipelineVersionResponse": { + "description": "An object containing the details of a Pipeline.", + "required": [ + "id", + "org_id", + "app_id", + "pipeline_id", + "created_by", + "created_at" + ], + "properties": { + "id": { + "description": "The unique id of the current Pipeline Version.", + "example": "01234567-89ab-cdef-0123-456789abcdef", + "type": "string" + }, + "org_id": { + "description": "The id of the Organization containing this Run.", + "example": "sample-org", + "type": "string" + }, + "app_id": { + "description": "The id of the Application containing this Run.", + "example": "sample-app", + "type": "string" + }, + "pipeline_id": { + "description": "The id of the Pipeline associated with the Run.", + "example": "sample-pipeline", + "type": "string" + }, + "created_by": { + "description": "User id of the pipeline version.", + "example": "01234567-89ab-cdef-0123-456789abcdef", + "type": "string" + }, + "created_at": { + "description": "The date and time when the specific pipeline version was created.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + } + } + }, + "RunResponse": { + "description": "Details of a Run within the Pipeline.", + "required": [ + "waiting_for" + ], + "properties": { + "id": { + "description": "The unique id of the Run.", + "example": "01234567-89ab-cdef-0123-456789abcdef", + "type": "string" + }, + "etag": { + "description": "The current entity tag value for this Run.", + "example": "1234567890abcdef", + "type": "string" + }, + "org_id": { + "description": "The id of the Organization containing this Run.", + "example": "sample-org", + "type": "string" + }, + "app_id": { + "description": "The id of the Application containing this Run.", + "example": "sample-app", + "type": "string" + }, + "pipeline_id": { + "description": "The id of the Pipeline associated with the Run.", + "example": "sample-pipeline", + "type": "string" + }, + "pipeline_version": { + "description": "The id of the Pipeline Version associated with the Run.", + "example": "01234567-89ab-cdef-0123-456789abcdef", + "type": "string" + }, + "status": { + "description": "The current status of this Run.", + "example": "executing", + "type": "string" + }, + "status_message": { + "description": "A human-readable message indicating the reason for the status.", + "example": "Example text", + "type": "string" + }, + "created_at": { + "description": "The date and time when this Run was first created.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + }, + "executing_at": { + "description": "The date and time when this Run entered executing status.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + }, + "cancellation_requested_at": { + "description": "The date and time when cancellation of this Run was requested.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + }, + "completed_at": { + "description": "The date and time when this Run entered a successful, failed, or cancelled status.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + }, + "timeout_seconds": { + "description": "The timeout for this Run.", + "example": 3600, + "type": "integer" + }, + "inputs": { + "description": "The inputs that were provided for this Run.", + "example": { + "fizz": "buzz" + }, + "type": "object", + "additionalProperties": true + }, + "run_as": { + "description": "The user id that the pipeline run is executing as when it calls Humanitec APIs.", + "type": "string", + "example": "s-01234567-89ab-cdef-0123-456789abcdef" + }, + "concurrency_group": { + "description": "The optional concurrency group for this run within the application", + "type": "string", + "example": "my-group" + }, + "waiting_for": { + "description": "Aggregated events on which run's jobs are waiting for", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "RunCreateRequest": { + "description": "The parameters for creating a new Run for the Pipeline.", + "properties": { + "inputs": { + "description": "The inputs provided for this Run.", + "example": { + "fizz": "buzz" + }, + "type": "object", + "additionalProperties": true + } + } + }, + "RunJobListResponse": { + "description": "Details of a Job within the Run.", + "properties": { + "id": { + "description": "The id of the Job within the Run.", + "example": "01234567-89ab-cdef-0123-456789abcdef", + "type": "string" + }, + "etag": { + "description": "The current entity tag value for this Job.", + "example": "1234567890abcdef", + "type": "string" + }, + "org_id": { + "description": "The id of the Organization containing this Job.", + "example": "sample-org", + "type": "string" + }, + "app_id": { + "description": "The id of the Application containing this Job.", + "example": "sample-app", + "type": "string" + }, + "pipeline_id": { + "description": "The id of the Pipeline.", + "example": "sample-pipeline", + "type": "string" + }, + "pipeline_version": { + "description": "The id of the Pipeline Version associated with the Run.", + "example": "01234567-89ab-cdef-0123-456789abcdef", + "type": "string" + }, + "run_id": { + "description": "The id of the Run containing this Job.", + "example": "01234567-89ab-cdef-0123-456789abcdef", + "type": "string" + }, + "status": { + "description": "The current status of this Job.", + "example": "executing", + "type": "string" + }, + "waiting_for": { + "description": "An event on which job is waiting", + "type": "string", + "example": "application.environment.deployment(test-deployment-id)" + }, + "status_message": { + "description": "A human-readable message indicating the reason for the status.", + "example": "Example text", + "type": "string" + }, + "created_at": { + "description": "The date and time when this Job was first created within the Run.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + }, + "cancellation_requested_at": { + "description": "The date and time when cancellation of this Job was requested.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + }, + "completed_at": { + "description": "The date and time when this Job entered a successful, failed, or cancelled status.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + }, + "timeout_seconds": { + "description": "The timeout for this Job.", + "example": 3600, + "type": "integer" + } + } + }, + "RunJobResponse": { + "description": "A response containing all of the details of an executing or completed Job including Step information.", + "allOf": [ + { + "$ref": "#/components/schemas/RunJobListResponse" + }, + { + "properties": { + "steps": { + "description": "The collection of Steps that completed along with the current Step being executed.", + "type": "array", + "items": { + "$ref": "#/components/schemas/RunJobStep" + } + } + } + } + ] + }, + "RunJobStep": { + "description": "A Step within a Job.", + "properties": { + "index": { + "description": "The index of the Step within the Pipeline Schema.", + "type": "integer" + }, + "status": { + "description": "The current status of this Step within the Job.", + "example": "executing", + "type": "string" + }, + "status_message": { + "description": "A human-readable message indicating the reason for the status.", + "example": "Example text", + "type": "string" + }, + "created_at": { + "description": "The date and time when this Step was first created within the Job.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + }, + "completed_at": { + "description": "The date and time when this Step entered a successful, failed, or cancelled status.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + }, + "timeout_seconds": { + "description": "The timeout for this Job.", + "example": 3600, + "type": "integer" + } + } + }, + "RunJobStepLog": { + "description": "An item from the logs of a Step.", + "required": [ + "at", + "level", + "message" + ], + "properties": { + "at": { + "description": "The date and time when this message was emitted or captured.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + }, + "level": { + "description": "The log level of the message.", + "example": "INFO", + "type": "string" + }, + "message": { + "description": "The content of the message.", + "example": "Example message", + "type": "string" + } + } + }, + "ApprovalRequest": { + "description": "An approval object", + "properties": { + "id": { + "description": "The id of the approval object.", + "type": "string" + }, + "org_id": { + "description": "The id of the Organization.", + "example": "sample-org", "type": "string" }, - "id": { - "description": "Unique ID for the Organization.", - "pattern": "^[a-z0-9][a-z0-9-]+[a-z0-9]$", + "app_id": { + "description": "The id of the Application.", + "example": "sample-app", "type": "string" }, - "logo_url": { - "nullable": true, + "pipeline_id": { + "description": "The id of the Pipeline.", + "example": "sample-pipeline", "type": "string" }, - "name": { - "description": "Human friendly name for the Organization.", + "run_id": { + "description": "The id of the Pipeline's Run.", + "example": "01234567-89ab-cdef-0123-456789abcdef", "type": "string" + }, + "job_id": { + "description": "The id of the Run's Job.", + "example": "deploy", + "type": "string" + }, + "env_id": { + "description": "The environment for which the approver needs to have deploy permission to approve the job.", + "example": "production", + "type": "string" + }, + "message": { + "description": "A human-readable message indicating the reason for approval.", + "example": "Promoting app to production", + "type": "string" + }, + "created_at": { + "description": "The date and time when the approval request was created.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" + }, + "status": { + "description": "The current status of the approval request.", + "example": "waiting", + "type": "string", + "enum": [ + "waiting", + "approved", + "denied", + "cancelled" + ] + }, + "approved_by": { + "description": "The user who approved or denied the request.", + "type": "string", + "example": "0123456789ab-cdef-0123-456789abcdef" + }, + "approved_at": { + "description": "The date and time when the request was approved or denied.", + "example": "2023-01-01T00:00:00Z", + "type": "string", + "format": "date-time" } - }, - "required": [ - "id", - "name", - "created_at", - "created_by" - ], - "type": "object" + } }, "AccountCredsRequest": { "description": "AccountCreds represents an account credentials (either, username- or token-based).", @@ -12454,7 +14259,7 @@ "type": "string" }, "driver_inputs": { - "$ref": "#/components/schemas/ValuesSecretsRequest", + "$ref": "#/components/schemas/ValuesSecretsRefsRequest", "description": "(Optional) Additional input data to be passed to the driver." }, "driver_type": { @@ -12810,10 +14615,16 @@ "example": { "driver_account": "gcp-dev-cloudsql", "driver_inputs": { - "secrets": { + "secret_refs": { "dbcredentials": { - "password": "***", - "username": "***" + "password": { + "ref": "path--to--password", + "store": "my-store", + "version": "1" + }, + "username": { + "value": "***" + } } }, "values": { @@ -12835,7 +14646,7 @@ "type": "string" }, "driver_inputs": { - "$ref": "#/components/schemas/ValuesSecretsRequest", + "$ref": "#/components/schemas/ValuesSecretsRefsRequest", "description": "(Optional) Additional input data to be passed to the driver." }, "name": { @@ -13022,6 +14833,16 @@ ], "driver_account": "gcp-dev-cloudsql", "driver_inputs": { + "secret_refs": { + "credentials": { + "password": { + "value": "" + }, + "user": { + "value": "" + } + } + }, "values": { "instance": "my-dev-project:my-region:dev-db" } @@ -13065,7 +14886,7 @@ "type": "string" }, "driver_inputs": { - "$ref": "#/components/schemas/ValuesSecretsRequest", + "$ref": "#/components/schemas/ValuesSecretsRefsRequest", "description": "(Optional) Additional input data to be passed to the driver." }, "driver_type": { @@ -13119,6 +14940,16 @@ ], "driver_account": "gcp-dev-cloudsql", "driver_inputs": { + "secret_refs": { + "credentials": { + "password": { + "value": "" + }, + "user": { + "value": "" + } + } + }, "values": { "instance": "my-dev-project:my-region:dev-db" } @@ -13162,7 +14993,7 @@ "type": "string" }, "driver_inputs": { - "$ref": "#/components/schemas/ValuesSecretsResponse", + "$ref": "#/components/schemas/ValuesSecretsRefsResponse", "description": "(Optional) Additional input data to be passed to the driver." }, "driver_type": { @@ -13503,10 +15334,16 @@ "example": { "driver_account": "gcp-dev-cloudsql", "driver_inputs": { - "secrets": { + "secret_refs": { "dbcredentials": { - "password": "***", - "username": "***" + "password": { + "ref": "path--to--password", + "store": "my-store", + "version": "1" + }, + "username": { + "value": "***" + } } }, "values": { @@ -13529,7 +15366,7 @@ "type": "string" }, "driver_inputs": { - "$ref": "#/components/schemas/ValuesSecretsRequest", + "$ref": "#/components/schemas/ValuesSecretsRefsRequest", "description": "(Optional) Additional input data to be passed to the driver." }, "name": { @@ -13549,9 +15386,21 @@ ], "type": "object" }, - "ValuesSecretsRequest": { - "description": "ValuesSecrets stores data that should be passed around split by sensitivity.", + "ValuesSecretsRefsRequest": { + "description": "ValuesSecretsRefs stores data that should be passed around split by sensitivity.", "example": { + "secret_refs": { + "credentials": { + "password": { + "value": "P@ssw0rd" + }, + "user": { + "ref": "vault/path/to/data/secrets/user", + "store": "my-external-vault", + "version": "1" + } + } + }, "secrets": { "password": "vault/path/to/data/.secrets/password", "user": "vault/path/to/data/.secrets/user" @@ -13562,9 +15411,14 @@ } }, "properties": { + "secret_refs": { + "additionalProperties": true, + "description": "Secrets section of the data set. They can hold sensitive information that will be stored in the primary organization secret store and replaced with the secret store paths when sent outside, or secret references stored in a defined secret store. Can't be used together with `secrets`.\n\nThey can hold a nested structure but leaf objects need to be of type SecretReference, where:\n\n- `store` is a Secret Store id. It can't be `humanitec`. It's mandatory if `ref` is defined and can't be used in request payloads if `value` is defined.\n\n- `ref` is the secret key in the format of the target store. It can't be used in request payloads if `value` is defined.\n\n- `version` is the version of the secret as defined in the target store. It can be defined only if `ref` is defined.\n\n- `value` is the value to store in the organizations primary secret store. It can't be used in request payloads if `ref` is defined.", + "type": "object" + }, "secrets": { "additionalProperties": true, - "description": "Secrets section of the data set. Sensitive information is stored in the Vault and replaced with the Vault paths when sent outside.", + "description": "Secrets section of the data set. Sensitive information is stored in the primary organization secret store and replaced with the secret store paths when sent outside. Can't be used together with `secret_refs`.", "type": "object" }, "values": { @@ -13575,9 +15429,21 @@ }, "type": "object" }, - "ValuesSecretsResponse": { - "description": "ValuesSecrets stores data that should be passed around split by sensitivity.", + "ValuesSecretsRefsResponse": { + "description": "ValuesSecretsRefs stores data that should be passed around split by sensitivity.", "example": { + "secret_refs": { + "credentials": { + "password": { + "value": "P@ssw0rd" + }, + "user": { + "ref": "vault/path/to/data/secrets/user", + "store": "my-external-vault", + "version": "1" + } + } + }, "secrets": { "password": "vault/path/to/data/.secrets/password", "user": "vault/path/to/data/.secrets/user" @@ -13588,9 +15454,14 @@ } }, "properties": { + "secret_refs": { + "additionalProperties": true, + "description": "Secrets section of the data set. They can hold sensitive information that will be stored in the primary organization secret store and replaced with the secret store paths when sent outside, or secret references stored in a defined secret store. Can't be used together with `secrets`.\n\nThey can hold a nested structure but leaf objects need to be of type SecretReference, where:\n\n- `store` is a Secret Store id. It can't be `humanitec`. It's mandatory if `ref` is defined and can't be used in request payloads if `value` is defined.\n\n- `ref` is the secret key in the format of the target store. It can't be used in request payloads if `value` is defined.\n\n- `version` is the version of the secret as defined in the target store. It can be defined only if `ref` is defined.\n\n- `value` is the value to store in the organizations primary secret store. It can't be used in request payloads if `ref` is defined.", + "type": "object" + }, "secrets": { "additionalProperties": true, - "description": "Secrets section of the data set. Sensitive information is stored in the Vault and replaced with the Vault paths when sent outside.", + "description": "Secrets section of the data set. Sensitive information is stored in the primary organization secret store and replaced with the secret store paths when sent outside. Can't be used together with `secret_refs`.", "type": "object" }, "values": { @@ -13864,7 +15735,6 @@ }, "region": "us-east-1" }, - "config_namespace": "configuration-dev", "id": "my-aws-secret-manager", "primary": true }, @@ -13877,10 +15747,6 @@ "$ref": "#/components/schemas/AzureKVRequest", "description": "Azure Key Vault specification." }, - "config_namespace": { - "description": "A Kubernetes namespace where the Secret Store configuration should be stored.", - "type": "string" - }, "gcpsm": { "$ref": "#/components/schemas/GCPSMRequest", "description": "GCP Secret Manager specification." @@ -13954,9 +15820,6 @@ "azurekv": { "$ref": "#/components/schemas/AzureKVRequest" }, - "config_namespace": { - "type": "string" - }, "created_at": { "example": "2020-06-22T09:37:23.523Z", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$", @@ -14002,9 +15865,6 @@ "azurekv": { "$ref": "#/components/schemas/AzureKVResponse" }, - "config_namespace": { - "type": "string" - }, "created_at": { "example": "2020-06-22T09:37:23.523Z", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$", @@ -14042,7 +15902,6 @@ "required": [ "id", "primary", - "config_namespace", "created_at", "created_by", "updated_at", @@ -14059,7 +15918,6 @@ }, "region": "us-east-1" }, - "config_namespace": "awssm-configuration-dev", "primary": true }, "properties": { @@ -14071,11 +15929,6 @@ "$ref": "#/components/schemas/AzureKVRequest", "description": "Azure Key Vault specification." }, - "config_namespace": { - "description": "A Kubernetes namespace where the Secret Store configuration should be stored.", - "nullable": true, - "type": "string" - }, "gcpsm": { "$ref": "#/components/schemas/GCPSMRequest", "description": "GCP Secret Manager specification." @@ -14610,12 +16463,17 @@ "pattern": "^[A-Za-z0-9_.-]+$" }, "value": { + "nullable": true, "type": "string" + }, + "secret_ref": { + "nullable": true, + "description": "A sensitive value to store or a reference to an already stored sensitive value.", + "$ref": "#/components/schemas/SecretReference" } }, "required": [ "key", - "value", "description" ], "type": "object" @@ -14636,10 +16494,14 @@ "key": { "pattern": "^[A-Za-z0-9_.-]+$", "type": "string" + }, + "secret_ref": { + "nullable": true, + "description": "A sensitive value to store or a reference to an already stored sensitive value.", + "$ref": "#/components/schemas/SecretReference" } }, "required": [ - "value", "description" ], "type": "object" @@ -14653,6 +16515,11 @@ "value": { "nullable": true, "type": "string" + }, + "secret_ref": { + "description": "A sensitive value to store or a reference to an already stored sensitive value.", + "nullable": true, + "$ref": "#/components/schemas/SecretReference" } }, "type": "object" @@ -14681,6 +16548,10 @@ "value": { "description": "The value that will be stored. (Will be always empty for secrets.)", "type": "string" + }, + "secret_ref": { + "description": "A sensitive value to store or a reference to an already stored sensitive value.", + "$ref": "#/components/schemas/SecretReference" } }, "type": "object" @@ -14845,6 +16716,29 @@ "env_value_set_version_purge" ] }, + "SecretReference": { + "type": "object", + "nullable": true, + "description": "SecretReference stores sensitive value in the organization primary store or a reference to a sensitive value stored in a store registered under the organization.", + "properties": { + "store": { + "description": "Secret Store id. This can't be `humanitec` (our internal Secret Store). It's mandatory if `ref` is defined and can't be used if `value` is defined.", + "type": "string" + }, + "ref": { + "description": "secret reference in the format of the target store. It can't be defined if `value` is defined.", + "type": "string" + }, + "version": { + "description": "Optional, only valid if `ref` is defined. It's the version of the secret as defined in the target store.", + "type": "string" + }, + "value": { + "description": "base64 encoded value to store in the secret store. It can't be defined if `ref` is defined.", + "type": "string" + } + } + }, "WorkloadProfileRequest": { "description": "Workload Profiles provide the baseline configuration for Workloads in Applications in Humanitec. Developers can configure various features of a workload profile to suit their needs. Examples of features might be `schedules` used in Kubernetes CronJobs or `ingress` which might be used to expose Pods controlled by a Kubernetes Deployment.\n\nWorkloads in Humanitec are implemented as Helm Charts which must implement a specific schema.", "properties": { @@ -15074,6 +16968,396 @@ "type": "boolean" } } + }, + "WorkloadProfileChartVersionResponse": { + "description": "Each Workload Profile Chart has one or more Versions associated with it.", + "properties": { + "created_at": { + "description": "Creation date", + "example": "2020-06-22T09:37:23.523Z", + "format": "date-time", + "title": "Simplified extended ISO format date/time string.", + "type": "string" + }, + "created_by": { + "description": "User created the profile", + "type": "string" + }, + "org_id": { + "description": "Organization ID", + "type": "string" + }, + "id": { + "description": "Workload Profile Chart Version ID", + "type": "string" + }, + "version": { + "description": "Version", + "type": "string" + } + }, + "required": [ + "org_id", + "id", + "version", + "created_at", + "created_by" + ], + "type": "object" + } + }, + "headers": { + "Etag": { + "description": "The Etag of the resource", + "example": "1234567890abcdef", + "schema": { + "type": "string" + } + } + }, + "parameters": { + "orgIdPathParam": { + "name": "orgId", + "in": "path", + "description": "The Organization ID", + "example": "sample-org", + "required": true, + "schema": { + "type": "string" + } + }, + "appIdPathParam": { + "name": "appId", + "in": "path", + "description": "The Application ID", + "example": "sample-app", + "required": true, + "schema": { + "type": "string" + } + }, + "pipelineIdPathParam": { + "name": "pipelineId", + "in": "path", + "description": "The Pipeline ID", + "example": "sample-pipeline", + "required": true, + "schema": { + "type": "string" + } + }, + "idempotencyKey": { + "name": "Idempotency-Key", + "in": "header", + "description": "The HTTP Idempotency-Key", + "example": "0xr$P0Cu4@DB", + "required": false, + "schema": { + "type": "string" + } + }, + "runIdPathParam": { + "name": "runId", + "in": "path", + "description": "The Run ID", + "example": "01234567-89ab-cdef-0123-456789abcdef", + "required": true, + "schema": { + "type": "string" + } + }, + "jobIdPathParam": { + "name": "jobId", + "in": "path", + "description": "The Job ID", + "example": "deploy", + "required": true, + "schema": { + "type": "string" + } + }, + "approvalIdPathParam": { + "name": "approvalId", + "in": "path", + "description": "The Approval ID", + "example": "01234567-89ab-cdef-0123-456789abcdef", + "required": true, + "schema": { + "type": "string" + } + }, + "stepIndexPathParam": { + "name": "stepIndex", + "in": "path", + "description": "The index of the step within the Job", + "example": 0, + "required": true, + "schema": { + "type": "integer" + } + }, + "byOrgIdQueryParam": { + "name": "org", + "description": "An optional Organization ID", + "in": "query", + "required": false, + "example": "sample-org", + "schema": { + "type": "string" + } + }, + "byAppIdQueryParam": { + "name": "app", + "description": "An optional Application ID", + "in": "query", + "explode": true, + "required": false, + "schema": { + "type": "array", + "items": { + "example": "sample-app", + "type": "string" + } + } + }, + "byPipelineIdQueryParam": { + "name": "pipeline", + "description": "An optional Pipeline ID.", + "in": "query", + "explode": true, + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "example": "sample-pipeline" + } + } + }, + "byRunIdQueryParam": { + "name": "run", + "description": "An optional Pipeline Run ID.", + "in": "query", + "explode": true, + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "example": "sample-run" + } + } + }, + "byVersionQueryParam": { + "name": "version", + "in": "query", + "description": "An optional Pipeline Version ID.", + "required": false, + "example": "01234567-89ab-cdef-0123-456789abcdef", + "schema": { + "type": "string" + } + }, + "byStatusQueryParam": { + "name": "status", + "description": "Optional filter by status.", + "in": "query", + "explode": true, + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "example": "executing" + } + } + }, + "byCompletedQueryParam": { + "name": "completed", + "in": "query", + "description": "Optional filer by completed or not.", + "required": false, + "example": true, + "schema": { + "type": "boolean" + } + }, + "byWaitingForQueryParam": { + "name": "waiting_for", + "in": "query", + "description": "Optional filter by waiting for an event.", + "required": false, + "example": "application.environment.deployment(test-deployment-id)", + "schema": { + "type": "string" + } + }, + "byCreatedAfterParam": { + "name": "created_after", + "in": "query", + "description": "Optional filter by creation after date time.", + "example": "2018-03-20T09:12:28Z", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + } + }, + "byCreatedBeforeParam": { + "name": "created_before", + "in": "query", + "description": "Optional filter by creation before date time", + "example": "2018-03-20T09:12:28Z", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + } + }, + "byMetadata": { + "name": "metadata", + "description": "Optional filter by pipeline metadata", + "in": "query", + "required": false, + "style": "deepObject", + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "perPageQueryParam": { + "name": "per_page", + "in": "query", + "description": "The maximum number of items to return in a page of results", + "required": false, + "example": 50, + "schema": { + "type": "integer" + } + }, + "pageTokenQueryParam": { + "name": "page", + "in": "query", + "description": "The page token to request from", + "required": false, + "example": "AAAAAAAAAA==", + "schema": { + "type": "string" + } + }, + "ifMatchHeaderParam": { + "name": "If-Match", + "in": "header", + "description": "Indicate that the request should only succeed if there is an etag match", + "required": false, + "example": "1234567890abcdef", + "schema": { + "type": "string" + } + }, + "byApprovalStatusQueryParam": { + "name": "status", + "in": "query", + "description": "Optional filter by status.", + "required": false, + "example": "denied", + "schema": { + "type": "string" + } + }, + "byTriggerTypeQueryParam": { + "name": "trigger", + "description": "An optional filter by trigger type.", + "in": "query", + "required": false, + "example": "pipeline_call", + "schema": { + "type": "string" + } + }, + "batchTypeParam": { + "name": "batchType", + "description": "The batch type", + "in": "path", + "required": true, + "example": "image", + "schema": { + "type": "string" + } + } + }, + "responses": { + "307TemporaryRedirect": { + "description": "The content is available at a different location specified in the Location header.", + "headers": { + "location": { + "schema": { + "type": "string" + } + } + } + }, + "400BadRequest": { + "description": "The request was invalid. More detail can be found in the error body.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HumanitecErrorResponse" + } + } + } + }, + "403Forbidden": { + "description": "Server understands the request but refuses to authorize it.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404NotFound": { + "description": "Either the resource or a related resource could not be found. More detail can be found in the error body.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HumanitecErrorResponse" + } + } + } + }, + "409Conflict": { + "description": "The request itself is valid however it could not be applied based on the current state of the resource.\nMore detail can be found in the error body.\n", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HumanitecErrorResponse" + } + } + } + }, + "412PreconditionFailed": { + "description": "The request itself is valid however it could not be applied because the Etag does not match.\n", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422UnprocessableContent": { + "description": "Server understands the content type of the request, and the syntax of the request is correct, but it was unable to process the contained instructions\n", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } } } }, @@ -15129,7 +17413,10 @@ "name": "Automation", "tags": [ "AutomationRule", - "Event" + "Event", + "Pipelines", + "PipelineRuns", + "PipelineApprovals" ] }, { @@ -15152,6 +17439,21 @@ "x-displayName": "Organization", "description": "An Organization is the top level object in Humanitec. All other objects belong to an Organization.\n\n" }, + { + "name": "PipelineApprovals", + "x-displayName": "Pipeline Approvals", + "description": "An approval object\n\n" + }, + { + "name": "PipelineRuns", + "x-displayName": "Pipeline Runs", + "description": "Details of a Run within the Pipeline.\n\n" + }, + { + "name": "Pipelines", + "x-displayName": "Pipelines", + "description": "An object containing the details of a Pipeline.\n\n" + }, { "name": "ResourceDefinition", "x-displayName": "Definitions",