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