Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | /* 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. */ import { exists, mapValues } from '../runtime'; import { MeteredComponentLabelLimit, MeteredComponentLabelLimitFromJSON, MeteredComponentLabelLimitFromJSONTyped, MeteredComponentLabelLimitToJSON, } from './MeteredComponentLabelLimit'; import { PriceScheme, PriceSchemeFromJSON, PriceSchemeFromJSONTyped, PriceSchemeToJSON, } from './PriceScheme'; /** * * @export * @interface MeteredComponent */ export interface MeteredComponent { /** * * @type {string} * @memberof MeteredComponent */ meterName: string; /** * * @type {string} * @memberof MeteredComponent */ meterDisplayName: string; /** * * @type {PriceScheme} * @memberof MeteredComponent */ priceScheme: PriceScheme; /** * Limit on the usage for the meter. * @type {number} * @memberof MeteredComponent */ limit?: number | null; /** * * @type {Array<MeteredComponentLabelLimit>} * @memberof MeteredComponent */ labelLimits: Array<MeteredComponentLabelLimit>; /** * Name to be used on invoice. * @type {string} * @memberof MeteredComponent */ displayName?: string | null; /** * External facing unique identifier of a metered component * @type {string} * @memberof MeteredComponent */ externalUuid?: string; /** * Minimum charge for the metered component * @type {number} * @memberof MeteredComponent */ minimumCharge?: number | null; /** * Minimum charge frequency (as a multiple of the price plan period) for the metered component * @type {number} * @memberof MeteredComponent */ minimumChargeFrequency?: number | null; /** * Watermark value under which the meter should not be charged. Only applicable to meters with 'time_weighted' aggregation. * @type {number} * @memberof MeteredComponent */ watermark?: number | null; } export function MeteredComponentFromJSON(json: any): MeteredComponent { return MeteredComponentFromJSONTyped(json, false); } export function MeteredComponentFromJSONTyped(json: any, ignoreDiscriminator: boolean): MeteredComponent { if ((json === undefined) || (json === null)) { return json; } return { 'meterName': json['meter_name'], 'meterDisplayName': json['meter_display_name'], 'priceScheme': PriceSchemeFromJSON(json['price_scheme']), 'limit': !exists(json, 'limit') ? undefined : json['limit'], 'labelLimits': ((json['label_limits'] as Array<any>).map(MeteredComponentLabelLimitFromJSON)), 'displayName': !exists(json, 'display_name') ? undefined : json['display_name'], 'externalUuid': !exists(json, 'external_uuid') ? undefined : json['external_uuid'], 'minimumCharge': !exists(json, 'minimum_charge') ? undefined : json['minimum_charge'], 'minimumChargeFrequency': !exists(json, 'minimum_charge_frequency') ? undefined : json['minimum_charge_frequency'], 'watermark': !exists(json, 'watermark') ? undefined : json['watermark'], }; } export function MeteredComponentToJSON(value?: MeteredComponent | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'meter_name': value.meterName, 'meter_display_name': value.meterDisplayName, 'price_scheme': PriceSchemeToJSON(value.priceScheme), 'limit': value.limit, 'label_limits': ((value.labelLimits as Array<any>).map(MeteredComponentLabelLimitToJSON)), 'display_name': value.displayName, 'external_uuid': value.externalUuid, 'minimum_charge': value.minimumCharge, 'minimum_charge_frequency': value.minimumChargeFrequency, 'watermark': value.watermark, }; } |