mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 06:37:02 +02:00
56 lines
2.2 KiB
JavaScript
56 lines
2.2 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.21.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
/**
|
|
* Check if a given object implements the InitializeRequest interface.
|
|
*/
|
|
export function instanceOfInitializeRequest(value) {
|
|
return true;
|
|
}
|
|
export function InitializeRequestFromJSON(json) {
|
|
return InitializeRequestFromJSONTyped(json, false);
|
|
}
|
|
export function InitializeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'pgpKeys': json['pgp_keys'] == null ? undefined : json['pgp_keys'],
|
|
'recoveryPgpKeys': json['recovery_pgp_keys'] == null ? undefined : json['recovery_pgp_keys'],
|
|
'recoveryShares': json['recovery_shares'] == null ? undefined : json['recovery_shares'],
|
|
'recoveryThreshold': json['recovery_threshold'] == null ? undefined : json['recovery_threshold'],
|
|
'rootTokenPgpKey': json['root_token_pgp_key'] == null ? undefined : json['root_token_pgp_key'],
|
|
'secretShares': json['secret_shares'] == null ? undefined : json['secret_shares'],
|
|
'secretThreshold': json['secret_threshold'] == null ? undefined : json['secret_threshold'],
|
|
'storedShares': json['stored_shares'] == null ? undefined : json['stored_shares'],
|
|
};
|
|
}
|
|
export function InitializeRequestToJSON(json) {
|
|
return InitializeRequestToJSONTyped(json, false);
|
|
}
|
|
export function InitializeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'pgp_keys': value['pgpKeys'],
|
|
'recovery_pgp_keys': value['recoveryPgpKeys'],
|
|
'recovery_shares': value['recoveryShares'],
|
|
'recovery_threshold': value['recoveryThreshold'],
|
|
'root_token_pgp_key': value['rootTokenPgpKey'],
|
|
'secret_shares': value['secretShares'],
|
|
'secret_threshold': value['secretThreshold'],
|
|
'stored_shares': value['storedShares'],
|
|
};
|
|
}
|