mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 22:57:02 +02:00
* removes dist from api-client gitignore * ignores api-client/dist directory for eslint and prettier * builds api client
52 lines
2.0 KiB
JavaScript
52 lines
2.0 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.
|
|
*/
|
|
/**
|
|
* Check if a given object implements the SystemWriteReplicationPerformanceSecondaryEnableRequest interface.
|
|
*/
|
|
export function instanceOfSystemWriteReplicationPerformanceSecondaryEnableRequest(value) {
|
|
return true;
|
|
}
|
|
export function SystemWriteReplicationPerformanceSecondaryEnableRequestFromJSON(json) {
|
|
return SystemWriteReplicationPerformanceSecondaryEnableRequestFromJSONTyped(json, false);
|
|
}
|
|
export function SystemWriteReplicationPerformanceSecondaryEnableRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
caFile: json['ca_file'] == null ? undefined : json['ca_file'],
|
|
caPath: json['ca_path'] == null ? undefined : json['ca_path'],
|
|
clientCertPem: json['client_cert_pem'] == null ? undefined : json['client_cert_pem'],
|
|
clientKeyPem: json['client_key_pem'] == null ? undefined : json['client_key_pem'],
|
|
primaryApiAddr: json['primary_api_addr'] == null ? undefined : json['primary_api_addr'],
|
|
token: json['token'] == null ? undefined : json['token'],
|
|
};
|
|
}
|
|
export function SystemWriteReplicationPerformanceSecondaryEnableRequestToJSON(json) {
|
|
return SystemWriteReplicationPerformanceSecondaryEnableRequestToJSONTyped(json, false);
|
|
}
|
|
export function SystemWriteReplicationPerformanceSecondaryEnableRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
ca_file: value['caFile'],
|
|
ca_path: value['caPath'],
|
|
client_cert_pem: value['clientCertPem'],
|
|
client_key_pem: value['clientKeyPem'],
|
|
primary_api_addr: value['primaryApiAddr'],
|
|
token: value['token'],
|
|
};
|
|
}
|