| OLD | NEW |
| 1 library googleapis.admin.directory_v1; | 1 library googleapis.admin.directory_v1; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
| 9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
| (...skipping 3945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3956 } | 3956 } |
| 3957 if (type != null) { | 3957 if (type != null) { |
| 3958 _json["type"] = type; | 3958 _json["type"] = type; |
| 3959 } | 3959 } |
| 3960 return _json; | 3960 return _json; |
| 3961 } | 3961 } |
| 3962 } | 3962 } |
| 3963 | 3963 |
| 3964 | 3964 |
| 3965 /** Not documented yet. */ | 3965 /** Not documented yet. */ |
| 3966 class ChromeOsDeviceActiveTimeRanges { |
| 3967 /** Duration in milliseconds */ |
| 3968 core.int activeTime; |
| 3969 |
| 3970 /** Date of usage */ |
| 3971 core.DateTime date; |
| 3972 |
| 3973 |
| 3974 ChromeOsDeviceActiveTimeRanges(); |
| 3975 |
| 3976 ChromeOsDeviceActiveTimeRanges.fromJson(core.Map _json) { |
| 3977 if (_json.containsKey("activeTime")) { |
| 3978 activeTime = _json["activeTime"]; |
| 3979 } |
| 3980 if (_json.containsKey("date")) { |
| 3981 date = core.DateTime.parse(_json["date"]); |
| 3982 } |
| 3983 } |
| 3984 |
| 3985 core.Map toJson() { |
| 3986 var _json = new core.Map(); |
| 3987 if (activeTime != null) { |
| 3988 _json["activeTime"] = activeTime; |
| 3989 } |
| 3990 if (date != null) { |
| 3991 _json["date"] = "${(date).year.toString().padLeft(4, '0')}-${(date).month.
toString().padLeft(2, '0')}-${(date).day.toString().padLeft(2, '0')}"; |
| 3992 } |
| 3993 return _json; |
| 3994 } |
| 3995 } |
| 3996 |
| 3997 |
| 3998 /** Not documented yet. */ |
| 3966 class ChromeOsDeviceRecentUsers { | 3999 class ChromeOsDeviceRecentUsers { |
| 3967 /** Email address of the user. Present only if the user type is managed */ | 4000 /** Email address of the user. Present only if the user type is managed */ |
| 3968 core.String email; | 4001 core.String email; |
| 3969 | 4002 |
| 3970 /** The type of the user */ | 4003 /** The type of the user */ |
| 3971 core.String type; | 4004 core.String type; |
| 3972 | 4005 |
| 3973 | 4006 |
| 3974 ChromeOsDeviceRecentUsers(); | 4007 ChromeOsDeviceRecentUsers(); |
| 3975 | 4008 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 3990 if (type != null) { | 4023 if (type != null) { |
| 3991 _json["type"] = type; | 4024 _json["type"] = type; |
| 3992 } | 4025 } |
| 3993 return _json; | 4026 return _json; |
| 3994 } | 4027 } |
| 3995 } | 4028 } |
| 3996 | 4029 |
| 3997 | 4030 |
| 3998 /** JSON template for Chrome Os Device resource in Directory API. */ | 4031 /** JSON template for Chrome Os Device resource in Directory API. */ |
| 3999 class ChromeOsDevice { | 4032 class ChromeOsDevice { |
| 4033 /** List of active time ranges (Read-only) */ |
| 4034 core.List<ChromeOsDeviceActiveTimeRanges> activeTimeRanges; |
| 4035 |
| 4000 /** Address or location of the device as noted by the administrator */ | 4036 /** Address or location of the device as noted by the administrator */ |
| 4001 core.String annotatedLocation; | 4037 core.String annotatedLocation; |
| 4002 | 4038 |
| 4003 /** User of the device */ | 4039 /** User of the device */ |
| 4004 core.String annotatedUser; | 4040 core.String annotatedUser; |
| 4005 | 4041 |
| 4006 /** Chromebook boot mode (Read-only) */ | 4042 /** Chromebook boot mode (Read-only) */ |
| 4007 core.String bootMode; | 4043 core.String bootMode; |
| 4008 | 4044 |
| 4009 /** Unique identifier of Chrome OS Device (Read-only) */ | 4045 /** Unique identifier of Chrome OS Device (Read-only) */ |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4072 /** Final date the device will be supported (Read-only) */ | 4108 /** Final date the device will be supported (Read-only) */ |
| 4073 core.DateTime supportEndDate; | 4109 core.DateTime supportEndDate; |
| 4074 | 4110 |
| 4075 /** Will Chromebook auto renew after support end date (Read-only) */ | 4111 /** Will Chromebook auto renew after support end date (Read-only) */ |
| 4076 core.bool willAutoRenew; | 4112 core.bool willAutoRenew; |
| 4077 | 4113 |
| 4078 | 4114 |
| 4079 ChromeOsDevice(); | 4115 ChromeOsDevice(); |
| 4080 | 4116 |
| 4081 ChromeOsDevice.fromJson(core.Map _json) { | 4117 ChromeOsDevice.fromJson(core.Map _json) { |
| 4118 if (_json.containsKey("activeTimeRanges")) { |
| 4119 activeTimeRanges = _json["activeTimeRanges"].map((value) => new ChromeOsDe
viceActiveTimeRanges.fromJson(value)).toList(); |
| 4120 } |
| 4082 if (_json.containsKey("annotatedLocation")) { | 4121 if (_json.containsKey("annotatedLocation")) { |
| 4083 annotatedLocation = _json["annotatedLocation"]; | 4122 annotatedLocation = _json["annotatedLocation"]; |
| 4084 } | 4123 } |
| 4085 if (_json.containsKey("annotatedUser")) { | 4124 if (_json.containsKey("annotatedUser")) { |
| 4086 annotatedUser = _json["annotatedUser"]; | 4125 annotatedUser = _json["annotatedUser"]; |
| 4087 } | 4126 } |
| 4088 if (_json.containsKey("bootMode")) { | 4127 if (_json.containsKey("bootMode")) { |
| 4089 bootMode = _json["bootMode"]; | 4128 bootMode = _json["bootMode"]; |
| 4090 } | 4129 } |
| 4091 if (_json.containsKey("deviceId")) { | 4130 if (_json.containsKey("deviceId")) { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4145 if (_json.containsKey("supportEndDate")) { | 4184 if (_json.containsKey("supportEndDate")) { |
| 4146 supportEndDate = core.DateTime.parse(_json["supportEndDate"]); | 4185 supportEndDate = core.DateTime.parse(_json["supportEndDate"]); |
| 4147 } | 4186 } |
| 4148 if (_json.containsKey("willAutoRenew")) { | 4187 if (_json.containsKey("willAutoRenew")) { |
| 4149 willAutoRenew = _json["willAutoRenew"]; | 4188 willAutoRenew = _json["willAutoRenew"]; |
| 4150 } | 4189 } |
| 4151 } | 4190 } |
| 4152 | 4191 |
| 4153 core.Map toJson() { | 4192 core.Map toJson() { |
| 4154 var _json = new core.Map(); | 4193 var _json = new core.Map(); |
| 4194 if (activeTimeRanges != null) { |
| 4195 _json["activeTimeRanges"] = activeTimeRanges.map((value) => (value).toJson
()).toList(); |
| 4196 } |
| 4155 if (annotatedLocation != null) { | 4197 if (annotatedLocation != null) { |
| 4156 _json["annotatedLocation"] = annotatedLocation; | 4198 _json["annotatedLocation"] = annotatedLocation; |
| 4157 } | 4199 } |
| 4158 if (annotatedUser != null) { | 4200 if (annotatedUser != null) { |
| 4159 _json["annotatedUser"] = annotatedUser; | 4201 _json["annotatedUser"] = annotatedUser; |
| 4160 } | 4202 } |
| 4161 if (bootMode != null) { | 4203 if (bootMode != null) { |
| 4162 _json["bootMode"] = bootMode; | 4204 _json["bootMode"] = bootMode; |
| 4163 } | 4205 } |
| 4164 if (deviceId != null) { | 4206 if (deviceId != null) { |
| (...skipping 2723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6888 _json["items"] = items.map((value) => (value).toJson()).toList(); | 6930 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 6889 } | 6931 } |
| 6890 if (kind != null) { | 6932 if (kind != null) { |
| 6891 _json["kind"] = kind; | 6933 _json["kind"] = kind; |
| 6892 } | 6934 } |
| 6893 return _json; | 6935 return _json; |
| 6894 } | 6936 } |
| 6895 } | 6937 } |
| 6896 | 6938 |
| 6897 | 6939 |
| OLD | NEW |