Skip to content

Commit

Permalink
feat: update client
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswuerbach authored and github-actions[bot] committed Dec 16, 2024
1 parent a051d44 commit 972dbe2
Show file tree
Hide file tree
Showing 2 changed files with 264 additions and 2 deletions.
157 changes: 157 additions & 0 deletions client/client.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

109 changes: 107 additions & 2 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.0",
"info": {
"title": "Humanitec API",
"version": "0.26.23",
"version": "0.26.26",
"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",
Expand Down Expand Up @@ -3577,6 +3577,68 @@
}
}
},
"/orgs/{orgId}/apps/{appId}/sets/{setId}/resources": {
"get": {
"tags": [
"public",
"Set"
],
"summary": "Get Resource Inputs for the given Deployment Set",
"operationId": "getSetResourceInputs",
"parameters": [
{
"$ref": "#/components/parameters/orgIdPathParam"
},
{
"$ref": "#/components/parameters/appIdPathParam"
},
{
"name": "setId",
"in": "path",
"description": "ID of the Deployment Set.",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Resource Inputs of the requested Deployment Set.",
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/ResourceInputsResponse"
},
"type": "array"
}
}
}
},
"404": {
"description": "No Deployment Set with ID `setId` found in Application.",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"400": {
"description": "Invalid resources in the Deployment Set",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HumanitecErrorResponse"
}
}
}
}
}
}
},
"/orgs/{orgId}/apps/{appId}/sets/{setId}/diff/{sourceSetId}": {
"get": {
"tags": [
Expand Down Expand Up @@ -13183,14 +13245,20 @@
"example": "2022-06-22T09:37:23.523Z",
"format": "date-time",
"description": "Time when the Key should be replaced (2 years after its creation)."
},
"is_authorized": {
"type": "boolean",
"description": "If this key has been authorized to be used to validate requests coming from an Agent.",
"example": true
}
},
"required": [
"fingerprint",
"public_key",
"created_at",
"created_by",
"expired_at"
"expired_at",
"is_authorized"
]
},
"KeyCreateBody": {
Expand Down Expand Up @@ -15294,6 +15362,43 @@
],
"type": "object"
},
"ResourceInputsResponse": {
"description": "A payload needed to generate a resource graph.",
"example": {
"class": "cloudsql",
"id": "shared.postgres",
"resource": {
"host": "127.0.0.1",
"name": "my-database"
},
"type": "postgres"
},
"properties": {
"id": {
"description": "The Resource ID in the Deployment Set.",
"type": "string"
},
"type": {
"description": "The Resource type.",
"type": "string"
},
"class": {
"description": "The Resource class.",
"type": "string"
},
"resource": {
"description": "The Resource input parameters specified in the deployment set.",
"additionalProperties": true,
"type": "object"
}
},
"required": [
"id",
"type"
],
"type": "object",
"additionalProperties": false
},
"EventBaseRequest": {
"description": "Properties which identify an event .",
"properties": {
Expand Down

0 comments on commit 972dbe2

Please sign in to comment.