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 Aug 5, 2024
1 parent 99c84ac commit 0079ff1
Show file tree
Hide file tree
Showing 2 changed files with 256 additions and 9 deletions.
145 changes: 144 additions & 1 deletion client/client.gen.go

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

120 changes: 112 additions & 8 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"openapi": "3.0.0",
"info": {
"title": "Humanitec API",
"version": "0.26.11",
"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\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",
"version": "0.26.12",
"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": "API Support",
"email": "apiteam@humanitec.com"
"name": "Humanitec Support",
"email": "support@humanitec.com"
},
"x-logo": {
"url": "humanitec-logo.png",
Expand Down Expand Up @@ -7047,6 +7047,59 @@
}
}
},
"/orgs/{orgId}/resources/accounts/{accId}/actions/check": {
"post": {
"tags": [
"public",
"ResourceAccount"
],
"summary": "Check the credentials of an existing Resource Account",
"description": "Check the validity of a Resource Account and return any problems that may cause it to not work as expected.",
"operationId": "checkResourceAccount",
"parameters": [
{
"name": "orgId",
"in": "path",
"description": "The Organization ID.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "accId",
"in": "path",
"description": "The Resource Account ID.",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "The updated Account Type.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CheckResourceAccountData"
}
}
}
},
"400": {
"description": "The Resource Account is not valid or could not be validated.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HumanitecErrorResponse"
}
}
}
}
}
}
},
"/orgs/{orgId}/resources/defs": {
"get": {
"tags": [
Expand Down Expand Up @@ -15310,6 +15363,7 @@
},
"scaffolding_url": {
"description": "URL of the scaffolding service.",
"nullable": true,
"type": "string"
}
},
Expand Down Expand Up @@ -16703,6 +16757,10 @@
"description": "The Resource Definition Version that this resource was provisioned from.",
"type": "string"
},
"target_def_version_id": {
"description": "The Resource Definition Version pinned to this resource to be provisioned from.",
"type": "string"
},
"deploy_id": {
"description": "The deployment that the resource was last provisioned in.",
"type": "string"
Expand Down Expand Up @@ -17789,7 +17847,7 @@
"type": "object"
}
},
"type": "postgres",
"type": "my-org/postgres",
"use": "direct"
},
"properties": {
Expand All @@ -17812,8 +17870,9 @@
"type": "object"
},
"type": {
"description": "Unique resource type identifier (system-wide, across all organizations).",
"type": "string"
"description": "Unique resource type identifier (system-wide, across all organizations). It should start with the Humanitec Organization ID followed by \"/\".",
"type": "string",
"example": "my-org/my-private-type"
},
"use": {
"description": "Kind of dependency between resource of this type and a workload. It should be one of: `direct`, `indirect`, `implicit`.",
Expand Down Expand Up @@ -18221,6 +18280,51 @@
},
"type": "object"
},
"CheckResourceAccountField": {
"description": "An identity field or property resulting from the account check.",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"description": {
"type": "string"
},
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"id",
"description",
"value"
]
},
"CheckResourceAccountData": {
"description": "The successful check response details.",
"type": "object",
"properties": {
"identity_fields": {
"description": "A set of identity fields and properties resulting from the account check.",
"type": "array",
"items": {
"$ref": "#/components/schemas/CheckResourceAccountField"
}
},
"warnings": {
"description": "A list of warnings related to this account.",
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"identity_fields"
]
},
"ControllerResponse": {
"description": "Controller represents deployment, stateful set etc",
"properties": {
Expand Down Expand Up @@ -20017,7 +20121,7 @@
],
"externalDocs": {
"description": "Find out more about how to use Humanitec in your every-day development work.",
"url": "https://docs.humanitec.com"
"url": "https://developer.humanitec.com/"
},
"x-tagGroups": [
{
Expand Down

0 comments on commit 0079ff1

Please sign in to comment.