mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-25 16:41:08 +02:00
* removes dist from api-client gitignore * ignores api-client/dist directory for eslint and prettier * builds api client
69 lines
3.4 KiB
JavaScript
69 lines
3.4 KiB
JavaScript
"use strict";
|
|
/* 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.
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.instanceOfDatabaseConfigureConnectionRequest = instanceOfDatabaseConfigureConnectionRequest;
|
|
exports.DatabaseConfigureConnectionRequestFromJSON = DatabaseConfigureConnectionRequestFromJSON;
|
|
exports.DatabaseConfigureConnectionRequestFromJSONTyped = DatabaseConfigureConnectionRequestFromJSONTyped;
|
|
exports.DatabaseConfigureConnectionRequestToJSON = DatabaseConfigureConnectionRequestToJSON;
|
|
exports.DatabaseConfigureConnectionRequestToJSONTyped = DatabaseConfigureConnectionRequestToJSONTyped;
|
|
/**
|
|
* Check if a given object implements the DatabaseConfigureConnectionRequest interface.
|
|
*/
|
|
function instanceOfDatabaseConfigureConnectionRequest(value) {
|
|
return true;
|
|
}
|
|
function DatabaseConfigureConnectionRequestFromJSON(json) {
|
|
return DatabaseConfigureConnectionRequestFromJSONTyped(json, false);
|
|
}
|
|
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'],
|
|
};
|
|
}
|
|
function DatabaseConfigureConnectionRequestToJSON(json) {
|
|
return DatabaseConfigureConnectionRequestToJSONTyped(json, false);
|
|
}
|
|
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'],
|
|
};
|
|
}
|