/* 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 OidcWriteRoleRequest interface. */ export function instanceOfOidcWriteRoleRequest(value) { if (!('key' in value) || value['key'] === undefined) return false; return true; } export function OidcWriteRoleRequestFromJSON(json) { return OidcWriteRoleRequestFromJSONTyped(json, false); } export function OidcWriteRoleRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { clientId: json['client_id'] == null ? undefined : json['client_id'], key: json['key'], template: json['template'] == null ? undefined : json['template'], ttl: json['ttl'] == null ? undefined : json['ttl'], }; } export function OidcWriteRoleRequestToJSON(json) { return OidcWriteRoleRequestToJSONTyped(json, false); } export function OidcWriteRoleRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { client_id: value['clientId'], key: value['key'], template: value['template'], ttl: value['ttl'], }; }