vault/ui/api-client/dist/models/GoogleCloudKmsWriteKeyRequest.js
Jordan Reimer 5905f43e1f
[UI] Check-in Built API Client (#29955)
* removes dist from api-client gitignore

* ignores api-client/dist directory for eslint and prettier

* builds api client
2025-03-19 11:50:15 -06:00

61 lines
2.4 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.instanceOfGoogleCloudKmsWriteKeyRequest = instanceOfGoogleCloudKmsWriteKeyRequest;
exports.GoogleCloudKmsWriteKeyRequestFromJSON = GoogleCloudKmsWriteKeyRequestFromJSON;
exports.GoogleCloudKmsWriteKeyRequestFromJSONTyped = GoogleCloudKmsWriteKeyRequestFromJSONTyped;
exports.GoogleCloudKmsWriteKeyRequestToJSON = GoogleCloudKmsWriteKeyRequestToJSON;
exports.GoogleCloudKmsWriteKeyRequestToJSONTyped = GoogleCloudKmsWriteKeyRequestToJSONTyped;
/**
* Check if a given object implements the GoogleCloudKmsWriteKeyRequest interface.
*/
function instanceOfGoogleCloudKmsWriteKeyRequest(value) {
return true;
}
function GoogleCloudKmsWriteKeyRequestFromJSON(json) {
return GoogleCloudKmsWriteKeyRequestFromJSONTyped(json, false);
}
function GoogleCloudKmsWriteKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
algorithm: json['algorithm'] == null ? undefined : json['algorithm'],
cryptoKey: json['crypto_key'] == null ? undefined : json['crypto_key'],
keyRing: json['key_ring'] == null ? undefined : json['key_ring'],
labels: json['labels'] == null ? undefined : json['labels'],
protectionLevel: json['protection_level'] == null ? undefined : json['protection_level'],
purpose: json['purpose'] == null ? undefined : json['purpose'],
rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'],
};
}
function GoogleCloudKmsWriteKeyRequestToJSON(json) {
return GoogleCloudKmsWriteKeyRequestToJSONTyped(json, false);
}
function GoogleCloudKmsWriteKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
algorithm: value['algorithm'],
crypto_key: value['cryptoKey'],
key_ring: value['keyRing'],
labels: value['labels'],
protection_level: value['protectionLevel'],
purpose: value['purpose'],
rotation_period: value['rotationPeriod'],
};
}