cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
89 lines (81 loc) • 2.18 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';
/**
*
* @export
* @interface AssignedTimeSeries
*/
export interface AssignedTimeSeries {
/**
*
* @type {string}
* @memberof AssignedTimeSeries
*/
officeId?: string;
/**
*
* @type {string}
* @memberof AssignedTimeSeries
*/
timeseriesId?: string;
/**
*
* @type {string}
* @memberof AssignedTimeSeries
*/
aliasId?: string;
/**
*
* @type {string}
* @memberof AssignedTimeSeries
*/
refTsId?: string;
/**
*
* @type {number}
* @memberof AssignedTimeSeries
*/
attribute?: number;
}
export function AssignedTimeSeriesFromJSON(json: any): AssignedTimeSeries {
return AssignedTimeSeriesFromJSONTyped(json, false);
}
export function AssignedTimeSeriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignedTimeSeries {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'officeId': !exists(json, 'officeId') ? undefined : json['officeId'],
'timeseriesId': !exists(json, 'timeseriesId') ? undefined : json['timeseriesId'],
'aliasId': !exists(json, 'aliasId') ? undefined : json['aliasId'],
'refTsId': !exists(json, 'refTsId') ? undefined : json['refTsId'],
'attribute': !exists(json, 'attribute') ? undefined : json['attribute'],
};
}
export function AssignedTimeSeriesToJSON(value?: AssignedTimeSeries | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'officeId': value.officeId,
'timeseriesId': value.timeseriesId,
'aliasId': value.aliasId,
'refTsId': value.refTsId,
'attribute': value.attribute,
};
}