vault/ui/api-client/dist/models/SystemWriteReplicationPrimaryEnableRequest.js

49 lines
2.0 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.instanceOfSystemWriteReplicationPrimaryEnableRequest = instanceOfSystemWriteReplicationPrimaryEnableRequest;
exports.SystemWriteReplicationPrimaryEnableRequestFromJSON = SystemWriteReplicationPrimaryEnableRequestFromJSON;
exports.SystemWriteReplicationPrimaryEnableRequestFromJSONTyped = SystemWriteReplicationPrimaryEnableRequestFromJSONTyped;
exports.SystemWriteReplicationPrimaryEnableRequestToJSON = SystemWriteReplicationPrimaryEnableRequestToJSON;
exports.SystemWriteReplicationPrimaryEnableRequestToJSONTyped = SystemWriteReplicationPrimaryEnableRequestToJSONTyped;
/**
* Check if a given object implements the SystemWriteReplicationPrimaryEnableRequest interface.
*/
function instanceOfSystemWriteReplicationPrimaryEnableRequest(value) {
return true;
}
function SystemWriteReplicationPrimaryEnableRequestFromJSON(json) {
return SystemWriteReplicationPrimaryEnableRequestFromJSONTyped(json, false);
}
function SystemWriteReplicationPrimaryEnableRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'primaryClusterAddr': json['primary_cluster_addr'] == null ? undefined : json['primary_cluster_addr'],
};
}
function SystemWriteReplicationPrimaryEnableRequestToJSON(json) {
return SystemWriteReplicationPrimaryEnableRequestToJSONTyped(json, false);
}
function SystemWriteReplicationPrimaryEnableRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'primary_cluster_addr': value['primaryClusterAddr'],
};
}