vault/ui/api-client/dist/esm/models/EntityMergeRequest.js

48 lines
1.6 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 EntityMergeRequest interface.
*/
export function instanceOfEntityMergeRequest(value) {
return true;
}
export function EntityMergeRequestFromJSON(json) {
return EntityMergeRequestFromJSONTyped(json, false);
}
export function EntityMergeRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'conflictingAliasIdsToKeep': json['conflicting_alias_ids_to_keep'] == null ? undefined : json['conflicting_alias_ids_to_keep'],
'force': json['force'] == null ? undefined : json['force'],
'fromEntityIds': json['from_entity_ids'] == null ? undefined : json['from_entity_ids'],
'toEntityId': json['to_entity_id'] == null ? undefined : json['to_entity_id'],
};
}
export function EntityMergeRequestToJSON(json) {
return EntityMergeRequestToJSONTyped(json, false);
}
export function EntityMergeRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'conflicting_alias_ids_to_keep': value['conflictingAliasIdsToKeep'],
'force': value['force'],
'from_entity_ids': value['fromEntityIds'],
'to_entity_id': value['toEntityId'],
};
}