/* tslint:disable */ /* eslint-disable */ /** * Abaco API * Abaco (Actor Based Containers) is an API and distributed computing platform funded by the National Science Foundation to provide Functions-as-a-service to the research computing community. Abaco leverages Docker containers and the Actor Model of Concurrent Computation to provide generic function primitives that are portable, composable and scalable. * * The version of the OpenAPI document: 1 * Contact: cicsupport@tacc.utexas.edu * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface ReqCreateNonce */ export interface ReqCreateNonce { /** * The permission level associated with the nonce. * @type {string} * @memberof ReqCreateNonce */ level?: ReqCreateNonceLevelEnum; /** * Max uses for the nonce; set to -1 for unlimited uses. * @type {number} * @memberof ReqCreateNonce */ max_uses?: number; } /** * @export * @enum {string} */ export enum ReqCreateNonceLevelEnum { Read = 'READ', Write = 'WRITE', Execute = 'EXECUTE' } export function ReqCreateNonceFromJSON(json: any): ReqCreateNonce { return ReqCreateNonceFromJSONTyped(json, false); } export function ReqCreateNonceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqCreateNonce { if ((json === undefined) || (json === null)) { return json; } return { 'level': !exists(json, 'level') ? undefined : json['level'], 'max_uses': !exists(json, 'max_uses') ? undefined : json['max_uses'], }; } export function ReqCreateNonceToJSON(value?: ReqCreateNonce | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'level': value.level, 'max_uses': value.max_uses, }; }