"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.instanceOfTerraformCloudConfigureRequest = instanceOfTerraformCloudConfigureRequest; exports.TerraformCloudConfigureRequestFromJSON = TerraformCloudConfigureRequestFromJSON; exports.TerraformCloudConfigureRequestFromJSONTyped = TerraformCloudConfigureRequestFromJSONTyped; exports.TerraformCloudConfigureRequestToJSON = TerraformCloudConfigureRequestToJSON; exports.TerraformCloudConfigureRequestToJSONTyped = TerraformCloudConfigureRequestToJSONTyped; /** * Check if a given object implements the TerraformCloudConfigureRequest interface. */ function instanceOfTerraformCloudConfigureRequest(value) { if (!('token' in value) || value['token'] === undefined) return false; return true; } function TerraformCloudConfigureRequestFromJSON(json) { return TerraformCloudConfigureRequestFromJSONTyped(json, false); } function TerraformCloudConfigureRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'address': json['address'] == null ? undefined : json['address'], 'basePath': json['base_path'] == null ? undefined : json['base_path'], 'token': json['token'], }; } function TerraformCloudConfigureRequestToJSON(json) { return TerraformCloudConfigureRequestToJSONTyped(json, false); } function TerraformCloudConfigureRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'address': value['address'], 'base_path': value['basePath'], 'token': value['token'], }; }