mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
62 lines
2.9 KiB
JavaScript
62 lines
2.9 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 DatabaseConfigureConnectionRequest interface.
|
|
*/
|
|
export function instanceOfDatabaseConfigureConnectionRequest(value) {
|
|
return true;
|
|
}
|
|
export function DatabaseConfigureConnectionRequestFromJSON(json) {
|
|
return DatabaseConfigureConnectionRequestFromJSONTyped(json, false);
|
|
}
|
|
export function DatabaseConfigureConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'allowedRoles': json['allowed_roles'] == null ? undefined : json['allowed_roles'],
|
|
'disableAutomatedRotation': json['disable_automated_rotation'] == null ? undefined : json['disable_automated_rotation'],
|
|
'passwordPolicy': json['password_policy'] == null ? undefined : json['password_policy'],
|
|
'pluginName': json['plugin_name'] == null ? undefined : json['plugin_name'],
|
|
'pluginVersion': json['plugin_version'] == null ? undefined : json['plugin_version'],
|
|
'rootRotationStatements': json['root_rotation_statements'] == null ? undefined : json['root_rotation_statements'],
|
|
'rotationPeriod': json['rotation_period'] == null ? undefined : json['rotation_period'],
|
|
'rotationSchedule': json['rotation_schedule'] == null ? undefined : json['rotation_schedule'],
|
|
'rotationWindow': json['rotation_window'] == null ? undefined : json['rotation_window'],
|
|
'skipStaticRoleImportRotation': json['skip_static_role_import_rotation'] == null ? undefined : json['skip_static_role_import_rotation'],
|
|
'verifyConnection': json['verify_connection'] == null ? undefined : json['verify_connection'],
|
|
};
|
|
}
|
|
export function DatabaseConfigureConnectionRequestToJSON(json) {
|
|
return DatabaseConfigureConnectionRequestToJSONTyped(json, false);
|
|
}
|
|
export function DatabaseConfigureConnectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'allowed_roles': value['allowedRoles'],
|
|
'disable_automated_rotation': value['disableAutomatedRotation'],
|
|
'password_policy': value['passwordPolicy'],
|
|
'plugin_name': value['pluginName'],
|
|
'plugin_version': value['pluginVersion'],
|
|
'root_rotation_statements': value['rootRotationStatements'],
|
|
'rotation_period': value['rotationPeriod'],
|
|
'rotation_schedule': value['rotationSchedule'],
|
|
'rotation_window': value['rotationWindow'],
|
|
'skip_static_role_import_rotation': value['skipStaticRoleImportRotation'],
|
|
'verify_connection': value['verifyConnection'],
|
|
};
|
|
}
|