nacx commented on this pull request.
> @@ -202,4 +202,20 @@ public static VPNType fromValue(String v) {
return Enums.getIfPresent(VPNType.class, v).or(UNRECOGNIZED);
}
}
+
+ public enum PeriodType {
+ LAST_HOUR, LAST_24H, LAST_7D, LAST_30D, LAST_365D, UNRECOGNIZED;
+
+ public static PeriodType fromValue(String v) {
+ return Enums.getIfPresent(PeriodType.class, v).or(UNRECOGNIZED);
+ }
+ }
+
+ public enum CustomPeriodType {
+ CUSTOM, UNRECOGNIZED;
Oh, I see. This way you avoid users calling the `FixedPeriods` options method
with the wrong type. Thanks for clarifying!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/322