"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * Octane API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateMeterArgsToJSON = exports.CreateMeterArgsFromJSONTyped = exports.CreateMeterArgsFromJSON = exports.CreateMeterArgsReportingMethodEnum = exports.CreateMeterArgsDataTypeEnum = exports.CreateMeterArgsAggregationEnum = exports.CreateMeterArgsMeterTypeEnum = void 0;
const runtime_1 = require("../runtime");
/**
* @export
* @enum {string}
*/
var CreateMeterArgsMeterTypeEnum;
(function (CreateMeterArgsMeterTypeEnum) {
    CreateMeterArgsMeterTypeEnum["Counter"] = "COUNTER";
    CreateMeterArgsMeterTypeEnum["Gauge"] = "GAUGE";
})(CreateMeterArgsMeterTypeEnum = exports.CreateMeterArgsMeterTypeEnum || (exports.CreateMeterArgsMeterTypeEnum = {})); /**
* @export
* @enum {string}
*/
var CreateMeterArgsAggregationEnum;
(function (CreateMeterArgsAggregationEnum) {
    CreateMeterArgsAggregationEnum["Sum"] = "SUM";
    CreateMeterArgsAggregationEnum["Max"] = "MAX";
    CreateMeterArgsAggregationEnum["Min"] = "MIN";
    CreateMeterArgsAggregationEnum["Avg"] = "AVG";
    CreateMeterArgsAggregationEnum["Count"] = "COUNT";
    CreateMeterArgsAggregationEnum["TimeWeightedSum"] = "TIME_WEIGHTED_SUM";
    CreateMeterArgsAggregationEnum["Latest"] = "LATEST";
})(CreateMeterArgsAggregationEnum = exports.CreateMeterArgsAggregationEnum || (exports.CreateMeterArgsAggregationEnum = {})); /**
* @export
* @enum {string}
*/
var CreateMeterArgsDataTypeEnum;
(function (CreateMeterArgsDataTypeEnum) {
    CreateMeterArgsDataTypeEnum["Continuous"] = "CONTINUOUS";
    CreateMeterArgsDataTypeEnum["Discrete"] = "DISCRETE";
})(CreateMeterArgsDataTypeEnum = exports.CreateMeterArgsDataTypeEnum || (exports.CreateMeterArgsDataTypeEnum = {})); /**
* @export
* @enum {string}
*/
var CreateMeterArgsReportingMethodEnum;
(function (CreateMeterArgsReportingMethodEnum) {
    CreateMeterArgsReportingMethodEnum["Delta"] = "DELTA";
    CreateMeterArgsReportingMethodEnum["Total"] = "TOTAL";
})(CreateMeterArgsReportingMethodEnum = exports.CreateMeterArgsReportingMethodEnum || (exports.CreateMeterArgsReportingMethodEnum = {}));
function CreateMeterArgsFromJSON(json) {
    return CreateMeterArgsFromJSONTyped(json, false);
}
exports.CreateMeterArgsFromJSON = CreateMeterArgsFromJSON;
function CreateMeterArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'meterType': !(0, runtime_1.exists)(json, 'meter_type') ? undefined : json['meter_type'],
        'aggregation': !(0, runtime_1.exists)(json, 'aggregation') ? undefined : json['aggregation'],
        'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
        'eventName': !(0, runtime_1.exists)(json, 'event_name') ? undefined : json['event_name'],
        'dataType': !(0, runtime_1.exists)(json, 'data_type') ? undefined : json['data_type'],
        'isIncremental': !(0, runtime_1.exists)(json, 'is_incremental') ? undefined : json['is_incremental'],
        'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
        'reportingMethod': !(0, runtime_1.exists)(json, 'reporting_method') ? undefined : json['reporting_method'],
        'unitName': !(0, runtime_1.exists)(json, 'unit_name') ? undefined : json['unit_name'],
        'primaryLabels': !(0, runtime_1.exists)(json, 'primary_labels') ? undefined : json['primary_labels'],
        'expectedLabels': !(0, runtime_1.exists)(json, 'expected_labels') ? undefined : json['expected_labels'],
        'displayName': !(0, runtime_1.exists)(json, 'display_name') ? undefined : json['display_name'],
    };
}
exports.CreateMeterArgsFromJSONTyped = CreateMeterArgsFromJSONTyped;
function CreateMeterArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'meter_type': value.meterType,
        'aggregation': value.aggregation,
        'name': value.name,
        'event_name': value.eventName,
        'data_type': value.dataType,
        'is_incremental': value.isIncremental,
        'description': value.description,
        'reporting_method': value.reportingMethod,
        'unit_name': value.unitName,
        'primary_labels': value.primaryLabels,
        'expected_labels': value.expectedLabels,
        'display_name': value.displayName,
    };
}
exports.CreateMeterArgsToJSON = CreateMeterArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3JlYXRlTWV0ZXJBcmdzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvZGVnZW4vbW9kZWxzL0NyZWF0ZU1ldGVyQXJncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjtBQUNwQjs7Ozs7Ozs7OztHQVVHOzs7QUFFSCx3Q0FBK0M7QUFpRi9DOzs7RUFHRTtBQUNGLElBQVksNEJBR1g7QUFIRCxXQUFZLDRCQUE0QjtJQUNwQyxtREFBbUIsQ0FBQTtJQUNuQiwrQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFIVyw0QkFBNEIsR0FBNUIsb0NBQTRCLEtBQTVCLG9DQUE0QixRQUd2QyxDQUFBOzs7RUFHQztBQUNGLElBQVksOEJBUVg7QUFSRCxXQUFZLDhCQUE4QjtJQUN0Qyw2Q0FBVyxDQUFBO0lBQ1gsNkNBQVcsQ0FBQTtJQUNYLDZDQUFXLENBQUE7SUFDWCw2Q0FBVyxDQUFBO0lBQ1gsaURBQWUsQ0FBQTtJQUNmLHVFQUFxQyxDQUFBO0lBQ3JDLG1EQUFpQixDQUFBO0FBQ3JCLENBQUMsRUFSVyw4QkFBOEIsR0FBOUIsc0NBQThCLEtBQTlCLHNDQUE4QixRQVF6QyxDQUFBOzs7RUFHQztBQUNGLElBQVks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