X-Git-Url: https://code.grnet.gr/git/aquarium/blobdiff_plain/0c3fe5972c868e4b3a6b763ee7f2d0bf4068be04..bbd79cea2a264f4ceaeb7963d7dbdbf1fc110893:/src/main/avro/aquarium-policy.avdl diff --git a/src/main/avro/aquarium-policy.avdl b/src/main/avro/aquarium-policy.avdl index 9801411..7211780 100644 --- a/src/main/avro/aquarium-policy.avdl +++ b/src/main/avro/aquarium-policy.avdl @@ -35,44 +35,44 @@ @namespace("gr.grnet.aquarium.message.avro.gen") protocol AquariumPolicy { - record _ResourceType { + record ResourceTypeMsg { string name; string unit; string chargingBehaviorClass; } - record _CronSpecTuple { + record CronSpecTupleMsg { string a; string b; } - record _EffectiveUnitPrice { + record EffectiveUnitPriceMsg { double unitPrice; - union {_CronSpecTuple, null} when; + union {CronSpecTupleMsg, null} when; } - record _EffectivePriceTable { - array<_EffectiveUnitPrice> priceOverrides; + record EffectivePriceTableMsg { + array priceOverrides; } - record _SelectorValue { + record SelectorValueMsg { union { - _EffectivePriceTable, - map<_SelectorValue> + EffectivePriceTableMsg, + map } selectorValue; } - record _FullPriceTable { - map> perResource; + record FullPriceTableMsg { + map> perResource; } - record _Policy { + record PolicyMsg { string @aliases(["id, _id, idInStore, inStoreID"]) ID; union {string, null} parentID; long validFromMillis; long validToMillis; - array<_ResourceType> resourceTypes; + array resourceTypes; array chargingBehaviors; - map<_FullPriceTable> roleMapping; + map roleMapping; } } \ No newline at end of file