diff --git a/client/client.gen.go b/client/client.gen.go
index ff419b2..ddba675 100644
--- a/client/client.gen.go
+++ b/client/client.gen.go
@@ -7,6 +7,7 @@ import (
"bytes"
"context"
"encoding/json"
+ "errors"
"fmt"
"io"
"net/http"
@@ -14,6 +15,8 @@ import (
"strings"
"time"
+ "gopkg.in/yaml.v2"
+
"github.com/oapi-codegen/runtime"
openapi_types "github.com/oapi-codegen/runtime/types"
)
@@ -48,17 +51,17 @@ const (
Env ValueSource = "env"
)
-// Defines values for WorkloadProfileVersionSpecDefinitionPropertyType.
+// Defines values for WorkloadProfileSpecDefinitionPropertyType.
const (
- WorkloadProfileVersionSpecDefinitionPropertyTypeCollection WorkloadProfileVersionSpecDefinitionPropertyType = "collection"
- WorkloadProfileVersionSpecDefinitionPropertyTypeFeature WorkloadProfileVersionSpecDefinitionPropertyType = "feature"
- WorkloadProfileVersionSpecDefinitionPropertyTypeSchema WorkloadProfileVersionSpecDefinitionPropertyType = "schema"
+ WorkloadProfileSpecDefinitionPropertyTypeCollection WorkloadProfileSpecDefinitionPropertyType = "collection"
+ WorkloadProfileSpecDefinitionPropertyTypeFeature WorkloadProfileSpecDefinitionPropertyType = "feature"
+ WorkloadProfileSpecDefinitionPropertyTypeSchema WorkloadProfileSpecDefinitionPropertyType = "schema"
)
-// Defines values for WorkloadProfileVersionSpecDefinitionRuntimePropertyType.
+// Defines values for WorkloadProfileSpecDefinitionRuntimePropertyType.
const (
- WorkloadProfileVersionSpecDefinitionRuntimePropertyTypeCollection WorkloadProfileVersionSpecDefinitionRuntimePropertyType = "collection"
- WorkloadProfileVersionSpecDefinitionRuntimePropertyTypeFeature WorkloadProfileVersionSpecDefinitionRuntimePropertyType = "feature"
+ WorkloadProfileSpecDefinitionRuntimePropertyTypeCollection WorkloadProfileSpecDefinitionRuntimePropertyType = "collection"
+ WorkloadProfileSpecDefinitionRuntimePropertyTypeFeature WorkloadProfileSpecDefinitionRuntimePropertyType = "feature"
)
// AWSAuthRequest Credentials to authenticate AWS Secret Manager.
@@ -152,27 +155,6 @@ type ActiveResourceResponse struct {
UpdatedAt string `json:"updated_at"`
}
-// AddArtefactVersionPayloadRequest AddArtefactVersionPayload describes the payload for a new ArtefactVersion request.
-type AddArtefactVersionPayloadRequest struct {
- // Commit (Optional) The commit ID the Artefact Version was built on.
- Commit *string `json:"commit,omitempty"`
-
- // Digest (Optional) The Artefact Version digest.
- Digest *string `json:"digest,omitempty"`
-
- // Name The Artefact name.
- Name string `json:"name"`
-
- // Ref (Optional) The ref the Artefact Version was built from.
- Ref *string `json:"ref,omitempty"`
-
- // Type The Artefact Version type.
- Type string `json:"type"`
-
- // Version (Optional) The Artefact Version.
- Version *string `json:"version,omitempty"`
-}
-
// ApplicationCreationRequest defines model for ApplicationCreationRequest.
type ApplicationCreationRequest struct {
Env *EnvironmentBaseRequest `json:"env,omitempty"`
@@ -231,8 +213,15 @@ type ArtefactResponse struct {
UpdatedBy *string `json:"updated_by,omitempty"`
}
-// ArtefactVersionResponse An Artefact Version represents a particular version of an Artefact that can be added to an Application.
-type ArtefactVersionResponse struct {
+// ArtefactVersion The details of an Artefact Version. The type field dictates the type of Artefact along with any additional fields.
+type ArtefactVersion struct {
+ // Type The Artefact Version type.
+ Type string `json:"type"`
+ union json.RawMessage
+}
+
+// ArtefactVersionBase defines model for ArtefactVersionBase.
+type ArtefactVersionBase struct {
// Archived If the Artefact Version is archived.
Archived bool `json:"archived"`
@@ -240,7 +229,7 @@ type ArtefactVersionResponse struct {
ArtefactId string `json:"artefact_id"`
// Commit (Optional) The commit ID the Artefact Version was built on.
- Commit string `json:"commit"`
+ Commit *string `json:"commit,omitempty"`
// CreatedAt The time when the Artefact Version was added to Humanitec.
CreatedAt *string `json:"created_at,omitempty"`
@@ -248,9 +237,6 @@ type ArtefactVersionResponse struct {
// CreatedBy The user ID of the user who added the Artefact Version to Humanitec.
CreatedBy *string `json:"created_by,omitempty"`
- // Digest (Optional) The Artefact Version digest.
- Digest string `json:"digest"`
-
// Id The UUID of the Artefact Version.
Id string `json:"id"`
@@ -258,7 +244,7 @@ type ArtefactVersionResponse struct {
Name string `json:"name"`
// Ref (Optional) The ref the Artefact Version was built from.
- Ref string `json:"ref"`
+ Ref *string `json:"ref,omitempty"`
// UpdatedAt The time when the Artefact Version was updated for the last time.
UpdatedAt *string `json:"updated_at,omitempty"`
@@ -267,7 +253,28 @@ type ArtefactVersionResponse struct {
UpdatedBy *string `json:"updated_by,omitempty"`
// Version (Optional) The version of the Artefact Version.
- Version string `json:"version"`
+ Version *string `json:"version,omitempty"`
+}
+
+// AuditLogEntry An entry in the audit log
+type AuditLogEntry struct {
+ // At The date and time when the event was recorded.
+ At time.Time `json:"at"`
+
+ // OrgId The id of the Organization this event occurred in.
+ OrgId *string `json:"org_id,omitempty"`
+
+ // RequestMethod The HTTP method that was requested. Only POST, PATCH, PUT, and DELETE are audited.
+ RequestMethod string `json:"request_method"`
+
+ // RequestPath The URL path that was called.
+ RequestPath string `json:"request_path"`
+
+ // ResponseStatus The status code of the response. Only successful responses are audited.
+ ResponseStatus int `json:"response_status"`
+
+ // UserId The id of the User who triggered the event.
+ UserId string `json:"user_id"`
}
// AutomationRuleRequest An Automation Rule defining how and when artefacts in an environment should be updated.
@@ -383,6 +390,45 @@ type ClusterSecretsMapRequest map[string]ClusterSecretRequest
// ClusterSecretsMapResponse ClusterSecretsMap stores a list of Kuberenetes secret references for the target deployment clusters.
type ClusterSecretsMapResponse map[string]ClusterSecretResponse
+// ContainerArtefactVersion defines model for ContainerArtefactVersion.
+type ContainerArtefactVersion struct {
+ // Archived If the Artefact Version is archived.
+ Archived bool `json:"archived"`
+
+ // ArtefactId The UUID of the Artefact.
+ ArtefactId string `json:"artefact_id"`
+
+ // Commit (Optional) The commit ID the Artefact Version was built on.
+ Commit string `json:"commit"`
+
+ // CreatedAt The time when the Artefact Version was added to Humanitec.
+ CreatedAt *string `json:"created_at,omitempty"`
+
+ // CreatedBy The user ID of the user who added the Artefact Version to Humanitec.
+ CreatedBy *string `json:"created_by,omitempty"`
+
+ // Digest (Optional) The Artefact Version digest.
+ Digest string `json:"digest"`
+
+ // Id The UUID of the Artefact Version.
+ Id string `json:"id"`
+
+ // Name The name of the Artefact.
+ Name string `json:"name"`
+
+ // Ref (Optional) The ref the Artefact Version was built from.
+ Ref string `json:"ref"`
+
+ // UpdatedAt The time when the Artefact Version was updated for the last time.
+ UpdatedAt *string `json:"updated_at,omitempty"`
+
+ // UpdatedBy The user ID of the user who performed the last updated on the Artefact Version.
+ UpdatedBy *string `json:"updated_by,omitempty"`
+
+ // Version (Optional) The version of the Artefact Version.
+ Version *string `json:"version,omitempty"`
+}
+
// ControllerRequest Controller represents deployment, stateful set etc
type ControllerRequest struct {
Kind *string `json:"kind,omitempty"`
@@ -403,6 +449,52 @@ type ControllerResponse struct {
Status string `json:"status"`
}
+// CreateArtefactVersion The details of a new Artefact Version to register. The type field is required and dictates the type of Artefact to register.
+type CreateArtefactVersion struct {
+ // Type The Artefact Version type.
+ Type string `json:"type"`
+ union json.RawMessage
+}
+
+// CreateArtefactVersionBase defines model for CreateArtefactVersionBase.
+type CreateArtefactVersionBase struct {
+ // Commit (Optional) The commit ID the Artefact Version was built on.
+ Commit *string `json:"commit,omitempty"`
+
+ // Name The Artefact name.
+ Name string `json:"name"`
+
+ // Ref (Optional) The ref the Artefact Version was built from.
+ Ref *string `json:"ref,omitempty"`
+
+ // Type The Artefact Version type.
+ Type string `json:"type"`
+
+ // Version (Optional) The Artefact Version.
+ Version *string `json:"version,omitempty"`
+}
+
+// CreateContainerArtefactVersion defines model for CreateContainerArtefactVersion.
+type CreateContainerArtefactVersion struct {
+ // Commit (Optional) The commit ID the Artefact Version was built on.
+ Commit *string `json:"commit,omitempty"`
+
+ // Digest (Optional) The Artefact Version digest.
+ Digest *string `json:"digest,omitempty"`
+
+ // Name The Artefact name.
+ Name string `json:"name"`
+
+ // Ref (Optional) The ref the Artefact Version was built from.
+ Ref *string `json:"ref,omitempty"`
+
+ // Type The Artefact Version type.
+ Type string `json:"type"`
+
+ // Version (Optional) The Artefact Version.
+ Version *string `json:"version,omitempty"`
+}
+
// CreateDriverRequestRequest CreateDriverRequest describes the new resource driver registration request.
type CreateDriverRequestRequest struct {
// AccountTypes List of resources accounts types supported by the driver
@@ -487,28 +579,73 @@ type CreateSecretStorePayloadRequest struct {
Vault *VaultRequest `json:"vault,omitempty"`
}
+// CreateWorkloadArtefactVersion defines model for CreateWorkloadArtefactVersion.
+type CreateWorkloadArtefactVersion struct {
+ // Commit (Optional) The commit ID the Artefact Version was built on.
+ Commit *string `json:"commit,omitempty"`
+
+ // Extensions Humanitec workload extensions for the Workload Artefact Version. These can be used to override the profile, or workload module spec and resource attributes.
+ Extensions *CreateWorkloadArtefactVersionExtensions `json:"extensions,omitempty"`
+
+ // Image An optional default image to assign to any containers in the workload that do not have an image set or whose image is '.'
+ Image *string `json:"image,omitempty"`
+
+ // Name The Artefact name.
+ Name string `json:"name"`
+
+ // Overrides An optional Json object containing the workload overrides. Score v1b1 is expected.
+ Overrides *map[string]interface{} `json:"overrides,omitempty"`
+
+ // PropertyOverrides An optional set of path overrides that will be applied to the workload.
+ PropertyOverrides *map[string]interface{} `json:"property_overrides,omitempty"`
+
+ // Ref (Optional) The ref the Artefact Version was built from.
+ Ref *string `json:"ref,omitempty"`
+
+ // Spec A Json object containing the workload specification. Score v1b1 is expected.
+ Spec map[string]interface{} `json:"spec"`
+
+ // Type The Artefact Version type.
+ Type string `json:"type"`
+
+ // Version (Optional) The Artefact Version.
+ Version *string `json:"version,omitempty"`
+}
+
+// CreateWorkloadArtefactVersionExtensions Humanitec workload extensions for the Workload Artefact Version. These can be used to override the profile, or workload module spec and resource attributes.
+type CreateWorkloadArtefactVersionExtensions struct {
+ // ApiVersion The api version describing the format of the extensions.
+ ApiVersion string `json:"apiVersion"`
+
+ // Profile An optional override for the workload profile
+ Profile *string `json:"profile,omitempty"`
+
+ // Spec A map of additional workload spec fields that will be merged.
+ Spec *map[string]interface{} `json:"spec,omitempty"`
+}
+
// DeltaMetadataRequest defines model for DeltaMetadataRequest.
type DeltaMetadataRequest struct {
- Archived *bool `json:"archived,omitempty"`
- Contributers *[]string `json:"contributers"`
- CreatedAt *time.Time `json:"created_at,omitempty"`
- CreatedBy *string `json:"created_by,omitempty"`
- EnvId *string `json:"env_id,omitempty"`
- LastModifiedAt *time.Time `json:"last_modified_at,omitempty"`
- Name *string `json:"name,omitempty"`
- Shared *bool `json:"shared,omitempty"`
+ Archived *bool `json:"archived,omitempty"`
+ Contributers *[]string `json:"contributers"`
+ CreatedAt *time.Time `json:"created_at,omitempty"`
+ CreatedBy *string `json:"created_by,omitempty"`
+ EnvId *EnvironmentID `json:"env_id,omitempty"`
+ LastModifiedAt *time.Time `json:"last_modified_at,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Shared *bool `json:"shared,omitempty"`
}
// DeltaMetadataResponse defines model for DeltaMetadataResponse.
type DeltaMetadataResponse struct {
- Archived bool `json:"archived"`
- Contributers *[]string `json:"contributers,omitempty"`
- CreatedAt time.Time `json:"created_at"`
- CreatedBy string `json:"created_by"`
- EnvId *string `json:"env_id,omitempty"`
- LastModifiedAt time.Time `json:"last_modified_at"`
- Name *string `json:"name,omitempty"`
- Shared *bool `json:"shared,omitempty"`
+ Archived bool `json:"archived"`
+ Contributers *[]string `json:"contributers,omitempty"`
+ CreatedAt time.Time `json:"created_at"`
+ CreatedBy string `json:"created_by"`
+ EnvId *EnvironmentID `json:"env_id,omitempty"`
+ LastModifiedAt time.Time `json:"last_modified_at"`
+ Name *string `json:"name,omitempty"`
+ Shared *bool `json:"shared,omitempty"`
}
// DeltaRequest A Deployment Delta (or just "Delta") describes the changes that must be applied to one Deployment Set to generate another Deployment Set. Deployment Deltas are the only way to create new Deployment Sets.
@@ -625,6 +762,36 @@ type DeploymentErrorResponse struct {
Summary string `json:"summary"`
}
+// DeploymentPipelineReferenceRequest defines model for DeploymentPipelineReferenceRequest.
+type DeploymentPipelineReferenceRequest struct {
+ // Id The ID of the Pipeline
+ Id *string `json:"id,omitempty"`
+
+ // JobId The ID of the Pipeline Job within the Run.
+ JobId *string `json:"job_id,omitempty"`
+
+ // RunId The ID of the Pipeline Run
+ RunId *string `json:"run_id,omitempty"`
+
+ // StepIndex The index of the step with in the Job.
+ StepIndex *int `json:"step_index,omitempty"`
+}
+
+// DeploymentPipelineReferenceResponse defines model for DeploymentPipelineReferenceResponse.
+type DeploymentPipelineReferenceResponse struct {
+ // Id The ID of the Pipeline
+ Id string `json:"id"`
+
+ // JobId The ID of the Pipeline Job within the Run.
+ JobId string `json:"job_id"`
+
+ // RunId The ID of the Pipeline Run
+ RunId string `json:"run_id"`
+
+ // StepIndex The index of the step with in the Job.
+ StepIndex int `json:"step_index"`
+}
+
// DeploymentRequest Deployments represent updates to the running state of an Environment.
//
// Deployments are made by applying _Deltas_ to a state defined by an existing Deployment. The Environment’s from_deploy property defines the Deployment. This Deployment is usually but not always in the current Environment. If the Deployment is from another Environment, the state of that Environment will be "cloned" into the current Environment with the option to apply a Delta.
@@ -633,7 +800,8 @@ type DeploymentRequest struct {
Comment *string `json:"comment,omitempty"`
// DeltaId ID of the Deployment Delta describing the changes to the current Environment for this Deployment.
- DeltaId *string `json:"delta_id,omitempty"`
+ DeltaId *string `json:"delta_id,omitempty"`
+ Pipeline *DeploymentPipelineReferenceRequest `json:"pipeline,omitempty"`
// SetId ID of the Deployment Set describing the state of the Environment after Deployment.
SetId *string `json:"set_id,omitempty"`
@@ -667,7 +835,8 @@ type DeploymentResponse struct {
FromId string `json:"from_id"`
// Id The ID of the Deployment.
- Id string `json:"id"`
+ Id string `json:"id"`
+ Pipeline *DeploymentPipelineReferenceResponse `json:"pipeline,omitempty"`
// SetId ID of the Deployment Set describing the state of the Environment after Deployment.
SetId string `json:"set_id"`
@@ -747,6 +916,9 @@ type EnvironmentDefinitionRequest struct {
Type string `json:"type"`
}
+// EnvironmentID defines model for EnvironmentID.
+type EnvironmentID = string
+
// EnvironmentResponse Environments are independent spaces where Applications can run. An Application is always deployed into an Environment.
type EnvironmentResponse struct {
// CreatedAt The timestamp in UTC of when the Environment was created.
@@ -880,8 +1052,7 @@ type HumanitecErrorResponse struct {
Error string `json:"error"`
// Message A Human readable message about the error.
- Message string `json:"message"`
- StatusCode *int `json:"status_code,omitempty"`
+ Message string `json:"message"`
}
// HumanitecPublicKey HumanitecPublicKey stores a Public Key Humanitec shared with an organization.
@@ -969,8 +1140,8 @@ type JSONPatchesResponse = []JSONPatchResponse
// LogoResponse defines model for LogoResponse.
type LogoResponse struct {
- DarkUrl *string `json:"dark_url"`
- LightUrl *string `json:"light_url"`
+ DarkUrl *string `json:"dark_url,omitempty"`
+ LightUrl *string `json:"light_url,omitempty"`
}
// MatchingCriteriaRequest Matching Criteria are a set of rules used to choose which Resource Definition to use to provision a particular Resource Type.
@@ -1138,17 +1309,20 @@ type NodeBodyResponse struct {
// OrganizationResponse An Organization is the top level object in Humanitec. All other objects belong to an Organization.
type OrganizationResponse struct {
// CreatedAt Timestamp when the Organization was created.
- CreatedAt *string `json:"created_at"`
+ CreatedAt *time.Time `json:"created_at"`
// CreatedBy User ID that created the Organization.
CreatedBy string `json:"created_by"`
// Id Unique ID for the Organization.
- Id string `json:"id"`
- Logo *LogoResponse `json:"logo,omitempty"`
+ Id string `json:"id"`
+ Logo LogoResponse `json:"logo"`
// Name Human friendly name for the Organization.
Name string `json:"name"`
+
+ // TrialExpiresAt Timestamp the trial expires at.
+ TrialExpiresAt *time.Time `json:"trial_expires_at"`
}
// PatchResourceDefinitionRequestRequest PatchResourceDefinitionRequest describes a ResourceDefinition change request.
@@ -1241,6 +1415,59 @@ type PipelineApprovalRequest struct {
// PipelineApprovalRequestStatus The current status of the approval request.
type PipelineApprovalRequestStatus string
+// PipelineCriteria defines model for PipelineCriteria.
+type PipelineCriteria struct {
+ // Trigger The trigger to call
+ Trigger string `json:"trigger"`
+ union json.RawMessage
+}
+
+// PipelineCriteriaCreateBody defines model for PipelineCriteriaCreateBody.
+type PipelineCriteriaCreateBody struct {
+ // Trigger The trigger to call
+ Trigger string `json:"trigger"`
+ union json.RawMessage
+}
+
+// PipelineDeploymentRequestCriteria A deployment request matching criteria for a Pipeline.
+type PipelineDeploymentRequestCriteria struct {
+ // AppId The id of the Application for which this criteria matches. If this Pipeline is defined in an Application, then this value can only be null or the id of the Application.
+ AppId *string `json:"app_id,omitempty"`
+
+ // DeploymentType The type of deployment that this criteria will match. Valid values are "deploy" and "redeploy". "redeploy" applies only to deployment request to redeploy a previous deployment id while "deploy" will apply to all other requests that include a Delta or Deployment Set. If not defined, all deployment types will match.
+ DeploymentType *string `json:"deployment_type,omitempty"`
+
+ // EnvId The exact id of the Environment which this criteria will match.
+ EnvId *string `json:"env_id,omitempty"`
+
+ // EnvType The Environment Type that this criteria will match. If defined, this criteria will only apply to Environments that have this type.
+ EnvType *string `json:"env_type,omitempty"`
+
+ // Id The unique id of the criteria within this Pipeline.
+ Id string `json:"id"`
+
+ // PipelineId The id of the Pipeline tied to this deployment request criteria.
+ PipelineId string `json:"pipeline_id"`
+
+ // PipelineName The current display name of the Pipeline.
+ PipelineName string `json:"pipeline_name"`
+}
+
+// PipelineDeploymentRequestCriteriaCreateBody The details required to create a new deployment request matching criteria for a Pipeline.
+type PipelineDeploymentRequestCriteriaCreateBody struct {
+ // AppId The id of the Application for which this criteria matches. If this Pipeline is defined in an Application, then this value can only be null or the id of the Application.
+ AppId *string `json:"app_id,omitempty"`
+
+ // DeploymentType The type of deployment that this criteria will match. Valid values are "deploy" and "redeploy". "redeploy" applies only to deployment request to redeploy a previous deployment id while "deploy" will apply to all other requests that include a Delta or Deployment Set. If not defined, all deployment types will match.
+ DeploymentType *string `json:"deployment_type,omitempty"`
+
+ // EnvId The exact id of the Environment which this criteria will match.
+ EnvId *string `json:"env_id,omitempty"`
+
+ // EnvType The Environment Type that this criteria will match. If defined, this criteria will only apply to Environments that have this type.
+ EnvType *string `json:"env_type,omitempty"`
+}
+
// PipelineJob defines model for PipelineJob.
type PipelineJob struct {
// AppId The id of the Application containing this Job.
@@ -1394,6 +1621,35 @@ type PipelineRunCreateBody struct {
Inputs map[string]interface{} `json:"inputs"`
}
+// PipelineRunCreateByDeploymentRequestCriteriaBody Trigger the pipeline that has a deployment_request trigger and criteria that match this target environment. If "delta_id" or "set_id" is provided, the matching criteria must support deployment type "deploy". If "deployment_id" is provided, the matching criteria must support deployment type "re-deploy".
+// When "delta_id" is provided, the inputs to the Pipeline Run will be "environment", "comment", "delta_id" and "value_set_version_id" if provided. When "deployment_id" is provided, the inputs to the Pipeline Run will be "environment", "comment", "deployment_id", with "set_id", "value_set_version_id" being retrieved from the deployment itself. When "set_id" is provided, the inputs to the Pipeline Run will be "environment", "comment", "set_id", and "value_set_version_id" if provided.
+type PipelineRunCreateByDeploymentRequestCriteriaBody struct {
+ // Comment An optional comment to apply to the Deployment.
+ Comment *string `json:"comment,omitempty"`
+
+ // DeltaId A deployment delta to apply to the target environment. This delta must already exist. This field is mutually exclusive with "deployment_id" and "set_id".
+ DeltaId *string `json:"delta_id,omitempty"`
+
+ // DeploymentId An existing deployment to redeploy into the target environment. The deployment set and value set will be copied. This field is mutually exclusive with "delta_id" and "set_id".
+ DeploymentId *string `json:"deployment_id,omitempty"`
+
+ // Environment The target environment within the Application to deploy to.
+ Environment string `json:"environment"`
+
+ // SetId A direct deployment set to apply to the target environment. This deployment set must already exist. This field is mutually exclusive with "delta_id" and "set_id".
+ SetId *string `json:"set_id,omitempty"`
+
+ // ValueSetVersionId The exact value set version to use when deploying to the target environment. This value set version must exist. This field can only be used when "delta_id" or "set_id" is specified.
+ ValueSetVersionId *string `json:"value_set_version_id,omitempty"`
+}
+
+// PipelineRunCreateByTriggerCriteriaBody The parameters for creating a new Run based on trigger and inputs.
+type PipelineRunCreateByTriggerCriteriaBody struct {
+ // Trigger The trigger to call
+ Trigger string `json:"trigger"`
+ union json.RawMessage
+}
+
// PipelineStep A Step within a Job.
type PipelineStep struct {
// CompletedAt The date and time when this Step entered a successful, failed, or cancelled status.
@@ -1527,7 +1783,7 @@ type PublicKey struct {
CreatedBy string `json:"created_by"`
ExpiredAt time.Time `json:"expired_at"`
- // Fingerprint Key is the sha256 public key fingerprint, it's computed and stored when a new key is uploaded.
+ // Fingerprint It's the hexadecimal representation of the sha256 hash of the DER representation of the key, it's computed and stored when a new key is uploaded.
Fingerprint string `json:"fingerprint"`
Id string `json:"id"`
Key string `json:"key"`
@@ -2311,6 +2567,51 @@ type WebhookUpdateResponse struct {
Url *string `json:"url"`
}
+// WorkloadArtefactVersion defines model for WorkloadArtefactVersion.
+type WorkloadArtefactVersion struct {
+ // Archived If the Artefact Version is archived.
+ Archived bool `json:"archived"`
+
+ // ArtefactId The UUID of the Artefact.
+ ArtefactId string `json:"artefact_id"`
+
+ // Commit (Optional) The commit ID the Artefact Version was built on.
+ Commit *string `json:"commit,omitempty"`
+
+ // CreatedAt The time when the Artefact Version was added to Humanitec.
+ CreatedAt *string `json:"created_at,omitempty"`
+
+ // CreatedBy The user ID of the user who added the Artefact Version to Humanitec.
+ CreatedBy *string `json:"created_by,omitempty"`
+
+ // Id The UUID of the Artefact Version.
+ Id string `json:"id"`
+
+ // Name The name of the Artefact.
+ Name string `json:"name"`
+
+ // Ref (Optional) The ref the Artefact Version was built from.
+ Ref *string `json:"ref,omitempty"`
+
+ // UpdatedAt The time when the Artefact Version was updated for the last time.
+ UpdatedAt *string `json:"updated_at,omitempty"`
+
+ // UpdatedBy The user ID of the user who performed the last updated on the Artefact Version.
+ UpdatedBy *string `json:"updated_by,omitempty"`
+
+ // Version (Optional) The version of the Artefact Version.
+ Version *string `json:"version,omitempty"`
+}
+
+// WorkloadArtefactVersionDeploymentSet Humanitec definition for a Workload Artefact.
+type WorkloadArtefactVersionDeploymentSet struct {
+ // Modules The set of workloads to add when deployed, the key is the name of the workload.
+ Modules map[string]map[string]interface{} `json:"modules"`
+
+ // Shared The set of shared resources to depend on, the key is the resource identifier.
+ Shared map[string]map[string]interface{} `json:"shared"`
+}
+
// WorkloadProfileChartReference References a workload profile chart.
type WorkloadProfileChartReference struct {
// Id Workload Profile Chart ID
@@ -2338,13 +2639,12 @@ type WorkloadProfileChartVersionResponse struct {
Version string `json:"version"`
}
-// WorkloadProfilePatchRequest The proposed properties to update a workload profile.
-type WorkloadProfilePatchRequest struct {
- // DeprecationMessage A not-empty string indicates that the workload profile is deprecated.
- DeprecationMessage *string `json:"deprecation_message,omitempty"`
-
- // Description Describes the workload profile
- Description *string `json:"description,omitempty"`
+// WorkloadProfileFeatureResponse defines model for WorkloadProfileFeatureResponse.
+type WorkloadProfileFeatureResponse struct {
+ Id string `json:"id"`
+ OrgId string `json:"org_id"`
+ Schema map[string]interface{} `json:"schema"`
+ 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.
@@ -2359,6 +2659,17 @@ type WorkloadProfileRequest struct {
// Id Workload Profile ID
Id string `json:"id"`
+
+ // SpecDefinition Workload spec definition
+ SpecDefinition WorkloadProfileSpecDefinition `json:"spec_definition"`
+
+ // Version Version identifier. The version must be unique, but the API doesn't not enforce any ordering. Currently workloads will always use the latest update.
+ //
+ // If no identifier is provided, the each update will generate a random version identifier.
+ Version *string `json:"version,omitempty"`
+
+ // WorkloadProfileChart References a workload profile chart.
+ WorkloadProfileChart WorkloadProfileChartReference `json:"workload_profile_chart"`
}
// WorkloadProfileResponse 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.
@@ -2380,40 +2691,94 @@ type WorkloadProfileResponse struct {
// Id Workload Profile ID
Id string `json:"id"`
- // Latest The latest version of the profile
- Latest *string `json:"latest,omitempty"`
-
// OrgId Organization ID
OrgId string `json:"org_id"`
+ // SpecDefinition Workload spec definition
+ SpecDefinition WorkloadProfileSpecDefinition `json:"spec_definition"`
+
+ // SpecSchema OpenAPI schema used to validate the spec.
+ SpecSchema interface{} `json:"spec_schema"`
+
// UpdatedAt Timestamp when the entity was last updated.
UpdatedAt time.Time `json:"updated_at"`
// UpdatedBy User who last updated the entity.
UpdatedBy string `json:"updated_by"`
-}
-// WorkloadProfileVersionRequest Each Workload Profile has one or more Versions associated with it. In order to add a version, a Workload Profile must first be created.
-type WorkloadProfileVersionRequest struct {
- // Features A map of Features. If referencing built in Humanitec features, the fully qualified feature name must be used: e.g. `humanitec/annotations`.
- //
- // {
- //
- // }
- Features *map[string]interface{} `json:"features,omitempty"`
+ // Version Version identifier.
+ Version string `json:"version"`
- // Notes Notes
- Notes *string `json:"notes,omitempty"`
- SpecDefinition *WorkloadProfileVersionSpecDefinition `json:"spec_definition,omitempty"`
+ // WorkloadProfileChart References a workload profile chart.
+ WorkloadProfileChart WorkloadProfileChartReference `json:"workload_profile_chart"`
+}
- // Version Version
- Version string `json:"version"`
+// WorkloadProfileSpecDefinition Workload spec definition
+type WorkloadProfileSpecDefinition struct {
+ // Properties Workload spec definition
+ Properties *WorkloadProfileSpecDefinitionProperties `json:"properties,omitempty"`
+ RuntimeProperties *[]WorkloadProfileSpecDefinitionRuntimeProperty `json:"runtime_properties,omitempty"`
+}
+
+// WorkloadProfileSpecDefinitionProperties Workload spec definition
+type WorkloadProfileSpecDefinitionProperties map[string]WorkloadProfileSpecDefinitionProperty
+
+// WorkloadProfileSpecDefinitionProperty defines model for WorkloadProfileSpecDefinitionProperty.
+type WorkloadProfileSpecDefinitionProperty struct {
+ FeatureName *string `json:"feature_name,omitempty"`
+
+ // Properties Workload spec definition
+ Properties *WorkloadProfileSpecDefinitionProperties `json:"properties,omitempty"`
+ RuntimeProperties *[]WorkloadProfileSpecDefinitionRuntimeProperty `json:"runtime_properties,omitempty"`
+ Schema *map[string]interface{} `json:"schema,omitempty"`
+ Title *string `json:"title,omitempty"`
+ Type WorkloadProfileSpecDefinitionPropertyType `json:"type"`
+ UiHints *WorkloadProfileSpecDefinitionPropertyUIHints `json:"ui_hints,omitempty"`
+ Version *string `json:"version,omitempty"`
+}
+
+// WorkloadProfileSpecDefinitionPropertyType defines model for WorkloadProfileSpecDefinitionPropertyType.
+type WorkloadProfileSpecDefinitionPropertyType string
+
+// WorkloadProfileSpecDefinitionPropertyUIHints defines model for WorkloadProfileSpecDefinitionPropertyUIHints.
+type WorkloadProfileSpecDefinitionPropertyUIHints struct {
+ Hidden *bool `json:"hidden,omitempty"`
+ Order *int `json:"order,omitempty"`
+}
+
+// WorkloadProfileSpecDefinitionRuntimeProperty defines model for WorkloadProfileSpecDefinitionRuntimeProperty.
+type WorkloadProfileSpecDefinitionRuntimeProperty struct {
+ FeatureName *string `json:"feature_name,omitempty"`
+ Title *string `json:"title,omitempty"`
+ Type WorkloadProfileSpecDefinitionRuntimePropertyType `json:"type"`
+ UiHints *WorkloadProfileSpecDefinitionPropertyUIHints `json:"ui_hints,omitempty"`
+ Version *string `json:"version,omitempty"`
+}
+
+// WorkloadProfileSpecDefinitionRuntimePropertyType defines model for WorkloadProfileSpecDefinitionRuntimePropertyType.
+type WorkloadProfileSpecDefinitionRuntimePropertyType string
+
+// WorkloadProfileUpdateRequest The proposed properties to update a workload profile.
+type WorkloadProfileUpdateRequest struct {
+ // DeprecationMessage A not-empty string indicates that the workload profile is deprecated.
+ DeprecationMessage *string `json:"deprecation_message,omitempty"`
+
+ // Description Describes the workload profile
+ Description *string `json:"description,omitempty"`
+
+ // SpecDefinition Workload spec definition
+ SpecDefinition WorkloadProfileSpecDefinition `json:"spec_definition"`
+
+ // Version Version identifier. The version must be unique, but the API doesn't not enforce any ordering. Currently workloads will always use the latest update.
+ //
+ // If no identifier is provided, the each update will generate a random version identifier.
+ Version *string `json:"version,omitempty"`
// WorkloadProfileChart References a workload profile chart.
WorkloadProfileChart WorkloadProfileChartReference `json:"workload_profile_chart"`
}
-// WorkloadProfileVersionResponse Each Workload Profile has one or more Versions associated with it. In order to add a version, a Workload Profile must first be created.
+// WorkloadProfileVersionResponse A version of a workload profile.
type WorkloadProfileVersionResponse struct {
// CreatedAt Creation date
CreatedAt time.Time `json:"created_at"`
@@ -2421,78 +2786,31 @@ type WorkloadProfileVersionResponse struct {
// CreatedBy User created the profile
CreatedBy string `json:"created_by"`
- // Features A map of Features. If referencing built in Humanitec features, the fully qualified feature name must be used: e.g. `humanitec/annotations`.
- //
- // {
- //
- // }
- Features map[string]interface{} `json:"features"`
+ // DeprecationMessage A not-empty string indicates that the workload profile is deprecated.
+ DeprecationMessage *string `json:"deprecation_message,omitempty"`
- // Notes Notes
- Notes string `json:"notes"`
+ // Description Describes the workload profile
+ Description string `json:"description"`
+
+ // Id ID
+ Id string `json:"id"`
// OrgId Organization ID
OrgId string `json:"org_id"`
- // ProfileId Workload Profile ID
- ProfileId string `json:"profile_id"`
- SpecDefinition *WorkloadProfileVersionSpecDefinition `json:"spec_definition,omitempty"`
+ // SpecDefinition Workload spec definition
+ SpecDefinition WorkloadProfileSpecDefinition `json:"spec_definition"`
// SpecSchema OpenAPI schema used to validate the spec.
SpecSchema interface{} `json:"spec_schema"`
- // Version Version
- Version string `json:"version"`
-
// WorkloadProfileChart References a workload profile chart.
WorkloadProfileChart WorkloadProfileChartReference `json:"workload_profile_chart"`
-}
-// WorkloadProfileVersionSpecDefinition defines model for WorkloadProfileVersionSpecDefinition.
-type WorkloadProfileVersionSpecDefinition struct {
- // Properties Workload spec definition
- Properties *WorkloadProfileVersionSpecDefinitionProperties `json:"properties,omitempty"`
- RuntimeProperties *[]WorkloadProfileVersionSpecDefinitionRuntimeProperty `json:"runtime_properties,omitempty"`
+ // WorkloadProfileId Workload Profile ID
+ WorkloadProfileId string `json:"workload_profile_id"`
}
-// WorkloadProfileVersionSpecDefinitionProperties Workload spec definition
-type WorkloadProfileVersionSpecDefinitionProperties map[string]WorkloadProfileVersionSpecDefinitionProperty
-
-// WorkloadProfileVersionSpecDefinitionProperty defines model for WorkloadProfileVersionSpecDefinitionProperty.
-type WorkloadProfileVersionSpecDefinitionProperty struct {
- FeatureName *string `json:"feature_name,omitempty"`
-
- // Properties Workload spec definition
- Properties *WorkloadProfileVersionSpecDefinitionProperties `json:"properties,omitempty"`
- RuntimeProperties *[]WorkloadProfileVersionSpecDefinitionRuntimeProperty `json:"runtime_properties,omitempty"`
- Schema *map[string]interface{} `json:"schema,omitempty"`
- Title *string `json:"title,omitempty"`
- Type WorkloadProfileVersionSpecDefinitionPropertyType `json:"type"`
- UiHints *WorkloadProfileVersionSpecDefinitionPropertyUIHints `json:"ui_hints,omitempty"`
- Version *string `json:"version,omitempty"`
-}
-
-// WorkloadProfileVersionSpecDefinitionPropertyType defines model for WorkloadProfileVersionSpecDefinitionPropertyType.
-type WorkloadProfileVersionSpecDefinitionPropertyType string
-
-// WorkloadProfileVersionSpecDefinitionPropertyUIHints defines model for WorkloadProfileVersionSpecDefinitionPropertyUIHints.
-type WorkloadProfileVersionSpecDefinitionPropertyUIHints struct {
- Hidden *bool `json:"hidden,omitempty"`
- Order *int `json:"order,omitempty"`
-}
-
-// WorkloadProfileVersionSpecDefinitionRuntimeProperty defines model for WorkloadProfileVersionSpecDefinitionRuntimeProperty.
-type WorkloadProfileVersionSpecDefinitionRuntimeProperty struct {
- FeatureName *string `json:"feature_name,omitempty"`
- Title *string `json:"title,omitempty"`
- Type WorkloadProfileVersionSpecDefinitionRuntimePropertyType `json:"type"`
- UiHints *WorkloadProfileVersionSpecDefinitionPropertyUIHints `json:"ui_hints,omitempty"`
- Version *string `json:"version,omitempty"`
-}
-
-// WorkloadProfileVersionSpecDefinitionRuntimePropertyType defines model for WorkloadProfileVersionSpecDefinitionRuntimePropertyType.
-type WorkloadProfileVersionSpecDefinitionRuntimePropertyType string
-
// AppIdPathParam defines model for appIdPathParam.
type AppIdPathParam = string
@@ -2535,6 +2853,9 @@ type ByVersionQueryParam = string
// DeprecatedQueryParam defines model for deprecatedQueryParam.
type DeprecatedQueryParam = bool
+// EnvIdPathParam defines model for envIdPathParam.
+type EnvIdPathParam = string
+
// IdempotencyKey defines model for idempotencyKey.
type IdempotencyKey = string
@@ -2565,14 +2886,11 @@ type RunIdPathParam = string
// StepIndexPathParam defines model for stepIndexPathParam.
type StepIndexPathParam = int
-// VersionPathParam defines model for versionPathParam.
-type VersionPathParam = string
-
// N400BadRequest HumanitecError represents a standard Humanitec Error
type N400BadRequest = HumanitecErrorResponse
-// N403Forbidden A standard error response
-type N403Forbidden = ErrorResponse
+// N403Forbidden HumanitecError represents a standard Humanitec Error
+type N403Forbidden = HumanitecErrorResponse
// N404NotFound HumanitecError represents a standard Humanitec Error
type N404NotFound = HumanitecErrorResponse
@@ -2621,23 +2939,27 @@ type PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONBody = []DeltaRequest
// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONBody defines parameters for PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived.
type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONBody = bool
-// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONBody defines parameters for PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId.
-type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONBody = string
-
// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONBody defines parameters for PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName.
type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONBody = string
+// ListDeploymentsParams defines parameters for ListDeployments.
+type ListDeploymentsParams struct {
+ // PipelineRunId An optional filter by the Pipeline Run ID.
+ //
+ PipelineRunId *string `form:"pipelineRunId,omitempty" json:"pipelineRunId,omitempty"`
+}
+
// PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdJSONBody defines parameters for PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployId.
type PutOrgsOrgIdAppsAppIdEnvsEnvIdFromDeployIdJSONBody = string
// PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphJSONBody defines parameters for PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraph.
type PostOrgsOrgIdAppsAppIdEnvsEnvIdResourcesGraphJSONBody = []ResourceProvisionRequestRequest
-// PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONBody defines parameters for PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePaused.
-type PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONBody = bool
+// UpdatePausedJSONBody defines parameters for UpdatePaused.
+type UpdatePausedJSONBody = bool
-// PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONBody defines parameters for PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicas.
-type PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONBody map[string]int
+// PatchReplicasJSONBody defines parameters for PatchReplicas.
+type PatchReplicasJSONBody map[string]int
// GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsParams defines parameters for GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersions.
type GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsParams struct {
@@ -2646,6 +2968,27 @@ type GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsParams struct {
KeyChanged *string `form:"key_changed,omitempty" json:"key_changed,omitempty"`
}
+// ListPipelineCriteriaInAppParams defines parameters for ListPipelineCriteriaInApp.
+type ListPipelineCriteriaInAppParams struct {
+ // Pipeline An optional filter by Pipeline ID.
+ Pipeline *string `form:"pipeline,omitempty" json:"pipeline,omitempty"`
+
+ // Match Optional key value match filters on the criteria.
+ Match *map[string]string `json:"match,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"`
+}
+
+// CreatePipelineRunByTriggerCriteriaParams defines parameters for CreatePipelineRunByTriggerCriteria.
+type CreatePipelineRunByTriggerCriteriaParams struct {
+ // IdempotencyKey The HTTP Idempotency-Key
+ IdempotencyKey *IdempotencyKey `json:"Idempotency-Key,omitempty"`
+}
+
// ListPipelinesParams defines parameters for ListPipelines.
type ListPipelinesParams struct {
// PerPage The maximum number of items to return in a page of results
@@ -2758,11 +3101,10 @@ type ListPipelineVersionsParams struct {
Page *PageTokenQueryParam `form:"page,omitempty" json:"page,omitempty"`
}
-// GetOrgsOrgIdAppsAppIdRuntimeParams defines parameters for GetOrgsOrgIdAppsAppIdRuntime.
-type GetOrgsOrgIdAppsAppIdRuntimeParams struct {
+// ListRuntimeParams defines parameters for ListRuntime.
+type ListRuntimeParams struct {
// Id Filter environments by ID (required). Up to 5 ids can be supplied per request.
- //
- Id *string `form:"id,omitempty" json:"id,omitempty"`
+ Id *[]string `form:"id,omitempty" json:"id,omitempty"`
}
// GetOrgsOrgIdAppsAppIdSetsSetIdParams defines parameters for GetOrgsOrgIdAppsAppIdSetsSetId.
@@ -2781,51 +3123,75 @@ type GetOrgsOrgIdAppsAppIdValueSetVersionsParams struct {
// ListArtefactVersionsInOrgParams defines parameters for ListArtefactVersionsInOrg.
type ListArtefactVersionsInOrgParams struct {
// Name (Optional) Filter Artefact Versions by name.
- //
Name *string `form:"name,omitempty" json:"name,omitempty"`
// Reference (Optional) Filter Artefact Versions by the reference to a Version of the same Artefact. This cannot be used together with `name`.
- //
Reference *string `form:"reference,omitempty" json:"reference,omitempty"`
// Archived (Optional) Filter for non-archived Artefact Versions. If no filter is defined only non-archived Artefact Versions are returned, if the filter is true both archived and non-archived Versions are returned.
- //
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
+
+ // Type (Optional) Filter by artefact type.
+ Type *string `form:"type,omitempty" json:"type,omitempty"`
}
// CreateArtefactVersionParams defines parameters for CreateArtefactVersion.
type CreateArtefactVersionParams struct {
// Vcs (Optional) Which version control system the version comes from. Default value is "git". If this parameter is not supplied or its value is "git", the provided ref, if not empty, is checked to ensure that it has the prefix "refs/".
- //
Vcs *string `form:"vcs,omitempty" json:"vcs,omitempty"`
+
+ // DryRun Optionally validate the request but do not persist the actual artefact.
+ DryRun *bool `form:"dry_run,omitempty" json:"dry_run,omitempty"`
+}
+
+// GetWorkloadArtefactVersionDeploymentSetParams defines parameters for GetWorkloadArtefactVersionDeploymentSet.
+type GetWorkloadArtefactVersionDeploymentSetParams struct {
+ // Accept The accepted content type.
+ Accept *string `json:"Accept,omitempty"`
+}
+
+// GetWorkloadArtefactVersionSpecParams defines parameters for GetWorkloadArtefactVersionSpec.
+type GetWorkloadArtefactVersionSpecParams struct {
+ // Accept The accepted content type.
+ Accept *string `json:"Accept,omitempty"`
}
// ListArtefactsParams defines parameters for ListArtefacts.
type ListArtefactsParams struct {
// Type (Optional) Filter Artefacts by type.
- //
Type *string `form:"type,omitempty" json:"type,omitempty"`
// Name (Optional) Filter Artefacts by name.
- //
Name *string `form:"name,omitempty" json:"name,omitempty"`
}
// ListArtefactVersionsParams defines parameters for ListArtefactVersions.
type ListArtefactVersionsParams struct {
// Archived (Optional) Filter for non-archived Artefact Versions. If no filter is defined only non-archived Artefact Versions are returned, if the filter is true both archived and non-archived Versions are returned.
- //
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
// Reference (Optional) Filter Artefact Versions by by name including a version or digest.
- //
Reference *string `form:"reference,omitempty" json:"reference,omitempty"`
// Limit (Optional) Limit the number of versions returned by the endpoint.
- //
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
+// ListAuditLogEntriesParams defines parameters for ListAuditLogEntries.
+type ListAuditLogEntriesParams 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"`
+
+ // From Optional filter for entries created after the given time.
+ From *time.Time `form:"from,omitempty" json:"from,omitempty"`
+
+ // To Optional filter for entries created before the given time.
+ To *time.Time `form:"to,omitempty" json:"to,omitempty"`
+}
+
// ListHumanitecPublicKeysParams defines parameters for ListHumanitecPublicKeys.
type ListHumanitecPublicKeysParams struct {
// Active If set to true, the response includes only the active key, if set to false only non-active keys, otherwise both active and non-active keys.
@@ -2834,7 +3200,7 @@ type ListHumanitecPublicKeysParams struct {
// ListPublicKeysParams defines parameters for ListPublicKeys.
type ListPublicKeysParams struct {
- // Fingerprint The fingerprint of the requested key. If a value is provided, the result will contain a single key, if any.
+ // Fingerprint The fingerprint (the hexadecimal representation of the sha256 hash of the DER representation of the key) of the requested key. If a value is provided, the result will contain a single key, if any.
Fingerprint *string `form:"fingerprint,omitempty" json:"fingerprint,omitempty"`
}
@@ -2981,7 +3347,7 @@ type PutDeltaJSONRequestBody = DeltaRequest
type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody = PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONBody
// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody defines body for PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId for application/json ContentType.
-type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody = PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONBody
+type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody = EnvironmentID
// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody defines body for PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName for application/json ContentType.
type PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody = PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONBody
@@ -3004,11 +3370,11 @@ type PostOrgsOrgIdAppsAppIdEnvsEnvIdRulesJSONRequestBody = AutomationRuleRequest
// PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdJSONRequestBody defines body for PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId for application/json ContentType.
type PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdJSONRequestBody = AutomationRuleRequest
-// PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONRequestBody defines body for PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePaused for application/json ContentType.
-type PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONRequestBody = PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONBody
+// UpdatePausedJSONRequestBody defines body for UpdatePaused for application/json ContentType.
+type UpdatePausedJSONRequestBody = UpdatePausedJSONBody
-// PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONRequestBody defines body for PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicas for application/json ContentType.
-type PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONRequestBody PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONBody
+// PatchReplicasJSONRequestBody defines body for PatchReplicas for application/json ContentType.
+type PatchReplicasJSONRequestBody PatchReplicasJSONBody
// PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody defines body for PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKey for application/json ContentType.
type PostOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsValueSetVersionIdPurgeKeyJSONRequestBody = ValueSetActionPayloadRequest
@@ -3028,6 +3394,12 @@ type PatchOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody = ValuePatchPayloa
// PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody defines body for PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKey for application/json ContentType.
type PutOrgsOrgIdAppsAppIdEnvsEnvIdValuesKeyJSONRequestBody = ValueEditPayloadRequest
+// CreatePipelineRunByTriggerCriteriaJSONRequestBody defines body for CreatePipelineRunByTriggerCriteria for application/json ContentType.
+type CreatePipelineRunByTriggerCriteriaJSONRequestBody = PipelineRunCreateByTriggerCriteriaBody
+
+// CreatePipelineCriteriaJSONRequestBody defines body for CreatePipelineCriteria for application/json ContentType.
+type CreatePipelineCriteriaJSONRequestBody = PipelineCriteriaCreateBody
+
// CreatePipelineRunJSONRequestBody defines body for CreatePipelineRun for application/json ContentType.
type CreatePipelineRunJSONRequestBody = PipelineRunCreateBody
@@ -3065,7 +3437,10 @@ type PostOrgsOrgIdAppsAppIdWebhooksJSONRequestBody = WebhookRequest
type PatchOrgsOrgIdAppsAppIdWebhooksJobIdJSONRequestBody = WebhookRequest
// CreateArtefactVersionJSONRequestBody defines body for CreateArtefactVersion for application/json ContentType.
-type CreateArtefactVersionJSONRequestBody = AddArtefactVersionPayloadRequest
+type CreateArtefactVersionJSONRequestBody = CreateArtefactVersion
+
+// CreateArtefactVersionMultipartRequestBody defines body for CreateArtefactVersion for multipart/form-data ContentType.
+type CreateArtefactVersionMultipartRequestBody = CreateArtefactVersion
// PatchArtefactVersionJSONRequestBody defines body for PatchArtefactVersion for application/json ContentType.
type PatchArtefactVersionJSONRequestBody = UpdateArtefactVersionPayloadRequest
@@ -3136,11 +3511,8 @@ type CreateWorkloadProfileChartVersionMultipartRequestBody CreateWorkloadProfile
// CreateWorkloadProfileJSONRequestBody defines body for CreateWorkloadProfile for application/json ContentType.
type CreateWorkloadProfileJSONRequestBody = WorkloadProfileRequest
-// PatchWorkloadProfileJSONRequestBody defines body for PatchWorkloadProfile for application/json ContentType.
-type PatchWorkloadProfileJSONRequestBody = WorkloadProfilePatchRequest
-
-// CreateWorkloadProfileVersionJSONRequestBody defines body for CreateWorkloadProfileVersion for application/json ContentType.
-type CreateWorkloadProfileVersionJSONRequestBody = WorkloadProfileVersionRequest
+// UpdateWorkloadProfileJSONRequestBody defines body for UpdateWorkloadProfile for application/json ContentType.
+type UpdateWorkloadProfileJSONRequestBody = WorkloadProfileUpdateRequest
// PostUsersUserIdTokensJSONRequestBody defines body for PostUsersUserIdTokens for application/json ContentType.
type PostUsersUserIdTokensJSONRequestBody = TokenDefinitionRequest
@@ -3365,6 +3737,540 @@ func (a ModuleResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(object)
}
+// AsContainerArtefactVersion returns the union data inside the ArtefactVersion as a ContainerArtefactVersion
+func (t ArtefactVersion) AsContainerArtefactVersion() (ContainerArtefactVersion, error) {
+ var body ContainerArtefactVersion
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromContainerArtefactVersion overwrites any union data inside the ArtefactVersion as the provided ContainerArtefactVersion
+func (t *ArtefactVersion) FromContainerArtefactVersion(v ContainerArtefactVersion) error {
+ t.Type = "container"
+
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeContainerArtefactVersion performs a merge with any union data inside the ArtefactVersion, using the provided ContainerArtefactVersion
+func (t *ArtefactVersion) MergeContainerArtefactVersion(v ContainerArtefactVersion) error {
+ t.Type = "container"
+
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JsonMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsWorkloadArtefactVersion returns the union data inside the ArtefactVersion as a WorkloadArtefactVersion
+func (t ArtefactVersion) AsWorkloadArtefactVersion() (WorkloadArtefactVersion, error) {
+ var body WorkloadArtefactVersion
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromWorkloadArtefactVersion overwrites any union data inside the ArtefactVersion as the provided WorkloadArtefactVersion
+func (t *ArtefactVersion) FromWorkloadArtefactVersion(v WorkloadArtefactVersion) error {
+ t.Type = "workload"
+
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeWorkloadArtefactVersion performs a merge with any union data inside the ArtefactVersion, using the provided WorkloadArtefactVersion
+func (t *ArtefactVersion) MergeWorkloadArtefactVersion(v WorkloadArtefactVersion) error {
+ t.Type = "workload"
+
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JsonMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+func (t ArtefactVersion) Discriminator() (string, error) {
+ var discriminator struct {
+ Discriminator string `json:"type"`
+ }
+ err := json.Unmarshal(t.union, &discriminator)
+ return discriminator.Discriminator, err
+}
+
+func (t ArtefactVersion) ValueByDiscriminator() (interface{}, error) {
+ discriminator, err := t.Discriminator()
+ if err != nil {
+ return nil, err
+ }
+ switch discriminator {
+ case "container":
+ return t.AsContainerArtefactVersion()
+ case "workload":
+ return t.AsWorkloadArtefactVersion()
+ default:
+ return nil, errors.New("unknown discriminator value: " + discriminator)
+ }
+}
+
+func (t ArtefactVersion) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ if err != nil {
+ return nil, err
+ }
+ object := make(map[string]json.RawMessage)
+ if t.union != nil {
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return nil, err
+ }
+ }
+
+ object["type"], err = json.Marshal(t.Type)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'type': %w", err)
+ }
+
+ b, err = json.Marshal(object)
+ return b, err
+}
+
+func (t *ArtefactVersion) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ if err != nil {
+ return err
+ }
+ object := make(map[string]json.RawMessage)
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return err
+ }
+
+ if raw, found := object["type"]; found {
+ err = json.Unmarshal(raw, &t.Type)
+ if err != nil {
+ return fmt.Errorf("error reading 'type': %w", err)
+ }
+ }
+
+ return err
+}
+
+// AsCreateContainerArtefactVersion returns the union data inside the CreateArtefactVersion as a CreateContainerArtefactVersion
+func (t CreateArtefactVersion) AsCreateContainerArtefactVersion() (CreateContainerArtefactVersion, error) {
+ var body CreateContainerArtefactVersion
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCreateContainerArtefactVersion overwrites any union data inside the CreateArtefactVersion as the provided CreateContainerArtefactVersion
+func (t *CreateArtefactVersion) FromCreateContainerArtefactVersion(v CreateContainerArtefactVersion) error {
+ t.Type = "container"
+
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateContainerArtefactVersion performs a merge with any union data inside the CreateArtefactVersion, using the provided CreateContainerArtefactVersion
+func (t *CreateArtefactVersion) MergeCreateContainerArtefactVersion(v CreateContainerArtefactVersion) error {
+ t.Type = "container"
+
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JsonMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsCreateWorkloadArtefactVersion returns the union data inside the CreateArtefactVersion as a CreateWorkloadArtefactVersion
+func (t CreateArtefactVersion) AsCreateWorkloadArtefactVersion() (CreateWorkloadArtefactVersion, error) {
+ var body CreateWorkloadArtefactVersion
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromCreateWorkloadArtefactVersion overwrites any union data inside the CreateArtefactVersion as the provided CreateWorkloadArtefactVersion
+func (t *CreateArtefactVersion) FromCreateWorkloadArtefactVersion(v CreateWorkloadArtefactVersion) error {
+ t.Type = "workload"
+
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateWorkloadArtefactVersion performs a merge with any union data inside the CreateArtefactVersion, using the provided CreateWorkloadArtefactVersion
+func (t *CreateArtefactVersion) MergeCreateWorkloadArtefactVersion(v CreateWorkloadArtefactVersion) error {
+ t.Type = "workload"
+
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JsonMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+func (t CreateArtefactVersion) Discriminator() (string, error) {
+ var discriminator struct {
+ Discriminator string `json:"type"`
+ }
+ err := json.Unmarshal(t.union, &discriminator)
+ return discriminator.Discriminator, err
+}
+
+func (t CreateArtefactVersion) ValueByDiscriminator() (interface{}, error) {
+ discriminator, err := t.Discriminator()
+ if err != nil {
+ return nil, err
+ }
+ switch discriminator {
+ case "container":
+ return t.AsCreateContainerArtefactVersion()
+ case "workload":
+ return t.AsCreateWorkloadArtefactVersion()
+ default:
+ return nil, errors.New("unknown discriminator value: " + discriminator)
+ }
+}
+
+func (t CreateArtefactVersion) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ if err != nil {
+ return nil, err
+ }
+ object := make(map[string]json.RawMessage)
+ if t.union != nil {
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return nil, err
+ }
+ }
+
+ object["type"], err = json.Marshal(t.Type)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'type': %w", err)
+ }
+
+ b, err = json.Marshal(object)
+ return b, err
+}
+
+func (t *CreateArtefactVersion) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ if err != nil {
+ return err
+ }
+ object := make(map[string]json.RawMessage)
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return err
+ }
+
+ if raw, found := object["type"]; found {
+ err = json.Unmarshal(raw, &t.Type)
+ if err != nil {
+ return fmt.Errorf("error reading 'type': %w", err)
+ }
+ }
+
+ return err
+}
+
+// AsPipelineDeploymentRequestCriteria returns the union data inside the PipelineCriteria as a PipelineDeploymentRequestCriteria
+func (t PipelineCriteria) AsPipelineDeploymentRequestCriteria() (PipelineDeploymentRequestCriteria, error) {
+ var body PipelineDeploymentRequestCriteria
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromPipelineDeploymentRequestCriteria overwrites any union data inside the PipelineCriteria as the provided PipelineDeploymentRequestCriteria
+func (t *PipelineCriteria) FromPipelineDeploymentRequestCriteria(v PipelineDeploymentRequestCriteria) error {
+ t.Trigger = "deployment_request"
+
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergePipelineDeploymentRequestCriteria performs a merge with any union data inside the PipelineCriteria, using the provided PipelineDeploymentRequestCriteria
+func (t *PipelineCriteria) MergePipelineDeploymentRequestCriteria(v PipelineDeploymentRequestCriteria) error {
+ t.Trigger = "deployment_request"
+
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JsonMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+func (t PipelineCriteria) Discriminator() (string, error) {
+ var discriminator struct {
+ Discriminator string `json:"trigger"`
+ }
+ err := json.Unmarshal(t.union, &discriminator)
+ return discriminator.Discriminator, err
+}
+
+func (t PipelineCriteria) ValueByDiscriminator() (interface{}, error) {
+ discriminator, err := t.Discriminator()
+ if err != nil {
+ return nil, err
+ }
+ switch discriminator {
+ case "deployment_request":
+ return t.AsPipelineDeploymentRequestCriteria()
+ default:
+ return nil, errors.New("unknown discriminator value: " + discriminator)
+ }
+}
+
+func (t PipelineCriteria) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ if err != nil {
+ return nil, err
+ }
+ object := make(map[string]json.RawMessage)
+ if t.union != nil {
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return nil, err
+ }
+ }
+
+ object["trigger"], err = json.Marshal(t.Trigger)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'trigger': %w", err)
+ }
+
+ b, err = json.Marshal(object)
+ return b, err
+}
+
+func (t *PipelineCriteria) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ if err != nil {
+ return err
+ }
+ object := make(map[string]json.RawMessage)
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return err
+ }
+
+ if raw, found := object["trigger"]; found {
+ err = json.Unmarshal(raw, &t.Trigger)
+ if err != nil {
+ return fmt.Errorf("error reading 'trigger': %w", err)
+ }
+ }
+
+ return err
+}
+
+// AsPipelineDeploymentRequestCriteriaCreateBody returns the union data inside the PipelineCriteriaCreateBody as a PipelineDeploymentRequestCriteriaCreateBody
+func (t PipelineCriteriaCreateBody) AsPipelineDeploymentRequestCriteriaCreateBody() (PipelineDeploymentRequestCriteriaCreateBody, error) {
+ var body PipelineDeploymentRequestCriteriaCreateBody
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromPipelineDeploymentRequestCriteriaCreateBody overwrites any union data inside the PipelineCriteriaCreateBody as the provided PipelineDeploymentRequestCriteriaCreateBody
+func (t *PipelineCriteriaCreateBody) FromPipelineDeploymentRequestCriteriaCreateBody(v PipelineDeploymentRequestCriteriaCreateBody) error {
+ t.Trigger = "deployment_request"
+
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergePipelineDeploymentRequestCriteriaCreateBody performs a merge with any union data inside the PipelineCriteriaCreateBody, using the provided PipelineDeploymentRequestCriteriaCreateBody
+func (t *PipelineCriteriaCreateBody) MergePipelineDeploymentRequestCriteriaCreateBody(v PipelineDeploymentRequestCriteriaCreateBody) error {
+ t.Trigger = "deployment_request"
+
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JsonMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+func (t PipelineCriteriaCreateBody) Discriminator() (string, error) {
+ var discriminator struct {
+ Discriminator string `json:"trigger"`
+ }
+ err := json.Unmarshal(t.union, &discriminator)
+ return discriminator.Discriminator, err
+}
+
+func (t PipelineCriteriaCreateBody) ValueByDiscriminator() (interface{}, error) {
+ discriminator, err := t.Discriminator()
+ if err != nil {
+ return nil, err
+ }
+ switch discriminator {
+ case "deployment_request":
+ return t.AsPipelineDeploymentRequestCriteriaCreateBody()
+ default:
+ return nil, errors.New("unknown discriminator value: " + discriminator)
+ }
+}
+
+func (t PipelineCriteriaCreateBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ if err != nil {
+ return nil, err
+ }
+ object := make(map[string]json.RawMessage)
+ if t.union != nil {
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return nil, err
+ }
+ }
+
+ object["trigger"], err = json.Marshal(t.Trigger)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'trigger': %w", err)
+ }
+
+ b, err = json.Marshal(object)
+ return b, err
+}
+
+func (t *PipelineCriteriaCreateBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ if err != nil {
+ return err
+ }
+ object := make(map[string]json.RawMessage)
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return err
+ }
+
+ if raw, found := object["trigger"]; found {
+ err = json.Unmarshal(raw, &t.Trigger)
+ if err != nil {
+ return fmt.Errorf("error reading 'trigger': %w", err)
+ }
+ }
+
+ return err
+}
+
+// AsPipelineRunCreateByDeploymentRequestCriteriaBody returns the union data inside the PipelineRunCreateByTriggerCriteriaBody as a PipelineRunCreateByDeploymentRequestCriteriaBody
+func (t PipelineRunCreateByTriggerCriteriaBody) AsPipelineRunCreateByDeploymentRequestCriteriaBody() (PipelineRunCreateByDeploymentRequestCriteriaBody, error) {
+ var body PipelineRunCreateByDeploymentRequestCriteriaBody
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromPipelineRunCreateByDeploymentRequestCriteriaBody overwrites any union data inside the PipelineRunCreateByTriggerCriteriaBody as the provided PipelineRunCreateByDeploymentRequestCriteriaBody
+func (t *PipelineRunCreateByTriggerCriteriaBody) FromPipelineRunCreateByDeploymentRequestCriteriaBody(v PipelineRunCreateByDeploymentRequestCriteriaBody) error {
+ t.Trigger = "deployment_request"
+
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergePipelineRunCreateByDeploymentRequestCriteriaBody performs a merge with any union data inside the PipelineRunCreateByTriggerCriteriaBody, using the provided PipelineRunCreateByDeploymentRequestCriteriaBody
+func (t *PipelineRunCreateByTriggerCriteriaBody) MergePipelineRunCreateByDeploymentRequestCriteriaBody(v PipelineRunCreateByDeploymentRequestCriteriaBody) error {
+ t.Trigger = "deployment_request"
+
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
+
+ merged, err := runtime.JsonMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+func (t PipelineRunCreateByTriggerCriteriaBody) Discriminator() (string, error) {
+ var discriminator struct {
+ Discriminator string `json:"trigger"`
+ }
+ err := json.Unmarshal(t.union, &discriminator)
+ return discriminator.Discriminator, err
+}
+
+func (t PipelineRunCreateByTriggerCriteriaBody) ValueByDiscriminator() (interface{}, error) {
+ discriminator, err := t.Discriminator()
+ if err != nil {
+ return nil, err
+ }
+ switch discriminator {
+ case "deployment_request":
+ return t.AsPipelineRunCreateByDeploymentRequestCriteriaBody()
+ default:
+ return nil, errors.New("unknown discriminator value: " + discriminator)
+ }
+}
+
+func (t PipelineRunCreateByTriggerCriteriaBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ if err != nil {
+ return nil, err
+ }
+ object := make(map[string]json.RawMessage)
+ if t.union != nil {
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return nil, err
+ }
+ }
+
+ object["trigger"], err = json.Marshal(t.Trigger)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'trigger': %w", err)
+ }
+
+ b, err = json.Marshal(object)
+ return b, err
+}
+
+func (t *PipelineRunCreateByTriggerCriteriaBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ if err != nil {
+ return err
+ }
+ object := make(map[string]json.RawMessage)
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return err
+ }
+
+ if raw, found := object["trigger"]; found {
+ err = json.Unmarshal(raw, &t.Trigger)
+ if err != nil {
+ return fmt.Errorf("error reading 'trigger': %w", err)
+ }
+ }
+
+ return err
+}
+
// RequestEditorFn is the function signature for the RequestEditor callback function
type RequestEditorFn func(ctx context.Context, req *http.Request) error
@@ -3446,11 +4352,11 @@ type ClientInterface interface {
PatchCurrentUser(ctx context.Context, body PatchCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetOrgs request
- GetOrgs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ListOrganizations request
+ ListOrganizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetOrgsOrgId request
- GetOrgsOrgId(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // GetOrganization request
+ GetOrganization(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrgsOrgIdApps request
GetOrgsOrgIdApps(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -3470,40 +4376,40 @@ type ClientInterface interface {
ListPipelineApprovalRequests(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelineApprovalRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrgsOrgIdAppsAppIdDeltas request
- GetOrgsOrgIdAppsAppIdDeltas(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ GetOrgsOrgIdAppsAppIdDeltas(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostOrgsOrgIdAppsAppIdDeltasWithBody request with any body
- PostOrgsOrgIdAppsAppIdDeltasWithBody(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PostOrgsOrgIdAppsAppIdDeltasWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- PostOrgsOrgIdAppsAppIdDeltas(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PostOrgsOrgIdAppsAppIdDeltas(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDelta request
- GetDelta(ctx context.Context, orgId string, appId string, deltaId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ GetDelta(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBody request with any body
- PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBody(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- PatchOrgsOrgIdAppsAppIdDeltasDeltaId(ctx context.Context, orgId string, appId string, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PatchOrgsOrgIdAppsAppIdDeltasDeltaId(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutDeltaWithBody request with any body
- PutDeltaWithBody(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PutDeltaWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- PutDelta(ctx context.Context, orgId string, appId string, deltaId string, body PutDeltaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PutDelta(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutDeltaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBody request with any body
- PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBody(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBody request with any body
- PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBody(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBody request with any body
- PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBody(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrgsOrgIdAppsAppIdEnvs request
GetOrgsOrgIdAppsAppIdEnvs(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -3520,7 +4426,7 @@ type ClientInterface interface {
GetOrgsOrgIdAppsAppIdEnvsEnvId(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDeployments request
- ListDeployments(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ ListDeployments(ctx context.Context, orgId string, appId string, envId string, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithBody request with any body
PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithBody(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -3568,18 +4474,18 @@ type ClientInterface interface {
PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId(ctx context.Context, orgId string, appId string, envId string, ruleId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntime request
- GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntime(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // GetRuntime request
+ GetRuntime(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error)
- // PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBody request with any body
- PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBody(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UpdatePausedWithBody request with any body
+ UpdatePausedWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePaused(ctx context.Context, orgId string, appId string, envId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ UpdatePaused(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, body UpdatePausedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBody request with any body
- PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBody(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // PatchReplicasWithBody request with any body
+ PatchReplicasWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicas(ctx context.Context, orgId string, appId string, envId string, body PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PatchReplicas(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, body PatchReplicasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersions request
GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersions(ctx context.Context, orgId string, appId string, envId string, params *GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -3629,6 +4535,14 @@ type ClientInterface interface {
// DeleteOrgsOrgIdAppsAppIdJobs request
DeleteOrgsOrgIdAppsAppIdJobs(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ListPipelineCriteriaInApp request
+ ListPipelineCriteriaInApp(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelineCriteriaInAppParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreatePipelineRunByTriggerCriteriaWithBody request with any body
+ CreatePipelineRunByTriggerCriteriaWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *CreatePipelineRunByTriggerCriteriaParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ CreatePipelineRunByTriggerCriteria(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *CreatePipelineRunByTriggerCriteriaParams, body CreatePipelineRunByTriggerCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// ListPipelines request
ListPipelines(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelinesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -3644,6 +4558,14 @@ type ClientInterface interface {
// UpdatePipelineWithBody 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)
+ // CreatePipelineCriteriaWithBody request with any body
+ CreatePipelineCriteriaWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ CreatePipelineCriteria(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, body CreatePipelineCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // DeletePipelineCriteria request
+ DeletePipelineCriteria(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, criteriaId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// ListPipelineRuns request
ListPipelineRuns(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -3688,22 +4610,22 @@ type ClientInterface interface {
// 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)
+ // ListRuntime request
+ ListRuntime(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListRuntimeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSets request
- GetSets(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ GetSets(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrgsOrgIdAppsAppIdSetsSetId request
- GetOrgsOrgIdAppsAppIdSetsSetId(ctx context.Context, orgId string, appId string, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ GetOrgsOrgIdAppsAppIdSetsSetId(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostOrgsOrgIdAppsAppIdSetsSetIdWithBody request with any body
- PostOrgsOrgIdAppsAppIdSetsSetIdWithBody(ctx context.Context, orgId string, appId string, setId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PostOrgsOrgIdAppsAppIdSetsSetIdWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- PostOrgsOrgIdAppsAppIdSetsSetId(ctx context.Context, orgId string, appId string, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ PostOrgsOrgIdAppsAppIdSetsSetId(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId request
- GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId(ctx context.Context, orgId string, appId string, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrgsOrgIdAppsAppIdUsers request
GetOrgsOrgIdAppsAppIdUsers(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -3799,6 +4721,12 @@ type ClientInterface interface {
// GetArtefactVersion request
GetArtefactVersion(ctx context.Context, orgId string, artefactVersionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // GetWorkloadArtefactVersionDeploymentSet request
+ GetWorkloadArtefactVersionDeploymentSet(ctx context.Context, orgId string, artefactVersionId string, params *GetWorkloadArtefactVersionDeploymentSetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // GetWorkloadArtefactVersionSpec request
+ GetWorkloadArtefactVersionSpec(ctx context.Context, orgId string, artefactVersionId string, params *GetWorkloadArtefactVersionSpecParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// ListArtefacts request
ListArtefacts(ctx context.Context, orgId string, params *ListArtefactsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -3813,6 +4741,9 @@ type ClientInterface interface {
PatchArtefactVersion(ctx context.Context, orgId string, artefactId string, versionId string, body PatchArtefactVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ListAuditLogEntries request
+ ListAuditLogEntries(ctx context.Context, orgId OrgIdPathParam, params *ListAuditLogEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// GetOrgsOrgIdEnvTypes request
GetOrgsOrgIdEnvTypes(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -4039,6 +4970,9 @@ type ClientInterface interface {
// CreateWorkloadProfileChartVersionWithBody request with any body
CreateWorkloadProfileChartVersionWithBody(ctx context.Context, orgId OrgIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ListWorkloadProfileFeatures request
+ ListWorkloadProfileFeatures(ctx context.Context, orgId OrgIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// ListWorkloadProfiles request
ListWorkloadProfiles(ctx context.Context, orgId OrgIdPathParam, params *ListWorkloadProfilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -4053,25 +4987,17 @@ type ClientInterface interface {
// GetWorkloadProfile request
GetWorkloadProfile(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, reqEditors ...RequestEditorFn) (*http.Response, error)
- // PatchWorkloadProfileWithBody request with any body
- PatchWorkloadProfileWithBody(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UpdateWorkloadProfileWithBody request with any body
+ UpdateWorkloadProfileWithBody(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- PatchWorkloadProfile(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body PatchWorkloadProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ UpdateWorkloadProfile(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body UpdateWorkloadProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListWorkloadProfileVersions request
ListWorkloadProfileVersions(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, params *ListWorkloadProfileVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateWorkloadProfileVersionWithBody request with any body
- CreateWorkloadProfileVersionWithBody(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- CreateWorkloadProfileVersion(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body CreateWorkloadProfileVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
-
// GetLatestWorkloadProfileVersion request
GetLatestWorkloadProfileVersion(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, reqEditors ...RequestEditorFn) (*http.Response, error)
- // DeleteWorkloadProfileVersion request
- DeleteWorkloadProfileVersion(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, version VersionPathParam, reqEditors ...RequestEditorFn) (*http.Response, error)
-
// GetTokens request
GetTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -4132,8 +5058,8 @@ func (c *Client) PatchCurrentUser(ctx context.Context, body PatchCurrentUserJSON
return c.Client.Do(req)
}
-func (c *Client) GetOrgs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetOrgsRequest(c.Server)
+func (c *Client) ListOrganizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListOrganizationsRequest(c.Server)
if err != nil {
return nil, err
}
@@ -4144,8 +5070,8 @@ func (c *Client) GetOrgs(ctx context.Context, reqEditors ...RequestEditorFn) (*h
return c.Client.Do(req)
}
-func (c *Client) GetOrgsOrgId(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetOrgsOrgIdRequest(c.Server, orgId)
+func (c *Client) GetOrganization(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetOrganizationRequest(c.Server, orgId)
if err != nil {
return nil, err
}
@@ -4228,7 +5154,7 @@ func (c *Client) ListPipelineApprovalRequests(ctx context.Context, orgId OrgIdPa
return c.Client.Do(req)
}
-func (c *Client) GetOrgsOrgIdAppsAppIdDeltas(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) GetOrgsOrgIdAppsAppIdDeltas(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetOrgsOrgIdAppsAppIdDeltasRequest(c.Server, orgId, appId, params)
if err != nil {
return nil, err
@@ -4240,7 +5166,7 @@ func (c *Client) GetOrgsOrgIdAppsAppIdDeltas(ctx context.Context, orgId string,
return c.Client.Do(req)
}
-func (c *Client) PostOrgsOrgIdAppsAppIdDeltasWithBody(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) PostOrgsOrgIdAppsAppIdDeltasWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPostOrgsOrgIdAppsAppIdDeltasRequestWithBody(c.Server, orgId, appId, contentType, body)
if err != nil {
return nil, err
@@ -4252,7 +5178,7 @@ func (c *Client) PostOrgsOrgIdAppsAppIdDeltasWithBody(ctx context.Context, orgId
return c.Client.Do(req)
}
-func (c *Client) PostOrgsOrgIdAppsAppIdDeltas(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) PostOrgsOrgIdAppsAppIdDeltas(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPostOrgsOrgIdAppsAppIdDeltasRequest(c.Server, orgId, appId, body)
if err != nil {
return nil, err
@@ -4264,7 +5190,7 @@ func (c *Client) PostOrgsOrgIdAppsAppIdDeltas(ctx context.Context, orgId string,
return c.Client.Do(req)
}
-func (c *Client) GetDelta(ctx context.Context, orgId string, appId string, deltaId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) GetDelta(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetDeltaRequest(c.Server, orgId, appId, deltaId)
if err != nil {
return nil, err
@@ -4276,7 +5202,7 @@ func (c *Client) GetDelta(ctx context.Context, orgId string, appId string, delta
return c.Client.Do(req)
}
-func (c *Client) PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBody(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequestWithBody(c.Server, orgId, appId, deltaId, contentType, body)
if err != nil {
return nil, err
@@ -4288,7 +5214,7 @@ func (c *Client) PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBody(ctx context.Contex
return c.Client.Do(req)
}
-func (c *Client) PatchOrgsOrgIdAppsAppIdDeltasDeltaId(ctx context.Context, orgId string, appId string, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) PatchOrgsOrgIdAppsAppIdDeltasDeltaId(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequest(c.Server, orgId, appId, deltaId, body)
if err != nil {
return nil, err
@@ -4300,7 +5226,7 @@ func (c *Client) PatchOrgsOrgIdAppsAppIdDeltasDeltaId(ctx context.Context, orgId
return c.Client.Do(req)
}
-func (c *Client) PutDeltaWithBody(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) PutDeltaWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPutDeltaRequestWithBody(c.Server, orgId, appId, deltaId, contentType, body)
if err != nil {
return nil, err
@@ -4312,7 +5238,7 @@ func (c *Client) PutDeltaWithBody(ctx context.Context, orgId string, appId strin
return c.Client.Do(req)
}
-func (c *Client) PutDelta(ctx context.Context, orgId string, appId string, deltaId string, body PutDeltaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) PutDelta(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutDeltaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPutDeltaRequest(c.Server, orgId, appId, deltaId, body)
if err != nil {
return nil, err
@@ -4324,7 +5250,7 @@ func (c *Client) PutDelta(ctx context.Context, orgId string, appId string, delta
return c.Client.Do(req)
}
-func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBody(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequestWithBody(c.Server, orgId, appId, deltaId, contentType, body)
if err != nil {
return nil, err
@@ -4336,7 +5262,7 @@ func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBody(ctx
return c.Client.Do(req)
}
-func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequest(c.Server, orgId, appId, deltaId, body)
if err != nil {
return nil, err
@@ -4348,7 +5274,7 @@ func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived(ctx context.
return c.Client.Do(req)
}
-func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBody(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequestWithBody(c.Server, orgId, appId, deltaId, contentType, body)
if err != nil {
return nil, err
@@ -4360,7 +5286,7 @@ func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBody(ctx con
return c.Client.Do(req)
}
-func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequest(c.Server, orgId, appId, deltaId, body)
if err != nil {
return nil, err
@@ -4372,7 +5298,7 @@ func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId(ctx context.Con
return c.Client.Do(req)
}
-func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBody(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequestWithBody(c.Server, orgId, appId, deltaId, contentType, body)
if err != nil {
return nil, err
@@ -4384,7 +5310,7 @@ func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBody(ctx cont
return c.Client.Do(req)
}
-func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+func (c *Client) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequest(c.Server, orgId, appId, deltaId, body)
if err != nil {
return nil, err
@@ -4456,8 +5382,8 @@ func (c *Client) GetOrgsOrgIdAppsAppIdEnvsEnvId(ctx context.Context, orgId strin
return c.Client.Do(req)
}
-func (c *Client) ListDeployments(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewListDeploymentsRequest(c.Server, orgId, appId, envId)
+func (c *Client) ListDeployments(ctx context.Context, orgId string, appId string, envId string, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListDeploymentsRequest(c.Server, orgId, appId, envId, params)
if err != nil {
return nil, err
}
@@ -4672,8 +5598,8 @@ func (c *Client) PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleId(ctx context.Context,
return c.Client.Do(req)
}
-func (c *Client) GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntime(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeRequest(c.Server, orgId, appId, envId)
+func (c *Client) GetRuntime(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetRuntimeRequest(c.Server, orgId, appId, envId)
if err != nil {
return nil, err
}
@@ -4684,8 +5610,8 @@ func (c *Client) GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntime(ctx context.Context, orgI
return c.Client.Do(req)
}
-func (c *Client) PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBody(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewPutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedRequestWithBody(c.Server, orgId, appId, envId, contentType, body)
+func (c *Client) UpdatePausedWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdatePausedRequestWithBody(c.Server, orgId, appId, envId, contentType, body)
if err != nil {
return nil, err
}
@@ -4696,8 +5622,8 @@ func (c *Client) PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBody(ctx context
return c.Client.Do(req)
}
-func (c *Client) PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePaused(ctx context.Context, orgId string, appId string, envId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewPutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedRequest(c.Server, orgId, appId, envId, body)
+func (c *Client) UpdatePaused(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, body UpdatePausedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdatePausedRequest(c.Server, orgId, appId, envId, body)
if err != nil {
return nil, err
}
@@ -4708,8 +5634,8 @@ func (c *Client) PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePaused(ctx context.Context
return c.Client.Do(req)
}
-func (c *Client) PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBody(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewPatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasRequestWithBody(c.Server, orgId, appId, envId, contentType, body)
+func (c *Client) PatchReplicasWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewPatchReplicasRequestWithBody(c.Server, orgId, appId, envId, contentType, body)
if err != nil {
return nil, err
}
@@ -4720,8 +5646,8 @@ func (c *Client) PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBody(ctx con
return c.Client.Do(req)
}
-func (c *Client) PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicas(ctx context.Context, orgId string, appId string, envId string, body PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewPatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasRequest(c.Server, orgId, appId, envId, body)
+func (c *Client) PatchReplicas(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, body PatchReplicasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewPatchReplicasRequest(c.Server, orgId, appId, envId, body)
if err != nil {
return nil, err
}
@@ -4948,6 +5874,42 @@ func (c *Client) DeleteOrgsOrgIdAppsAppIdJobs(ctx context.Context, orgId string,
return c.Client.Do(req)
}
+func (c *Client) ListPipelineCriteriaInApp(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelineCriteriaInAppParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListPipelineCriteriaInAppRequest(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) CreatePipelineRunByTriggerCriteriaWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *CreatePipelineRunByTriggerCriteriaParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreatePipelineRunByTriggerCriteriaRequestWithBody(c.Server, orgId, appId, params, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) CreatePipelineRunByTriggerCriteria(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *CreatePipelineRunByTriggerCriteriaParams, body CreatePipelineRunByTriggerCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreatePipelineRunByTriggerCriteriaRequest(c.Server, orgId, appId, params, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
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 {
@@ -5008,6 +5970,42 @@ func (c *Client) UpdatePipelineWithBody(ctx context.Context, orgId OrgIdPathPara
return c.Client.Do(req)
}
+func (c *Client) CreatePipelineCriteriaWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreatePipelineCriteriaRequestWithBody(c.Server, orgId, appId, pipelineId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) CreatePipelineCriteria(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, body CreatePipelineCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreatePipelineCriteriaRequest(c.Server, orgId, appId, pipelineId, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) DeletePipelineCriteria(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, criteriaId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDeletePipelineCriteriaRequest(c.Server, orgId, appId, pipelineId, criteriaId)
+ 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) 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 {
@@ -5188,8 +6186,8 @@ func (c *Client) ListPipelineVersions(ctx context.Context, orgId OrgIdPathParam,
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) ListRuntime(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListRuntimeParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListRuntimeRequest(c.Server, orgId, appId, params)
if err != nil {
return nil, err
}
@@ -5200,7 +6198,7 @@ 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) {
+func (c *Client) GetSets(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetSetsRequest(c.Server, orgId, appId)
if err != nil {
return nil, err
@@ -5212,7 +6210,7 @@ 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) {
+func (c *Client) GetOrgsOrgIdAppsAppIdSetsSetId(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest(c.Server, orgId, appId, setId, params)
if err != nil {
return nil, err
@@ -5224,7 +6222,7 @@ 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) {
+func (c *Client) PostOrgsOrgIdAppsAppIdSetsSetIdWithBody(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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
@@ -5236,7 +6234,7 @@ 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) {
+func (c *Client) PostOrgsOrgIdAppsAppIdSetsSetId(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPostOrgsOrgIdAppsAppIdSetsSetIdRequest(c.Server, orgId, appId, setId, body)
if err != nil {
return nil, err
@@ -5248,7 +6246,7 @@ 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) {
+func (c *Client) GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest(c.Server, orgId, appId, setId, sourceSetId)
if err != nil {
return nil, err
@@ -5620,8 +6618,32 @@ 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) 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)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+func (c *Client) ListArtefactVersionsInOrg(ctx context.Context, orgId string, params *ListArtefactVersionsInOrgParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListArtefactVersionsInOrgRequest(c.Server, orgId, 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) CreateArtefactVersionWithBody(ctx context.Context, orgId string, params *CreateArtefactVersionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateArtefactVersionRequestWithBody(c.Server, orgId, params, contentType, body)
if err != nil {
return nil, err
}
@@ -5632,8 +6654,8 @@ func (c *Client) PatchOrgsOrgIdAppsAppIdWebhooksJobId(ctx context.Context, orgId
return c.Client.Do(req)
}
-func (c *Client) ListArtefactVersionsInOrg(ctx context.Context, orgId string, params *ListArtefactVersionsInOrgParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewListArtefactVersionsInOrgRequest(c.Server, orgId, params)
+func (c *Client) CreateArtefactVersion(ctx context.Context, orgId string, params *CreateArtefactVersionParams, body CreateArtefactVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateArtefactVersionRequest(c.Server, orgId, params, body)
if err != nil {
return nil, err
}
@@ -5644,8 +6666,8 @@ func (c *Client) ListArtefactVersionsInOrg(ctx context.Context, orgId string, pa
return c.Client.Do(req)
}
-func (c *Client) CreateArtefactVersionWithBody(ctx context.Context, orgId string, params *CreateArtefactVersionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateArtefactVersionRequestWithBody(c.Server, orgId, params, contentType, body)
+func (c *Client) GetArtefactVersion(ctx context.Context, orgId string, artefactVersionId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetArtefactVersionRequest(c.Server, orgId, artefactVersionId)
if err != nil {
return nil, err
}
@@ -5656,8 +6678,8 @@ func (c *Client) CreateArtefactVersionWithBody(ctx context.Context, orgId string
return c.Client.Do(req)
}
-func (c *Client) CreateArtefactVersion(ctx context.Context, orgId string, params *CreateArtefactVersionParams, body CreateArtefactVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateArtefactVersionRequest(c.Server, orgId, params, body)
+func (c *Client) GetWorkloadArtefactVersionDeploymentSet(ctx context.Context, orgId string, artefactVersionId string, params *GetWorkloadArtefactVersionDeploymentSetParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetWorkloadArtefactVersionDeploymentSetRequest(c.Server, orgId, artefactVersionId, params)
if err != nil {
return nil, err
}
@@ -5668,8 +6690,8 @@ func (c *Client) CreateArtefactVersion(ctx context.Context, orgId string, params
return c.Client.Do(req)
}
-func (c *Client) GetArtefactVersion(ctx context.Context, orgId string, artefactVersionId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetArtefactVersionRequest(c.Server, orgId, artefactVersionId)
+func (c *Client) GetWorkloadArtefactVersionSpec(ctx context.Context, orgId string, artefactVersionId string, params *GetWorkloadArtefactVersionSpecParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetWorkloadArtefactVersionSpecRequest(c.Server, orgId, artefactVersionId, params)
if err != nil {
return nil, err
}
@@ -5740,6 +6762,18 @@ func (c *Client) PatchArtefactVersion(ctx context.Context, orgId string, artefac
return c.Client.Do(req)
}
+func (c *Client) ListAuditLogEntries(ctx context.Context, orgId OrgIdPathParam, params *ListAuditLogEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListAuditLogEntriesRequest(c.Server, orgId, 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) GetOrgsOrgIdEnvTypes(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetOrgsOrgIdEnvTypesRequest(c.Server, orgId)
if err != nil {
@@ -6724,6 +7758,18 @@ func (c *Client) CreateWorkloadProfileChartVersionWithBody(ctx context.Context,
return c.Client.Do(req)
}
+func (c *Client) ListWorkloadProfileFeatures(ctx context.Context, orgId OrgIdPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListWorkloadProfileFeaturesRequest(c.Server, orgId)
+ 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) ListWorkloadProfiles(ctx context.Context, orgId OrgIdPathParam, params *ListWorkloadProfilesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewListWorkloadProfilesRequest(c.Server, orgId, params)
if err != nil {
@@ -6784,8 +7830,8 @@ func (c *Client) GetWorkloadProfile(ctx context.Context, orgId OrgIdPathParam, p
return c.Client.Do(req)
}
-func (c *Client) PatchWorkloadProfileWithBody(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewPatchWorkloadProfileRequestWithBody(c.Server, orgId, profileQid, contentType, body)
+func (c *Client) UpdateWorkloadProfileWithBody(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateWorkloadProfileRequestWithBody(c.Server, orgId, profileQid, contentType, body)
if err != nil {
return nil, err
}
@@ -6796,8 +7842,8 @@ func (c *Client) PatchWorkloadProfileWithBody(ctx context.Context, orgId OrgIdPa
return c.Client.Do(req)
}
-func (c *Client) PatchWorkloadProfile(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body PatchWorkloadProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewPatchWorkloadProfileRequest(c.Server, orgId, profileQid, body)
+func (c *Client) UpdateWorkloadProfile(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body UpdateWorkloadProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateWorkloadProfileRequest(c.Server, orgId, profileQid, body)
if err != nil {
return nil, err
}
@@ -6820,30 +7866,6 @@ func (c *Client) ListWorkloadProfileVersions(ctx context.Context, orgId OrgIdPat
return c.Client.Do(req)
}
-func (c *Client) CreateWorkloadProfileVersionWithBody(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateWorkloadProfileVersionRequestWithBody(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)
-}
-
-func (c *Client) CreateWorkloadProfileVersion(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body CreateWorkloadProfileVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateWorkloadProfileVersionRequest(c.Server, orgId, profileQid, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
-
func (c *Client) GetLatestWorkloadProfileVersion(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetLatestWorkloadProfileVersionRequest(c.Server, orgId, profileQid)
if err != nil {
@@ -6856,18 +7878,6 @@ func (c *Client) GetLatestWorkloadProfileVersion(ctx context.Context, orgId OrgI
return c.Client.Do(req)
}
-func (c *Client) DeleteWorkloadProfileVersion(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, version VersionPathParam, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewDeleteWorkloadProfileVersionRequest(c.Server, orgId, profileQid, version)
- 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) GetTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewGetTokensRequest(c.Server)
if err != nil {
@@ -7031,8 +8041,8 @@ func NewPatchCurrentUserRequestWithBody(server string, contentType string, body
return req, nil
}
-// NewGetOrgsRequest generates requests for GetOrgs
-func NewGetOrgsRequest(server string) (*http.Request, error) {
+// NewListOrganizationsRequest generates requests for ListOrganizations
+func NewListOrganizationsRequest(server string) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
@@ -7058,8 +8068,8 @@ func NewGetOrgsRequest(server string) (*http.Request, error) {
return req, nil
}
-// NewGetOrgsOrgIdRequest generates requests for GetOrgsOrgId
-func NewGetOrgsOrgIdRequest(server string, orgId string) (*http.Request, error) {
+// NewGetOrganizationRequest generates requests for GetOrganization
+func NewGetOrganizationRequest(server string, orgId string) (*http.Request, error) {
var err error
var pathParam0 string
@@ -7383,7 +8393,7 @@ func NewListPipelineApprovalRequestsRequest(server string, orgId OrgIdPathParam,
}
// NewGetOrgsOrgIdAppsAppIdDeltasRequest generates requests for GetOrgsOrgIdAppsAppIdDeltas
-func NewGetOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams) (*http.Request, error) {
+func NewGetOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, params *GetOrgsOrgIdAppsAppIdDeltasParams) (*http.Request, error) {
var err error
var pathParam0 string
@@ -7462,7 +8472,7 @@ func NewGetOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId string, appId st
}
// NewPostOrgsOrgIdAppsAppIdDeltasRequest calls the generic PostOrgsOrgIdAppsAppIdDeltas builder with application/json body
-func NewPostOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId string, appId string, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody) (*http.Request, error) {
+func NewPostOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
@@ -7473,7 +8483,7 @@ func NewPostOrgsOrgIdAppsAppIdDeltasRequest(server string, orgId string, appId s
}
// 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) {
+func NewPostOrgsOrgIdAppsAppIdDeltasRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -7516,7 +8526,7 @@ func NewPostOrgsOrgIdAppsAppIdDeltasRequestWithBody(server string, orgId string,
}
// NewGetDeltaRequest generates requests for GetDelta
-func NewGetDeltaRequest(server string, orgId string, appId string, deltaId string) (*http.Request, error) {
+func NewGetDeltaRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string) (*http.Request, error) {
var err error
var pathParam0 string
@@ -7564,7 +8574,7 @@ func NewGetDeltaRequest(server string, orgId string, appId string, deltaId strin
}
// 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) {
+func NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
@@ -7575,7 +8585,7 @@ func NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequest(server string, orgId string,
}
// 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) {
+func NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -7625,7 +8635,7 @@ func NewPatchOrgsOrgIdAppsAppIdDeltasDeltaIdRequestWithBody(server string, orgId
}
// 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) {
+func NewPutDeltaRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutDeltaJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
@@ -7636,7 +8646,7 @@ func NewPutDeltaRequest(server string, orgId string, appId string, deltaId strin
}
// 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) {
+func NewPutDeltaRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -7686,7 +8696,7 @@ func NewPutDeltaRequestWithBody(server string, orgId string, appId string, delta
}
// 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) {
+func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
@@ -7697,7 +8707,7 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequest(server string,
}
// 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) {
+func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -7747,7 +8757,7 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedRequestWithBody(server
}
// 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) {
+func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
@@ -7758,7 +8768,7 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequest(server string, or
}
// 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) {
+func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -7808,7 +8818,7 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdRequestWithBody(server st
}
// 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) {
+func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
@@ -7819,7 +8829,7 @@ func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequest(server string, org
}
// 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) {
+func NewPutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -8060,7 +9070,7 @@ func NewGetOrgsOrgIdAppsAppIdEnvsEnvIdRequest(server string, orgId string, appId
}
// NewListDeploymentsRequest generates requests for ListDeployments
-func NewListDeploymentsRequest(server string, orgId string, appId string, envId string) (*http.Request, error) {
+func NewListDeploymentsRequest(server string, orgId string, appId string, envId string, params *ListDeploymentsParams) (*http.Request, error) {
var err error
var pathParam0 string
@@ -8099,6 +9109,28 @@ func NewListDeploymentsRequest(server string, orgId string, appId string, envId
return nil, err
}
+ if params != nil {
+ queryValues := queryURL.Query()
+
+ if params.PipelineRunId != nil {
+
+ if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pipelineRunId", runtime.ParamLocationQuery, *params.PipelineRunId); err != nil {
+ return nil, err
+ } else if 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
@@ -8797,8 +9829,8 @@ func NewPutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdRequestWithBody(server string,
return req, nil
}
-// NewGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeRequest generates requests for GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntime
-func NewGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeRequest(server string, orgId string, appId string, envId string) (*http.Request, error) {
+// NewGetRuntimeRequest generates requests for GetRuntime
+func NewGetRuntimeRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam) (*http.Request, error) {
var err error
var pathParam0 string
@@ -8845,19 +9877,19 @@ func NewGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeRequest(server string, orgId string
return req, nil
}
-// NewPutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedRequest calls the generic PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePaused builder with application/json body
-func NewPutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedRequest(server string, orgId string, appId string, envId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONRequestBody) (*http.Request, error) {
+// NewUpdatePausedRequest calls the generic UpdatePaused builder with application/json body
+func NewUpdatePausedRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, body UpdatePausedJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewPutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedRequestWithBody(server, orgId, appId, envId, "application/json", bodyReader)
+ return NewUpdatePausedRequestWithBody(server, orgId, appId, envId, "application/json", bodyReader)
}
-// NewPutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedRequestWithBody generates requests for PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePaused with any type of body
-func NewPutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedRequestWithBody(server string, orgId string, appId string, envId string, contentType string, body io.Reader) (*http.Request, error) {
+// NewUpdatePausedRequestWithBody generates requests for UpdatePaused with any type of body
+func NewUpdatePausedRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -8906,19 +9938,19 @@ func NewPutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedRequestWithBody(server string
return req, nil
}
-// NewPatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasRequest calls the generic PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicas builder with application/json body
-func NewPatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasRequest(server string, orgId string, appId string, envId string, body PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONRequestBody) (*http.Request, error) {
+// NewPatchReplicasRequest calls the generic PatchReplicas builder with application/json body
+func NewPatchReplicasRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, body PatchReplicasJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewPatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasRequestWithBody(server, orgId, appId, envId, "application/json", bodyReader)
+ return NewPatchReplicasRequestWithBody(server, orgId, appId, envId, "application/json", bodyReader)
}
-// NewPatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasRequestWithBody generates requests for PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicas with any type of body
-func NewPatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasRequestWithBody(server string, orgId string, appId string, envId string, contentType string, body io.Reader) (*http.Request, error) {
+// NewPatchReplicasRequestWithBody generates requests for PatchReplicas with any type of body
+func NewPatchReplicasRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -9686,14 +10718,194 @@ func NewDeleteOrgsOrgIdAppsAppIdJobsRequest(server string, orgId string, appId s
operationPath = "." + operationPath
}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+ 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
+}
+
+// NewListPipelineCriteriaInAppRequest generates requests for ListPipelineCriteriaInApp
+func NewListPipelineCriteriaInAppRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelineCriteriaInAppParams) (*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
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipeline-criteria", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ queryValues := queryURL.Query()
+
+ if 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.Match != nil {
+
+ if queryFrag, err := runtime.StyleParamWithLocation("deepObject", true, "match", runtime.ParamLocationQuery, *params.Match); err != nil {
+ return nil, err
+ } else if 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
+ }
+
+ return req, nil
+}
+
+// NewCreatePipelineRunByTriggerCriteriaRequest calls the generic CreatePipelineRunByTriggerCriteria builder with application/json body
+func NewCreatePipelineRunByTriggerCriteriaRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, params *CreatePipelineRunByTriggerCriteriaParams, body CreatePipelineRunByTriggerCriteriaJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreatePipelineRunByTriggerCriteriaRequestWithBody(server, orgId, appId, params, "application/json", bodyReader)
+}
+
+// NewCreatePipelineRunByTriggerCriteriaRequestWithBody generates requests for CreatePipelineRunByTriggerCriteria with any type of body
+func NewCreatePipelineRunByTriggerCriteriaRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, params *CreatePipelineRunByTriggerCriteriaParams, 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
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/orgs/%s/apps/%s/pipeline-runs", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest("POST", queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ if params != nil {
+
+ 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)
+ }
- req, err := http.NewRequest("DELETE", queryURL.String(), nil)
- if err != nil {
- return nil, err
}
return req, nil
@@ -10051,6 +11263,122 @@ func NewUpdatePipelineRequestWithBody(server string, orgId OrgIdPathParam, appId
return req, nil
}
+// NewCreatePipelineCriteriaRequest calls the generic CreatePipelineCriteria builder with application/json body
+func NewCreatePipelineCriteriaRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, body CreatePipelineCriteriaJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreatePipelineCriteriaRequestWithBody(server, orgId, appId, pipelineId, "application/json", bodyReader)
+}
+
+// NewCreatePipelineCriteriaRequestWithBody generates requests for CreatePipelineCriteria with any type of body
+func NewCreatePipelineCriteriaRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, 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, "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/pipelines/%s/criteria", pathParam0, pathParam1, pathParam2)
+ 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
+}
+
+// NewDeletePipelineCriteriaRequest generates requests for DeletePipelineCriteria
+func NewDeletePipelineCriteriaRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, criteriaId 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, "appId", runtime.ParamLocationPath, appId)
+ if err != nil {
+ 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, "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/apps/%s/pipelines/%s/criteria/%s", pathParam0, pathParam1, pathParam2, pathParam3)
+ 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
+}
+
// NewListPipelineRunsRequest generates requests for ListPipelineRuns
func NewListPipelineRunsRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineRunsParams) (*http.Request, error) {
var err error
@@ -11182,8 +12510,8 @@ func NewListPipelineVersionsRequest(server string, orgId OrgIdPathParam, appId A
return req, nil
}
-// NewGetOrgsOrgIdAppsAppIdRuntimeRequest generates requests for GetOrgsOrgIdAppsAppIdRuntime
-func NewGetOrgsOrgIdAppsAppIdRuntimeRequest(server string, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdRuntimeParams) (*http.Request, error) {
+// NewListRuntimeRequest generates requests for ListRuntime
+func NewListRuntimeRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, params *ListRuntimeParams) (*http.Request, error) {
var err error
var pathParam0 string
@@ -11246,7 +12574,7 @@ func NewGetOrgsOrgIdAppsAppIdRuntimeRequest(server string, orgId string, appId s
}
// NewGetSetsRequest generates requests for GetSets
-func NewGetSetsRequest(server string, orgId string, appId string) (*http.Request, error) {
+func NewGetSetsRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam) (*http.Request, error) {
var err error
var pathParam0 string
@@ -11287,7 +12615,7 @@ func NewGetSetsRequest(server string, orgId string, appId string) (*http.Request
}
// NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest generates requests for GetOrgsOrgIdAppsAppIdSetsSetId
-func NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest(server string, orgId string, appId string, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams) (*http.Request, error) {
+func NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams) (*http.Request, error) {
var err error
var pathParam0 string
@@ -11357,7 +12685,7 @@ func NewGetOrgsOrgIdAppsAppIdSetsSetIdRequest(server string, orgId string, appId
}
// 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) {
+func NewPostOrgsOrgIdAppsAppIdSetsSetIdRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
@@ -11368,7 +12696,7 @@ func NewPostOrgsOrgIdAppsAppIdSetsSetIdRequest(server string, orgId string, appI
}
// 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) {
+func NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody(server string, orgId OrgIdPathParam, appId AppIdPathParam, setId string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -11418,7 +12746,7 @@ func NewPostOrgsOrgIdAppsAppIdSetsSetIdRequestWithBody(server string, orgId stri
}
// NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest generates requests for GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId
-func NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest(server string, orgId string, appId string, setId string, sourceSetId string) (*http.Request, error) {
+func NewGetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdRequest(server string, orgId OrgIdPathParam, appId AppIdPathParam, setId string, sourceSetId string) (*http.Request, error) {
var err error
var pathParam0 string
@@ -12667,6 +13995,22 @@ func NewListArtefactVersionsInOrgRequest(server string, orgId string, params *Li
}
+ 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)
+ }
+ }
+ }
+
+ }
+
queryURL.RawQuery = queryValues.Encode()
}
@@ -12734,6 +14078,22 @@ func NewCreateArtefactVersionRequestWithBody(server string, orgId string, params
}
+ if params.DryRun != nil {
+
+ if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dry_run", runtime.ParamLocationQuery, *params.DryRun); err != nil {
+ return nil, err
+ } else if 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()
}
@@ -12788,6 +14148,118 @@ func NewGetArtefactVersionRequest(server string, orgId string, artefactVersionId
return req, nil
}
+// NewGetWorkloadArtefactVersionDeploymentSetRequest generates requests for GetWorkloadArtefactVersionDeploymentSet
+func NewGetWorkloadArtefactVersionDeploymentSetRequest(server string, orgId string, artefactVersionId string, params *GetWorkloadArtefactVersionDeploymentSetParams) (*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, "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/artefact-versions/%s/workload-deployment-set", 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
+ }
+
+ if params != nil {
+
+ if params.Accept != nil {
+ var headerParam0 string
+
+ headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("Accept", headerParam0)
+ }
+
+ }
+
+ return req, nil
+}
+
+// NewGetWorkloadArtefactVersionSpecRequest generates requests for GetWorkloadArtefactVersionSpec
+func NewGetWorkloadArtefactVersionSpecRequest(server string, orgId string, artefactVersionId string, params *GetWorkloadArtefactVersionSpecParams) (*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, "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/artefact-versions/%s/workload-spec", 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
+ }
+
+ if params != nil {
+
+ if params.Accept != nil {
+ var headerParam0 string
+
+ headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Accept", runtime.ParamLocationHeader, *params.Accept)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("Accept", headerParam0)
+ }
+
+ }
+
+ return req, nil
+}
+
// NewListArtefactsRequest generates requests for ListArtefacts
func NewListArtefactsRequest(server string, orgId string, params *ListArtefactsParams) (*http.Request, error) {
var err error
@@ -13057,6 +14529,110 @@ func NewPatchArtefactVersionRequestWithBody(server string, orgId string, artefac
return req, nil
}
+// NewListAuditLogEntriesRequest generates requests for ListAuditLogEntries
+func NewListAuditLogEntriesRequest(server string, orgId OrgIdPathParam, params *ListAuditLogEntriesParams) (*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/audit-logs", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ queryValues := queryURL.Query()
+
+ if params.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.From != nil {
+
+ if queryFrag, err := runtime.StyleParamWithLocation("form", true, "from", runtime.ParamLocationQuery, *params.From); err != nil {
+ return nil, err
+ } else if 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.To != nil {
+
+ if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil {
+ return nil, err
+ } else if 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
+}
+
// NewGetOrgsOrgIdEnvTypesRequest generates requests for GetOrgsOrgIdEnvTypes
func NewGetOrgsOrgIdEnvTypesRequest(server string, orgId string) (*http.Request, error) {
var err error
@@ -16141,6 +17717,40 @@ func NewCreateWorkloadProfileChartVersionRequestWithBody(server string, orgId Or
return req, nil
}
+// NewListWorkloadProfileFeaturesRequest generates requests for ListWorkloadProfileFeatures
+func NewListWorkloadProfileFeaturesRequest(server string, orgId OrgIdPathParam) (*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/workload-profile-features", 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
+}
+
// NewListWorkloadProfilesRequest generates requests for ListWorkloadProfiles
func NewListWorkloadProfilesRequest(server string, orgId OrgIdPathParam, params *ListWorkloadProfilesParams) (*http.Request, error) {
var err error
@@ -16358,19 +17968,19 @@ func NewGetWorkloadProfileRequest(server string, orgId OrgIdPathParam, profileQi
return req, nil
}
-// NewPatchWorkloadProfileRequest calls the generic PatchWorkloadProfile builder with application/json body
-func NewPatchWorkloadProfileRequest(server string, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body PatchWorkloadProfileJSONRequestBody) (*http.Request, error) {
+// NewUpdateWorkloadProfileRequest calls the generic UpdateWorkloadProfile builder with application/json body
+func NewUpdateWorkloadProfileRequest(server string, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body UpdateWorkloadProfileJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewPatchWorkloadProfileRequestWithBody(server, orgId, profileQid, "application/json", bodyReader)
+ return NewUpdateWorkloadProfileRequestWithBody(server, orgId, profileQid, "application/json", bodyReader)
}
-// NewPatchWorkloadProfileRequestWithBody generates requests for PatchWorkloadProfile with any type of body
-func NewPatchWorkloadProfileRequestWithBody(server string, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader) (*http.Request, error) {
+// NewUpdateWorkloadProfileRequestWithBody generates requests for UpdateWorkloadProfile with any type of body
+func NewUpdateWorkloadProfileRequestWithBody(server string, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -16402,7 +18012,7 @@ func NewPatchWorkloadProfileRequestWithBody(server string, orgId OrgIdPathParam,
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
}
@@ -16491,60 +18101,6 @@ func NewListWorkloadProfileVersionsRequest(server string, orgId OrgIdPathParam,
return req, nil
}
-// NewCreateWorkloadProfileVersionRequest calls the generic CreateWorkloadProfileVersion builder with application/json body
-func NewCreateWorkloadProfileVersionRequest(server string, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body CreateWorkloadProfileVersionJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateWorkloadProfileVersionRequestWithBody(server, orgId, profileQid, "application/json", bodyReader)
-}
-
-// NewCreateWorkloadProfileVersionRequestWithBody generates requests for CreateWorkloadProfileVersion with any type of body
-func NewCreateWorkloadProfileVersionRequestWithBody(server string, orgId OrgIdPathParam, profileQid ProfileQidPathParam, 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, "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", pathParam0, pathParam1)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
-
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
-
- req, err := http.NewRequest("POST", queryURL.String(), body)
- if err != nil {
- return nil, err
- }
-
- req.Header.Add("Content-Type", contentType)
-
- return req, nil
-}
-
// NewGetLatestWorkloadProfileVersionRequest generates requests for GetLatestWorkloadProfileVersion
func NewGetLatestWorkloadProfileVersionRequest(server string, orgId OrgIdPathParam, profileQid ProfileQidPathParam) (*http.Request, error) {
var err error
@@ -16586,54 +18142,6 @@ func NewGetLatestWorkloadProfileVersionRequest(server string, orgId OrgIdPathPar
return req, nil
}
-// NewDeleteWorkloadProfileVersionRequest generates requests for DeleteWorkloadProfileVersion
-func NewDeleteWorkloadProfileVersionRequest(server string, orgId OrgIdPathParam, profileQid ProfileQidPathParam, version VersionPathParam) (*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, "profileQid", runtime.ParamLocationPath, profileQid)
- if err != nil {
- return nil, err
- }
-
- var pathParam2 string
-
- pathParam2, err = runtime.StyleParamWithLocation("simple", false, "version", runtime.ParamLocationPath, version)
- 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/%s", pathParam0, pathParam1, pathParam2)
- 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
-}
-
// NewGetTokensRequest generates requests for GetTokens
func NewGetTokensRequest(server string) (*http.Request, error) {
var err error
@@ -16936,11 +18444,11 @@ type ClientWithResponsesInterface interface {
PatchCurrentUserWithResponse(ctx context.Context, body PatchCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchCurrentUserResponse, error)
- // GetOrgsWithResponse request
- GetOrgsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrgsResponse, error)
+ // ListOrganizationsWithResponse request
+ ListOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error)
- // GetOrgsOrgIdWithResponse request
- GetOrgsOrgIdWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResponse, error)
+ // GetOrganizationWithResponse request
+ GetOrganizationWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)
// GetOrgsOrgIdAppsWithResponse request
GetOrgsOrgIdAppsWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsResponse, error)
@@ -16960,40 +18468,40 @@ type ClientWithResponsesInterface interface {
ListPipelineApprovalRequestsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelineApprovalRequestsParams, reqEditors ...RequestEditorFn) (*ListPipelineApprovalRequestsResponse, error)
// GetOrgsOrgIdAppsAppIdDeltasWithResponse request
- GetOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdDeltasResponse, error)
+ GetOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdDeltasResponse, error)
// PostOrgsOrgIdAppsAppIdDeltasWithBodyWithResponse request with any body
- PostOrgsOrgIdAppsAppIdDeltasWithBodyWithResponse(ctx context.Context, orgId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error)
+ PostOrgsOrgIdAppsAppIdDeltasWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error)
- PostOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error)
+ PostOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error)
// GetDeltaWithResponse request
- GetDeltaWithResponse(ctx context.Context, orgId string, appId string, deltaId string, reqEditors ...RequestEditorFn) (*GetDeltaResponse, error)
+ GetDeltaWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, reqEditors ...RequestEditorFn) (*GetDeltaResponse, error)
// PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBodyWithResponse request with any body
- PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error)
+ PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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)
+ PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error)
// PutDeltaWithBodyWithResponse request with any body
- PutDeltaWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDeltaResponse, error)
+ PutDeltaWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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)
+ PutDeltaWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutDeltaJSONRequestBody, reqEditors ...RequestEditorFn) (*PutDeltaResponse, error)
// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBodyWithResponse request with any body
- PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error)
+ PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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)
+ PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error)
// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBodyWithResponse request with any body
- PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error)
+ PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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)
+ PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error)
// PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBodyWithResponse request with any body
- PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBodyWithResponse(ctx context.Context, orgId string, appId string, deltaId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error)
+ PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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)
+ PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error)
// GetOrgsOrgIdAppsAppIdEnvsWithResponse request
GetOrgsOrgIdAppsAppIdEnvsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsResponse, error)
@@ -17010,7 +18518,7 @@ type ClientWithResponsesInterface interface {
GetOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdResponse, error)
// ListDeploymentsWithResponse request
- ListDeploymentsWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*ListDeploymentsResponse, error)
+ ListDeploymentsWithResponse(ctx context.Context, orgId string, appId string, envId string, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDeploymentsResponse, error)
// PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithBodyWithResponse request with any body
PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdEnvsEnvIdDeploysResponse, error)
@@ -17058,18 +18566,18 @@ type ClientWithResponsesInterface interface {
PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithResponse(ctx context.Context, orgId string, appId string, envId string, ruleId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse, error)
- // GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeWithResponse request
- GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse, error)
+ // GetRuntimeWithResponse request
+ GetRuntimeWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, reqEditors ...RequestEditorFn) (*GetRuntimeResponse, error)
- // PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBodyWithResponse request with any body
- PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error)
+ // UpdatePausedWithBodyWithResponse request with any body
+ UpdatePausedWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePausedResponse, error)
- PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithResponse(ctx context.Context, orgId string, appId string, envId string, body PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error)
+ UpdatePausedWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, body UpdatePausedJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePausedResponse, error)
- // PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBodyWithResponse request with any body
- PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithBodyWithResponse(ctx context.Context, orgId string, appId string, envId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error)
+ // PatchReplicasWithBodyWithResponse request with any body
+ PatchReplicasWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchReplicasResponse, error)
- PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithResponse(ctx context.Context, orgId string, appId string, envId string, body PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error)
+ PatchReplicasWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, body PatchReplicasJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchReplicasResponse, error)
// GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsWithResponse request
GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsWithResponse(ctx context.Context, orgId string, appId string, envId string, params *GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse, error)
@@ -17119,6 +18627,14 @@ type ClientWithResponsesInterface interface {
// DeleteOrgsOrgIdAppsAppIdJobsWithResponse request
DeleteOrgsOrgIdAppsAppIdJobsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAppsAppIdJobsResponse, error)
+ // ListPipelineCriteriaInAppWithResponse request
+ ListPipelineCriteriaInAppWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelineCriteriaInAppParams, reqEditors ...RequestEditorFn) (*ListPipelineCriteriaInAppResponse, error)
+
+ // CreatePipelineRunByTriggerCriteriaWithBodyWithResponse request with any body
+ CreatePipelineRunByTriggerCriteriaWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *CreatePipelineRunByTriggerCriteriaParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePipelineRunByTriggerCriteriaResponse, error)
+
+ CreatePipelineRunByTriggerCriteriaWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *CreatePipelineRunByTriggerCriteriaParams, body CreatePipelineRunByTriggerCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePipelineRunByTriggerCriteriaResponse, error)
+
// ListPipelinesWithResponse request
ListPipelinesWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelinesParams, reqEditors ...RequestEditorFn) (*ListPipelinesResponse, error)
@@ -17134,6 +18650,14 @@ type ClientWithResponsesInterface interface {
// UpdatePipelineWithBodyWithResponse 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)
+ // CreatePipelineCriteriaWithBodyWithResponse request with any body
+ CreatePipelineCriteriaWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePipelineCriteriaResponse, error)
+
+ CreatePipelineCriteriaWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, body CreatePipelineCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePipelineCriteriaResponse, error)
+
+ // DeletePipelineCriteriaWithResponse request
+ DeletePipelineCriteriaWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, criteriaId string, reqEditors ...RequestEditorFn) (*DeletePipelineCriteriaResponse, error)
+
// ListPipelineRunsWithResponse request
ListPipelineRunsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineRunsParams, reqEditors ...RequestEditorFn) (*ListPipelineRunsResponse, error)
@@ -17178,22 +18702,22 @@ type ClientWithResponsesInterface interface {
// ListPipelineVersionsWithResponse request
ListPipelineVersionsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, params *ListPipelineVersionsParams, reqEditors ...RequestEditorFn) (*ListPipelineVersionsResponse, error)
- // GetOrgsOrgIdAppsAppIdRuntimeWithResponse request
- GetOrgsOrgIdAppsAppIdRuntimeWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdRuntimeParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdRuntimeResponse, error)
+ // ListRuntimeWithResponse request
+ ListRuntimeWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListRuntimeParams, reqEditors ...RequestEditorFn) (*ListRuntimeResponse, error)
// GetSetsWithResponse request
- GetSetsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetSetsResponse, error)
+ GetSetsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, reqEditors ...RequestEditorFn) (*GetSetsResponse, error)
// GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse request
- GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdResponse, error)
+ GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdResponse, error)
// PostOrgsOrgIdAppsAppIdSetsSetIdWithBodyWithResponse request with any body
- PostOrgsOrgIdAppsAppIdSetsSetIdWithBodyWithResponse(ctx context.Context, orgId string, appId string, setId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdSetsSetIdResponse, error)
+ PostOrgsOrgIdAppsAppIdSetsSetIdWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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)
+ PostOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdSetsSetIdResponse, error)
// GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdWithResponse request
- GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse, error)
+ GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse, error)
// GetOrgsOrgIdAppsAppIdUsersWithResponse request
GetOrgsOrgIdAppsAppIdUsersWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdUsersResponse, error)
@@ -17289,6 +18813,12 @@ type ClientWithResponsesInterface interface {
// GetArtefactVersionWithResponse request
GetArtefactVersionWithResponse(ctx context.Context, orgId string, artefactVersionId string, reqEditors ...RequestEditorFn) (*GetArtefactVersionResponse, error)
+ // GetWorkloadArtefactVersionDeploymentSetWithResponse request
+ GetWorkloadArtefactVersionDeploymentSetWithResponse(ctx context.Context, orgId string, artefactVersionId string, params *GetWorkloadArtefactVersionDeploymentSetParams, reqEditors ...RequestEditorFn) (*GetWorkloadArtefactVersionDeploymentSetResponse, error)
+
+ // GetWorkloadArtefactVersionSpecWithResponse request
+ GetWorkloadArtefactVersionSpecWithResponse(ctx context.Context, orgId string, artefactVersionId string, params *GetWorkloadArtefactVersionSpecParams, reqEditors ...RequestEditorFn) (*GetWorkloadArtefactVersionSpecResponse, error)
+
// ListArtefactsWithResponse request
ListArtefactsWithResponse(ctx context.Context, orgId string, params *ListArtefactsParams, reqEditors ...RequestEditorFn) (*ListArtefactsResponse, error)
@@ -17303,6 +18833,9 @@ type ClientWithResponsesInterface interface {
PatchArtefactVersionWithResponse(ctx context.Context, orgId string, artefactId string, versionId string, body PatchArtefactVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchArtefactVersionResponse, error)
+ // ListAuditLogEntriesWithResponse request
+ ListAuditLogEntriesWithResponse(ctx context.Context, orgId OrgIdPathParam, params *ListAuditLogEntriesParams, reqEditors ...RequestEditorFn) (*ListAuditLogEntriesResponse, error)
+
// GetOrgsOrgIdEnvTypesWithResponse request
GetOrgsOrgIdEnvTypesWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdEnvTypesResponse, error)
@@ -17529,6 +19062,9 @@ type ClientWithResponsesInterface interface {
// CreateWorkloadProfileChartVersionWithBodyWithResponse request with any body
CreateWorkloadProfileChartVersionWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkloadProfileChartVersionResponse, error)
+ // ListWorkloadProfileFeaturesWithResponse request
+ ListWorkloadProfileFeaturesWithResponse(ctx context.Context, orgId OrgIdPathParam, reqEditors ...RequestEditorFn) (*ListWorkloadProfileFeaturesResponse, error)
+
// ListWorkloadProfilesWithResponse request
ListWorkloadProfilesWithResponse(ctx context.Context, orgId OrgIdPathParam, params *ListWorkloadProfilesParams, reqEditors ...RequestEditorFn) (*ListWorkloadProfilesResponse, error)
@@ -17543,25 +19079,17 @@ type ClientWithResponsesInterface interface {
// GetWorkloadProfileWithResponse request
GetWorkloadProfileWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, reqEditors ...RequestEditorFn) (*GetWorkloadProfileResponse, error)
- // PatchWorkloadProfileWithBodyWithResponse request with any body
- PatchWorkloadProfileWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchWorkloadProfileResponse, error)
+ // UpdateWorkloadProfileWithBodyWithResponse request with any body
+ UpdateWorkloadProfileWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkloadProfileResponse, error)
- PatchWorkloadProfileWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body PatchWorkloadProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchWorkloadProfileResponse, error)
+ UpdateWorkloadProfileWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body UpdateWorkloadProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkloadProfileResponse, error)
// ListWorkloadProfileVersionsWithResponse request
ListWorkloadProfileVersionsWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, params *ListWorkloadProfileVersionsParams, reqEditors ...RequestEditorFn) (*ListWorkloadProfileVersionsResponse, error)
- // CreateWorkloadProfileVersionWithBodyWithResponse request with any body
- CreateWorkloadProfileVersionWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkloadProfileVersionResponse, error)
-
- CreateWorkloadProfileVersionWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body CreateWorkloadProfileVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkloadProfileVersionResponse, error)
-
// GetLatestWorkloadProfileVersionWithResponse request
GetLatestWorkloadProfileVersionWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, reqEditors ...RequestEditorFn) (*GetLatestWorkloadProfileVersionResponse, error)
- // DeleteWorkloadProfileVersionWithResponse request
- DeleteWorkloadProfileVersionWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, version VersionPathParam, reqEditors ...RequestEditorFn) (*DeleteWorkloadProfileVersionResponse, error)
-
// GetTokensWithResponse request
GetTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTokensResponse, error)
@@ -17631,14 +19159,15 @@ func (r PatchCurrentUserResponse) StatusCode() int {
return 0
}
-type GetOrgsResponse struct {
+type ListOrganizationsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]OrganizationResponse
+ JSON403 *N403Forbidden
}
// Status returns HTTPResponse.Status
-func (r GetOrgsResponse) Status() string {
+func (r ListOrganizationsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -17646,23 +19175,22 @@ func (r GetOrgsResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetOrgsResponse) StatusCode() int {
+func (r ListOrganizationsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
-type GetOrgsOrgIdResponse struct {
+type GetOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OrganizationResponse
- JSON400 *HumanitecErrorResponse
- JSON409 *HumanitecErrorResponse
+ JSON403 *N403Forbidden
}
// Status returns HTTPResponse.Status
-func (r GetOrgsOrgIdResponse) Status() string {
+func (r GetOrganizationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -17670,7 +19198,7 @@ func (r GetOrgsOrgIdResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetOrgsOrgIdResponse) StatusCode() int {
+func (r GetOrganizationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -18004,7 +19532,7 @@ func (r GetOrgsOrgIdAppsAppIdEnvsResponse) StatusCode() int {
type PostOrgsOrgIdAppsAppIdEnvsResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *EnvironmentResponse
+ JSON201 *EnvironmentResponse
JSON400 *HumanitecErrorResponse
JSON404 *HumanitecErrorResponse
JSON409 *HumanitecErrorResponse
@@ -18367,16 +19895,16 @@ func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse) StatusCode() int {
return 0
}
-type GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse struct {
+type GetRuntimeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *RuntimeInfoResponse
- JSON400 *HumanitecErrorResponse
- JSON404 *HumanitecErrorResponse
+ JSON400 *N400BadRequest
+ JSON404 *N404NotFound
}
// Status returns HTTPResponse.Status
-func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse) Status() string {
+func (r GetRuntimeResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -18384,23 +19912,23 @@ func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse) StatusCode() int {
+func (r GetRuntimeResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
-type PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse struct {
+type UpdatePausedResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON400 *HumanitecErrorResponse
- JSON403 *HumanitecErrorResponse
- JSON404 *HumanitecErrorResponse
+ JSON400 *N400BadRequest
+ JSON403 *N403Forbidden
+ JSON404 *N404NotFound
}
// Status returns HTTPResponse.Status
-func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse) Status() string {
+func (r UpdatePausedResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -18408,23 +19936,23 @@ func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse) StatusCode() int {
+func (r UpdatePausedResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
-type PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse struct {
+type PatchReplicasResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON400 *HumanitecErrorResponse
- JSON403 *HumanitecErrorResponse
- JSON404 *HumanitecErrorResponse
+ JSON400 *N400BadRequest
+ JSON403 *N403Forbidden
+ JSON404 *N404NotFound
}
// Status returns HTTPResponse.Status
-func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse) Status() string {
+func (r PatchReplicasResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -18432,7 +19960,7 @@ func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse) Status() string
}
// StatusCode returns HTTPResponse.StatusCode
-func (r PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse) StatusCode() int {
+func (r PatchReplicasResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -18713,6 +20241,55 @@ func (r DeleteOrgsOrgIdAppsAppIdJobsResponse) StatusCode() int {
return 0
}
+type ListPipelineCriteriaInAppResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *[]PipelineCriteria
+ JSON400 *N400BadRequest
+}
+
+// Status returns HTTPResponse.Status
+func (r ListPipelineCriteriaInAppResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListPipelineCriteriaInAppResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+type CreatePipelineRunByTriggerCriteriaResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON201 *PipelineRun
+ JSON400 *N400BadRequest
+ JSON404 *N404NotFound
+ JSON409 *N409Conflict
+ JSON422 *N422UnprocessableContent
+}
+
+// Status returns HTTPResponse.Status
+func (r CreatePipelineRunByTriggerCriteriaResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r CreatePipelineRunByTriggerCriteriaResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
type ListPipelinesResponse struct {
Body []byte
HTTPResponse *http.Response
@@ -18837,6 +20414,54 @@ func (r UpdatePipelineResponse) StatusCode() int {
return 0
}
+type CreatePipelineCriteriaResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON201 *PipelineCriteria
+ JSON400 *N400BadRequest
+ JSON404 *N404NotFound
+ JSON409 *N409Conflict
+}
+
+// Status returns HTTPResponse.Status
+func (r CreatePipelineCriteriaResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r CreatePipelineCriteriaResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+type DeletePipelineCriteriaResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON400 *N400BadRequest
+ JSON404 *N404NotFound
+}
+
+// Status returns HTTPResponse.Status
+func (r DeletePipelineCriteriaResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r DeletePipelineCriteriaResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
type ListPipelineRunsResponse struct {
Body []byte
HTTPResponse *http.Response
@@ -19176,15 +20801,15 @@ func (r ListPipelineVersionsResponse) StatusCode() int {
return 0
}
-type GetOrgsOrgIdAppsAppIdRuntimeResponse struct {
+type ListRuntimeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]EnvironmentRuntimeInfoResponse
- JSON400 *HumanitecErrorResponse
+ JSON400 *N400BadRequest
}
// Status returns HTTPResponse.Status
-func (r GetOrgsOrgIdAppsAppIdRuntimeResponse) Status() string {
+func (r ListRuntimeResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -19192,7 +20817,7 @@ func (r GetOrgsOrgIdAppsAppIdRuntimeResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetOrgsOrgIdAppsAppIdRuntimeResponse) StatusCode() int {
+func (r ListRuntimeResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -19778,7 +21403,7 @@ func (r PatchOrgsOrgIdAppsAppIdWebhooksJobIdResponse) StatusCode() int {
type ListArtefactVersionsInOrgResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *[]ArtefactVersionResponse
+ JSON200 *[]ArtefactVersion
JSON400 *HumanitecErrorResponse
}
@@ -19801,7 +21426,7 @@ func (r ListArtefactVersionsInOrgResponse) StatusCode() int {
type CreateArtefactVersionResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ArtefactVersionResponse
+ JSON200 *ArtefactVersion
JSON400 *HumanitecErrorResponse
JSON401 *HumanitecErrorResponse
}
@@ -19825,7 +21450,7 @@ func (r CreateArtefactVersionResponse) StatusCode() int {
type GetArtefactVersionResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ArtefactVersionResponse
+ JSON200 *ArtefactVersion
JSON400 *HumanitecErrorResponse
JSON404 *HumanitecErrorResponse
}
@@ -19846,6 +21471,56 @@ func (r GetArtefactVersionResponse) StatusCode() int {
return 0
}
+type GetWorkloadArtefactVersionDeploymentSetResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *WorkloadArtefactVersionDeploymentSet
+ YAML200 *WorkloadArtefactVersionDeploymentSet
+ JSON400 *HumanitecErrorResponse
+ JSON404 *HumanitecErrorResponse
+}
+
+// Status returns HTTPResponse.Status
+func (r GetWorkloadArtefactVersionDeploymentSetResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetWorkloadArtefactVersionDeploymentSetResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+type GetWorkloadArtefactVersionSpecResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *map[string]interface{}
+ YAML200 *map[string]interface{}
+ JSON400 *HumanitecErrorResponse
+ JSON404 *HumanitecErrorResponse
+}
+
+// Status returns HTTPResponse.Status
+func (r GetWorkloadArtefactVersionSpecResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetWorkloadArtefactVersionSpecResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
type ListArtefactsResponse struct {
Body []byte
HTTPResponse *http.Response
@@ -19894,7 +21569,7 @@ func (r DeleteArtefactResponse) StatusCode() int {
type ListArtefactVersionsResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *[]ArtefactVersionResponse
+ JSON200 *[]ArtefactVersion
JSON400 *HumanitecErrorResponse
JSON404 *HumanitecErrorResponse
}
@@ -19918,7 +21593,7 @@ func (r ListArtefactVersionsResponse) StatusCode() int {
type PatchArtefactVersionResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *ArtefactVersionResponse
+ JSON200 *ArtefactVersion
JSON400 *HumanitecErrorResponse
JSON401 *HumanitecErrorResponse
JSON403 *HumanitecErrorResponse
@@ -19941,6 +21616,31 @@ func (r PatchArtefactVersionResponse) StatusCode() int {
return 0
}
+type ListAuditLogEntriesResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *[]AuditLogEntry
+ JSON400 *N400BadRequest
+ JSON403 *N403Forbidden
+ JSON404 *N404NotFound
+}
+
+// Status returns HTTPResponse.Status
+func (r ListAuditLogEntriesResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListAuditLogEntriesResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
type GetOrgsOrgIdEnvTypesResponse struct {
Body []byte
HTTPResponse *http.Response
@@ -20312,7 +22012,7 @@ type ListPublicKeysResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]PublicKey
- JSON400 *HumanitecErrorResponse
+ JSON400 *N400BadRequest
}
// Status returns HTTPResponse.Status
@@ -20335,9 +22035,9 @@ type CreatePublicKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PublicKey
- JSON400 *HumanitecErrorResponse
- JSON403 *HumanitecErrorResponse
- JSON409 *HumanitecErrorResponse
+ JSON400 *N400BadRequest
+ JSON403 *N403Forbidden
+ JSON409 *N409Conflict
}
// Status returns HTTPResponse.Status
@@ -20359,8 +22059,8 @@ func (r CreatePublicKeyResponse) StatusCode() int {
type DeletePublicKeyResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON403 *HumanitecErrorResponse
- JSON404 *HumanitecErrorResponse
+ JSON403 *N403Forbidden
+ JSON404 *N404NotFound
}
// Status returns HTTPResponse.Status
@@ -20383,7 +22083,7 @@ type GetPublicKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PublicKey
- JSON404 *HumanitecErrorResponse
+ JSON404 *N404NotFound
}
// Status returns HTTPResponse.Status
@@ -21402,6 +23102,28 @@ func (r CreateWorkloadProfileChartVersionResponse) StatusCode() int {
return 0
}
+type ListWorkloadProfileFeaturesResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ JSON200 *[]WorkloadProfileFeatureResponse
+}
+
+// Status returns HTTPResponse.Status
+func (r ListWorkloadProfileFeaturesResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListWorkloadProfileFeaturesResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
type ListWorkloadProfilesResponse struct {
Body []byte
HTTPResponse *http.Response
@@ -21495,16 +23217,17 @@ func (r GetWorkloadProfileResponse) StatusCode() int {
return 0
}
-type PatchWorkloadProfileResponse struct {
+type UpdateWorkloadProfileResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *WorkloadProfileResponse
JSON400 *N400BadRequest
JSON404 *N404NotFound
+ JSON409 *N409Conflict
}
// Status returns HTTPResponse.Status
-func (r PatchWorkloadProfileResponse) Status() string {
+func (r UpdateWorkloadProfileResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -21512,7 +23235,7 @@ func (r PatchWorkloadProfileResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r PatchWorkloadProfileResponse) StatusCode() int {
+func (r UpdateWorkloadProfileResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -21542,31 +23265,6 @@ func (r ListWorkloadProfileVersionsResponse) StatusCode() int {
return 0
}
-type CreateWorkloadProfileVersionResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON201 *WorkloadProfileVersionResponse
- JSON400 *N400BadRequest
- JSON404 *N404NotFound
- JSON409 *N409Conflict
-}
-
-// Status returns HTTPResponse.Status
-func (r CreateWorkloadProfileVersionResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
- }
- return http.StatusText(0)
-}
-
-// StatusCode returns HTTPResponse.StatusCode
-func (r CreateWorkloadProfileVersionResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
- }
- return 0
-}
-
type GetLatestWorkloadProfileVersionResponse struct {
Body []byte
HTTPResponse *http.Response
@@ -21590,28 +23288,6 @@ func (r GetLatestWorkloadProfileVersionResponse) StatusCode() int {
return 0
}
-type DeleteWorkloadProfileVersionResponse struct {
- Body []byte
- HTTPResponse *http.Response
- JSON404 *N404NotFound
-}
-
-// Status returns HTTPResponse.Status
-func (r DeleteWorkloadProfileVersionResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
- }
- return http.StatusText(0)
-}
-
-// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteWorkloadProfileVersionResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
- }
- return 0
-}
-
type GetTokensResponse struct {
Body []byte
HTTPResponse *http.Response
@@ -21791,22 +23467,22 @@ func (c *ClientWithResponses) PatchCurrentUserWithResponse(ctx context.Context,
return ParsePatchCurrentUserResponse(rsp)
}
-// GetOrgsWithResponse request returning *GetOrgsResponse
-func (c *ClientWithResponses) GetOrgsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrgsResponse, error) {
- rsp, err := c.GetOrgs(ctx, reqEditors...)
+// ListOrganizationsWithResponse request returning *ListOrganizationsResponse
+func (c *ClientWithResponses) ListOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error) {
+ rsp, err := c.ListOrganizations(ctx, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetOrgsResponse(rsp)
+ return ParseListOrganizationsResponse(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...)
+// GetOrganizationWithResponse request returning *GetOrganizationResponse
+func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, orgId string, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) {
+ rsp, err := c.GetOrganization(ctx, orgId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetOrgsOrgIdResponse(rsp)
+ return ParseGetOrganizationResponse(rsp)
}
// GetOrgsOrgIdAppsWithResponse request returning *GetOrgsOrgIdAppsResponse
@@ -21863,7 +23539,7 @@ func (c *ClientWithResponses) ListPipelineApprovalRequestsWithResponse(ctx conte
}
// GetOrgsOrgIdAppsAppIdDeltasWithResponse request returning *GetOrgsOrgIdAppsAppIdDeltasResponse
-func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId string, appId string, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdDeltasResponse, error) {
+func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *GetOrgsOrgIdAppsAppIdDeltasParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdDeltasResponse, error) {
rsp, err := c.GetOrgsOrgIdAppsAppIdDeltas(ctx, orgId, appId, params, reqEditors...)
if err != nil {
return nil, err
@@ -21872,7 +23548,7 @@ func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdDeltasWithResponse(ctx contex
}
// 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) {
+func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdDeltasWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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
@@ -21880,7 +23556,7 @@ func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdDeltasWithBodyWithResponse(c
return ParsePostOrgsOrgIdAppsAppIdDeltasResponse(rsp)
}
-func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId string, appId string, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error) {
+func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdDeltasWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, body PostOrgsOrgIdAppsAppIdDeltasJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdDeltasResponse, error) {
rsp, err := c.PostOrgsOrgIdAppsAppIdDeltas(ctx, orgId, appId, body, reqEditors...)
if err != nil {
return nil, err
@@ -21889,7 +23565,7 @@ func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdDeltasWithResponse(ctx conte
}
// GetDeltaWithResponse request returning *GetDeltaResponse
-func (c *ClientWithResponses) GetDeltaWithResponse(ctx context.Context, orgId string, appId string, deltaId string, reqEditors ...RequestEditorFn) (*GetDeltaResponse, error) {
+func (c *ClientWithResponses) GetDeltaWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, reqEditors ...RequestEditorFn) (*GetDeltaResponse, error) {
rsp, err := c.GetDelta(ctx, orgId, appId, deltaId, reqEditors...)
if err != nil {
return nil, err
@@ -21898,7 +23574,7 @@ func (c *ClientWithResponses) GetDeltaWithResponse(ctx context.Context, orgId st
}
// 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) {
+func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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
@@ -21906,7 +23582,7 @@ func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithBodyWithRe
return ParsePatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse(rsp)
}
-func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error) {
+func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PatchOrgsOrgIdAppsAppIdDeltasDeltaIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAppsAppIdDeltasDeltaIdResponse, error) {
rsp, err := c.PatchOrgsOrgIdAppsAppIdDeltasDeltaId(ctx, orgId, appId, deltaId, body, reqEditors...)
if err != nil {
return nil, err
@@ -21915,7 +23591,7 @@ func (c *ClientWithResponses) PatchOrgsOrgIdAppsAppIdDeltasDeltaIdWithResponse(c
}
// 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) {
+func (c *ClientWithResponses) PutDeltaWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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
@@ -21923,7 +23599,7 @@ func (c *ClientWithResponses) PutDeltaWithBodyWithResponse(ctx context.Context,
return ParsePutDeltaResponse(rsp)
}
-func (c *ClientWithResponses) PutDeltaWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutDeltaJSONRequestBody, reqEditors ...RequestEditorFn) (*PutDeltaResponse, error) {
+func (c *ClientWithResponses) PutDeltaWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutDeltaJSONRequestBody, reqEditors ...RequestEditorFn) (*PutDeltaResponse, error) {
rsp, err := c.PutDelta(ctx, orgId, appId, deltaId, body, reqEditors...)
if err != nil {
return nil, err
@@ -21932,7 +23608,7 @@ func (c *ClientWithResponses) PutDeltaWithResponse(ctx context.Context, orgId st
}
// 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) {
+func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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
@@ -21940,7 +23616,7 @@ func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived
return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse(rsp)
}
-func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error) {
+func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchivedResponse, error) {
rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived(ctx, orgId, appId, deltaId, body, reqEditors...)
if err != nil {
return nil, err
@@ -21949,7 +23625,7 @@ func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataArchived
}
// 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) {
+func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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
@@ -21957,7 +23633,7 @@ func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWit
return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse(rsp)
}
-func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error) {
+func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdResponse, error) {
rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvId(ctx, orgId, appId, deltaId, body, reqEditors...)
if err != nil {
return nil, err
@@ -21966,7 +23642,7 @@ func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataEnvIdWit
}
// 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) {
+func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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
@@ -21974,7 +23650,7 @@ func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWith
return ParsePutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse(rsp)
}
-func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithResponse(ctx context.Context, orgId string, appId string, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error) {
+func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, deltaId string, body PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameJSONRequestBody, reqEditors ...RequestEditorFn) (*PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataNameResponse, error) {
rsp, err := c.PutOrgsOrgIdAppsAppIdDeltasDeltaIdMetadataName(ctx, orgId, appId, deltaId, body, reqEditors...)
if err != nil {
return nil, err
@@ -22027,8 +23703,8 @@ func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdEnvsEnvIdWithResponse(ctx con
}
// ListDeploymentsWithResponse request returning *ListDeploymentsResponse
-func (c *ClientWithResponses) ListDeploymentsWithResponse(ctx context.Context, orgId string, appId string, envId string, reqEditors ...RequestEditorFn) (*ListDeploymentsResponse, error) {
- rsp, err := c.ListDeployments(ctx, orgId, appId, envId, reqEditors...)
+func (c *ClientWithResponses) ListDeploymentsWithResponse(ctx context.Context, orgId string, appId string, envId string, params *ListDeploymentsParams, reqEditors ...RequestEditorFn) (*ListDeploymentsResponse, error) {
+ rsp, err := c.ListDeployments(ctx, orgId, appId, envId, params, reqEditors...)
if err != nil {
return nil, err
}
@@ -22183,47 +23859,47 @@ func (c *ClientWithResponses) PutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdWithRespo
return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(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...)
+// GetRuntimeWithResponse request returning *GetRuntimeResponse
+func (c *ClientWithResponses) GetRuntimeWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, reqEditors ...RequestEditorFn) (*GetRuntimeResponse, error) {
+ rsp, err := c.GetRuntime(ctx, orgId, appId, envId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse(rsp)
+ return ParseGetRuntimeResponse(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...)
+// UpdatePausedWithBodyWithResponse request with arbitrary body returning *UpdatePausedResponse
+func (c *ClientWithResponses) UpdatePausedWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePausedResponse, error) {
+ rsp, err := c.UpdatePausedWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse(rsp)
+ return ParseUpdatePausedResponse(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...)
+func (c *ClientWithResponses) UpdatePausedWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, body UpdatePausedJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePausedResponse, error) {
+ rsp, err := c.UpdatePaused(ctx, orgId, appId, envId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse(rsp)
+ return ParseUpdatePausedResponse(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...)
+// PatchReplicasWithBodyWithResponse request with arbitrary body returning *PatchReplicasResponse
+func (c *ClientWithResponses) PatchReplicasWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchReplicasResponse, error) {
+ rsp, err := c.PatchReplicasWithBody(ctx, orgId, appId, envId, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse(rsp)
+ return ParsePatchReplicasResponse(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) PatchReplicasWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, envId EnvIdPathParam, body PatchReplicasJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchReplicasResponse, error) {
+ rsp, err := c.PatchReplicas(ctx, orgId, appId, envId, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse(rsp)
+ return ParsePatchReplicasResponse(rsp)
}
// GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsWithResponse request returning *GetOrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsResponse
@@ -22382,6 +24058,32 @@ func (c *ClientWithResponses) DeleteOrgsOrgIdAppsAppIdJobsWithResponse(ctx conte
return ParseDeleteOrgsOrgIdAppsAppIdJobsResponse(rsp)
}
+// ListPipelineCriteriaInAppWithResponse request returning *ListPipelineCriteriaInAppResponse
+func (c *ClientWithResponses) ListPipelineCriteriaInAppWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListPipelineCriteriaInAppParams, reqEditors ...RequestEditorFn) (*ListPipelineCriteriaInAppResponse, error) {
+ rsp, err := c.ListPipelineCriteriaInApp(ctx, orgId, appId, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListPipelineCriteriaInAppResponse(rsp)
+}
+
+// CreatePipelineRunByTriggerCriteriaWithBodyWithResponse request with arbitrary body returning *CreatePipelineRunByTriggerCriteriaResponse
+func (c *ClientWithResponses) CreatePipelineRunByTriggerCriteriaWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *CreatePipelineRunByTriggerCriteriaParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePipelineRunByTriggerCriteriaResponse, error) {
+ rsp, err := c.CreatePipelineRunByTriggerCriteriaWithBody(ctx, orgId, appId, params, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreatePipelineRunByTriggerCriteriaResponse(rsp)
+}
+
+func (c *ClientWithResponses) CreatePipelineRunByTriggerCriteriaWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *CreatePipelineRunByTriggerCriteriaParams, body CreatePipelineRunByTriggerCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePipelineRunByTriggerCriteriaResponse, error) {
+ rsp, err := c.CreatePipelineRunByTriggerCriteria(ctx, orgId, appId, params, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreatePipelineRunByTriggerCriteriaResponse(rsp)
+}
+
// 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...)
@@ -22415,16 +24117,42 @@ func (c *ClientWithResponses) GetPipelineWithResponse(ctx context.Context, orgId
if err != nil {
return nil, err
}
- return ParseGetPipelineResponse(rsp)
+ return ParseGetPipelineResponse(rsp)
+}
+
+// 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 ParseUpdatePipelineResponse(rsp)
+}
+
+// CreatePipelineCriteriaWithBodyWithResponse request with arbitrary body returning *CreatePipelineCriteriaResponse
+func (c *ClientWithResponses) CreatePipelineCriteriaWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePipelineCriteriaResponse, error) {
+ rsp, err := c.CreatePipelineCriteriaWithBody(ctx, orgId, appId, pipelineId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreatePipelineCriteriaResponse(rsp)
+}
+
+func (c *ClientWithResponses) CreatePipelineCriteriaWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, body CreatePipelineCriteriaJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePipelineCriteriaResponse, error) {
+ rsp, err := c.CreatePipelineCriteria(ctx, orgId, appId, pipelineId, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreatePipelineCriteriaResponse(rsp)
}
-// 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...)
+// DeletePipelineCriteriaWithResponse request returning *DeletePipelineCriteriaResponse
+func (c *ClientWithResponses) DeletePipelineCriteriaWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, pipelineId PipelineIdPathParam, criteriaId string, reqEditors ...RequestEditorFn) (*DeletePipelineCriteriaResponse, error) {
+ rsp, err := c.DeletePipelineCriteria(ctx, orgId, appId, pipelineId, criteriaId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseUpdatePipelineResponse(rsp)
+ return ParseDeletePipelineCriteriaResponse(rsp)
}
// ListPipelineRunsWithResponse request returning *ListPipelineRunsResponse
@@ -22561,17 +24289,17 @@ func (c *ClientWithResponses) ListPipelineVersionsWithResponse(ctx context.Conte
return ParseListPipelineVersionsResponse(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...)
+// ListRuntimeWithResponse request returning *ListRuntimeResponse
+func (c *ClientWithResponses) ListRuntimeWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, params *ListRuntimeParams, reqEditors ...RequestEditorFn) (*ListRuntimeResponse, error) {
+ rsp, err := c.ListRuntime(ctx, orgId, appId, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetOrgsOrgIdAppsAppIdRuntimeResponse(rsp)
+ return ParseListRuntimeResponse(rsp)
}
// GetSetsWithResponse request returning *GetSetsResponse
-func (c *ClientWithResponses) GetSetsWithResponse(ctx context.Context, orgId string, appId string, reqEditors ...RequestEditorFn) (*GetSetsResponse, error) {
+func (c *ClientWithResponses) GetSetsWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, reqEditors ...RequestEditorFn) (*GetSetsResponse, error) {
rsp, err := c.GetSets(ctx, orgId, appId, reqEditors...)
if err != nil {
return nil, err
@@ -22580,7 +24308,7 @@ func (c *ClientWithResponses) GetSetsWithResponse(ctx context.Context, orgId str
}
// GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse request returning *GetOrgsOrgIdAppsAppIdSetsSetIdResponse
-func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdResponse, error) {
+func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, params *GetOrgsOrgIdAppsAppIdSetsSetIdParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdResponse, error) {
rsp, err := c.GetOrgsOrgIdAppsAppIdSetsSetId(ctx, orgId, appId, setId, params, reqEditors...)
if err != nil {
return nil, err
@@ -22589,7 +24317,7 @@ func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx con
}
// 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) {
+func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdSetsSetIdWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, 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
@@ -22597,7 +24325,7 @@ func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdSetsSetIdWithBodyWithRespons
return ParsePostOrgsOrgIdAppsAppIdSetsSetIdResponse(rsp)
}
-func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdSetsSetIdResponse, error) {
+func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, body PostOrgsOrgIdAppsAppIdSetsSetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAppsAppIdSetsSetIdResponse, error) {
rsp, err := c.PostOrgsOrgIdAppsAppIdSetsSetId(ctx, orgId, appId, setId, body, reqEditors...)
if err != nil {
return nil, err
@@ -22606,7 +24334,7 @@ func (c *ClientWithResponses) PostOrgsOrgIdAppsAppIdSetsSetIdWithResponse(ctx co
}
// GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdWithResponse request returning *GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse
-func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdWithResponse(ctx context.Context, orgId string, appId string, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse, error) {
+func (c *ClientWithResponses) GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdWithResponse(ctx context.Context, orgId OrgIdPathParam, appId AppIdPathParam, setId string, sourceSetId string, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetIdResponse, error) {
rsp, err := c.GetOrgsOrgIdAppsAppIdSetsSetIdDiffSourceSetId(ctx, orgId, appId, setId, sourceSetId, reqEditors...)
if err != nil {
return nil, err
@@ -22918,6 +24646,24 @@ func (c *ClientWithResponses) GetArtefactVersionWithResponse(ctx context.Context
return ParseGetArtefactVersionResponse(rsp)
}
+// GetWorkloadArtefactVersionDeploymentSetWithResponse request returning *GetWorkloadArtefactVersionDeploymentSetResponse
+func (c *ClientWithResponses) GetWorkloadArtefactVersionDeploymentSetWithResponse(ctx context.Context, orgId string, artefactVersionId string, params *GetWorkloadArtefactVersionDeploymentSetParams, reqEditors ...RequestEditorFn) (*GetWorkloadArtefactVersionDeploymentSetResponse, error) {
+ rsp, err := c.GetWorkloadArtefactVersionDeploymentSet(ctx, orgId, artefactVersionId, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetWorkloadArtefactVersionDeploymentSetResponse(rsp)
+}
+
+// GetWorkloadArtefactVersionSpecWithResponse request returning *GetWorkloadArtefactVersionSpecResponse
+func (c *ClientWithResponses) GetWorkloadArtefactVersionSpecWithResponse(ctx context.Context, orgId string, artefactVersionId string, params *GetWorkloadArtefactVersionSpecParams, reqEditors ...RequestEditorFn) (*GetWorkloadArtefactVersionSpecResponse, error) {
+ rsp, err := c.GetWorkloadArtefactVersionSpec(ctx, orgId, artefactVersionId, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetWorkloadArtefactVersionSpecResponse(rsp)
+}
+
// ListArtefactsWithResponse request returning *ListArtefactsResponse
func (c *ClientWithResponses) ListArtefactsWithResponse(ctx context.Context, orgId string, params *ListArtefactsParams, reqEditors ...RequestEditorFn) (*ListArtefactsResponse, error) {
rsp, err := c.ListArtefacts(ctx, orgId, params, reqEditors...)
@@ -22962,6 +24708,15 @@ func (c *ClientWithResponses) PatchArtefactVersionWithResponse(ctx context.Conte
return ParsePatchArtefactVersionResponse(rsp)
}
+// ListAuditLogEntriesWithResponse request returning *ListAuditLogEntriesResponse
+func (c *ClientWithResponses) ListAuditLogEntriesWithResponse(ctx context.Context, orgId OrgIdPathParam, params *ListAuditLogEntriesParams, reqEditors ...RequestEditorFn) (*ListAuditLogEntriesResponse, error) {
+ rsp, err := c.ListAuditLogEntries(ctx, orgId, params, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListAuditLogEntriesResponse(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...)
@@ -23680,6 +25435,15 @@ func (c *ClientWithResponses) CreateWorkloadProfileChartVersionWithBodyWithRespo
return ParseCreateWorkloadProfileChartVersionResponse(rsp)
}
+// ListWorkloadProfileFeaturesWithResponse request returning *ListWorkloadProfileFeaturesResponse
+func (c *ClientWithResponses) ListWorkloadProfileFeaturesWithResponse(ctx context.Context, orgId OrgIdPathParam, reqEditors ...RequestEditorFn) (*ListWorkloadProfileFeaturesResponse, error) {
+ rsp, err := c.ListWorkloadProfileFeatures(ctx, orgId, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseListWorkloadProfileFeaturesResponse(rsp)
+}
+
// ListWorkloadProfilesWithResponse request returning *ListWorkloadProfilesResponse
func (c *ClientWithResponses) ListWorkloadProfilesWithResponse(ctx context.Context, orgId OrgIdPathParam, params *ListWorkloadProfilesParams, reqEditors ...RequestEditorFn) (*ListWorkloadProfilesResponse, error) {
rsp, err := c.ListWorkloadProfiles(ctx, orgId, params, reqEditors...)
@@ -23724,21 +25488,21 @@ func (c *ClientWithResponses) GetWorkloadProfileWithResponse(ctx context.Context
return ParseGetWorkloadProfileResponse(rsp)
}
-// PatchWorkloadProfileWithBodyWithResponse request with arbitrary body returning *PatchWorkloadProfileResponse
-func (c *ClientWithResponses) PatchWorkloadProfileWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchWorkloadProfileResponse, error) {
- rsp, err := c.PatchWorkloadProfileWithBody(ctx, orgId, profileQid, contentType, body, reqEditors...)
+// UpdateWorkloadProfileWithBodyWithResponse request with arbitrary body returning *UpdateWorkloadProfileResponse
+func (c *ClientWithResponses) UpdateWorkloadProfileWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkloadProfileResponse, error) {
+ rsp, err := c.UpdateWorkloadProfileWithBody(ctx, orgId, profileQid, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParsePatchWorkloadProfileResponse(rsp)
+ return ParseUpdateWorkloadProfileResponse(rsp)
}
-func (c *ClientWithResponses) PatchWorkloadProfileWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body PatchWorkloadProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchWorkloadProfileResponse, error) {
- rsp, err := c.PatchWorkloadProfile(ctx, orgId, profileQid, body, reqEditors...)
+func (c *ClientWithResponses) UpdateWorkloadProfileWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body UpdateWorkloadProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkloadProfileResponse, error) {
+ rsp, err := c.UpdateWorkloadProfile(ctx, orgId, profileQid, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParsePatchWorkloadProfileResponse(rsp)
+ return ParseUpdateWorkloadProfileResponse(rsp)
}
// ListWorkloadProfileVersionsWithResponse request returning *ListWorkloadProfileVersionsResponse
@@ -23750,23 +25514,6 @@ func (c *ClientWithResponses) ListWorkloadProfileVersionsWithResponse(ctx contex
return ParseListWorkloadProfileVersionsResponse(rsp)
}
-// CreateWorkloadProfileVersionWithBodyWithResponse request with arbitrary body returning *CreateWorkloadProfileVersionResponse
-func (c *ClientWithResponses) CreateWorkloadProfileVersionWithBodyWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkloadProfileVersionResponse, error) {
- rsp, err := c.CreateWorkloadProfileVersionWithBody(ctx, orgId, profileQid, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateWorkloadProfileVersionResponse(rsp)
-}
-
-func (c *ClientWithResponses) CreateWorkloadProfileVersionWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, body CreateWorkloadProfileVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkloadProfileVersionResponse, error) {
- rsp, err := c.CreateWorkloadProfileVersion(ctx, orgId, profileQid, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateWorkloadProfileVersionResponse(rsp)
-}
-
// GetLatestWorkloadProfileVersionWithResponse request returning *GetLatestWorkloadProfileVersionResponse
func (c *ClientWithResponses) GetLatestWorkloadProfileVersionWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, reqEditors ...RequestEditorFn) (*GetLatestWorkloadProfileVersionResponse, error) {
rsp, err := c.GetLatestWorkloadProfileVersion(ctx, orgId, profileQid, reqEditors...)
@@ -23776,15 +25523,6 @@ func (c *ClientWithResponses) GetLatestWorkloadProfileVersionWithResponse(ctx co
return ParseGetLatestWorkloadProfileVersionResponse(rsp)
}
-// DeleteWorkloadProfileVersionWithResponse request returning *DeleteWorkloadProfileVersionResponse
-func (c *ClientWithResponses) DeleteWorkloadProfileVersionWithResponse(ctx context.Context, orgId OrgIdPathParam, profileQid ProfileQidPathParam, version VersionPathParam, reqEditors ...RequestEditorFn) (*DeleteWorkloadProfileVersionResponse, error) {
- rsp, err := c.DeleteWorkloadProfileVersion(ctx, orgId, profileQid, version, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseDeleteWorkloadProfileVersionResponse(rsp)
-}
-
// GetTokensWithResponse request returning *GetTokensResponse
func (c *ClientWithResponses) GetTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTokensResponse, error) {
rsp, err := c.GetTokens(ctx, reqEditors...)
@@ -23915,15 +25653,15 @@ func ParsePatchCurrentUserResponse(rsp *http.Response) (*PatchCurrentUserRespons
return response, nil
}
-// ParseGetOrgsResponse parses an HTTP response from a GetOrgsWithResponse call
-func ParseGetOrgsResponse(rsp *http.Response) (*GetOrgsResponse, error) {
+// ParseListOrganizationsResponse parses an HTTP response from a ListOrganizationsWithResponse call
+func ParseListOrganizationsResponse(rsp *http.Response) (*ListOrganizationsResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetOrgsResponse{
+ response := &ListOrganizationsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -23936,20 +25674,27 @@ func ParseGetOrgsResponse(rsp *http.Response) (*GetOrgsResponse, error) {
}
response.JSON200 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest N403Forbidden
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
}
return response, nil
}
-// ParseGetOrgsOrgIdResponse parses an HTTP response from a GetOrgsOrgIdWithResponse call
-func ParseGetOrgsOrgIdResponse(rsp *http.Response) (*GetOrgsOrgIdResponse, error) {
+// ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call
+func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetOrgsOrgIdResponse{
+ response := &GetOrganizationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -23962,19 +25707,12 @@ func ParseGetOrgsOrgIdResponse(rsp *http.Response) (*GetOrgsOrgIdResponse, error
}
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
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest N403Forbidden
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
- response.JSON409 = &dest
+ response.JSON403 = &dest
}
@@ -24459,12 +26197,12 @@ func ParsePostOrgsOrgIdAppsAppIdEnvsResponse(rsp *http.Response) (*PostOrgsOrgId
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
var dest EnvironmentResponse
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
@@ -24953,15 +26691,15 @@ func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRulesRuleIdResponse(rsp *http.Response)
return response, nil
}
-// ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeWithResponse call
-func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse, error) {
+// ParseGetRuntimeResponse parses an HTTP response from a GetRuntimeWithResponse call
+func ParseGetRuntimeResponse(rsp *http.Response) (*GetRuntimeResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse{
+ response := &GetRuntimeResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -24975,14 +26713,14 @@ func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse(rsp *http.Response) (*Ge
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest HumanitecErrorResponse
+ var dest N400BadRequest
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
+ var dest N404NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -24993,36 +26731,36 @@ func ParseGetOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeResponse(rsp *http.Response) (*Ge
return response, nil
}
-// ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse parses an HTTP response from a PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedWithResponse call
-func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse(rsp *http.Response) (*PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse, error) {
+// ParseUpdatePausedResponse parses an HTTP response from a UpdatePausedWithResponse call
+func ParseUpdatePausedResponse(rsp *http.Response) (*UpdatePausedResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &PutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse{
+ response := &UpdatePausedResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest HumanitecErrorResponse
+ var dest N400BadRequest
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
+ var dest N403Forbidden
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
+ var dest N404NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -25033,36 +26771,36 @@ func ParsePutOrgsOrgIdAppsAppIdEnvsEnvIdRuntimePausedResponse(rsp *http.Response
return response, nil
}
-// ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse parses an HTTP response from a PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasWithResponse call
-func ParsePatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse(rsp *http.Response) (*PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse, error) {
+// ParsePatchReplicasResponse parses an HTTP response from a PatchReplicasWithResponse call
+func ParsePatchReplicasResponse(rsp *http.Response) (*PatchReplicasResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &PatchOrgsOrgIdAppsAppIdEnvsEnvIdRuntimeReplicasResponse{
+ response := &PatchReplicasResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest HumanitecErrorResponse
+ var dest N400BadRequest
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
+ var dest N403Forbidden
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
+ var dest N404NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -25449,6 +27187,93 @@ func ParseDeleteOrgsOrgIdAppsAppIdJobsResponse(rsp *http.Response) (*DeleteOrgsO
return response, nil
}
+// ParseListPipelineCriteriaInAppResponse parses an HTTP response from a ListPipelineCriteriaInAppWithResponse call
+func ParseListPipelineCriteriaInAppResponse(rsp *http.Response) (*ListPipelineCriteriaInAppResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &ListPipelineCriteriaInAppResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest []PipelineCriteria
+ 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 N400BadRequest
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ }
+
+ return response, nil
+}
+
+// ParseCreatePipelineRunByTriggerCriteriaResponse parses an HTTP response from a CreatePipelineRunByTriggerCriteriaWithResponse call
+func ParseCreatePipelineRunByTriggerCriteriaResponse(rsp *http.Response) (*CreatePipelineRunByTriggerCriteriaResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &CreatePipelineRunByTriggerCriteriaResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest PipelineRun
+ 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 N400BadRequest
+ 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 N404NotFound
+ 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 N409Conflict
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
+ var dest N422UnprocessableContent
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
+
+ }
+
+ 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)
@@ -25637,13 +27462,107 @@ func ParseUpdatePipelineResponse(rsp *http.Response) (*UpdatePipelineResponse, e
}
switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Pipeline
- 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 == 200:
+ var dest Pipeline
+ 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 N400BadRequest
+ 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 N404NotFound
+ 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 N409Conflict
+ 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 N412PreconditionFailed
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON412 = &dest
+
+ }
+
+ return response, nil
+}
+
+// ParseCreatePipelineCriteriaResponse parses an HTTP response from a CreatePipelineCriteriaWithResponse call
+func ParseCreatePipelineCriteriaResponse(rsp *http.Response) (*CreatePipelineCriteriaResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &CreatePipelineCriteriaResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
+ var dest PipelineCriteria
+ 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 N400BadRequest
+ 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 N404NotFound
+ 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 N409Conflict
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
+ }
+
+ return response, nil
+}
+
+// ParseDeletePipelineCriteriaResponse parses an HTTP response from a DeletePipelineCriteriaWithResponse call
+func ParseDeletePipelineCriteriaResponse(rsp *http.Response) (*DeletePipelineCriteriaResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &DeletePipelineCriteriaResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest N400BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
@@ -25658,20 +27577,6 @@ func ParseUpdatePipelineResponse(rsp *http.Response) (*UpdatePipelineResponse, e
}
response.JSON404 = &dest
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest N409Conflict
- 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 N412PreconditionFailed
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON412 = &dest
-
}
return response, nil
@@ -26261,15 +28166,15 @@ func ParseListPipelineVersionsResponse(rsp *http.Response) (*ListPipelineVersion
return response, nil
}
-// ParseGetOrgsOrgIdAppsAppIdRuntimeResponse parses an HTTP response from a GetOrgsOrgIdAppsAppIdRuntimeWithResponse call
-func ParseGetOrgsOrgIdAppsAppIdRuntimeResponse(rsp *http.Response) (*GetOrgsOrgIdAppsAppIdRuntimeResponse, error) {
+// ParseListRuntimeResponse parses an HTTP response from a ListRuntimeWithResponse call
+func ParseListRuntimeResponse(rsp *http.Response) (*ListRuntimeResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetOrgsOrgIdAppsAppIdRuntimeResponse{
+ response := &ListRuntimeResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -26283,7 +28188,7 @@ func ParseGetOrgsOrgIdAppsAppIdRuntimeResponse(rsp *http.Response) (*GetOrgsOrgI
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest HumanitecErrorResponse
+ var dest N400BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -27126,7 +29031,7 @@ func ParseListArtefactVersionsInOrgResponse(rsp *http.Response) (*ListArtefactVe
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest []ArtefactVersionResponse
+ var dest []ArtefactVersion
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -27159,7 +29064,7 @@ func ParseCreateArtefactVersionResponse(rsp *http.Response) (*CreateArtefactVers
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ArtefactVersionResponse
+ var dest ArtefactVersion
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -27199,7 +29104,94 @@ func ParseGetArtefactVersionResponse(rsp *http.Response) (*GetArtefactVersionRes
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ArtefactVersionResponse
+ var dest ArtefactVersion
+ 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
+}
+
+// ParseGetWorkloadArtefactVersionDeploymentSetResponse parses an HTTP response from a GetWorkloadArtefactVersionDeploymentSetWithResponse call
+func ParseGetWorkloadArtefactVersionDeploymentSetResponse(rsp *http.Response) (*GetWorkloadArtefactVersionDeploymentSetResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &GetWorkloadArtefactVersionDeploymentSetResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest WorkloadArtefactVersionDeploymentSet
+ 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"), "yaml") && rsp.StatusCode == 200:
+ var dest WorkloadArtefactVersionDeploymentSet
+ if err := yaml.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.YAML200 = &dest
+
+ }
+
+ return response, nil
+}
+
+// ParseGetWorkloadArtefactVersionSpecResponse parses an HTTP response from a GetWorkloadArtefactVersionSpecWithResponse call
+func ParseGetWorkloadArtefactVersionSpecResponse(rsp *http.Response) (*GetWorkloadArtefactVersionSpecResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &GetWorkloadArtefactVersionSpecResponse{
+ 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
}
@@ -27219,6 +29211,13 @@ func ParseGetArtefactVersionResponse(rsp *http.Response) (*GetArtefactVersionRes
}
response.JSON404 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200:
+ var dest map[string]interface{}
+ if err := yaml.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.YAML200 = &dest
+
}
return response, nil
@@ -27298,7 +29297,7 @@ func ParseListArtefactVersionsResponse(rsp *http.Response) (*ListArtefactVersion
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest []ArtefactVersionResponse
+ var dest []ArtefactVersion
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -27338,7 +29337,7 @@ func ParsePatchArtefactVersionResponse(rsp *http.Response) (*PatchArtefactVersio
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest ArtefactVersionResponse
+ var dest ArtefactVersion
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -27377,6 +29376,53 @@ func ParsePatchArtefactVersionResponse(rsp *http.Response) (*PatchArtefactVersio
return response, nil
}
+// ParseListAuditLogEntriesResponse parses an HTTP response from a ListAuditLogEntriesWithResponse call
+func ParseListAuditLogEntriesResponse(rsp *http.Response) (*ListAuditLogEntriesResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &ListAuditLogEntriesResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest []AuditLogEntry
+ 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 N400BadRequest
+ 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 N403Forbidden
+ 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 N404NotFound
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ }
+
+ return response, nil
+}
+
// ParseGetOrgsOrgIdEnvTypesResponse parses an HTTP response from a GetOrgsOrgIdEnvTypesWithResponse call
func ParseGetOrgsOrgIdEnvTypesResponse(rsp *http.Response) (*GetOrgsOrgIdEnvTypesResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
@@ -27920,7 +29966,7 @@ func ParseListPublicKeysResponse(rsp *http.Response) (*ListPublicKeysResponse, e
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest HumanitecErrorResponse
+ var dest N400BadRequest
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -27953,21 +29999,21 @@ func ParseCreatePublicKeyResponse(rsp *http.Response) (*CreatePublicKeyResponse,
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
- var dest HumanitecErrorResponse
+ var dest N400BadRequest
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
+ var dest N403Forbidden
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON403 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
- var dest HumanitecErrorResponse
+ var dest N409Conflict
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -27993,14 +30039,14 @@ func ParseDeletePublicKeyResponse(rsp *http.Response) (*DeletePublicKeyResponse,
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
- var dest HumanitecErrorResponse
+ var dest N403Forbidden
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
+ var dest N404NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -28033,7 +30079,7 @@ func ParseGetPublicKeyResponse(rsp *http.Response) (*GetPublicKeyResponse, error
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest HumanitecErrorResponse
+ var dest N404NotFound
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -29668,6 +31714,32 @@ func ParseCreateWorkloadProfileChartVersionResponse(rsp *http.Response) (*Create
return response, nil
}
+// ParseListWorkloadProfileFeaturesResponse parses an HTTP response from a ListWorkloadProfileFeaturesWithResponse call
+func ParseListWorkloadProfileFeaturesResponse(rsp *http.Response) (*ListWorkloadProfileFeaturesResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &ListWorkloadProfileFeaturesResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest []WorkloadProfileFeatureResponse
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ }
+
+ return response, nil
+}
+
// ParseListWorkloadProfilesResponse parses an HTTP response from a ListWorkloadProfilesWithResponse call
func ParseListWorkloadProfilesResponse(rsp *http.Response) (*ListWorkloadProfilesResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
@@ -29807,15 +31879,15 @@ func ParseGetWorkloadProfileResponse(rsp *http.Response) (*GetWorkloadProfileRes
return response, nil
}
-// ParsePatchWorkloadProfileResponse parses an HTTP response from a PatchWorkloadProfileWithResponse call
-func ParsePatchWorkloadProfileResponse(rsp *http.Response) (*PatchWorkloadProfileResponse, error) {
+// ParseUpdateWorkloadProfileResponse parses an HTTP response from a UpdateWorkloadProfileWithResponse call
+func ParseUpdateWorkloadProfileResponse(rsp *http.Response) (*UpdateWorkloadProfileResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &PatchWorkloadProfileResponse{
+ response := &UpdateWorkloadProfileResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -29842,6 +31914,13 @@ func ParsePatchWorkloadProfileResponse(rsp *http.Response) (*PatchWorkloadProfil
}
response.JSON404 = &dest
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409:
+ var dest N409Conflict
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON409 = &dest
+
}
return response, nil
@@ -29880,53 +31959,6 @@ func ParseListWorkloadProfileVersionsResponse(rsp *http.Response) (*ListWorkload
return response, nil
}
-// ParseCreateWorkloadProfileVersionResponse parses an HTTP response from a CreateWorkloadProfileVersionWithResponse call
-func ParseCreateWorkloadProfileVersionResponse(rsp *http.Response) (*CreateWorkloadProfileVersionResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &CreateWorkloadProfileVersionResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
-
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
- var dest WorkloadProfileVersionResponse
- 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 N400BadRequest
- 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 N404NotFound
- 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 N409Conflict
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON409 = &dest
-
- }
-
- return response, nil
-}
-
// ParseGetLatestWorkloadProfileVersionResponse parses an HTTP response from a GetLatestWorkloadProfileVersionWithResponse call
func ParseGetLatestWorkloadProfileVersionResponse(rsp *http.Response) (*GetLatestWorkloadProfileVersionResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
@@ -29960,32 +31992,6 @@ func ParseGetLatestWorkloadProfileVersionResponse(rsp *http.Response) (*GetLates
return response, nil
}
-// ParseDeleteWorkloadProfileVersionResponse parses an HTTP response from a DeleteWorkloadProfileVersionWithResponse call
-func ParseDeleteWorkloadProfileVersionResponse(rsp *http.Response) (*DeleteWorkloadProfileVersionResponse, error) {
- bodyBytes, err := io.ReadAll(rsp.Body)
- defer func() { _ = rsp.Body.Close() }()
- if err != nil {
- return nil, err
- }
-
- response := &DeleteWorkloadProfileVersionResponse{
- Body: bodyBytes,
- HTTPResponse: rsp,
- }
-
- switch {
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
- var dest N404NotFound
- if err := json.Unmarshal(bodyBytes, &dest); err != nil {
- return nil, err
- }
- response.JSON404 = &dest
-
- }
-
- return response, nil
-}
-
// ParseGetTokensResponse parses an HTTP response from a GetTokensWithResponse call
func ParseGetTokensResponse(rsp *http.Response) (*GetTokensResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
diff --git a/docs/openapi.json b/docs/openapi.json
index 0cd3df7..8d31aaa 100644
--- a/docs/openapi.json
+++ b/docs/openapi.json
@@ -2,7 +2,7 @@
"openapi": "3.0.0",
"info": {
"title": "Humanitec API",
- "version": "0.24.2",
+ "version": "0.24.5",
"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",
@@ -355,7 +355,7 @@
}
},
"responses": {
- "200": {
+ "201": {
"description": "The new Environment.\n\n",
"content": {
"application/json": {
@@ -559,6 +559,14 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "pipelineRunId",
+ "in": "query",
+ "description": "An optional filter by the Pipeline Run ID.\n\n",
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -1162,8 +1170,9 @@
{
"name": "orgId",
"in": "path",
- "description": "The organization ID.\n\n",
+ "description": "The organization ID.",
"required": true,
+ "example": "sample-org",
"schema": {
"type": "string"
}
@@ -1171,7 +1180,8 @@
{
"name": "name",
"in": "query",
- "description": "(Optional) Filter Artefact Versions by name.\n\n",
+ "description": "(Optional) Filter Artefact Versions by name.",
+ "example": "registry.humanitec.io/public/sample-app",
"schema": {
"type": "string"
}
@@ -1179,7 +1189,8 @@
{
"name": "reference",
"in": "query",
- "description": "(Optional) Filter Artefact Versions by the reference to a Version of the same Artefact. This cannot be used together with `name`.\n\n",
+ "description": "(Optional) Filter Artefact Versions by the reference to a Version of the same Artefact. This cannot be used together with `name`.",
+ "example": "registry.humanitec.io/public/sample-app:v1@sha256:8414aa82208bc4c2761dc149df67e25c6b8a9380e5d8c4e7b5c84ca2d04bb244",
"schema": {
"type": "string"
}
@@ -1187,58 +1198,38 @@
{
"name": "archived",
"in": "query",
- "description": "(Optional) Filter for non-archived Artefact Versions. If no filter is defined only non-archived Artefact Versions are returned, if the filter is true both archived and non-archived Versions are returned.\n\n",
+ "description": "(Optional) Filter for non-archived Artefact Versions. If no filter is defined only non-archived Artefact Versions are returned, if the filter is true both archived and non-archived Versions are returned.",
+ "example": false,
"schema": {
"type": "boolean"
}
+ },
+ {
+ "name": "type",
+ "in": "query",
+ "description": "(Optional) Filter by artefact type.",
+ "example": "containers",
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
"200": {
- "description": "A list of Artefact Versions registered with your organization.\n\n",
+ "description": "A list of Artefact Versions registered with your organization.",
"content": {
"application/json": {
"schema": {
"items": {
- "$ref": "#/components/schemas/ArtefactVersionResponse"
+ "$ref": "#/components/schemas/ArtefactVersion"
},
"type": "array"
- },
- "example": [
- {
- "archived": false,
- "artefact_id": "da97af75-2e7c-4ef3-bec0-755ce1e8dd29",
- "commit": "a5cf4ab4b8a958005202916bf3bb627ebd62a11f",
- "created_at": "2020-06-10T10:00:00Z",
- "created_by": "1234567789",
- "digest": "sha256:8414aa82208bc4c2761dc149df67e25c6b8a9380e5d8c4e7b5c84ca2d04bb244",
- "id": "662b80db-cc71-40cf-b601-08d57983f6e4",
- "name": "registry.humanitec.io/public/sample-app",
- "ref": "refs/heads/master",
- "updated_at": "2020-06-12T10:00:00Z",
- "updated_by": "987654321",
- "version": "1.3.0"
- },
- {
- "archived": false,
- "artefact_id": "8a76aff7-cc3d-4d06-994d-4825bce80529",
- "commit": "a5cf4ab4b8a958005202916bf3bb627ebd62a11f",
- "created_at": "2020-06-10T10:00:00Z",
- "created_by": "1234567789",
- "digest": "",
- "id": "abf214a0-5de0-430d-a0b4-bb9871567ade",
- "name": "registry.humanitec.io/public/sample-service",
- "ref": "refs/heads/master",
- "updated_at": "2020-06-13T10:00:00Z",
- "updated_by": "987654321",
- "version": "1.2.0"
- }
- ]
+ }
}
}
},
"400": {
- "description": "Bad request.\n\n",
+ "description": "Bad request.",
"content": {
"application/json": {
"schema": {
@@ -1260,8 +1251,9 @@
{
"name": "orgId",
"in": "path",
- "description": "The organization ID.\n\n",
+ "description": "The organization ID.",
"required": true,
+ "example": "sample-org",
"schema": {
"type": "string"
}
@@ -1269,36 +1261,54 @@
{
"name": "vcs",
"in": "query",
- "description": "(Optional) Which version control system the version comes from. Default value is \"git\". If this parameter is not supplied or its value is \"git\", the provided ref, if not empty, is checked to ensure that it has the prefix \"refs/\".\n\n",
+ "description": "(Optional) Which version control system the version comes from. Default value is \"git\". If this parameter is not supplied or its value is \"git\", the provided ref, if not empty, is checked to ensure that it has the prefix \"refs/\".",
+ "example": "git",
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "dry_run",
+ "in": "query",
+ "description": "Optionally validate the request but do not persist the actual artefact.",
+ "example": false,
+ "schema": {
+ "type": "boolean"
+ }
}
],
"requestBody": {
- "description": "The data needed to register a new Artefact Version within the organization.\n\n",
+ "description": "The data needed to register a new Artefact Version within the organization.",
"required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AddArtefactVersionPayloadRequest"
+ "$ref": "#/components/schemas/CreateArtefactVersion"
+ }
+ },
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateArtefactVersion"
}
}
}
},
"responses": {
"200": {
- "description": "An Artefact Version.\n\n",
+ "description": "An Artefact Version.",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/ArtefactVersionResponse"
+ "$ref": "#/components/schemas/ArtefactVersion"
}
}
}
},
+ "204": {
+ "description": "The request was valid, but no Artefact Version was created."
+ },
"400": {
- "description": "Either one or more request body parameters are missing or invalid, or the requested payload is not provided or malformed.\n\n",
+ "description": "Either one or more request body parameters are missing or invalid, or the requested payload is not provided or malformed.",
"content": {
"application/json": {
"schema": {
@@ -1308,7 +1318,7 @@
}
},
"401": {
- "description": "Request unauthorised.\n\n",
+ "description": "Request unauthorised.",
"content": {
"application/json": {
"schema": {
@@ -1333,8 +1343,9 @@
{
"name": "orgId",
"in": "path",
- "description": "The organization ID.\n\n",
+ "description": "The organization ID.",
"required": true,
+ "example": "sample-org",
"schema": {
"type": "string"
}
@@ -1342,7 +1353,8 @@
{
"name": "artefactVersionId",
"in": "path",
- "description": "The Artefact Version ID.\n\n",
+ "description": "The Artefact Version ID.",
+ "example": "662b80db-cc71-40cf-b601-08d57983f6e4",
"required": true,
"schema": {
"type": "string"
@@ -1351,31 +1363,179 @@
],
"responses": {
"200": {
- "description": "An Artefact Version.\n\n",
+ "description": "An Artefact Version.",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/ArtefactVersionResponse"
- },
- "example": {
- "archived": false,
- "artefact_id": "da97af75-2e7c-4ef3-bec0-755ce1e8dd29",
- "commit": "a5cf4ab4b8a958005202916bf3bb627ebd62a11f",
- "created_at": "2020-06-10T10:00:00Z",
- "created_by": "1234567789",
- "digest": "sha256:8414aa82208bc4c2761dc149df67e25c6b8a9380e5d8c4e7b5c84ca2d04bb244",
- "id": "662b80db-cc71-40cf-b601-08d57983f6e4",
- "name": "registry.humanitec.io/public/sample-app",
- "ref": "refs/heads/master",
- "updated_at": "2020-06-12T10:00:00Z",
- "updated_by": "987654321",
- "version": "1.3.0"
+ "$ref": "#/components/schemas/ArtefactVersion"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Malformed Artefact Version ID.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HumanitecErrorResponse"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Artefact Version not found.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HumanitecErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/orgs/{orgId}/artefact-versions/{artefactVersionId}/workload-spec": {
+ "get": {
+ "tags": [
+ "public",
+ "Artefact"
+ ],
+ "summary": "Get the spec of this Workload Artefact Version",
+ "description": "Returns the spec of this Artefact Version if it is of type workload. An error will be\nreturned if it is not.\n",
+ "operationId": "getWorkloadArtefactVersionSpec",
+ "parameters": [
+ {
+ "name": "orgId",
+ "in": "path",
+ "description": "The organization ID.",
+ "required": true,
+ "example": "sample-org",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "artefactVersionId",
+ "in": "path",
+ "description": "The Artefact Version ID.",
+ "example": "662b80db-cc71-40cf-b601-08d57983f6e4",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "Accept",
+ "in": "header",
+ "description": "The accepted content type.",
+ "example": "application/json",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The workload spec, returned in JSON format by default or in YAML if specified by the Accept header.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "application/x-yaml": {
+ "schema": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Malformed Artefact Version ID.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HumanitecErrorResponse"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Artefact Version not found.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HumanitecErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/orgs/{orgId}/artefact-versions/{artefactVersionId}/workload-deployment-set": {
+ "get": {
+ "tags": [
+ "public",
+ "Artefact"
+ ],
+ "summary": "Get the Humanitec module definition of this Workload Artefact Version as a deployment set",
+ "description": "Returns the Humanitec workload module of this Artefact Version if it is of type workload. An error will be\nreturned if it is not.\n",
+ "operationId": "getWorkloadArtefactVersionDeploymentSet",
+ "parameters": [
+ {
+ "name": "orgId",
+ "in": "path",
+ "description": "The organization ID.",
+ "required": true,
+ "example": "sample-org",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "artefactVersionId",
+ "in": "path",
+ "description": "The Artefact Version ID.",
+ "example": "662b80db-cc71-40cf-b601-08d57983f6e4",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "Accept",
+ "in": "header",
+ "description": "The accepted content type.",
+ "example": "application/json",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The workload spec as a Humanitec deployment set, returned in JSON format by default or in YAML if specified by the Accept header.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WorkloadArtefactVersionDeploymentSet"
+ }
+ },
+ "application/x-yaml": {
+ "schema": {
+ "$ref": "#/components/schemas/WorkloadArtefactVersionDeploymentSet"
}
}
}
},
"400": {
- "description": "Malformed Artefact Version ID.\n\n",
+ "description": "Malformed Artefact Version ID.",
"content": {
"application/json": {
"schema": {
@@ -1385,7 +1545,7 @@
}
},
"404": {
- "description": "Artefact Version not found.\n\n",
+ "description": "Artefact Version not found.",
"content": {
"application/json": {
"schema": {
@@ -1410,8 +1570,9 @@
{
"name": "orgId",
"in": "path",
- "description": "The organization ID.\n\n",
+ "description": "The organization ID.",
"required": true,
+ "example": "sample-org",
"schema": {
"type": "string"
}
@@ -1419,7 +1580,8 @@
{
"name": "type",
"in": "query",
- "description": "(Optional) Filter Artefacts by type.\n\n",
+ "description": "(Optional) Filter Artefacts by type.",
+ "example": "container",
"schema": {
"type": "string"
}
@@ -1427,7 +1589,8 @@
{
"name": "name",
"in": "query",
- "description": "(Optional) Filter Artefacts by name.\n\n",
+ "description": "(Optional) Filter Artefacts by name.",
+ "example": "registry.humanitec.io/public/sample-app",
"schema": {
"type": "string"
}
@@ -1435,7 +1598,7 @@
],
"responses": {
"200": {
- "description": "The list of Artefacts within the organization.\n\n",
+ "description": "The list of Artefacts within the organization.",
"content": {
"application/json": {
"schema": {
@@ -1443,27 +1606,7 @@
"$ref": "#/components/schemas/ArtefactResponse"
},
"type": "array"
- },
- "example": [
- {
- "created_at": "2020-06-10T10:00:00Z",
- "created_by": "1234567789",
- "id": "662b80db-cc71-40cf-b601-08d57983f6e4",
- "name": "registry.humanitec.io/public/sample-app",
- "type": "container",
- "updated_at": "2020-06-12T10:00:00Z",
- "updated_by": "987654321"
- },
- {
- "created_at": "2020-06-10T10:00:00Z",
- "created_by": "1234567789",
- "id": "abf214a0-5de0-430d-a0b4-bb9871567ade",
- "name": "registry.humanitec.io/public/sample-service",
- "type": "container",
- "updated_at": "2020-06-12T10:00:00Z",
- "updated_by": "987654321"
- }
- ]
+ }
}
}
}
@@ -1483,8 +1626,9 @@
{
"name": "orgId",
"in": "path",
- "description": "The organization ID.\n\n",
+ "description": "The organization ID.",
"required": true,
+ "example": "sample-org",
"schema": {
"type": "string"
}
@@ -1492,7 +1636,8 @@
{
"name": "artefactId",
"in": "path",
- "description": "The Artefact ID.\n\n",
+ "description": "The Artefact ID.",
+ "example": "da97af75-2e7c-4ef3-bec0-755ce1e8dd29",
"required": true,
"schema": {
"type": "string"
@@ -1501,10 +1646,10 @@
],
"responses": {
"204": {
- "description": "Artefact and related Artefact Versions successfully deleted.\n\n"
+ "description": "Artefact and related Artefact Versions successfully deleted."
},
"403": {
- "description": "Request forbidden. This action can only be performed by users holding the Administrator role. It is not possible to delete a built-in artefact.\n\n",
+ "description": "Request forbidden. This action can only be performed by users holding the Administrator role. It is not possible to delete a built-in artefact.",
"content": {
"application/json": {
"schema": {
@@ -1514,7 +1659,7 @@
}
},
"404": {
- "description": "Artefact not found within your organization.\n\n",
+ "description": "Artefact not found within your organization.",
"content": {
"application/json": {
"schema": {
@@ -1539,8 +1684,9 @@
{
"name": "orgId",
"in": "path",
- "description": "The organization ID.\n\n",
+ "description": "The organization ID.",
"required": true,
+ "example": "sample-org",
"schema": {
"type": "string"
}
@@ -1548,7 +1694,8 @@
{
"name": "artefactId",
"in": "path",
- "description": "The Artefact ID.\n\n",
+ "description": "The Artefact ID.",
+ "example": "da97af75-2e7c-4ef3-bec0-755ce1e8dd29",
"required": true,
"schema": {
"type": "string"
@@ -1557,7 +1704,8 @@
{
"name": "archived",
"in": "query",
- "description": "(Optional) Filter for non-archived Artefact Versions. If no filter is defined only non-archived Artefact Versions are returned, if the filter is true both archived and non-archived Versions are returned.\n\n",
+ "description": "(Optional) Filter for non-archived Artefact Versions. If no filter is defined only non-archived Artefact Versions are returned, if the filter is true both archived and non-archived Versions are returned.",
+ "example": false,
"schema": {
"type": "boolean"
}
@@ -1565,7 +1713,8 @@
{
"name": "reference",
"in": "query",
- "description": "(Optional) Filter Artefact Versions by by name including a version or digest.\n\n",
+ "description": "(Optional) Filter Artefact Versions by by name including a version or digest.",
+ "example": "registry.humanitec.io/public/sample-app:v1@sha256:8414aa82208bc4c2761dc149df67e25c6b8a9380e5d8c4e7b5c84ca2d04bb244",
"schema": {
"type": "string"
}
@@ -1573,7 +1722,8 @@
{
"name": "limit",
"in": "query",
- "description": "(Optional) Limit the number of versions returned by the endpoint.\n\n",
+ "description": "(Optional) Limit the number of versions returned by the endpoint.",
+ "example": 20,
"schema": {
"type": "integer"
}
@@ -1581,50 +1731,20 @@
],
"responses": {
"200": {
- "description": "Returns all Versions of the specified Artefact.\n\n",
+ "description": "Returns all Versions of the specified Artefact.",
"content": {
"application/json": {
"schema": {
"items": {
- "$ref": "#/components/schemas/ArtefactVersionResponse"
+ "$ref": "#/components/schemas/ArtefactVersion"
},
"type": "array"
- },
- "example": [
- {
- "archived": false,
- "artefact_id": "da97af75-2e7c-4ef3-bec0-755ce1e8dd29",
- "commit": "a5cf4ab4b8a958005202916bf3bb627ebd62a11f",
- "created_at": "2020-06-10T10:00:00Z",
- "created_by": "1234567789",
- "digest": "sha256:8414aa82208bc4c2761dc149df67e25c6b8a9380e5d8c4e7b5c84ca2d04bb244",
- "id": "662b80db-cc71-40cf-b601-08d57983f6e4",
- "name": "registry.humanitec.io/public/sample-app",
- "ref": "refs/heads/master",
- "updated_at": "2020-06-12T10:00:00Z",
- "updated_by": "987654321",
- "version": "1.3.0"
- },
- {
- "archived": false,
- "artefact_id": "da97af75-2e7c-4ef3-bec0-755ce1e8dd29",
- "commit": "a5cf4ab4b8a958005202916bf3bb627ebd62a11f",
- "created_at": "2020-06-10T10:00:00Z",
- "created_by": "1234567789",
- "digest": "",
- "id": "abf214a0-5de0-430d-a0b4-bb9871567ade",
- "name": "registry.humanitec.io/public/sample-app",
- "ref": "refs/heads/master",
- "updated_at": "2020-06-13T10:00:00Z",
- "updated_by": "987654321",
- "version": "1.2.0"
- }
- ]
+ }
}
}
},
"400": {
- "description": "Invalid inputs provided.\n\n",
+ "description": "Invalid inputs provided.",
"content": {
"application/json": {
"schema": {
@@ -1634,7 +1754,7 @@
}
},
"404": {
- "description": "No Artefact with the supplied ID `artefactID` has been found within the organization.\n\n",
+ "description": "No Artefact with the supplied ID `artefactID` has been found within the organization.",
"content": {
"application/json": {
"schema": {
@@ -1659,8 +1779,9 @@
{
"name": "orgId",
"in": "path",
- "description": "The organization ID.\n\n",
+ "description": "The organization ID.",
"required": true,
+ "example": "sample-org",
"schema": {
"type": "string"
}
@@ -1668,7 +1789,8 @@
{
"name": "artefactId",
"in": "path",
- "description": "The Artefact ID.\n\n",
+ "description": "The Artefact ID.",
+ "example": "da97af75-2e7c-4ef3-bec0-755ce1e8dd29",
"required": true,
"schema": {
"type": "string"
@@ -1677,7 +1799,8 @@
{
"name": "versionId",
"in": "path",
- "description": "The Version ID.\n\n",
+ "description": "The Version ID.",
+ "example": "da97af75-2e7c-4ef3-bec0-755ce1e8dd29",
"required": true,
"schema": {
"type": "string"
@@ -1685,7 +1808,7 @@
}
],
"requestBody": {
- "description": "The Artefact Version Update Request. Only the field `archive` can be updated.\n\n",
+ "description": "The Artefact Version Update Request. Only the field `archive` can be updated.",
"required": true,
"content": {
"application/json": {
@@ -1697,17 +1820,17 @@
},
"responses": {
"200": {
- "description": "The updated Artefact Version.\n\n",
+ "description": "The updated Artefact Version.",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/ArtefactVersionResponse"
+ "$ref": "#/components/schemas/ArtefactVersion"
}
}
}
},
"400": {
- "description": "One or more request parameters are missing or invalid, or the requested payload is not provided or malformed.\n\n",
+ "description": "One or more request parameters are missing or invalid, or the requested payload is not provided or malformed.",
"content": {
"application/json": {
"schema": {
@@ -1717,7 +1840,7 @@
}
},
"401": {
- "description": "Request unauthorised.\n\n",
+ "description": "Request unauthorised.",
"content": {
"application/json": {
"schema": {
@@ -1727,7 +1850,7 @@
}
},
"403": {
- "description": "Update requested on a version of a builtin artefact.\n\n",
+ "description": "Update requested on a version of a builtin artefact.",
"content": {
"application/json": {
"schema": {
@@ -1737,7 +1860,7 @@
}
},
"404": {
- "description": "No Artefact with the supplied artefactId or no Artefact Version with the supplied versionId have been found within the organization.\n\n",
+ "description": "No Artefact with the supplied artefactId or no Artefact Version with the supplied versionId have been found within the organization.",
"content": {
"application/json": {
"schema": {
@@ -1762,8 +1885,9 @@
{
"name": "orgId",
"in": "path",
- "description": "The organization ID.\n\n",
+ "description": "The organization ID.",
"required": true,
+ "example": "sample-org",
"schema": {
"type": "string"
}
@@ -1771,7 +1895,7 @@
],
"responses": {
"200": {
- "description": "Possibly empty list of Container Images.\n\n",
+ "description": "Possibly empty list of Container Images.",
"content": {
"application/json": {
"schema": {
@@ -1779,22 +1903,7 @@
"$ref": "#/components/schemas/ImageResponse"
},
"type": "array"
- },
- "example": [
- {
- "added_at": "2020-05-12T16:12:13Z",
- "builds": [
- {
- "added_at": "2020-06-25T19:37:22Z",
- "branch": "master",
- "commit": "884bccaa807ea27cc1997a7492a3b6279fd7bd55",
- "image": "registry.humanitec.io/my-org/my-service:1.2.7"
- }
- ],
- "id": "my-service",
- "source": "github"
- }
- ]
+ }
}
}
}
@@ -1814,8 +1923,9 @@
{
"name": "orgId",
"in": "path",
- "description": "The organization ID.\n\n",
+ "description": "The organization ID.",
"required": true,
+ "example": "sample-org",
"schema": {
"type": "string"
}
@@ -1823,7 +1933,8 @@
{
"name": "imageId",
"in": "path",
- "description": "The Image ID.\n\n",
+ "description": "The Image ID.",
+ "example": "sample-app",
"required": true,
"schema": {
"type": "string"
@@ -1832,36 +1943,17 @@
],
"responses": {
"200": {
- "description": "The Image Object requested.\n\n",
+ "description": "The Image Object requested.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ImageResponse"
- },
- "example": {
- "added_at": "22020-06-25T17:41:57Z",
- "builds": [
- {
- "added_at": "2020-06-25T19:37:22Z",
- "branch": "master",
- "commit": "884bccaa807ea27cc1997a7492a3b6279fd7bd55",
- "image": "registry.humanitec.io/my-org/my-service:1.2.7"
- },
- {
- "added_at": "2020-06-25T17:41:57Z",
- "branch": "master",
- "commit": "060c3d6530a881afb808f105f36af25e1ad1b2f3",
- "image": "registry.humanitec.io/my-org/my-service:1.2.6"
- }
- ],
- "id": "my-service",
- "source": "github"
}
}
}
},
"404": {
- "description": "No Image with an ID of `imageId` found within the organization.\n\n",
+ "description": "No Image with an ID of `imageId` found within the organization.",
"content": {
"application/json": {
"schema": {
@@ -1886,8 +1978,9 @@
{
"name": "orgId",
"in": "path",
- "description": "The organization ID.\n\n",
+ "description": "The organization ID.",
"required": true,
+ "example": "sample-org",
"schema": {
"type": "string"
}
@@ -1895,7 +1988,8 @@
{
"name": "imageId",
"in": "path",
- "description": "The Image ID.\n\n",
+ "description": "The Image ID.",
+ "example": "sample-app",
"required": true,
"schema": {
"type": "string"
@@ -1904,7 +1998,7 @@
],
"responses": {
"200": {
- "description": "Possibly empty list of Builds of Container Images.\n\n",
+ "description": "Possibly empty list of Builds of Container Images.",
"content": {
"application/json": {
"schema": {
@@ -1912,26 +2006,12 @@
"$ref": "#/components/schemas/ImageBuildResponse"
},
"type": "array"
- },
- "example": [
- {
- "added_at": "2020-06-25T19:37:22Z",
- "branch": "master",
- "commit": "884bccaa807ea27cc1997a7492a3b6279fd7bd55",
- "image": "registry.humanitec.io/my-org/my-service:1.2.7"
- },
- {
- "added_at": "2020-06-25T17:41:57Z",
- "branch": "master",
- "commit": "060c3d6530a881afb808f105f36af25e1ad1b2f3",
- "image": "registry.humanitec.io/my-org/my-service:1.2.6"
- }
- ]
+ }
}
}
},
"404": {
- "description": "No Image with an ID of `imageId` found within the organization.\n\n",
+ "description": "No Image with an ID of `imageId` found within the organization.",
"content": {
"application/json": {
"schema": {
@@ -1954,8 +2034,9 @@
{
"name": "orgId",
"in": "path",
- "description": "The organization ID.\n\n",
+ "description": "The organization ID.",
"required": true,
+ "example": "sample-org",
"schema": {
"type": "string"
}
@@ -1963,7 +2044,8 @@
{
"name": "imageId",
"in": "path",
- "description": "The Image ID.\n\n",
+ "description": "The Image ID.",
+ "example": "sample-app",
"required": true,
"schema": {
"type": "string"
@@ -1971,27 +2053,22 @@
}
],
"requestBody": {
- "description": "The metadata associated with the build.\n\n",
+ "description": "The metadata associated with the build.",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ImageBuildRequest"
- },
- "example": {
- "branch": "master",
- "commit": "884bccaa807ea27cc1997a7492a3b6279fd7bd55",
- "image": "registry.humanitec.io/my-org/my-service:1.2.7"
}
}
}
},
"responses": {
"204": {
- "description": "Build successfully added.\n\n"
+ "description": "Build successfully added."
},
"400": {
- "description": "The supplied `imageId` is invalid or a required field is missing.\n\n",
+ "description": "The supplied `imageId` is invalid or a required field is missing.",
"content": {
"application/json": {
"schema": {
@@ -2001,7 +2078,7 @@
}
},
"401": {
- "description": "Request unauthorised.\n\n",
+ "description": "Request unauthorised.",
"content": {
"application/json": {
"schema": {
@@ -2011,7 +2088,7 @@
}
},
"403": {
- "description": "A build cannot be added to a builtin image.\n\n",
+ "description": "A build cannot be added to a builtin image.",
"content": {
"application/json": {
"schema": {
@@ -2023,30 +2100,106 @@
}
}
},
- "/orgs/{orgId}/apps/{appId}/users": {
+ "/orgs/{orgId}/audit-logs": {
"get": {
"tags": [
"public",
- "UserRole"
+ "AuditLogs"
],
- "summary": "List Users with roles in an App",
+ "operationId": "listAuditLogEntries",
+ "summary": "List audit log entries by Organization",
+ "description": "List all available audit log entries in the Organization that match the specified filters. This API returns entries from newest to oldest and is paginated. Only successful create, modify, or delete requests are stored in the audit log. This API may return a lot of data, depending on the size of the Organization, so it is recommended to use the \"to\" and \"from\" query parameters to limit the returned data to the time window of interest.\nThis API requires administrator permissions in the Organization.\n",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
+ "$ref": "#/components/parameters/perPageQueryParam"
+ },
+ {
+ "$ref": "#/components/parameters/pageTokenQueryParam"
+ },
+ {
+ "name": "from",
+ "in": "query",
+ "description": "Optional filter for entries created after the given time.",
+ "required": false,
+ "example": "2023-01-01T00:00:00Z",
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ {
+ "name": "to",
+ "in": "query",
+ "description": "Optional filter for entries created before the given time.",
+ "required": false,
+ "example": "2023-01-01T00:00:00Z",
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
+ }
+ ],
+ "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/AuditLogEntry"
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/400BadRequest"
+ },
+ "403": {
+ "$ref": "#/components/responses/403Forbidden"
+ },
+ "404": {
+ "$ref": "#/components/responses/404NotFound"
+ }
+ }
+ }
+ },
+ "/orgs/{orgId}/apps/{appId}/users": {
+ "get": {
+ "tags": [
+ "public",
+ "UserRole"
+ ],
+ "summary": "List Users with roles in an App",
+ "parameters": [
+ {
+ "name": "orgId",
+ "in": "path",
+ "description": "The Organization ID.\n\n",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "appId",
+ "in": "path",
+ "description": "The Application ID.\n\n",
+ "required": true,
+ "schema": {
+ "type": "string"
}
}
],
@@ -2798,22 +2951,10 @@
"summary": "List Deltas in an Application",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
"name": "archived",
@@ -2828,7 +2969,8 @@
"in": "query",
"description": "Only return Deltas associated with the specified Environment.\n\n",
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^[a-z0-9](?:-?[a-z0-9]+)+$"
}
}
],
@@ -2856,22 +2998,10 @@
"summary": "Create a new Delta",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
}
],
"requestBody": {
@@ -2943,22 +3073,10 @@
"operationId": "getDelta",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
"name": "deltaId",
@@ -3001,22 +3119,10 @@
"summary": "Update an existing Delta",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
"name": "deltaId",
@@ -3099,22 +3205,10 @@
"operationId": "putDelta",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
"name": "deltaId",
@@ -3174,22 +3268,10 @@
"description": "Archived Deltas are still accessible but can no longer be updated.",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
"name": "deltaId",
@@ -3249,22 +3331,10 @@
"summary": "Change the Environment of a Delta",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
"name": "deltaId",
@@ -3282,7 +3352,7 @@
"content": {
"application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/EnvironmentID"
},
"example": "new-env"
}
@@ -3324,22 +3394,10 @@
"summary": "Change the name of a Delta",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
"name": "deltaId",
@@ -3400,22 +3458,10 @@
"summary": "Get all Deployment Sets",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
}
],
"responses": {
@@ -3454,22 +3500,10 @@
"summary": "Get a Deployment Set",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
"name": "setId",
@@ -3527,27 +3561,15 @@
"summary": "Apply a Deployment Delta to a Deployment Set",
"parameters": [
{
- "name": "orgId",
+ "$ref": "#/components/parameters/orgIdPathParam"
+ },
+ {
+ "$ref": "#/components/parameters/appIdPathParam"
+ },
+ {
+ "name": "setId",
"in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "setId",
- "in": "path",
- "description": "ID of the Deployment Set.\n\n",
+ "description": "ID of the Deployment Set.\n\n",
"required": true,
"schema": {
"type": "string"
@@ -3615,22 +3637,10 @@
"summary": "Get the difference between 2 Deployment Sets",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
"name": "setId",
@@ -4089,34 +4099,13 @@
}
},
"400": {
- "description": "Bad input provided.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/400BadRequest"
},
"403": {
- "description": "Forbidden, only administrators can create new public key.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/403Forbidden"
},
"409": {
- "description": "A public key with the same value already exists.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/409Conflict"
}
}
},
@@ -4143,7 +4132,7 @@
"schema": {
"type": "string"
},
- "description": "The fingerprint of the requested key. If a value is provided, the result will contain a single key, if any."
+ "description": "The fingerprint (the hexadecimal representation of the sha256 hash of the DER representation of the key) of the requested key. If a value is provided, the result will contain a single key, if any."
}
],
"responses": {
@@ -4161,14 +4150,7 @@
}
},
"400": {
- "description": "Provided fingerprint is not valid.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/400BadRequest"
}
}
}
@@ -4206,24 +4188,10 @@
"description": "Public Key successfully removed."
},
"403": {
- "description": "Forbidden, only administrators can delete public keys.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/403Forbidden"
},
"404": {
- "description": "Public key not found.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/404NotFound"
}
}
},
@@ -4266,14 +4234,7 @@
}
},
"404": {
- "description": "Public key not found.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/404NotFound"
}
}
}
@@ -4329,6 +4290,7 @@
"Organization"
],
"summary": "List active organizations the user has access to.",
+ "operationId": "listOrganizations",
"responses": {
"200": {
"description": "A list of available organizations (based on the current user access level).\n\n",
@@ -4343,11 +4305,8 @@
}
}
},
- "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"
+ "$ref": "#/components/responses/403Forbidden"
}
}
}
@@ -4359,6 +4318,7 @@
"Organization"
],
"summary": "Get the specified Organization.",
+ "operationId": "getOrganization",
"parameters": [
{
"name": "orgId",
@@ -4381,31 +4341,8 @@
}
}
},
- "400": {
- "description": "Invalid request parameters or payload. E.g. invalid `orgId` format.\n\n",
- "content": {
- "application/json": {
- "schema": {
- "$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"
- }
- }
- }
+ "$ref": "#/components/responses/403Forbidden"
}
}
}
@@ -4841,6 +4778,179 @@
}
}
},
+ "/orgs/{orgId}/apps/{appId}/pipeline-criteria": {
+ "get": {
+ "tags": [
+ "public",
+ "Pipelines"
+ ],
+ "operationId": "listPipelineCriteriaInApp",
+ "summary": "List the trigger matching criteria defined for Pipelines in this Application.",
+ "description": "Lists the trigger matching criteria defined for Pipelines in this Application. Trigger matching criteria link requests in an environment to the appropriate Pipeline based on the trigger and inputs.\n",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/orgIdPathParam"
+ },
+ {
+ "$ref": "#/components/parameters/appIdPathParam"
+ },
+ {
+ "name": "pipeline",
+ "description": "An optional filter by Pipeline ID.",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "example": "sample-pipeline"
+ }
+ },
+ {
+ "name": "match",
+ "description": "Optional key value match filters on the criteria.",
+ "in": "query",
+ "explode": true,
+ "style": "deepObject",
+ "required": false,
+ "example": {
+ "env_type": "development"
+ },
+ "schema": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ },
+ {
+ "$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/PipelineCriteria"
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/400BadRequest"
+ }
+ }
+ }
+ },
+ "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/criteria": {
+ "post": {
+ "tags": [
+ "public",
+ "Pipelines"
+ ],
+ "operationId": "createPipelineCriteria",
+ "summary": "Create a new trigger matching criteria for this Pipeline.",
+ "description": "Create a new trigger matching criteria for this Pipeline. This must not conflict with an existing criteria for the same trigger on this or any other Pipeline that applies to this Application.\n",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/orgIdPathParam"
+ },
+ {
+ "$ref": "#/components/parameters/appIdPathParam"
+ },
+ {
+ "$ref": "#/components/parameters/pipelineIdPathParam"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PipelineCriteriaCreateBody"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "The criteria was successfully added.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PipelineCriteria"
+ }
+ }
+ }
+ },
+ "400": {
+ "$ref": "#/components/responses/400BadRequest"
+ },
+ "404": {
+ "$ref": "#/components/responses/404NotFound"
+ },
+ "409": {
+ "$ref": "#/components/responses/409Conflict"
+ }
+ }
+ }
+ },
+ "/orgs/{orgId}/apps/{appId}/pipelines/{pipelineId}/criteria/{criteriaId}": {
+ "delete": {
+ "tags": [
+ "public",
+ "Pipelines"
+ ],
+ "operationId": "deletePipelineCriteria",
+ "summary": "Delete the Pipeline Criteria with the given id.",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/orgIdPathParam"
+ },
+ {
+ "$ref": "#/components/parameters/appIdPathParam"
+ },
+ {
+ "$ref": "#/components/parameters/pipelineIdPathParam"
+ },
+ {
+ "name": "criteriaId",
+ "in": "path",
+ "description": "The Criteria ID",
+ "example": "01234567-89ab-cdef-0123-456789abcdef",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Successfully deleted the criteria."
+ },
+ "400": {
+ "$ref": "#/components/responses/400BadRequest"
+ },
+ "404": {
+ "$ref": "#/components/responses/404NotFound"
+ }
+ }
+ }
+ },
"/orgs/{orgId}/pipeline-schemas/latest": {
"get": {
"tags": [
@@ -4939,6 +5049,66 @@
}
}
},
+ "/orgs/{orgId}/apps/{appId}/pipeline-runs": {
+ "post": {
+ "tags": [
+ "public",
+ "PipelineRuns"
+ ],
+ "operationId": "createPipelineRunByTriggerCriteria",
+ "summary": "Create a Pipeline Run in the appropriate Pipeline based on the trigger and inputs.",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/orgIdPathParam"
+ },
+ {
+ "$ref": "#/components/parameters/appIdPathParam"
+ },
+ {
+ "$ref": "#/components/parameters/idempotencyKey"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PipelineRunCreateByTriggerCriteriaBody"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "Successful creation response.",
+ "headers": {
+ "Etag": {
+ "$ref": "#/components/headers/Etag"
+ }
+ },
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PipelineRun"
+ }
+ }
+ }
+ },
+ "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": {
"get": {
"tags": [
@@ -7688,39 +7858,22 @@
"public",
"RuntimeInfo"
],
+ "operationId": "getRuntime",
"summary": "Get Runtime information about the environment.",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
- "name": "envId",
- "in": "path",
- "description": "The Environment ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/envIdPathParam"
}
],
"responses": {
"200": {
- "description": "Runtime info returned.\n\n",
+ "description": "Runtime info returned.",
"content": {
"application/json": {
"schema": {
@@ -7730,24 +7883,10 @@
}
},
"400": {
- "description": "Cluster not well configured or unreachable.\n\n",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/400BadRequest"
},
"404": {
- "description": "Environment not found.\n\n",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/404NotFound"
}
}
}
@@ -7756,41 +7895,24 @@
"put": {
"tags": [
"public",
- "RuntimeInfo"
+ "EnvironmentPausedInfo"
],
+ "operationId": "updatePaused",
"summary": "Pause / Resume an environment.",
- "description": "On pause requests, all the Kubernetes Deployment resources are scaled down to 0 replicas.\n\nOn resume requests, all the Kubernetes Deployment resources are scaled up to the number of replicas running before the environment was paused.\n\nWhen an environment is paused, it is not possible to:\n\n```\n - Deploy the environment within Humanitec.\n - Scale the number of replicas running of any workload.\n```",
+ "description": "On pause requests, all the Kubernetes Deployment resources are scaled down to 0 replicas. On resume requests, all the Kubernetes Deployment resources are scaled up to the number of replicas running before the environment was paused. When an environment is paused, it is not possible to:```\n - Deploy the environment within Humanitec.\n - Scale the number of replicas running of any workload.\n```",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
- "name": "envId",
- "in": "path",
- "description": "The Environment ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/envIdPathParam"
}
],
"requestBody": {
- "description": "If the value is `true` the request is to pause an environment, if it is `false` is to resume an environment.\n\n",
+ "description": "If the value is `true` the request is to pause an environment, if it is `false` is to resume an environment.",
"required": true,
"content": {
"application/json": {
@@ -7802,37 +7924,16 @@
},
"responses": {
"204": {
- "description": "Success.\n\n"
+ "description": "Success."
},
"400": {
- "description": "Missing or malformed input.\n\n",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/400BadRequest"
},
"403": {
- "description": "Forbidden (insufficient privileges to perform the action).\n\n",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/403Forbidden"
},
"404": {
- "description": "Environment not found.\n\n",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/404NotFound"
}
}
}
@@ -7841,40 +7942,23 @@
"patch": {
"tags": [
"public",
- "RuntimeInfo"
+ "Replicas"
],
+ "operationId": "patchReplicas",
"summary": "Set number of replicas for an environment's modules.",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
- "name": "envId",
- "in": "path",
- "description": "The Environment ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/envIdPathParam"
}
],
"requestBody": {
- "description": "map of replicas by modules.\n\n",
+ "description": "map of replicas by modules.",
"required": true,
"content": {
"application/json": {
@@ -7889,37 +7973,16 @@
},
"responses": {
"204": {
- "description": "Success.\n\n"
+ "description": "Success."
},
"400": {
- "description": "Missing or malformed input.\n\n",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/400BadRequest"
},
"403": {
- "description": "Forbidden (default cluster limitations or insufficient privileges to perform the action).\n\n",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/403Forbidden"
},
"404": {
- "description": "Environment not found.\n\n",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/404NotFound"
}
}
}
@@ -7930,38 +7993,30 @@
"public",
"RuntimeInfo"
],
- "summary": "Get Runtime information about specific environments.",
+ "operationId": "listRuntime",
+ "summary": "Get Runtime information about specific multiple environments.",
"parameters": [
{
- "name": "orgId",
- "in": "path",
- "description": "The Organization ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/orgIdPathParam"
},
{
- "name": "appId",
- "in": "path",
- "description": "The Application ID.\n\n",
- "required": true,
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/appIdPathParam"
},
{
"name": "id",
"in": "query",
- "description": "Filter environments by ID (required). Up to 5 ids can be supplied per request.\n\n",
+ "description": "Filter environments by ID (required). Up to 5 ids can be supplied per request.",
"schema": {
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
}
],
"responses": {
"200": {
- "description": "A list of the RuntimeInfo of the environments specified by the id parameter.\n\n",
+ "description": "A list of the RuntimeInfo of the environments specified by the id parameter.",
"content": {
"application/json": {
"schema": {
@@ -7991,14 +8046,7 @@
}
},
"400": {
- "description": "Bad Request.\n\n",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HumanitecErrorResponse"
- }
- }
- }
+ "$ref": "#/components/responses/400BadRequest"
}
}
}
@@ -9110,7 +9158,7 @@
"TokenInfo"
],
"summary": "Deletes a specific token associated with a user",
- "description": "This is only possible for static tokens. To revoke session tokens - use `POST /auth/logout` with the required session token.",
+ "description": "This endpoint deletes a user's session token. The deleted token can no longer be used to access the API. All other tokens for this user can still be used.",
"parameters": [
{
"name": "userId",
@@ -10714,6 +10762,36 @@
}
}
},
+ "/orgs/{orgId}/workload-profile-features": {
+ "get": {
+ "tags": [
+ "public",
+ "WorkloadProfileFeatures"
+ ],
+ "summary": "List workload profile features available to the organization.",
+ "operationId": "listWorkloadProfileFeatures",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/orgIdPathParam"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "List of usable Workload Profiles Features.\n\n",
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/WorkloadProfileFeatureResponse"
+ },
+ "type": "array"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"/orgs/{orgId}/workload-profiles": {
"get": {
"tags": [
@@ -10800,43 +10878,14 @@
}
}
},
- "/orgs/{orgId}/workload-profiles/{profileQid}/versions/{version}": {
- "delete": {
+ "/orgs/{orgId}/workload-profiles/{profileQid}": {
+ "get": {
"tags": [
"public",
"WorkloadProfile"
],
- "summary": "Delete a Workload Profile Version",
- "operationId": "deleteWorkloadProfileVersion",
- "parameters": [
- {
- "$ref": "#/components/parameters/orgIdPathParam"
- },
- {
- "$ref": "#/components/parameters/profileQidPathParam"
- },
- {
- "$ref": "#/components/parameters/versionPathParam"
- }
- ],
- "responses": {
- "204": {
- "description": "The Workload Profile Version has been marked for deletion.\n\n"
- },
- "404": {
- "$ref": "#/components/responses/404NotFound"
- }
- }
- }
- },
- "/orgs/{orgId}/workload-profiles/{profileQid}": {
- "get": {
- "tags": [
- "public",
- "WorkloadProfile"
- ],
- "summary": "Get a Workload Profile",
- "operationId": "getWorkloadProfile",
+ "summary": "Get a Workload Profile",
+ "operationId": "getWorkloadProfile",
"parameters": [
{
"$ref": "#/components/parameters/orgIdPathParam"
@@ -10864,13 +10913,13 @@
}
}
},
- "patch": {
+ "put": {
"tags": [
"public",
"WorkloadProfile"
],
- "summary": "Patch a Workload Profile",
- "operationId": "patchWorkloadProfile",
+ "summary": "Update a Workload Profile",
+ "operationId": "updateWorkloadProfile",
"parameters": [
{
"$ref": "#/components/parameters/orgIdPathParam"
@@ -10885,7 +10934,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/WorkloadProfilePatchRequest"
+ "$ref": "#/components/schemas/WorkloadProfileUpdateRequest"
}
}
}
@@ -10906,6 +10955,9 @@
},
"404": {
"$ref": "#/components/responses/404NotFound"
+ },
+ "409": {
+ "$ref": "#/components/responses/409Conflict"
}
}
},
@@ -10927,7 +10979,7 @@
],
"responses": {
"204": {
- "description": "The Workload Profile has been marked for deletion.\n"
+ "description": "The Workload Profile has been deleted.\n"
},
"400": {
"$ref": "#/components/responses/400BadRequest"
@@ -10939,55 +10991,6 @@
}
},
"/orgs/{orgId}/workload-profiles/{profileQid}/versions": {
- "post": {
- "tags": [
- "public",
- "WorkloadProfile"
- ],
- "operationId": "createWorkloadProfileVersion",
- "summary": "Add new Version of the Workload Profile",
- "description": "Creates a Workload Profile Version for the given Workload Profile.",
- "parameters": [
- {
- "$ref": "#/components/parameters/orgIdPathParam"
- },
- {
- "$ref": "#/components/parameters/profileQidPathParam"
- }
- ],
- "requestBody": {
- "description": "Workload profile version metadata.\n\n",
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/WorkloadProfileVersionRequest"
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "The newly created Workload Profile Version metadata.\n\n",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/WorkloadProfileVersionResponse"
- }
- }
- }
- },
- "400": {
- "$ref": "#/components/responses/400BadRequest"
- },
- "404": {
- "$ref": "#/components/responses/404NotFound"
- },
- "409": {
- "$ref": "#/components/responses/409Conflict"
- }
- }
- },
"get": {
"tags": [
"public",
@@ -11050,9 +11053,10 @@
"$ref": "#/components/parameters/profileQidPathParam"
}
],
+ "deprecated": true,
"responses": {
"200": {
- "description": "A possibly empty list of Workload Profile Versions.\n\n",
+ "description": "The latest version of a Workload profile\n\n",
"content": {
"application/json": {
"schema": {
@@ -11341,6 +11345,54 @@
],
"type": "object"
},
+ "DeploymentPipelineReferenceRequest": {
+ "properties": {
+ "id": {
+ "description": "The ID of the Pipeline",
+ "type": "string"
+ },
+ "job_id": {
+ "description": "The ID of the Pipeline Job within the Run.",
+ "type": "string"
+ },
+ "run_id": {
+ "description": "The ID of the Pipeline Run",
+ "type": "string"
+ },
+ "step_index": {
+ "description": "The index of the step with in the Job.",
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "DeploymentPipelineReferenceResponse": {
+ "properties": {
+ "id": {
+ "description": "The ID of the Pipeline",
+ "type": "string"
+ },
+ "job_id": {
+ "description": "The ID of the Pipeline Job within the Run.",
+ "type": "string"
+ },
+ "run_id": {
+ "description": "The ID of the Pipeline Run",
+ "type": "string"
+ },
+ "step_index": {
+ "description": "The index of the step with in the Job.",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "run_id",
+ "job_id",
+ "step_index"
+ ],
+ "type": "object"
+ },
"DeploymentRequest": {
"description": "Deployments represent updates to the running state of an Environment.\n\nDeployments are made by applying _Deltas_ to a state defined by an existing Deployment. The Environment’s from_deploy property defines the Deployment. This Deployment is usually but not always in the current Environment. If the Deployment is from another Environment, the state of that Environment will be \"cloned\" into the current Environment with the option to apply a Delta.",
"example": {
@@ -11363,6 +11415,10 @@
"description": "ID of the Deployment Delta describing the changes to the current Environment for this Deployment.",
"type": "string"
},
+ "pipeline": {
+ "$ref": "#/components/schemas/DeploymentPipelineReferenceRequest",
+ "description": "The Pipeline that created this deployment. This may be blank if no Pipeline is associated."
+ },
"set_id": {
"description": "ID of the Deployment Set describing the state of the Environment after Deployment.",
"type": "string"
@@ -11426,6 +11482,10 @@
"description": "The ID of the Deployment.",
"type": "string"
},
+ "pipeline": {
+ "$ref": "#/components/schemas/DeploymentPipelineReferenceResponse",
+ "description": "The Pipeline that created this deployment. This may be blank if no Pipeline is associated."
+ },
"set_id": {
"description": "ID of the Deployment Set describing the state of the Environment after Deployment.",
"type": "string"
@@ -11718,14 +11778,13 @@
},
"error": {
"type": "string",
+ "example": "API-000",
"description": "A short code to help with error identification."
},
"message": {
"type": "string",
+ "example": "Could not validate token",
"description": "A Human readable message about the error."
- },
- "status_code": {
- "type": "integer"
}
},
"required": [
@@ -11734,225 +11793,248 @@
],
"type": "object",
"example": {
- "error": "Could not validate token.",
- "message": "Could not validate token.",
"object": "/orgs/my-org",
- "role": "manager"
+ "role": "manager",
+ "error": "Could not validate token.",
+ "message": "Could not validate token."
}
},
- "AddArtefactVersionPayloadRequest": {
- "description": "AddArtefactVersionPayload describes the payload for a new ArtefactVersion request.",
- "example": {
- "commit": "884bccaa807ea27cc1997a7492a3b6279fd7bd55",
- "digest": "sha256:8414aa82208bc4c2761dc149df67e25c6b8a9380e5d8c4e7b5c84ca2d04bb244",
- "name": "registry.humanitec.io/my-org/my-service",
- "ref": "refs/heads/main",
- "type": "container",
- "version": "1.2.7"
- },
+ "CreateArtefactVersionBase": {
+ "type": "object",
+ "required": [
+ "type",
+ "name"
+ ],
"properties": {
- "commit": {
- "description": "(Optional) The commit ID the Artefact Version was built on.",
- "pattern": "^[0-9a-f]{5,40}$",
- "type": "string"
- },
- "digest": {
- "description": "(Optional) The Artefact Version digest.",
- "type": "string"
+ "type": {
+ "description": "The Artefact Version type.",
+ "type": "string",
+ "example": "container"
},
"name": {
"description": "The Artefact name.",
- "type": "string"
+ "type": "string",
+ "example": "registry.humanitec.io/my-org/my-service"
+ },
+ "version": {
+ "description": "(Optional) The Artefact Version.",
+ "type": "string",
+ "example": "1.2.7"
},
"ref": {
"description": "(Optional) The ref the Artefact Version was built from.",
- "type": "string"
+ "type": "string",
+ "example": "refs/heads/main"
},
- "type": {
- "description": "The Artefact Version type.",
+ "commit": {
+ "description": "(Optional) The commit ID the Artefact Version was built on.",
+ "pattern": "^[0-9a-f]{5,40}$",
+ "example": "884bccaa807ea27cc1997a7492a3b6279fd7bd55",
"type": "string"
+ }
+ }
+ },
+ "CreateContainerArtefactVersion": {
+ "description": "Details for creating a new Container Artefact Version",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/CreateArtefactVersionBase"
},
- "version": {
- "description": "(Optional) The Artefact Version.",
- "type": "string"
+ {
+ "properties": {
+ "digest": {
+ "description": "(Optional) The Artefact Version digest.",
+ "type": "string",
+ "example": "sha256:8414aa82208bc4c2761dc149df67e25c6b8a9380e5d8c4e7b5c84ca2d04bb244"
+ }
+ }
}
- },
+ ]
+ },
+ "CreateWorkloadArtefactVersion": {
+ "description": "Details for creating a new Workload Artefact Version",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/CreateArtefactVersionBase"
+ },
+ {
+ "required": [
+ "spec"
+ ],
+ "properties": {
+ "spec": {
+ "type": "object",
+ "additionalProperties": true,
+ "description": "A Json object containing the workload specification. Score v1b1 is expected.",
+ "example": {
+ "apiVersion": "score.dev/v1b1",
+ "metadata": {
+ "name": "hello-world"
+ }
+ }
+ },
+ "image": {
+ "type": "string",
+ "description": "An optional default image to assign to any containers in the workload that do not have an image set or whose image is '.'",
+ "example": "busybox:latest"
+ },
+ "overrides": {
+ "type": "object",
+ "additionalProperties": true,
+ "description": "An optional Json object containing the workload overrides. Score v1b1 is expected.",
+ "example": {
+ "apiVersion": "score.dev/v1b1",
+ "profile": "humanitec/default-module"
+ }
+ },
+ "property_overrides": {
+ "type": "object",
+ "additionalProperties": true,
+ "description": "An optional set of path overrides that will be applied to the workload.",
+ "example": {
+ "containers.my-container.image": "busybox:latest",
+ "containers.my-container.variables.DEBUG": null
+ }
+ },
+ "extensions": {
+ "$ref": "#/components/schemas/CreateWorkloadArtefactVersionExtensions"
+ }
+ }
+ }
+ ]
+ },
+ "CreateWorkloadArtefactVersionExtensions": {
+ "description": "Humanitec workload extensions for the Workload Artefact Version. These can be used to override the profile, or workload module spec and resource attributes.",
"required": [
- "name",
- "type"
+ "apiVersion"
],
- "type": "object"
- },
- "ArtefactRequest": {
- "description": "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.",
- "example": {
- "created_at": "2020-05-12T16:12:13Z",
- "created_by": "123456789",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "registry.humanitec.io/my-org/my-service",
- "type": "container",
- "updated_at": "2020-06-12T16:12:13Z",
- "updated_by": "987654321"
- },
"properties": {
- "id": {
- "description": "The UUID of the Artefact.",
+ "apiVersion": {
+ "description": "The api version describing the format of the extensions.",
"type": "string"
},
- "name": {
- "description": "The name of the Artefact.",
+ "profile": {
+ "description": "An optional override for the workload profile",
"type": "string"
},
- "type": {
- "description": "The type of the Artefact.",
- "type": "string"
+ "spec": {
+ "description": "A map of additional workload spec fields that will be merged.",
+ "type": "object",
+ "additionalProperties": true
}
},
+ "example": {
+ "apiVersion": "humanitec.org/v1b1",
+ "profile": "humanitec/default-module",
+ "spec": {
+ "labels": {
+ "my-label": "my-value"
+ }
+ }
+ }
+ },
+ "CreateArtefactVersion": {
+ "description": "The details of a new Artefact Version to register. The type field is required and dictates the type of Artefact to register.",
+ "type": "object",
"required": [
- "id",
- "name",
"type"
],
- "type": "object"
- },
- "ArtefactResponse": {
- "description": "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.",
- "example": {
- "created_at": "2020-05-12T16:12:13Z",
- "created_by": "123456789",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "registry.humanitec.io/my-org/my-service",
- "type": "container",
- "updated_at": "2020-06-12T16:12:13Z",
- "updated_by": "987654321"
- },
"properties": {
- "created_at": {
- "description": "The time when the Artefact was added to Humanitec.",
- "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$",
- "title": "Simplified extended ISO format date/time string.",
- "type": "string"
- },
- "created_by": {
- "description": "The user ID of the user who added the Artefact to Humanitec.",
- "type": "string"
- },
- "id": {
- "description": "The UUID of the Artefact.",
- "type": "string"
- },
- "name": {
- "description": "The name of the Artefact.",
- "type": "string"
- },
"type": {
- "description": "The type of the Artefact.",
- "type": "string"
- },
- "updated_at": {
- "description": "The time when the Artefact was updated for the last time.",
- "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$",
- "title": "Simplified extended ISO format date/time string.",
- "type": "string"
- },
- "updated_by": {
- "description": "The user ID of the user who updated the Artefact for the last time.",
- "type": "string"
+ "description": "The Artefact Version type.",
+ "type": "string",
+ "example": "container"
}
},
- "required": [
- "id",
- "name",
- "type"
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/CreateContainerArtefactVersion"
+ },
+ {
+ "$ref": "#/components/schemas/CreateWorkloadArtefactVersion"
+ }
],
- "type": "object"
+ "discriminator": {
+ "propertyName": "type",
+ "mapping": {
+ "container": "#/components/schemas/CreateContainerArtefactVersion",
+ "workload": "#/components/schemas/CreateWorkloadArtefactVersion"
+ }
+ }
},
- "ArtefactVersionRequest": {
- "description": "An Artefact Version represents a particular version of an Artefact that can be added to an Application.",
- "example": {
- "archived": false,
- "artefact_id": "123e4567-e89b-12d3-a456-426614174000",
- "commit": "060c3d6530a881afb808f105f36af25e1ad1b2f3",
- "created_at": "2020-05-25T17:41:57Z",
- "created_by": "987654321",
- "digest": "sha256:8414aa82208bc4c2761dc149df67e25c6b8a9380e5d8c4e7b5c84ca2d04bb244",
- "id": "b4c9e4e2-b3e5-11ec-b909-0242ac120002",
- "name": "registry.humanitec.io/my-org/my-service",
- "ref": "refs/heads/main",
- "updated_at": "2020-06-25T17:41:57Z",
- "updated_by": "123456789",
- "version": "1.2.6"
- },
+ "ArtefactResponse": {
+ "description": "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.",
"properties": {
- "archived": {
- "description": "If the Artefact Version is archived.",
- "type": "boolean"
- },
- "artefact_id": {
- "description": "The UUID of the Artefact.",
- "type": "string"
- },
- "commit": {
- "description": "(Optional) The commit ID the Artefact Version was built on.",
+ "created_at": {
+ "description": "The time when the Artefact was added to Humanitec.",
+ "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$",
+ "title": "Simplified extended ISO format date/time string.",
"type": "string"
},
- "digest": {
- "description": "(Optional) The Artefact Version digest.",
- "type": "string"
+ "created_by": {
+ "description": "The user ID of the user who added the Artefact to Humanitec.",
+ "type": "string",
+ "example": "01234567-89ab-cdef-0123-456789abcdef"
},
"id": {
- "description": "The UUID of the Artefact Version.",
+ "description": "The UUID of the Artefact.",
+ "example": "01234567-89ab-cdef-0123-456789abcdef",
"type": "string"
},
"name": {
"description": "The name of the Artefact.",
+ "example": "registry.humanitec.io/my-org/my-service",
"type": "string"
},
- "ref": {
- "description": "(Optional) The ref the Artefact Version was built from.",
+ "type": {
+ "description": "The type of the Artefact.",
+ "example": "container",
"type": "string"
},
- "version": {
- "description": "(Optional) The version of the Artefact Version.",
+ "updated_at": {
+ "description": "The time when the Artefact was updated for the last time.",
+ "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$",
+ "title": "Simplified extended ISO format date/time string.",
+ "type": "string"
+ },
+ "updated_by": {
+ "description": "The user ID of the user who updated the Artefact for the last time.",
+ "example": "01234567-89ab-cdef-0123-456789abcdef",
"type": "string"
}
},
"required": [
"id",
"name",
- "artefact_id"
+ "type"
],
"type": "object"
},
- "ArtefactVersionResponse": {
- "description": "An Artefact Version represents a particular version of an Artefact that can be added to an Application.",
- "example": {
- "archived": false,
- "artefact_id": "123e4567-e89b-12d3-a456-426614174000",
- "commit": "060c3d6530a881afb808f105f36af25e1ad1b2f3",
- "created_at": "2020-05-25T17:41:57Z",
- "created_by": "987654321",
- "digest": "sha256:8414aa82208bc4c2761dc149df67e25c6b8a9380e5d8c4e7b5c84ca2d04bb244",
- "id": "b4c9e4e2-b3e5-11ec-b909-0242ac120002",
- "name": "registry.humanitec.io/my-org/my-service",
- "ref": "refs/heads/main",
- "updated_at": "2020-06-25T17:41:57Z",
- "updated_by": "123456789",
- "version": "1.2.6"
- },
+ "ArtefactVersionBase": {
+ "type": "object",
+ "required": [
+ "type",
+ "id",
+ "name",
+ "artefact_id",
+ "archived"
+ ],
"properties": {
"archived": {
"description": "If the Artefact Version is archived.",
+ "example": false,
"type": "boolean"
},
"artefact_id": {
"description": "The UUID of the Artefact.",
+ "example": "01234567-89ab-cdef-0123-456789abcdef",
"type": "string"
},
"commit": {
"description": "(Optional) The commit ID the Artefact Version was built on.",
+ "example": "060c3d6530a881afb808f105f36af25e1ad1b2f3",
"type": "string"
},
"created_at": {
@@ -11964,22 +12046,22 @@
},
"created_by": {
"description": "The user ID of the user who added the Artefact Version to Humanitec.",
- "type": "string"
- },
- "digest": {
- "description": "(Optional) The Artefact Version digest.",
+ "example": "01234567-89ab-cdef-0123-456789abcdef",
"type": "string"
},
"id": {
"description": "The UUID of the Artefact Version.",
+ "example": "01234567-89ab-cdef-0123-456789abcdef",
"type": "string"
},
"name": {
"description": "The name of the Artefact.",
+ "example": "registry.humanitec.io/my-org/my-service",
"type": "string"
},
"ref": {
"description": "(Optional) The ref the Artefact Version was built from.",
+ "example": "refs/heads/main",
"type": "string"
},
"updated_at": {
@@ -11991,38 +12073,119 @@
},
"updated_by": {
"description": "The user ID of the user who performed the last updated on the Artefact Version.",
+ "example": "01234567-89ab-cdef-0123-456789abcdef",
"type": "string"
},
"version": {
"description": "(Optional) The version of the Artefact Version.",
+ "example": "1.2.7",
"type": "string"
}
+ }
+ },
+ "ContainerArtefactVersion": {
+ "description": "Details of a Container Artefact Version",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/ArtefactVersionBase"
+ },
+ {
+ "required": [
+ "ref",
+ "commit",
+ "digest"
+ ],
+ "properties": {
+ "digest": {
+ "description": "(Optional) The Artefact Version digest.",
+ "type": "string",
+ "example": "sha256:8414aa82208bc4c2761dc149df67e25c6b8a9380e5d8c4e7b5c84ca2d04bb244"
+ }
+ }
+ }
+ ]
+ },
+ "WorkloadArtefactVersion": {
+ "description": "Details of a Workload Artefact Version",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/ArtefactVersionBase"
+ },
+ {
+ "properties": {}
+ }
+ ]
+ },
+ "ArtefactVersion": {
+ "description": "The details of an Artefact Version. The type field dictates the type of Artefact along with any additional fields.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "description": "The Artefact Version type.",
+ "type": "string",
+ "example": "container"
+ }
},
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/ContainerArtefactVersion"
+ },
+ {
+ "$ref": "#/components/schemas/WorkloadArtefactVersion"
+ }
+ ],
+ "discriminator": {
+ "propertyName": "type",
+ "mapping": {
+ "container": "#/components/schemas/ContainerArtefactVersion",
+ "workload": "#/components/schemas/WorkloadArtefactVersion"
+ }
+ }
+ },
+ "WorkloadArtefactVersionDeploymentSet": {
+ "description": "Humanitec definition for a Workload Artefact.",
"required": [
- "id",
- "name",
- "version",
- "artefact_id",
- "commit",
- "ref",
- "digest",
- "archived"
+ "modules",
+ "shared"
],
- "type": "object"
+ "properties": {
+ "modules": {
+ "description": "The set of workloads to add when deployed, the key is the name of the workload.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "shared": {
+ "description": "The set of shared resources to depend on, the key is the resource identifier.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ }
+ }
},
"ImageBuildRequest": {
"description": "DEPRECATED: This type exists for historical compatibility and should not be used. Please use the [Artefact API](https://api-docs.humanitec.com/#tag/Artefact) instead.\n\nHolds the metadata associated withe a Container Image Build",
"properties": {
"branch": {
"description": "The branch name of the branch the build was built on",
+ "example": "master",
"type": "string"
},
"commit": {
"description": "The commit ID that this build was built from.",
+ "example": "884bccaa807ea27cc1997a7492a3b6279fd7bd55",
"type": "string"
},
"image": {
"description": "The fully qualified Image URL including registry, repository and tag.",
+ "example": "registry.humanitec.io/my-org/my-service:1.2.7",
"pattern": "^((?:[\\w.\\-_]+(?:(?::\\d+|)(?=/[a-z0-9._-]+/[a-z0-9._-]+))|)(?:/|)(?:[a-z0-9.\\-_]+(?:/[a-z0-9.\\-_]+|)))(?::)?((?:[\\w.\\-]{1,127}|)(?:0[xX][0-9a-fA-F]+|))?$'",
"type": "string"
},
@@ -12048,14 +12211,17 @@
},
"branch": {
"description": "The branch name of the branch the build was built on",
+ "example": "master",
"type": "string"
},
"commit": {
"description": "The commit ID that this build was built from.",
+ "example": "884bccaa807ea27cc1997a7492a3b6279fd7bd55",
"type": "string"
},
"image": {
"description": "The fully qualified Image URL including registry, repository and tag.",
+ "example": "registry.humanitec.io/my-org/my-service:1.2.7",
"pattern": "^((?:[\\w.\\-_]+(?:(?::\\d+|)(?=/[a-z0-9._-]+/[a-z0-9._-]+))|)(?:/|)(?:[a-z0-9.\\-_]+(?:/[a-z0-9.\\-_]+|)))(?::)?((?:[\\w.\\-]{1,127}|)(?:0[xX][0-9a-fA-F]+|))?$'",
"type": "string"
},
@@ -12077,25 +12243,6 @@
},
"ImageRequest": {
"description": "DEPRECATED: This type exists for historical compatibility and should not be used. Please use the [Artefact API](https://api-docs.humanitec.com/#tag/Artefact) instead.\n\nContainer Images (known simply as Images) can be registered with Humanitec. Continuous Integration (CI) pipelines can then notify Humanitec when a new build of a Container Image becomes available. Humanitec tracks the Image along with metadata about how it was built.",
- "example": {
- "added_at": "22020-06-25T17:41:57Z",
- "builds": [
- {
- "added_at": "2020-06-25T19:37:22Z",
- "branch": "master",
- "commit": "884bccaa807ea27cc1997a7492a3b6279fd7bd55",
- "image": "registry.humanitec.io/my-org/my-service:1.2.7"
- },
- {
- "added_at": "2020-06-25T17:41:57Z",
- "branch": "master",
- "commit": "060c3d6530a881afb808f105f36af25e1ad1b2f3",
- "image": "registry.humanitec.io/my-org/my-service:1.2.6"
- }
- ],
- "id": "my-service",
- "source": "github"
- },
"properties": {
"added_at": {
"description": "The time the first build of this Image was added to the organization",
@@ -12113,10 +12260,12 @@
},
"id": {
"description": "The ID used to group different builds of the same Image together.",
+ "example": "my-service",
"type": "string"
},
"source": {
"description": "The Image Source that this Image is added via",
+ "example": "github",
"type": "string"
}
},
@@ -12124,25 +12273,6 @@
},
"ImageResponse": {
"description": "DEPRECATED: This type exists for historical compatibility and should not be used. Please use the [Artefact API](https://api-docs.humanitec.com/#tag/Artefact) instead.\n\nContainer Images (known simply as Images) can be registered with Humanitec. Continuous Integration (CI) pipelines can then notify Humanitec when a new build of a Container Image becomes available. Humanitec tracks the Image along with metadata about how it was built.",
- "example": {
- "added_at": "22020-06-25T17:41:57Z",
- "builds": [
- {
- "added_at": "2020-06-25T19:37:22Z",
- "branch": "master",
- "commit": "884bccaa807ea27cc1997a7492a3b6279fd7bd55",
- "image": "registry.humanitec.io/my-org/my-service:1.2.7"
- },
- {
- "added_at": "2020-06-25T17:41:57Z",
- "branch": "master",
- "commit": "060c3d6530a881afb808f105f36af25e1ad1b2f3",
- "image": "registry.humanitec.io/my-org/my-service:1.2.6"
- }
- ],
- "id": "my-service",
- "source": "github"
- },
"properties": {
"added_at": {
"description": "The time the first build of this Image was added to the organization",
@@ -12160,10 +12290,12 @@
},
"id": {
"description": "The ID used to group different builds of the same Image together.",
+ "example": "my-service",
"type": "string"
},
"source": {
"description": "The Image Source that this Image is added via",
+ "example": "github",
"type": "string"
}
},
@@ -12177,12 +12309,10 @@
},
"UpdateArtefactVersionPayloadRequest": {
"description": "UpdateArtefactVersionPayload contains the `archived` field that should be set in the Artefact Version to update.",
- "example": {
- "archived": true
- },
"properties": {
"archived": {
"description": "The Value of the archived value.",
+ "example": true,
"nullable": true,
"type": "boolean"
}
@@ -12192,6 +12322,49 @@
],
"type": "object"
},
+ "AuditLogEntry": {
+ "description": "An entry in the audit log",
+ "required": [
+ "at",
+ "user_id",
+ "request_method",
+ "request_path",
+ "response_status"
+ ],
+ "properties": {
+ "at": {
+ "description": "The date and time when the event was recorded.",
+ "example": "2023-01-01T00:00:00Z",
+ "type": "string",
+ "format": "date-time"
+ },
+ "org_id": {
+ "description": "The id of the Organization this event occurred in.",
+ "example": "my-organization",
+ "type": "string"
+ },
+ "user_id": {
+ "description": "The id of the User who triggered the event.",
+ "example": "01234567-89ab-cdef-0123-456789abcdef",
+ "type": "string"
+ },
+ "request_method": {
+ "description": "The HTTP method that was requested. Only POST, PATCH, PUT, and DELETE are audited.",
+ "example": "POST",
+ "type": "string"
+ },
+ "request_path": {
+ "description": "The URL path that was called.",
+ "example": "/orgs/some-org/apps",
+ "type": "string"
+ },
+ "response_status": {
+ "description": "The status code of the response. Only successful responses are audited.",
+ "example": 201,
+ "type": "integer"
+ }
+ }
+ },
"UserRoleRequest": {
"description": "UserRole holds the mapping of role to user for a particular object.",
"example": {
@@ -12485,6 +12658,11 @@
],
"type": "object"
},
+ "EnvironmentID": {
+ "type": "string",
+ "pattern": "^[a-z0-9](?:-?[a-z0-9]+)+$",
+ "example": "my-env"
+ },
"DeltaMetadataRequest": {
"properties": {
"archived": {
@@ -12507,7 +12685,7 @@
"type": "string"
},
"env_id": {
- "type": "string"
+ "$ref": "#/components/schemas/EnvironmentID"
},
"last_modified_at": {
"example": "2020-06-22T09:37:23.523Z",
@@ -12545,7 +12723,7 @@
"type": "string"
},
"env_id": {
- "type": "string"
+ "$ref": "#/components/schemas/EnvironmentID"
},
"last_modified_at": {
"example": "2020-06-22T09:37:23.523Z",
@@ -13260,7 +13438,7 @@
"type": "string"
},
"fingerprint": {
- "description": "Key is the sha256 public key fingerprint, it's computed and stored when a new key is uploaded.",
+ "description": "It's the hexadecimal representation of the sha256 hash of the DER representation of the key, it's computed and stored when a new key is uploaded.",
"type": "string"
}
},
@@ -13316,26 +13494,9 @@
"LogoResponse": {
"properties": {
"dark_url": {
- "nullable": true,
"type": "string"
},
"light_url": {
- "nullable": true,
- "type": "string"
- }
- },
- "type": "object"
- },
- "OrganizationRequest": {
- "description": "An Organization is the top level object in Humanitec. All other objects belong to an Organization.",
- "properties": {
- "id": {
- "description": "Unique ID for the Organization.",
- "pattern": "^[a-z0-9][a-z0-9-]+[a-z0-9]$",
- "type": "string"
- },
- "name": {
- "description": "Human friendly name for the Organization.",
"type": "string"
}
},
@@ -13348,8 +13509,7 @@
"description": "Timestamp when the Organization was created.",
"example": "2020-06-22T09:37:23.523Z",
"nullable": true,
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{3})?Z$",
- "title": "Simplified extended ISO format date/time string.",
+ "format": "date-time",
"type": "string"
},
"created_by": {
@@ -13368,13 +13528,22 @@
"name": {
"description": "Human friendly name for the Organization.",
"type": "string"
+ },
+ "trial_expires_at": {
+ "description": "Timestamp the trial expires at.",
+ "example": "2020-06-22T09:37:23.523Z",
+ "nullable": true,
+ "format": "date-time",
+ "type": "string"
}
},
"required": [
"id",
"name",
"created_at",
- "created_by"
+ "created_by",
+ "trial_expires_at",
+ "logo"
],
"type": "object"
},
@@ -13521,6 +13690,124 @@
}
}
},
+ "PipelineCriteriaCreateBody": {
+ "required": [
+ "trigger"
+ ],
+ "properties": {
+ "trigger": {
+ "description": "The trigger to call",
+ "type": "string",
+ "example": "deployment_request"
+ }
+ },
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/PipelineDeploymentRequestCriteriaCreateBody"
+ }
+ ],
+ "discriminator": {
+ "propertyName": "trigger",
+ "mapping": {
+ "deployment_request": "#/components/schemas/PipelineDeploymentRequestCriteriaCreateBody"
+ }
+ }
+ },
+ "PipelineDeploymentRequestCriteriaCreateBody": {
+ "description": "The details required to create a new deployment request matching criteria for a Pipeline.",
+ "type": "object",
+ "properties": {
+ "env_type": {
+ "description": "The Environment Type that this criteria will match. If defined, this criteria will only apply to Environments that have this type.\n",
+ "type": "string",
+ "example": "development"
+ },
+ "app_id": {
+ "description": "The id of the Application for which this criteria matches. If this Pipeline is defined in an Application, then this value can only be null or the id of the Application.\n",
+ "type": "string",
+ "example": "my-application"
+ },
+ "env_id": {
+ "description": "The exact id of the Environment which this criteria will match.\n",
+ "type": "string",
+ "example": "my-environment"
+ },
+ "deployment_type": {
+ "description": "The type of deployment that this criteria will match. Valid values are \"deploy\" and \"redeploy\". \"redeploy\" applies only to deployment request to redeploy a previous deployment id while \"deploy\" will apply to all other requests that include a Delta or Deployment Set. If not defined, all deployment types will match.\n",
+ "type": "string",
+ "example": "deploy"
+ }
+ }
+ },
+ "PipelineCriteria": {
+ "required": [
+ "trigger"
+ ],
+ "properties": {
+ "trigger": {
+ "description": "The trigger to call",
+ "type": "string",
+ "example": "deployment_request"
+ }
+ },
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/PipelineDeploymentRequestCriteria"
+ }
+ ],
+ "discriminator": {
+ "propertyName": "trigger",
+ "mapping": {
+ "deployment_request": "#/components/schemas/PipelineDeploymentRequestCriteria"
+ }
+ }
+ },
+ "PipelineDeploymentRequestCriteria": {
+ "description": "A deployment request matching criteria for a Pipeline.",
+ "type": "object",
+ "required": [
+ "id",
+ "pipeline_id",
+ "pipeline_name"
+ ],
+ "properties": {
+ "pipeline_id": {
+ "description": "The id of the Pipeline tied to this deployment request criteria.",
+ "type": "string",
+ "example": "sample-pipeline"
+ },
+ "pipeline_name": {
+ "description": "The current display name of the Pipeline.",
+ "type": "string",
+ "example": "Sample Pipeline"
+ },
+ "id": {
+ "description": "The unique id of the criteria within this Pipeline.",
+ "type": "string",
+ "example": "01234567-89ab-cdef-0123-456789abcdef"
+ },
+ "env_type": {
+ "description": "The Environment Type that this criteria will match. If defined, this criteria will only apply to Environments that have this type.\n",
+ "type": "string",
+ "example": "development"
+ },
+ "app_id": {
+ "description": "The id of the Application for which this criteria matches. If this Pipeline is defined in an Application, then this value can only be null or the id of the Application.\n",
+ "type": "string",
+ "example": "my-application"
+ },
+ "env_id": {
+ "description": "The exact id of the Environment which this criteria will match.\n",
+ "type": "string",
+ "example": "my-environment"
+ },
+ "deployment_type": {
+ "description": "The type of deployment that this criteria will match. Valid values are \"deploy\" and \"redeploy\". \"redeploy\" applies only to deployment request to redeploy a previous deployment id while \"deploy\" will apply to all other requests that include a Delta or Deployment Set. If not defined, all deployment types will match.\n",
+ "type": "string",
+ "example": "deploy"
+ }
+ }
+ },
"PipelineRun": {
"description": "Details of a Run within the Pipeline.",
"required": [
@@ -13651,6 +13938,68 @@
}
}
},
+ "PipelineRunCreateByTriggerCriteriaBody": {
+ "description": "The parameters for creating a new Run based on trigger and inputs.",
+ "required": [
+ "trigger"
+ ],
+ "properties": {
+ "trigger": {
+ "description": "The trigger to call",
+ "type": "string",
+ "example": "deployment_request"
+ }
+ },
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/PipelineRunCreateByDeploymentRequestCriteriaBody"
+ }
+ ],
+ "discriminator": {
+ "propertyName": "trigger",
+ "mapping": {
+ "deployment_request": "#/components/schemas/PipelineRunCreateByDeploymentRequestCriteriaBody"
+ }
+ }
+ },
+ "PipelineRunCreateByDeploymentRequestCriteriaBody": {
+ "description": "Trigger the pipeline that has a deployment_request trigger and criteria that match this target environment. If \"delta_id\" or \"set_id\" is provided, the matching criteria must support deployment type \"deploy\". If \"deployment_id\" is provided, the matching criteria must support deployment type \"re-deploy\".\nWhen \"delta_id\" is provided, the inputs to the Pipeline Run will be \"environment\", \"comment\", \"delta_id\" and \"value_set_version_id\" if provided. When \"deployment_id\" is provided, the inputs to the Pipeline Run will be \"environment\", \"comment\", \"deployment_id\", with \"set_id\", \"value_set_version_id\" being retrieved from the deployment itself. When \"set_id\" is provided, the inputs to the Pipeline Run will be \"environment\", \"comment\", \"set_id\", and \"value_set_version_id\" if provided.\n",
+ "required": [
+ "environment"
+ ],
+ "properties": {
+ "environment": {
+ "description": "The target environment within the Application to deploy to.",
+ "type": "string"
+ },
+ "delta_id": {
+ "description": "A deployment delta to apply to the target environment. This delta must already exist. This field is mutually exclusive with \"deployment_id\" and \"set_id\".",
+ "type": "string"
+ },
+ "deployment_id": {
+ "description": "An existing deployment to redeploy into the target environment. The deployment set and value set will be copied. This field is mutually exclusive with \"delta_id\" and \"set_id\".",
+ "type": "string"
+ },
+ "set_id": {
+ "description": "A direct deployment set to apply to the target environment. This deployment set must already exist. This field is mutually exclusive with \"delta_id\" and \"set_id\".",
+ "type": "string"
+ },
+ "value_set_version_id": {
+ "description": "The exact value set version to use when deploying to the target environment. This value set version must exist. This field can only be used when \"delta_id\" or \"set_id\" is specified.",
+ "type": "string"
+ },
+ "comment": {
+ "description": "An optional comment to apply to the Deployment.",
+ "type": "string"
+ }
+ },
+ "example": {
+ "trigger": "deployment_request",
+ "environment": "development",
+ "delta_id": "0123456789abcdef0123456789abcdef01234567",
+ "comment": "My deployment"
+ }
+ },
"PipelineJobPartial": {
"description": "Partial details of a Job within the Run. The full details, including steps, can be retrieved using the GetPipelineJob operation.",
"required": [
@@ -17116,6 +17465,30 @@
}
}
},
+ "WorkloadProfileFeatureResponse": {
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "org_id": {
+ "type": "string"
+ },
+ "schema": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "org_id",
+ "id",
+ "schema",
+ "version"
+ ],
+ "type": "object"
+ },
"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": {
@@ -17130,14 +17503,26 @@
"deprecation_message": {
"description": "A not-empty string indicates that the workload profile is deprecated.",
"type": "string"
+ },
+ "spec_definition": {
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinition"
+ },
+ "version": {
+ "description": "Version identifier. The version must be unique, but the API doesn't not enforce any ordering. Currently workloads will always use the latest update.\n\nIf no identifier is provided, the each update will generate a random version identifier.",
+ "type": "string"
+ },
+ "workload_profile_chart": {
+ "$ref": "#/components/schemas/WorkloadProfileChartReference"
}
},
"required": [
- "id"
+ "id",
+ "spec_definition",
+ "workload_profile_chart"
],
"type": "object"
},
- "WorkloadProfilePatchRequest": {
+ "WorkloadProfileUpdateRequest": {
"description": "The proposed properties to update a workload profile.",
"properties": {
"description": {
@@ -17147,8 +17532,22 @@
"deprecation_message": {
"description": "A not-empty string indicates that the workload profile is deprecated.",
"type": "string"
+ },
+ "spec_definition": {
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinition"
+ },
+ "version": {
+ "description": "Version identifier. The version must be unique, but the API doesn't not enforce any ordering. Currently workloads will always use the latest update.\n\nIf no identifier is provided, the each update will generate a random version identifier.",
+ "type": "string"
+ },
+ "workload_profile_chart": {
+ "$ref": "#/components/schemas/WorkloadProfileChartReference"
}
},
+ "required": [
+ "spec_definition",
+ "workload_profile_chart"
+ ],
"type": "object"
},
"WorkloadProfileResponse": {
@@ -17165,25 +17564,27 @@
"description": "User created the profile",
"type": "string"
},
- "id": {
- "description": "Workload Profile ID",
+ "description": {
+ "description": "Describes the workload profile",
+ "type": "string"
+ },
+ "deprecation_message": {
+ "description": "A not-empty string indicates that the workload profile is deprecated.",
"type": "string"
},
- "latest": {
- "description": "The latest version of the profile",
+ "id": {
+ "description": "Workload Profile ID",
"type": "string"
},
"org_id": {
"description": "Organization ID",
"type": "string"
},
- "description": {
- "description": "Describes the workload profile",
- "type": "string"
+ "spec_definition": {
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinition"
},
- "deprecation_message": {
- "description": "A not-empty string indicates that the workload profile is deprecated.",
- "type": "string"
+ "spec_schema": {
+ "description": "OpenAPI schema used to validate the spec."
},
"updated_at": {
"description": "Timestamp when the entity was last updated.",
@@ -17193,50 +17594,32 @@
"updated_by": {
"description": "User who last updated the entity.",
"type": "string"
- }
- },
- "required": [
- "org_id",
- "id",
- "created_at",
- "created_by",
- "description",
- "updated_at",
- "updated_by"
- ],
- "type": "object"
- },
- "WorkloadProfileVersionRequest": {
- "description": "Each Workload Profile has one or more Versions associated with it. In order to add a version, a Workload Profile must first be created.",
- "properties": {
- "features": {
- "additionalProperties": true,
- "description": "A map of Features. If referencing built in Humanitec features, the fully qualified feature name must be used: e.g. `humanitec/annotations`.\n\n{\n\n}",
- "type": "object"
- },
- "notes": {
- "description": "Notes",
- "type": "string"
- },
- "spec_definition": {
- "$ref": "#/components/schemas/WorkloadProfileVersionSpecDefinition"
},
"version": {
- "description": "Version",
+ "description": "Version identifier.",
"type": "string"
},
"workload_profile_chart": {
"$ref": "#/components/schemas/WorkloadProfileChartReference"
}
},
- "type": "object",
"required": [
+ "created_at",
+ "created_by",
+ "description",
+ "id",
+ "org_id",
+ "spec_definition",
+ "spec_schema",
+ "updated_at",
+ "updated_by",
"version",
"workload_profile_chart"
- ]
+ ],
+ "type": "object"
},
"WorkloadProfileVersionResponse": {
- "description": "Each Workload Profile has one or more Versions associated with it. In order to add a version, a Workload Profile must first be created.",
+ "description": "A version of a workload profile.",
"properties": {
"created_at": {
"description": "Creation date",
@@ -17249,77 +17632,78 @@
"description": "User created the profile",
"type": "string"
},
- "features": {
- "additionalProperties": true,
- "description": "A map of Features. If referencing built in Humanitec features, the fully qualified feature name must be used: e.g. `humanitec/annotations`.\n\n{\n\n}",
- "type": "object"
- },
- "spec_schema": {
- "description": "OpenAPI schema used to validate the spec."
+ "description": {
+ "description": "Describes the workload profile",
+ "type": "string"
},
- "spec_definition": {
- "$ref": "#/components/schemas/WorkloadProfileVersionSpecDefinition"
+ "deprecation_message": {
+ "description": "A not-empty string indicates that the workload profile is deprecated.",
+ "type": "string"
},
- "notes": {
- "description": "Notes",
+ "id": {
+ "description": "ID",
"type": "string"
},
"org_id": {
"description": "Organization ID",
"type": "string"
},
- "profile_id": {
- "description": "Workload Profile ID",
- "type": "string"
+ "spec_definition": {
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinition"
},
- "version": {
- "description": "Version",
- "type": "string"
+ "spec_schema": {
+ "description": "OpenAPI schema used to validate the spec."
},
"workload_profile_chart": {
"$ref": "#/components/schemas/WorkloadProfileChartReference"
+ },
+ "workload_profile_id": {
+ "description": "Workload Profile ID",
+ "type": "string"
}
},
"required": [
- "org_id",
- "profile_id",
- "version",
- "features",
- "notes",
"created_at",
"created_by",
+ "description",
+ "id",
+ "org_id",
+ "spec_definition",
"spec_schema",
- "workload_profile_chart"
+ "version",
+ "workload_profile_chart",
+ "workload_profile_id"
],
"type": "object"
},
- "WorkloadProfileVersionSpecDefinition": {
+ "WorkloadProfileSpecDefinition": {
+ "description": "Workload spec definition",
"type": "object",
"properties": {
"properties": {
- "$ref": "#/components/schemas/WorkloadProfileVersionSpecDefinitionProperties"
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinitionProperties"
},
"runtime_properties": {
"items": {
- "$ref": "#/components/schemas/WorkloadProfileVersionSpecDefinitionRuntimeProperty"
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinitionRuntimeProperty"
},
"type": "array"
}
}
},
- "WorkloadProfileVersionSpecDefinitionProperties": {
+ "WorkloadProfileSpecDefinitionProperties": {
"type": "object",
"description": "Workload spec definition",
"additionalProperties": {
- "$ref": "#/components/schemas/WorkloadProfileVersionSpecDefinitionProperty"
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinitionProperty"
}
},
- "WorkloadProfileVersionSpecDefinitionProperty": {
+ "WorkloadProfileSpecDefinitionProperty": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
- "$ref": "#/components/schemas/WorkloadProfileVersionSpecDefinitionPropertyType"
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinitionPropertyType"
},
"feature_name": {
"type": "string"
@@ -17331,7 +17715,7 @@
"type": "string"
},
"ui_hints": {
- "$ref": "#/components/schemas/WorkloadProfileVersionSpecDefinitionPropertyUIHints"
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinitionPropertyUIHints"
},
"schema": {
"additionalProperties": true,
@@ -17339,24 +17723,24 @@
},
"runtime_properties": {
"items": {
- "$ref": "#/components/schemas/WorkloadProfileVersionSpecDefinitionRuntimeProperty"
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinitionRuntimeProperty"
},
"type": "array"
},
"properties": {
- "$ref": "#/components/schemas/WorkloadProfileVersionSpecDefinitionProperties"
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinitionProperties"
}
},
"required": [
"type"
]
},
- "WorkloadProfileVersionSpecDefinitionRuntimeProperty": {
+ "WorkloadProfileSpecDefinitionRuntimeProperty": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
- "$ref": "#/components/schemas/WorkloadProfileVersionSpecDefinitionRuntimePropertyType"
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinitionRuntimePropertyType"
},
"feature_name": {
"type": "string"
@@ -17368,14 +17752,14 @@
"type": "string"
},
"ui_hints": {
- "$ref": "#/components/schemas/WorkloadProfileVersionSpecDefinitionPropertyUIHints"
+ "$ref": "#/components/schemas/WorkloadProfileSpecDefinitionPropertyUIHints"
}
},
"required": [
"type"
]
},
- "WorkloadProfileVersionSpecDefinitionPropertyType": {
+ "WorkloadProfileSpecDefinitionPropertyType": {
"type": "string",
"enum": [
"feature",
@@ -17383,14 +17767,14 @@
"schema"
]
},
- "WorkloadProfileVersionSpecDefinitionRuntimePropertyType": {
+ "WorkloadProfileSpecDefinitionRuntimePropertyType": {
"type": "string",
"enum": [
"feature",
"collection"
]
},
- "WorkloadProfileVersionSpecDefinitionPropertyUIHints": {
+ "WorkloadProfileSpecDefinitionPropertyUIHints": {
"type": "object",
"additionalProperties": false,
"properties": {
@@ -17459,21 +17843,6 @@
"type": "object"
}
},
- "headers": {
- "Etag": {
- "description": "The Etag of the resource",
- "example": "1234567890abcdef",
- "schema": {
- "type": "string"
- }
- },
- "Link": {
- "schema": {
- "type": "string"
- },
- "description": "A list of request links, optionally including a \"next\" page link for pagination."
- }
- },
"parameters": {
"orgIdPathParam": {
"name": "orgId",
@@ -17481,6 +17850,30 @@
"description": "The Organization ID",
"example": "sample-org",
"required": true,
+ "schema": {
+ "type": "string",
+ "pattern": "^[a-z0-9](?:-?[a-z0-9]+)+$"
+ }
+ },
+ "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",
+ "minimum": 1,
+ "maximum": 100,
+ "default": 50
+ }
+ },
+ "pageTokenQueryParam": {
+ "name": "page",
+ "in": "query",
+ "description": "The page token to request from",
+ "required": false,
+ "example": "AAAAAAAAAA==",
"schema": {
"type": "string"
}
@@ -17492,7 +17885,8 @@
"example": "sample-app",
"required": true,
"schema": {
- "type": "string"
+ "type": "string",
+ "pattern": "^[a-z0-9](?:-?[a-z0-9]+)+$"
}
},
"pipelineIdPathParam": {
@@ -17686,29 +18080,6 @@
}
}
},
- "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",
- "minimum": 1,
- "maximum": 100,
- "default": 50
- }
- },
- "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",
@@ -17749,6 +18120,16 @@
"type": "string"
}
},
+ "envIdPathParam": {
+ "name": "envId",
+ "in": "path",
+ "description": "The Environment ID",
+ "example": "development",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
"profileQidPathParam": {
"name": "profileQid",
"in": "path",
@@ -17780,16 +18161,6 @@
}
},
"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": {
@@ -17805,7 +18176,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/ErrorResponse"
+ "$ref": "#/components/schemas/HumanitecErrorResponse"
}
}
}
@@ -17820,6 +18191,16 @@
}
}
},
+ "307TemporaryRedirect": {
+ "description": "The content is available at a different location specified in the Location header.",
+ "headers": {
+ "location": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
"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": {
@@ -17850,6 +18231,21 @@
}
}
}
+ },
+ "headers": {
+ "Etag": {
+ "description": "The Etag of the resource",
+ "example": "1234567890abcdef",
+ "schema": {
+ "type": "string"
+ }
+ },
+ "Link": {
+ "schema": {
+ "type": "string"
+ },
+ "description": "A list of request links, optionally including a \"next\" page link for pagination."
+ }
}
},
"servers": [
@@ -17868,6 +18264,7 @@
"Application",
"Artefact",
"ArtefactVersion",
+ "AuditLogs",
"Deployment",
"EnvironmentType",
"Environment",
@@ -17929,7 +18326,7 @@
{
"name": "Organization",
"x-displayName": "Organization",
- "description": "An Organization is the top level object in Humanitec. All other objects belong to an Organization.\n\n"
+ "description": "An Organization is the top level object in Humanitec. All other objects belong to an Organization.\n\n"
},
{
"name": "PipelineApprovals",
@@ -17994,12 +18391,17 @@
{
"name": "Artefact",
"x-displayName": "Artefact",
- "description": "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.\n\n"
+ "description": "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.\n\n"
},
{
"name": "ArtefactVersion",
"x-displayName": "Artefact Version",
- "description": "An Artefact Version represents a particular version of an Artefact that can be added to an Application.\n\n"
+ "description": "Details of a Container Artefact Version\n\n"
+ },
+ {
+ "name": "AuditLogs",
+ "x-displayName": "Audit Logs",
+ "description": "An entry in the audit log\n\n"
},
{
"name": "AutomationRule",
diff --git a/go.mod b/go.mod
index 3d5f752..d55d120 100644
--- a/go.mod
+++ b/go.mod
@@ -2,11 +2,12 @@ module github.com/humanitec/humanitec-go-autogen
go 1.21
-toolchain go1.21.0
+toolchain go1.21.5
require (
github.com/oapi-codegen/runtime v1.1.0
github.com/stretchr/testify v1.8.4
+ gopkg.in/yaml.v2 v2.4.0
)
require (
diff --git a/go.sum b/go.sum
index 4ab5e56..bc778f5 100644
--- a/go.sum
+++ b/go.sum
@@ -25,5 +25,7 @@ github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXl
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b h1:QRR6H1YWRnHb4Y/HeNFCTJLFVxaq6wH4YuVdsUOr75U=
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
+gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=