"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'], }; }