UNPKG

@apideck/node

Version:
132 lines (126 loc) 3.41 kB
/* tslint:disable */ /* eslint-disable */ /** * Apideck * The Apideck OpenAPI Spec: SDK Optimized * * The version of the OpenAPI document: 10.13.0 * Contact: support@apideck.com * * 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 } from '../runtime' import { PassThroughBody, PassThroughBodyFromJSON, PassThroughBodyToJSON } from './PassThroughBody' /** * * @export * @interface DriveGroup */ export interface DriveGroup { /** * A unique identifier for an object. * @type {string} * @memberof DriveGroup */ readonly id: string /** * The name of the drive group * @type {string} * @memberof DriveGroup */ name: string /** * The display name of the drive group * @type {string} * @memberof DriveGroup */ display_name?: string | null /** * A description of the object. * @type {string} * @memberof DriveGroup */ description?: string | null /** * When custom mappings are configured on the resource, the result is included here. * @type {object} * @memberof DriveGroup */ readonly custom_mappings?: object | null /** * The user who last updated the object. * @type {string} * @memberof DriveGroup */ readonly updated_by?: string | null /** * The user who created the object. * @type {string} * @memberof DriveGroup */ readonly created_by?: string | null /** * The date and time when the object was last updated. * @type {Date} * @memberof DriveGroup */ readonly updated_at?: Date | null /** * The date and time when the object was created. * @type {Date} * @memberof DriveGroup */ readonly created_at?: Date | null /** * * @type {PassThroughBody} * @memberof DriveGroup */ pass_through?: PassThroughBody } export function DriveGroupFromJSON(json: any): DriveGroup { return DriveGroupFromJSONTyped(json, false) } export function DriveGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): DriveGroup { if (json === undefined || json === null) { return json } return { id: json['id'], name: json['name'], display_name: !exists(json, 'display_name') ? undefined : json['display_name'], description: !exists(json, 'description') ? undefined : json['description'], custom_mappings: !exists(json, 'custom_mappings') ? undefined : json['custom_mappings'], updated_by: !exists(json, 'updated_by') ? undefined : json['updated_by'], created_by: !exists(json, 'created_by') ? undefined : json['created_by'], updated_at: !exists(json, 'updated_at') ? undefined : json['updated_at'] === null ? null : new Date(json['updated_at']), created_at: !exists(json, 'created_at') ? undefined : json['created_at'] === null ? null : new Date(json['created_at']), pass_through: !exists(json, 'pass_through') ? undefined : PassThroughBodyFromJSON(json['pass_through']) } } export function DriveGroupToJSON(value?: DriveGroup | null): any { if (value === undefined) { return undefined } if (value === null) { return null } return { name: value.name, display_name: value.display_name, description: value.description, pass_through: PassThroughBodyToJSON(value.pass_through) } }