mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-29 10:31:08 +02:00
* removes dist from api-client gitignore * ignores api-client/dist directory for eslint and prettier * builds api client
60 lines
2.1 KiB
JavaScript
60 lines
2.1 KiB
JavaScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* HashiCorp Vault API
|
|
* HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`.
|
|
*
|
|
* The version of the OpenAPI document: 1.20.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
/**
|
|
* @export
|
|
* @enum {string}
|
|
*/
|
|
export var PkiGenerateInternalKeyRequestKeyTypeEnum;
|
|
(function (PkiGenerateInternalKeyRequestKeyTypeEnum) {
|
|
PkiGenerateInternalKeyRequestKeyTypeEnum["RSA"] = "rsa";
|
|
PkiGenerateInternalKeyRequestKeyTypeEnum["EC"] = "ec";
|
|
PkiGenerateInternalKeyRequestKeyTypeEnum["ED25519"] = "ed25519";
|
|
})(PkiGenerateInternalKeyRequestKeyTypeEnum || (PkiGenerateInternalKeyRequestKeyTypeEnum = {}));
|
|
/**
|
|
* Check if a given object implements the PkiGenerateInternalKeyRequest interface.
|
|
*/
|
|
export function instanceOfPkiGenerateInternalKeyRequest(value) {
|
|
return true;
|
|
}
|
|
export function PkiGenerateInternalKeyRequestFromJSON(json) {
|
|
return PkiGenerateInternalKeyRequestFromJSONTyped(json, false);
|
|
}
|
|
export function PkiGenerateInternalKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
keyBits: json['key_bits'] == null ? undefined : json['key_bits'],
|
|
keyName: json['key_name'] == null ? undefined : json['key_name'],
|
|
keyType: json['key_type'] == null ? undefined : json['key_type'],
|
|
managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'],
|
|
managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'],
|
|
};
|
|
}
|
|
export function PkiGenerateInternalKeyRequestToJSON(json) {
|
|
return PkiGenerateInternalKeyRequestToJSONTyped(json, false);
|
|
}
|
|
export function PkiGenerateInternalKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
key_bits: value['keyBits'],
|
|
key_name: value['keyName'],
|
|
key_type: value['keyType'],
|
|
managed_key_id: value['managedKeyId'],
|
|
managed_key_name: value['managedKeyName'],
|
|
};
|
|
}
|