"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.instanceOfRootTokenGenerationInitialize2Response = instanceOfRootTokenGenerationInitialize2Response; exports.RootTokenGenerationInitialize2ResponseFromJSON = RootTokenGenerationInitialize2ResponseFromJSON; exports.RootTokenGenerationInitialize2ResponseFromJSONTyped = RootTokenGenerationInitialize2ResponseFromJSONTyped; exports.RootTokenGenerationInitialize2ResponseToJSON = RootTokenGenerationInitialize2ResponseToJSON; exports.RootTokenGenerationInitialize2ResponseToJSONTyped = RootTokenGenerationInitialize2ResponseToJSONTyped; /** * Check if a given object implements the RootTokenGenerationInitialize2Response interface. */ function instanceOfRootTokenGenerationInitialize2Response(value) { return true; } function RootTokenGenerationInitialize2ResponseFromJSON(json) { return RootTokenGenerationInitialize2ResponseFromJSONTyped(json, false); } function RootTokenGenerationInitialize2ResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { complete: json['complete'] == null ? undefined : json['complete'], encodedRootToken: json['encoded_root_token'] == null ? undefined : json['encoded_root_token'], encodedToken: json['encoded_token'] == null ? undefined : json['encoded_token'], nonce: json['nonce'] == null ? undefined : json['nonce'], otp: json['otp'] == null ? undefined : json['otp'], otpLength: json['otp_length'] == null ? undefined : json['otp_length'], pgpFingerprint: json['pgp_fingerprint'] == null ? undefined : json['pgp_fingerprint'], progress: json['progress'] == null ? undefined : json['progress'], required: json['required'] == null ? undefined : json['required'], started: json['started'] == null ? undefined : json['started'], }; } function RootTokenGenerationInitialize2ResponseToJSON(json) { return RootTokenGenerationInitialize2ResponseToJSONTyped(json, false); } function RootTokenGenerationInitialize2ResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { complete: value['complete'], encoded_root_token: value['encodedRootToken'], encoded_token: value['encodedToken'], nonce: value['nonce'], otp: value['otp'], otp_length: value['otpLength'], pgp_fingerprint: value['pgpFingerprint'], progress: value['progress'], required: value['required'], started: value['started'], }; }