Skip to content

Commit cdb8144

Browse files
HumanitecBotgithub-actions[bot]
authored andcommitted
feat: update client
1 parent f317bf0 commit cdb8144

File tree

2 files changed

+195
-1
lines changed

2 files changed

+195
-1
lines changed

client/client.gen.go

Lines changed: 142 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/openapi.json

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.0.0",
33
"info": {
44
"title": "Humanitec API",
5-
"version": "0.28.12",
5+
"version": "0.28.13",
66
"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",
77
"contact": {
88
"name": "Humanitec Support",
@@ -10645,6 +10645,42 @@
1064510645
}
1064610646
}
1064710647
},
10648+
"/orgs/{orgId}/users/{userId}/perms": {
10649+
"get": {
10650+
"tags": [
10651+
"UserRole",
10652+
"public"
10653+
],
10654+
"summary": "Get the permissions of a User or Group on the objects in an Organization",
10655+
"operationId": "getSubjectPermsInOrg",
10656+
"parameters": [
10657+
{
10658+
"$ref": "#/components/parameters/orgIdPathParam"
10659+
},
10660+
{
10661+
"$ref": "#/components/parameters/userIdPathParam"
10662+
}
10663+
],
10664+
"responses": {
10665+
"200": {
10666+
"description": "The information about the User or the Group.\n\n",
10667+
"content": {
10668+
"application/json": {
10669+
"schema": {
10670+
"$ref": "#/components/schemas/SubjectPermissions"
10671+
}
10672+
}
10673+
}
10674+
},
10675+
"403": {
10676+
"$ref": "#/components/responses/403Forbidden"
10677+
},
10678+
"404": {
10679+
"$ref": "#/components/responses/404NotFound"
10680+
}
10681+
}
10682+
}
10683+
},
1064810684
"/users/{userId}/tokens": {
1064910685
"get": {
1065010686
"tags": [
@@ -20579,6 +20615,22 @@
2057920615
"orgViewer"
2058020616
]
2058120617
},
20618+
"SubjectPermissions": {
20619+
"description": "Maps of objects and permissions the subject holds on them.",
20620+
"type": "object",
20621+
"properties": {
20622+
"objects": {
20623+
"type": "object",
20624+
"additionalProperties": {
20625+
"$ref": "#/components/schemas/Permissions"
20626+
}
20627+
}
20628+
},
20629+
"required": [
20630+
"objects"
20631+
],
20632+
"additionalProperties": false
20633+
},
2058220634
"Permissions": {
2058320635
"description": "List of permissions.",
2058420636
"properties": {

0 commit comments

Comments
 (0)