Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(995)

Unified Diff: generated/googleapis/lib/admin/directory_v1.dart

Issue 663113002: Api roll 4: 2014-10-20 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/README.md ('k') | generated/googleapis/lib/analytics/v3.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/admin/directory_v1.dart
diff --git a/generated/googleapis/lib/admin/directory_v1.dart b/generated/googleapis/lib/admin/directory_v1.dart
index f31570d73f87fcf37b12caba31c5a89d3a48da2c..e39015be58ebe68c099c0f66c0a98c147f7ecdea 100644
--- a/generated/googleapis/lib/admin/directory_v1.dart
+++ b/generated/googleapis/lib/admin/directory_v1.dart
@@ -3963,6 +3963,39 @@ class Channel {
/** Not documented yet. */
+class ChromeOsDeviceActiveTimeRanges {
+ /** Duration in milliseconds */
+ core.int activeTime;
+
+ /** Date of usage */
+ core.DateTime date;
+
+
+ ChromeOsDeviceActiveTimeRanges();
+
+ ChromeOsDeviceActiveTimeRanges.fromJson(core.Map _json) {
+ if (_json.containsKey("activeTime")) {
+ activeTime = _json["activeTime"];
+ }
+ if (_json.containsKey("date")) {
+ date = core.DateTime.parse(_json["date"]);
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (activeTime != null) {
+ _json["activeTime"] = activeTime;
+ }
+ if (date != null) {
+ _json["date"] = "${(date).year.toString().padLeft(4, '0')}-${(date).month.toString().padLeft(2, '0')}-${(date).day.toString().padLeft(2, '0')}";
+ }
+ return _json;
+ }
+}
+
+
+/** Not documented yet. */
class ChromeOsDeviceRecentUsers {
/** Email address of the user. Present only if the user type is managed */
core.String email;
@@ -3997,6 +4030,9 @@ class ChromeOsDeviceRecentUsers {
/** JSON template for Chrome Os Device resource in Directory API. */
class ChromeOsDevice {
+ /** List of active time ranges (Read-only) */
+ core.List<ChromeOsDeviceActiveTimeRanges> activeTimeRanges;
+
/** Address or location of the device as noted by the administrator */
core.String annotatedLocation;
@@ -4079,6 +4115,9 @@ class ChromeOsDevice {
ChromeOsDevice();
ChromeOsDevice.fromJson(core.Map _json) {
+ if (_json.containsKey("activeTimeRanges")) {
+ activeTimeRanges = _json["activeTimeRanges"].map((value) => new ChromeOsDeviceActiveTimeRanges.fromJson(value)).toList();
+ }
if (_json.containsKey("annotatedLocation")) {
annotatedLocation = _json["annotatedLocation"];
}
@@ -4152,6 +4191,9 @@ class ChromeOsDevice {
core.Map toJson() {
var _json = new core.Map();
+ if (activeTimeRanges != null) {
+ _json["activeTimeRanges"] = activeTimeRanges.map((value) => (value).toJson()).toList();
+ }
if (annotatedLocation != null) {
_json["annotatedLocation"] = annotatedLocation;
}
« no previous file with comments | « generated/googleapis/README.md ('k') | generated/googleapis/lib/analytics/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698