-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
815876a
commit 3bc0807
Showing
216 changed files
with
581 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Humanitec API | ||
* # Introduction The *Humanitec API* allows you to automate and integrate Humanitec into your developer and operational workflows. The API is a REST based API. It is based around a set of concepts: * Core * External Resources * Sets and Deltas ## Authentication Almost 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. ## Content Types The Humanitec API, unless explicitly specified, only accepts content types of `application/json` and will always return valid `application/json` or an empty response. ## Response Codes ### Success Any response code in the `2xx` range should be regarded as success. | **Code** | **Meaning** | |----------|-------------------------------------| | `200` | Success | | `201` | Success, a new resource was created | | `204` | Success, but no content in response | _Note: We plan to simplify the interface by replacing 201 with 200 status codes._ ### Failure Any 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. | **Code** | **Meaning** | |----------|-----------------------------------------------------------------------------------------------------------------------| | `400` | General error. (Body will contain details) | | `401` | Attempt to access protected resource without `Authorization` Header. | | `403` | The `Bearer` or `JWT` does not grant access to the requested resource. | | `404` | Resource not found. | | `405` | Method not allowed | | `409` | Conflict. Usually indicated a resource with that ID already exists. | | `422` | Unprocessable Entity. The body was not valid JSON, was empty or contained an object different from what was expected. | | `429` | Too many requests - request rate limit has been reached. | | `500` | Internal Error. If it occurs repeatedly, contact support. | | ||
* | ||
* The version of the OpenAPI document: 0.26.27 | ||
* The version of the OpenAPI document: 0.27.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -70,6 +70,7 @@ import type { | |
NewServiceUserRequest, | ||
NodeBodyResponse, | ||
OrganizationResponse, | ||
OutputEntryResponse, | ||
PatchResourceDefinitionRequestRequest, | ||
Pipeline, | ||
PipelineApprovalRequest, | ||
|
@@ -246,6 +247,8 @@ import { | |
NodeBodyResponseToJSON, | ||
OrganizationResponseFromJSON, | ||
OrganizationResponseToJSON, | ||
OutputEntryResponseFromJSON, | ||
OutputEntryResponseToJSON, | ||
PatchResourceDefinitionRequestRequestFromJSON, | ||
PatchResourceDefinitionRequestRequestToJSON, | ||
PipelineFromJSON, | ||
|
@@ -922,6 +925,7 @@ export interface GetSetResourceInputsRequest { | |
orgId: string; | ||
appId: string; | ||
setId: string; | ||
legacy?: boolean; | ||
} | ||
|
||
export interface GetUserRoleInAppRequest { | ||
|
@@ -1262,6 +1266,20 @@ export interface ListWorkloadProfilesRequest { | |
page?: string; | ||
} | ||
|
||
export interface OrgsOrgIdAppsAppIdEnvsEnvIdLogsGetRequest { | ||
orgId: string; | ||
appId: string; | ||
envId: string; | ||
workload_id?: string; | ||
container_id?: string; | ||
deployment_id?: string; | ||
timestamp_from?: string; | ||
timestamp_to?: string; | ||
limit?: string; | ||
asc?: boolean; | ||
invert?: boolean; | ||
} | ||
|
||
export interface OrgsOrgIdAppsAppIdEnvsEnvIdValueSetVersionsGetRequest { | ||
orgId: string; | ||
appId: string; | ||
|
@@ -6115,6 +6133,10 @@ export class PublicApi extends runtime.BaseAPI { | |
|
||
const queryParameters: any = {}; | ||
|
||
if (requestParameters['legacy'] != null) { | ||
queryParameters['legacy'] = requestParameters['legacy']; | ||
} | ||
|
||
const headerParameters: runtime.HTTPHeaders = {}; | ||
|
||
const response = await this.request({ | ||
|
@@ -8583,6 +8605,85 @@ export class PublicApi extends runtime.BaseAPI { | |
return await response.value(); | ||
} | ||
|
||
/** | ||
* Get container log entries for the environment | ||
*/ | ||
async orgsOrgIdAppsAppIdEnvsEnvIdLogsGetRaw(requestParameters: OrgsOrgIdAppsAppIdEnvsEnvIdLogsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OutputEntryResponse>>> { | ||
if (requestParameters['orgId'] == null) { | ||
throw new runtime.RequiredError( | ||
'orgId', | ||
'Required parameter "orgId" was null or undefined when calling orgsOrgIdAppsAppIdEnvsEnvIdLogsGet().' | ||
); | ||
} | ||
|
||
if (requestParameters['appId'] == null) { | ||
throw new runtime.RequiredError( | ||
'appId', | ||
'Required parameter "appId" was null or undefined when calling orgsOrgIdAppsAppIdEnvsEnvIdLogsGet().' | ||
); | ||
} | ||
|
||
if (requestParameters['envId'] == null) { | ||
throw new runtime.RequiredError( | ||
'envId', | ||
'Required parameter "envId" was null or undefined when calling orgsOrgIdAppsAppIdEnvsEnvIdLogsGet().' | ||
); | ||
} | ||
|
||
const queryParameters: any = {}; | ||
|
||
if (requestParameters['workload_id'] != null) { | ||
queryParameters['workload_id'] = requestParameters['workload_id']; | ||
} | ||
|
||
if (requestParameters['container_id'] != null) { | ||
queryParameters['container_id'] = requestParameters['container_id']; | ||
} | ||
|
||
if (requestParameters['deployment_id'] != null) { | ||
queryParameters['deployment_id'] = requestParameters['deployment_id']; | ||
} | ||
|
||
if (requestParameters['timestamp_from'] != null) { | ||
queryParameters['timestamp_from'] = requestParameters['timestamp_from']; | ||
} | ||
|
||
if (requestParameters['timestamp_to'] != null) { | ||
queryParameters['timestamp_to'] = requestParameters['timestamp_to']; | ||
} | ||
|
||
if (requestParameters['limit'] != null) { | ||
queryParameters['limit'] = requestParameters['limit']; | ||
} | ||
|
||
if (requestParameters['asc'] != null) { | ||
queryParameters['asc'] = requestParameters['asc']; | ||
} | ||
|
||
if (requestParameters['invert'] != null) { | ||
queryParameters['invert'] = requestParameters['invert']; | ||
} | ||
|
||
const headerParameters: runtime.HTTPHeaders = {}; | ||
|
||
const response = await this.request({ | ||
path: `/orgs/{orgId}/apps/{appId}/envs/{envId}/logs`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))).replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))).replace(`{${"envId"}}`, encodeURIComponent(String(requestParameters['envId']))), | ||
method: 'GET', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
|
||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OutputEntryResponseFromJSON)); | ||
} | ||
|
||
/** | ||
* Get container log entries for the environment | ||
*/ | ||
async orgsOrgIdAppsAppIdEnvsEnvIdLogsGet(requestParameters: OrgsOrgIdAppsAppIdEnvsEnvIdLogsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OutputEntryResponse>> { | ||
const response = await this.orgsOrgIdAppsAppIdEnvsEnvIdLogsGetRaw(requestParameters, initOverrides); | ||
return await response.value(); | ||
} | ||
|
||
/** | ||
* A new Value Set Version is created on every modification of a Value inside the an Environment of an App. In case this environment has no overrides the response is the same as the App level endpoint. | ||
* List Value Set Versions in an Environment of an App | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Humanitec API | ||
* # Introduction The *Humanitec API* allows you to automate and integrate Humanitec into your developer and operational workflows. The API is a REST based API. It is based around a set of concepts: * Core * External Resources * Sets and Deltas ## Authentication Almost 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. ## Content Types The Humanitec API, unless explicitly specified, only accepts content types of `application/json` and will always return valid `application/json` or an empty response. ## Response Codes ### Success Any response code in the `2xx` range should be regarded as success. | **Code** | **Meaning** | |----------|-------------------------------------| | `200` | Success | | `201` | Success, a new resource was created | | `204` | Success, but no content in response | _Note: We plan to simplify the interface by replacing 201 with 200 status codes._ ### Failure Any 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. | **Code** | **Meaning** | |----------|-----------------------------------------------------------------------------------------------------------------------| | `400` | General error. (Body will contain details) | | `401` | Attempt to access protected resource without `Authorization` Header. | | `403` | The `Bearer` or `JWT` does not grant access to the requested resource. | | `404` | Resource not found. | | `405` | Method not allowed | | `409` | Conflict. Usually indicated a resource with that ID already exists. | | `422` | Unprocessable Entity. The body was not valid JSON, was empty or contained an object different from what was expected. | | `429` | Too many requests - request rate limit has been reached. | | `500` | Internal Error. If it occurs repeatedly, contact support. | | ||
* | ||
* The version of the OpenAPI document: 0.26.27 | ||
* The version of the OpenAPI document: 0.27.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
Oops, something went wrong.