-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAWSAuthRequest.ts
More file actions
68 lines (60 loc) · 4.32 KB
/
AWSAuthRequest.ts
File metadata and controls
68 lines (60 loc) · 4.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* tslint:disable */
/* eslint-disable */
/**
* 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.28.21
* Contact: support@humanitec.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime.js';
/**
* Credentials to authenticate AWS Secret Manager.
* @export
* @interface AWSAuthRequest
*/
export interface AWSAuthRequest {
/**
*
* @type {string}
* @memberof AWSAuthRequest
*/
access_key_id?: string;
/**
*
* @type {string}
* @memberof AWSAuthRequest
*/
secret_access_key?: string;
}
/**
* Check if a given object implements the AWSAuthRequest interface.
*/
export function instanceOfAWSAuthRequest(value: object): boolean {
return true;
}
export function AWSAuthRequestFromJSON(json: any): AWSAuthRequest {
return AWSAuthRequestFromJSONTyped(json, false);
}
export function AWSAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AWSAuthRequest {
if (json == null) {
return json;
}
return {
'access_key_id': json['access_key_id'] == null ? undefined : json['access_key_id'],
'secret_access_key': json['secret_access_key'] == null ? undefined : json['secret_access_key'],
};
}
export function AWSAuthRequestToJSON(value?: AWSAuthRequest | null): any {
if (value == null) {
return value;
}
return {
'access_key_id': value['access_key_id'],
'secret_access_key': value['secret_access_key'],
};
}