cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
120 lines (111 loc) • 2.86 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* CWMS Data API
* CWMS REST API for Data Retrieval
*
* The version of the OpenAPI document: 2.4.0-2026.3.16
*
*
* 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';
import {
PoolNameType,
PoolNameTypeFromJSON,
PoolNameTypeFromJSONTyped,
PoolNameTypeToJSON,
} from './PoolNameType';
/**
* List of retrieved pools
* @export
* @interface Pool
*/
export interface Pool {
/**
*
* @type {PoolNameType}
* @memberof Pool
*/
poolName?: PoolNameType;
/**
*
* @type {string}
* @memberof Pool
*/
projectId?: string;
/**
*
* @type {string}
* @memberof Pool
*/
bottomLevelId?: string;
/**
*
* @type {string}
* @memberof Pool
*/
topLevelId?: string;
/**
*
* @type {boolean}
* @memberof Pool
*/
implicit?: boolean;
/**
*
* @type {number}
* @memberof Pool
*/
attribute?: number;
/**
*
* @type {string}
* @memberof Pool
*/
description?: string;
/**
*
* @type {string}
* @memberof Pool
*/
clobText?: string;
}
export function PoolFromJSON(json: any): Pool {
return PoolFromJSONTyped(json, false);
}
export function PoolFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pool {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'poolName': !exists(json, 'poolName') ? undefined : PoolNameTypeFromJSON(json['poolName']),
'projectId': !exists(json, 'projectId') ? undefined : json['projectId'],
'bottomLevelId': !exists(json, 'bottomLevelId') ? undefined : json['bottomLevelId'],
'topLevelId': !exists(json, 'topLevelId') ? undefined : json['topLevelId'],
'implicit': !exists(json, 'implicit') ? undefined : json['implicit'],
'attribute': !exists(json, 'attribute') ? undefined : json['attribute'],
'description': !exists(json, 'description') ? undefined : json['description'],
'clobText': !exists(json, 'clobText') ? undefined : json['clobText'],
};
}
export function PoolToJSON(value?: Pool | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'poolName': PoolNameTypeToJSON(value.poolName),
'projectId': value.projectId,
'bottomLevelId': value.bottomLevelId,
'topLevelId': value.topLevelId,
'implicit': value.implicit,
'attribute': value.attribute,
'description': value.description,
'clobText': value.clobText,
};
}