From ef5fda398edffca85ce7060a2c01f377bef8e27a Mon Sep 17 00:00:00 2001 From: dharsanb <52737410+dharsanb@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:53:55 +0000 Subject: [PATCH] feat: update client --- client/client.gen.go | 6 +++--- docs/openapi.json | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client/client.gen.go b/client/client.gen.go index 2b8fce8..691ce4f 100644 --- a/client/client.gen.go +++ b/client/client.gen.go @@ -2247,6 +2247,9 @@ type ResourceDefinitionChangeResponse struct { // // The schema for the `driver_inputs` is defined by the `input_schema` property on the DriverDefinition identified by the `driver_type` property. type ResourceDefinitionResponse struct { + // ActiveVersionId The active Resource Definition Version ID. + ActiveVersionId string `json:"active_version_id"` + // CreatedAt The timestamp of when this record has been created. CreatedAt time.Time `json:"created_at"` @@ -2256,9 +2259,6 @@ 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 edde721..7ff5452 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -2,7 +2,7 @@ "openapi": "3.0.0", "info": { "title": "Humanitec API", - "version": "0.26.16", + "version": "0.26.19", "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\n\nAlmost all requests made to the Humanitec API require Authentication. See our [Developer Docs on API Authentication](https://developer.humanitec.com/platform-orchestrator/reference/api-references/#authentication) for instructions.\n\n## Content Types\nThe Humanitec API, unless explicitly specified, 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, a new resource was created |\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` range should be regarded as an error that 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": "Humanitec Support", @@ -10454,7 +10454,7 @@ "public", "ValueSetVersion" ], - "summary": "Get a single Value Set Version in an Environment of an App", + "summary": "Get a single Value Set Version in an Environment of an App. The zero version id (00000000-0000-0000-0000-000000000000) will return the latest Value Set Version.", "parameters": [ { "name": "orgId", @@ -17698,8 +17698,8 @@ "description": "The Resource Definition ID.", "type": "string" }, - "current_version_id": { - "description": "The Resource Definition Version ID.", + "active_version_id": { + "description": "The active Resource Definition Version ID.", "type": "string" }, "is_default": { @@ -17740,7 +17740,7 @@ "is_default", "is_deleted", "driver_type", - "current_version_id" + "active_version_id" ], "type": "object" },