From 93b078e55cd98cfb90ce69f7cd526089cafdd6df Mon Sep 17 00:00:00 2001 From: Mateusz Jenek Date: Thu, 16 May 2024 10:48:19 +0200 Subject: [PATCH] feat: update client --- client/client.gen.go | 17 +++++++++++++---- docs/openapi.json | 32 +++++++++++++++++++++++++++----- 2 files changed, 40 insertions(+), 9 deletions(-) diff --git a/client/client.gen.go b/client/client.gen.go index 669daea..653a139 100644 --- a/client/client.gen.go +++ b/client/client.gen.go @@ -166,6 +166,9 @@ type ActiveResourceResponse struct { // DefId The Resource Definition that this resource was provisioned from. DefId string `json:"def_id"` + // DefVersionId The Resource Definition Version that this resource was provisioned from. + DefVersionId string `json:"def_version_id"` + // DeployId The deployment that the resource was last provisioned in. DeployId string `json:"deploy_id"` @@ -1004,7 +1007,7 @@ type EnvironmentBaseUpdateRequest struct { // EnvironmentDefinitionRequest defines model for EnvironmentDefinitionRequest. type EnvironmentDefinitionRequest struct { // FromDeployId Defines the existing Deployment the new Environment will be based on. - FromDeployId string `json:"from_deploy_id"` + FromDeployId *string `json:"from_deploy_id,omitempty"` // Id The ID the Environment is referenced as. Id string `json:"id"` @@ -1375,9 +1378,12 @@ type NewServiceUserRequest struct { // NodeBodyResponse NodeBody represents a node of a Resource Dependency Graph. type NodeBodyResponse struct { - Class string `json:"class"` - CriteriaId string `json:"criteria_id"` - DefId string `json:"def_id"` + Class string `json:"class"` + CriteriaId string `json:"criteria_id"` + DefId string `json:"def_id"` + + // DefVersionId The Resource Definition Version ID that was used to provision the resource. + DefVersionId string `json:"def_version_id"` DependsOn []string `json:"depends_on"` Driver map[string]interface{} `json:"driver"` DriverAccount *string `json:"driver_account,omitempty"` @@ -2046,6 +2052,9 @@ type ResourceDefinitionResponse struct { // Criteria (Optional) The criteria to use when looking for a Resource Definition during the deployment. Criteria *[]MatchingCriteriaResponse `json:"criteria,omitempty"` + // CurrentVersionId The Resource Definition Version ID. + CurrentVersionId string `json:"current_version_id"` + // DriverAccount (Optional) Security account required by the driver. DriverAccount *string `json:"driver_account,omitempty"` diff --git a/docs/openapi.json b/docs/openapi.json index 01643d2..0a82cce 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -12838,8 +12838,7 @@ }, "required": [ "id", - "name", - "from_deploy_id" + "name" ], "type": "object" }, @@ -15966,6 +15965,7 @@ "app_id": "test-app", "class": "default", "def_id": "gcp-dev-postgres", + "def_version_id": "01234567-89ab-cdef-0123-4567890abcdef", "deploy_id": "172a1013b", "env_id": "gcp-dev", "env_type": "development", @@ -16000,6 +16000,10 @@ "description": "The Resource Definition that this resource was provisioned from.", "type": "string" }, + "def_version_id": { + "description": "The Resource Definition Version that this resource was provisioned from.", + "type": "string" + }, "deploy_id": { "description": "The deployment that the resource was last provisioned in.", "type": "string" @@ -16072,7 +16076,8 @@ "resource", "updated_at", "deploy_id", - "gu_res_id" + "gu_res_id", + "def_version_id" ] }, "ActiveResourceResponse": { @@ -16081,6 +16086,7 @@ "app_id": "test-app", "class": "default", "def_id": "gcp-dev-postgres", + "def_version_id": "01234567-89ab-cdef-0123-4567890abcdef", "deploy_id": "172a1013b", "env_id": "gcp-dev", "env_type": "development", @@ -16115,6 +16121,10 @@ "description": "The Resource Definition that this resource was provisioned from.", "type": "string" }, + "def_version_id": { + "description": "The Resource Definition Version that this resource was provisioned from.", + "type": "string" + }, "deploy_id": { "description": "The deployment that the resource was last provisioned in.", "type": "string" @@ -16179,6 +16189,7 @@ "env_type", "res_id", "def_id", + "def_version_id", "type", "driver_type", "class", @@ -16503,6 +16514,7 @@ "class": "default", "criteria_id": "09876545321", "def_id": "dns-res-def", + "def_version_id": "01234567-89ab-cdef-0123-4567890abcdef", "depends_on": [ "ff09876545321" ], @@ -16536,6 +16548,10 @@ "def_id": { "type": "string" }, + "def_version_id": { + "description": "The Resource Definition Version ID that was used to provision the resource.", + "type": "string" + }, "depends_on": { "items": { "type": "string" @@ -16584,7 +16600,8 @@ "criteria_id", "driver_type", "resource_schema", - "depends_on" + "depends_on", + "def_version_id" ], "type": "object" }, @@ -16846,6 +16863,10 @@ "description": "The Resource Definition ID.", "type": "string" }, + "current_version_id": { + "description": "The Resource Definition Version ID.", + "type": "string" + }, "is_default": { "description": "Indicates this definition is a built-in one (provided by Humanitec).", "type": "boolean" @@ -16883,7 +16904,8 @@ "created_by", "is_default", "is_deleted", - "driver_type" + "driver_type", + "current_version_id" ], "type": "object" },