vault/ui/api-client/dist/models/KvV2PatchRequest.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

53 lines
1.7 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.instanceOfKvV2PatchRequest = instanceOfKvV2PatchRequest;
exports.KvV2PatchRequestFromJSON = KvV2PatchRequestFromJSON;
exports.KvV2PatchRequestFromJSONTyped = KvV2PatchRequestFromJSONTyped;
exports.KvV2PatchRequestToJSON = KvV2PatchRequestToJSON;
exports.KvV2PatchRequestToJSONTyped = KvV2PatchRequestToJSONTyped;
/**
* Check if a given object implements the KvV2PatchRequest interface.
*/
function instanceOfKvV2PatchRequest(value) {
return true;
}
function KvV2PatchRequestFromJSON(json) {
return KvV2PatchRequestFromJSONTyped(json, false);
}
function KvV2PatchRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : json['data'],
'options': json['options'] == null ? undefined : json['options'],
'version': json['version'] == null ? undefined : json['version'],
};
}
function KvV2PatchRequestToJSON(json) {
return KvV2PatchRequestToJSONTyped(json, false);
}
function KvV2PatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'data': value['data'],
'options': value['options'],
'version': value['version'],
};
}