vault/ui/api-client/dist/models/KvV2PatchMetadataPathRequest.js
Jordan Reimer d90653042d
[UI] API Client Update - Patch Support (#30619)
* adds patch endpoints to api client and missing params for sync

* adds namespace param to sync activation api client method
2025-05-14 11:30:45 -06:00

55 lines
2.2 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.instanceOfKvV2PatchMetadataPathRequest = instanceOfKvV2PatchMetadataPathRequest;
exports.KvV2PatchMetadataPathRequestFromJSON = KvV2PatchMetadataPathRequestFromJSON;
exports.KvV2PatchMetadataPathRequestFromJSONTyped = KvV2PatchMetadataPathRequestFromJSONTyped;
exports.KvV2PatchMetadataPathRequestToJSON = KvV2PatchMetadataPathRequestToJSON;
exports.KvV2PatchMetadataPathRequestToJSONTyped = KvV2PatchMetadataPathRequestToJSONTyped;
/**
* Check if a given object implements the KvV2PatchMetadataPathRequest interface.
*/
function instanceOfKvV2PatchMetadataPathRequest(value) {
return true;
}
function KvV2PatchMetadataPathRequestFromJSON(json) {
return KvV2PatchMetadataPathRequestFromJSONTyped(json, false);
}
function KvV2PatchMetadataPathRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'casRequired': json['cas_required'] == null ? undefined : json['cas_required'],
'customMetadata': json['custom_metadata'] == null ? undefined : json['custom_metadata'],
'deleteVersionAfter': json['delete_version_after'] == null ? undefined : json['delete_version_after'],
'maxVersions': json['max_versions'] == null ? undefined : json['max_versions'],
};
}
function KvV2PatchMetadataPathRequestToJSON(json) {
return KvV2PatchMetadataPathRequestToJSONTyped(json, false);
}
function KvV2PatchMetadataPathRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'cas_required': value['casRequired'],
'custom_metadata': value['customMetadata'],
'delete_version_after': value['deleteVersionAfter'],
'max_versions': value['maxVersions'],
};
}