| OLD | NEW |
| 1 library googleapis.admin.reports_v1.test; | 1 library googleapis.admin.reports_v1.test; |
| 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:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| 11 import 'package:googleapis/common/common.dart' as common; | 11 import 'package:googleapis/common/common.dart' as common; |
| 12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis/src/common_internal.dart' as common_internal; |
| 13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
| 14 | 14 |
| 15 import 'package:googleapis/admin/reports_v1.dart' as api; | 15 import 'package:googleapis/admin/reports_v1.dart' as api; |
| 16 | 16 |
| 17 | 17 |
| 18 | 18 |
| 19 buildUnnamed391() { | 19 buildUnnamed121() { |
| 20 var o = new core.List<api.Activity>(); | 20 var o = new core.List<api.Activity>(); |
| 21 o.add(buildActivity()); | 21 o.add(buildActivity()); |
| 22 o.add(buildActivity()); | 22 o.add(buildActivity()); |
| 23 return o; | 23 return o; |
| 24 } | 24 } |
| 25 | 25 |
| 26 checkUnnamed391(core.List<api.Activity> o) { | 26 checkUnnamed121(core.List<api.Activity> o) { |
| 27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
| 28 checkActivity(o[0]); | 28 checkActivity(o[0]); |
| 29 checkActivity(o[1]); | 29 checkActivity(o[1]); |
| 30 } | 30 } |
| 31 | 31 |
| 32 core.int buildCounterActivities = 0; | 32 core.int buildCounterActivities = 0; |
| 33 buildActivities() { | 33 buildActivities() { |
| 34 var o = new api.Activities(); | 34 var o = new api.Activities(); |
| 35 buildCounterActivities++; | 35 buildCounterActivities++; |
| 36 if (buildCounterActivities < 3) { | 36 if (buildCounterActivities < 3) { |
| 37 o.etag = "foo"; | 37 o.etag = "foo"; |
| 38 o.items = buildUnnamed391(); | 38 o.items = buildUnnamed121(); |
| 39 o.kind = "foo"; | 39 o.kind = "foo"; |
| 40 o.nextPageToken = "foo"; | 40 o.nextPageToken = "foo"; |
| 41 } | 41 } |
| 42 buildCounterActivities--; | 42 buildCounterActivities--; |
| 43 return o; | 43 return o; |
| 44 } | 44 } |
| 45 | 45 |
| 46 checkActivities(api.Activities o) { | 46 checkActivities(api.Activities o) { |
| 47 buildCounterActivities++; | 47 buildCounterActivities++; |
| 48 if (buildCounterActivities < 3) { | 48 if (buildCounterActivities < 3) { |
| 49 unittest.expect(o.etag, unittest.equals('foo')); | 49 unittest.expect(o.etag, unittest.equals('foo')); |
| 50 checkUnnamed391(o.items); | 50 checkUnnamed121(o.items); |
| 51 unittest.expect(o.kind, unittest.equals('foo')); | 51 unittest.expect(o.kind, unittest.equals('foo')); |
| 52 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 52 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 53 } | 53 } |
| 54 buildCounterActivities--; | 54 buildCounterActivities--; |
| 55 } | 55 } |
| 56 | 56 |
| 57 core.int buildCounterActivityActor = 0; | 57 core.int buildCounterActivityActor = 0; |
| 58 buildActivityActor() { | 58 buildActivityActor() { |
| 59 var o = new api.ActivityActor(); | 59 var o = new api.ActivityActor(); |
| 60 buildCounterActivityActor++; | 60 buildCounterActivityActor++; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 72 buildCounterActivityActor++; | 72 buildCounterActivityActor++; |
| 73 if (buildCounterActivityActor < 3) { | 73 if (buildCounterActivityActor < 3) { |
| 74 unittest.expect(o.callerType, unittest.equals('foo')); | 74 unittest.expect(o.callerType, unittest.equals('foo')); |
| 75 unittest.expect(o.email, unittest.equals('foo')); | 75 unittest.expect(o.email, unittest.equals('foo')); |
| 76 unittest.expect(o.key, unittest.equals('foo')); | 76 unittest.expect(o.key, unittest.equals('foo')); |
| 77 unittest.expect(o.profileId, unittest.equals('foo')); | 77 unittest.expect(o.profileId, unittest.equals('foo')); |
| 78 } | 78 } |
| 79 buildCounterActivityActor--; | 79 buildCounterActivityActor--; |
| 80 } | 80 } |
| 81 | 81 |
| 82 buildUnnamed392() { | 82 buildUnnamed122() { |
| 83 var o = new core.List<core.String>(); | 83 var o = new core.List<core.String>(); |
| 84 o.add("foo"); | 84 o.add("foo"); |
| 85 o.add("foo"); | 85 o.add("foo"); |
| 86 return o; | 86 return o; |
| 87 } | 87 } |
| 88 | 88 |
| 89 checkUnnamed392(core.List<core.String> o) { | 89 checkUnnamed122(core.List<core.String> o) { |
| 90 unittest.expect(o, unittest.hasLength(2)); | 90 unittest.expect(o, unittest.hasLength(2)); |
| 91 unittest.expect(o[0], unittest.equals('foo')); | 91 unittest.expect(o[0], unittest.equals('foo')); |
| 92 unittest.expect(o[1], unittest.equals('foo')); | 92 unittest.expect(o[1], unittest.equals('foo')); |
| 93 } | 93 } |
| 94 | 94 |
| 95 buildUnnamed393() { | 95 buildUnnamed123() { |
| 96 var o = new core.List<core.String>(); | 96 var o = new core.List<core.String>(); |
| 97 o.add("foo"); | 97 o.add("foo"); |
| 98 o.add("foo"); | 98 o.add("foo"); |
| 99 return o; | 99 return o; |
| 100 } | 100 } |
| 101 | 101 |
| 102 checkUnnamed393(core.List<core.String> o) { | 102 checkUnnamed123(core.List<core.String> o) { |
| 103 unittest.expect(o, unittest.hasLength(2)); | 103 unittest.expect(o, unittest.hasLength(2)); |
| 104 unittest.expect(o[0], unittest.equals('foo')); | 104 unittest.expect(o[0], unittest.equals('foo')); |
| 105 unittest.expect(o[1], unittest.equals('foo')); | 105 unittest.expect(o[1], unittest.equals('foo')); |
| 106 } | 106 } |
| 107 | 107 |
| 108 core.int buildCounterActivityEventsParameters = 0; | 108 core.int buildCounterActivityEventsParameters = 0; |
| 109 buildActivityEventsParameters() { | 109 buildActivityEventsParameters() { |
| 110 var o = new api.ActivityEventsParameters(); | 110 var o = new api.ActivityEventsParameters(); |
| 111 buildCounterActivityEventsParameters++; | 111 buildCounterActivityEventsParameters++; |
| 112 if (buildCounterActivityEventsParameters < 3) { | 112 if (buildCounterActivityEventsParameters < 3) { |
| 113 o.boolValue = true; | 113 o.boolValue = true; |
| 114 o.intValue = "foo"; | 114 o.intValue = "foo"; |
| 115 o.multiIntValue = buildUnnamed392(); | 115 o.multiIntValue = buildUnnamed122(); |
| 116 o.multiValue = buildUnnamed393(); | 116 o.multiValue = buildUnnamed123(); |
| 117 o.name = "foo"; | 117 o.name = "foo"; |
| 118 o.value = "foo"; | 118 o.value = "foo"; |
| 119 } | 119 } |
| 120 buildCounterActivityEventsParameters--; | 120 buildCounterActivityEventsParameters--; |
| 121 return o; | 121 return o; |
| 122 } | 122 } |
| 123 | 123 |
| 124 checkActivityEventsParameters(api.ActivityEventsParameters o) { | 124 checkActivityEventsParameters(api.ActivityEventsParameters o) { |
| 125 buildCounterActivityEventsParameters++; | 125 buildCounterActivityEventsParameters++; |
| 126 if (buildCounterActivityEventsParameters < 3) { | 126 if (buildCounterActivityEventsParameters < 3) { |
| 127 unittest.expect(o.boolValue, unittest.isTrue); | 127 unittest.expect(o.boolValue, unittest.isTrue); |
| 128 unittest.expect(o.intValue, unittest.equals('foo')); | 128 unittest.expect(o.intValue, unittest.equals('foo')); |
| 129 checkUnnamed392(o.multiIntValue); | 129 checkUnnamed122(o.multiIntValue); |
| 130 checkUnnamed393(o.multiValue); | 130 checkUnnamed123(o.multiValue); |
| 131 unittest.expect(o.name, unittest.equals('foo')); | 131 unittest.expect(o.name, unittest.equals('foo')); |
| 132 unittest.expect(o.value, unittest.equals('foo')); | 132 unittest.expect(o.value, unittest.equals('foo')); |
| 133 } | 133 } |
| 134 buildCounterActivityEventsParameters--; | 134 buildCounterActivityEventsParameters--; |
| 135 } | 135 } |
| 136 | 136 |
| 137 buildUnnamed394() { | 137 buildUnnamed124() { |
| 138 var o = new core.List<api.ActivityEventsParameters>(); | 138 var o = new core.List<api.ActivityEventsParameters>(); |
| 139 o.add(buildActivityEventsParameters()); | 139 o.add(buildActivityEventsParameters()); |
| 140 o.add(buildActivityEventsParameters()); | 140 o.add(buildActivityEventsParameters()); |
| 141 return o; | 141 return o; |
| 142 } | 142 } |
| 143 | 143 |
| 144 checkUnnamed394(core.List<api.ActivityEventsParameters> o) { | 144 checkUnnamed124(core.List<api.ActivityEventsParameters> o) { |
| 145 unittest.expect(o, unittest.hasLength(2)); | 145 unittest.expect(o, unittest.hasLength(2)); |
| 146 checkActivityEventsParameters(o[0]); | 146 checkActivityEventsParameters(o[0]); |
| 147 checkActivityEventsParameters(o[1]); | 147 checkActivityEventsParameters(o[1]); |
| 148 } | 148 } |
| 149 | 149 |
| 150 core.int buildCounterActivityEvents = 0; | 150 core.int buildCounterActivityEvents = 0; |
| 151 buildActivityEvents() { | 151 buildActivityEvents() { |
| 152 var o = new api.ActivityEvents(); | 152 var o = new api.ActivityEvents(); |
| 153 buildCounterActivityEvents++; | 153 buildCounterActivityEvents++; |
| 154 if (buildCounterActivityEvents < 3) { | 154 if (buildCounterActivityEvents < 3) { |
| 155 o.name = "foo"; | 155 o.name = "foo"; |
| 156 o.parameters = buildUnnamed394(); | 156 o.parameters = buildUnnamed124(); |
| 157 o.type = "foo"; | 157 o.type = "foo"; |
| 158 } | 158 } |
| 159 buildCounterActivityEvents--; | 159 buildCounterActivityEvents--; |
| 160 return o; | 160 return o; |
| 161 } | 161 } |
| 162 | 162 |
| 163 checkActivityEvents(api.ActivityEvents o) { | 163 checkActivityEvents(api.ActivityEvents o) { |
| 164 buildCounterActivityEvents++; | 164 buildCounterActivityEvents++; |
| 165 if (buildCounterActivityEvents < 3) { | 165 if (buildCounterActivityEvents < 3) { |
| 166 unittest.expect(o.name, unittest.equals('foo')); | 166 unittest.expect(o.name, unittest.equals('foo')); |
| 167 checkUnnamed394(o.parameters); | 167 checkUnnamed124(o.parameters); |
| 168 unittest.expect(o.type, unittest.equals('foo')); | 168 unittest.expect(o.type, unittest.equals('foo')); |
| 169 } | 169 } |
| 170 buildCounterActivityEvents--; | 170 buildCounterActivityEvents--; |
| 171 } | 171 } |
| 172 | 172 |
| 173 buildUnnamed395() { | 173 buildUnnamed125() { |
| 174 var o = new core.List<api.ActivityEvents>(); | 174 var o = new core.List<api.ActivityEvents>(); |
| 175 o.add(buildActivityEvents()); | 175 o.add(buildActivityEvents()); |
| 176 o.add(buildActivityEvents()); | 176 o.add(buildActivityEvents()); |
| 177 return o; | 177 return o; |
| 178 } | 178 } |
| 179 | 179 |
| 180 checkUnnamed395(core.List<api.ActivityEvents> o) { | 180 checkUnnamed125(core.List<api.ActivityEvents> o) { |
| 181 unittest.expect(o, unittest.hasLength(2)); | 181 unittest.expect(o, unittest.hasLength(2)); |
| 182 checkActivityEvents(o[0]); | 182 checkActivityEvents(o[0]); |
| 183 checkActivityEvents(o[1]); | 183 checkActivityEvents(o[1]); |
| 184 } | 184 } |
| 185 | 185 |
| 186 core.int buildCounterActivityId = 0; | 186 core.int buildCounterActivityId = 0; |
| 187 buildActivityId() { | 187 buildActivityId() { |
| 188 var o = new api.ActivityId(); | 188 var o = new api.ActivityId(); |
| 189 buildCounterActivityId++; | 189 buildCounterActivityId++; |
| 190 if (buildCounterActivityId < 3) { | 190 if (buildCounterActivityId < 3) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 208 buildCounterActivityId--; | 208 buildCounterActivityId--; |
| 209 } | 209 } |
| 210 | 210 |
| 211 core.int buildCounterActivity = 0; | 211 core.int buildCounterActivity = 0; |
| 212 buildActivity() { | 212 buildActivity() { |
| 213 var o = new api.Activity(); | 213 var o = new api.Activity(); |
| 214 buildCounterActivity++; | 214 buildCounterActivity++; |
| 215 if (buildCounterActivity < 3) { | 215 if (buildCounterActivity < 3) { |
| 216 o.actor = buildActivityActor(); | 216 o.actor = buildActivityActor(); |
| 217 o.etag = "foo"; | 217 o.etag = "foo"; |
| 218 o.events = buildUnnamed395(); | 218 o.events = buildUnnamed125(); |
| 219 o.id = buildActivityId(); | 219 o.id = buildActivityId(); |
| 220 o.ipAddress = "foo"; | 220 o.ipAddress = "foo"; |
| 221 o.kind = "foo"; | 221 o.kind = "foo"; |
| 222 o.ownerDomain = "foo"; | 222 o.ownerDomain = "foo"; |
| 223 } | 223 } |
| 224 buildCounterActivity--; | 224 buildCounterActivity--; |
| 225 return o; | 225 return o; |
| 226 } | 226 } |
| 227 | 227 |
| 228 checkActivity(api.Activity o) { | 228 checkActivity(api.Activity o) { |
| 229 buildCounterActivity++; | 229 buildCounterActivity++; |
| 230 if (buildCounterActivity < 3) { | 230 if (buildCounterActivity < 3) { |
| 231 checkActivityActor(o.actor); | 231 checkActivityActor(o.actor); |
| 232 unittest.expect(o.etag, unittest.equals('foo')); | 232 unittest.expect(o.etag, unittest.equals('foo')); |
| 233 checkUnnamed395(o.events); | 233 checkUnnamed125(o.events); |
| 234 checkActivityId(o.id); | 234 checkActivityId(o.id); |
| 235 unittest.expect(o.ipAddress, unittest.equals('foo')); | 235 unittest.expect(o.ipAddress, unittest.equals('foo')); |
| 236 unittest.expect(o.kind, unittest.equals('foo')); | 236 unittest.expect(o.kind, unittest.equals('foo')); |
| 237 unittest.expect(o.ownerDomain, unittest.equals('foo')); | 237 unittest.expect(o.ownerDomain, unittest.equals('foo')); |
| 238 } | 238 } |
| 239 buildCounterActivity--; | 239 buildCounterActivity--; |
| 240 } | 240 } |
| 241 | 241 |
| 242 buildUnnamed396() { | 242 buildUnnamed126() { |
| 243 var o = new core.Map<core.String, core.String>(); | 243 var o = new core.Map<core.String, core.String>(); |
| 244 o["x"] = "foo"; | 244 o["x"] = "foo"; |
| 245 o["y"] = "foo"; | 245 o["y"] = "foo"; |
| 246 return o; | 246 return o; |
| 247 } | 247 } |
| 248 | 248 |
| 249 checkUnnamed396(core.Map<core.String, core.String> o) { | 249 checkUnnamed126(core.Map<core.String, core.String> o) { |
| 250 unittest.expect(o, unittest.hasLength(2)); | 250 unittest.expect(o, unittest.hasLength(2)); |
| 251 unittest.expect(o["x"], unittest.equals('foo')); | 251 unittest.expect(o["x"], unittest.equals('foo')); |
| 252 unittest.expect(o["y"], unittest.equals('foo')); | 252 unittest.expect(o["y"], unittest.equals('foo')); |
| 253 } | 253 } |
| 254 | 254 |
| 255 core.int buildCounterChannel = 0; | 255 core.int buildCounterChannel = 0; |
| 256 buildChannel() { | 256 buildChannel() { |
| 257 var o = new api.Channel(); | 257 var o = new api.Channel(); |
| 258 buildCounterChannel++; | 258 buildCounterChannel++; |
| 259 if (buildCounterChannel < 3) { | 259 if (buildCounterChannel < 3) { |
| 260 o.address = "foo"; | 260 o.address = "foo"; |
| 261 o.expiration = "foo"; | 261 o.expiration = "foo"; |
| 262 o.id = "foo"; | 262 o.id = "foo"; |
| 263 o.kind = "foo"; | 263 o.kind = "foo"; |
| 264 o.params = buildUnnamed396(); | 264 o.params = buildUnnamed126(); |
| 265 o.payload = true; | 265 o.payload = true; |
| 266 o.resourceId = "foo"; | 266 o.resourceId = "foo"; |
| 267 o.resourceUri = "foo"; | 267 o.resourceUri = "foo"; |
| 268 o.token = "foo"; | 268 o.token = "foo"; |
| 269 o.type = "foo"; | 269 o.type = "foo"; |
| 270 } | 270 } |
| 271 buildCounterChannel--; | 271 buildCounterChannel--; |
| 272 return o; | 272 return o; |
| 273 } | 273 } |
| 274 | 274 |
| 275 checkChannel(api.Channel o) { | 275 checkChannel(api.Channel o) { |
| 276 buildCounterChannel++; | 276 buildCounterChannel++; |
| 277 if (buildCounterChannel < 3) { | 277 if (buildCounterChannel < 3) { |
| 278 unittest.expect(o.address, unittest.equals('foo')); | 278 unittest.expect(o.address, unittest.equals('foo')); |
| 279 unittest.expect(o.expiration, unittest.equals('foo')); | 279 unittest.expect(o.expiration, unittest.equals('foo')); |
| 280 unittest.expect(o.id, unittest.equals('foo')); | 280 unittest.expect(o.id, unittest.equals('foo')); |
| 281 unittest.expect(o.kind, unittest.equals('foo')); | 281 unittest.expect(o.kind, unittest.equals('foo')); |
| 282 checkUnnamed396(o.params); | 282 checkUnnamed126(o.params); |
| 283 unittest.expect(o.payload, unittest.isTrue); | 283 unittest.expect(o.payload, unittest.isTrue); |
| 284 unittest.expect(o.resourceId, unittest.equals('foo')); | 284 unittest.expect(o.resourceId, unittest.equals('foo')); |
| 285 unittest.expect(o.resourceUri, unittest.equals('foo')); | 285 unittest.expect(o.resourceUri, unittest.equals('foo')); |
| 286 unittest.expect(o.token, unittest.equals('foo')); | 286 unittest.expect(o.token, unittest.equals('foo')); |
| 287 unittest.expect(o.type, unittest.equals('foo')); | 287 unittest.expect(o.type, unittest.equals('foo')); |
| 288 } | 288 } |
| 289 buildCounterChannel--; | 289 buildCounterChannel--; |
| 290 } | 290 } |
| 291 | 291 |
| 292 core.int buildCounterUsageReportEntity = 0; | 292 core.int buildCounterUsageReportEntity = 0; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 307 buildCounterUsageReportEntity++; | 307 buildCounterUsageReportEntity++; |
| 308 if (buildCounterUsageReportEntity < 3) { | 308 if (buildCounterUsageReportEntity < 3) { |
| 309 unittest.expect(o.customerId, unittest.equals('foo')); | 309 unittest.expect(o.customerId, unittest.equals('foo')); |
| 310 unittest.expect(o.profileId, unittest.equals('foo')); | 310 unittest.expect(o.profileId, unittest.equals('foo')); |
| 311 unittest.expect(o.type, unittest.equals('foo')); | 311 unittest.expect(o.type, unittest.equals('foo')); |
| 312 unittest.expect(o.userEmail, unittest.equals('foo')); | 312 unittest.expect(o.userEmail, unittest.equals('foo')); |
| 313 } | 313 } |
| 314 buildCounterUsageReportEntity--; | 314 buildCounterUsageReportEntity--; |
| 315 } | 315 } |
| 316 | 316 |
| 317 buildUnnamed397() { | 317 buildUnnamed127() { |
| 318 var o = new core.Map<core.String, core.Object>(); | 318 var o = new core.Map<core.String, core.Object>(); |
| 319 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 319 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 320 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 320 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 321 return o; | 321 return o; |
| 322 } | 322 } |
| 323 | 323 |
| 324 checkUnnamed397(core.Map<core.String, core.Object> o) { | 324 checkUnnamed127(core.Map<core.String, core.Object> o) { |
| 325 unittest.expect(o, unittest.hasLength(2)); | 325 unittest.expect(o, unittest.hasLength(2)); |
| 326 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 326 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
| 327 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 327 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
| 328 } | 328 } |
| 329 | 329 |
| 330 buildUnnamed398() { | 330 buildUnnamed128() { |
| 331 var o = new core.List<core.Map<core.String, core.Object>>(); | 331 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 332 o.add(buildUnnamed397()); | 332 o.add(buildUnnamed127()); |
| 333 o.add(buildUnnamed397()); | 333 o.add(buildUnnamed127()); |
| 334 return o; | 334 return o; |
| 335 } | 335 } |
| 336 | 336 |
| 337 checkUnnamed398(core.List<core.Map<core.String, core.Object>> o) { | 337 checkUnnamed128(core.List<core.Map<core.String, core.Object>> o) { |
| 338 unittest.expect(o, unittest.hasLength(2)); | 338 unittest.expect(o, unittest.hasLength(2)); |
| 339 checkUnnamed397(o[0]); | 339 checkUnnamed127(o[0]); |
| 340 checkUnnamed397(o[1]); | 340 checkUnnamed127(o[1]); |
| 341 } | 341 } |
| 342 | 342 |
| 343 core.int buildCounterUsageReportParameters = 0; | 343 core.int buildCounterUsageReportParameters = 0; |
| 344 buildUsageReportParameters() { | 344 buildUsageReportParameters() { |
| 345 var o = new api.UsageReportParameters(); | 345 var o = new api.UsageReportParameters(); |
| 346 buildCounterUsageReportParameters++; | 346 buildCounterUsageReportParameters++; |
| 347 if (buildCounterUsageReportParameters < 3) { | 347 if (buildCounterUsageReportParameters < 3) { |
| 348 o.boolValue = true; | 348 o.boolValue = true; |
| 349 o.datetimeValue = core.DateTime.parse("2002-02-27T14:01:02"); | 349 o.datetimeValue = core.DateTime.parse("2002-02-27T14:01:02"); |
| 350 o.intValue = "foo"; | 350 o.intValue = "foo"; |
| 351 o.msgValue = buildUnnamed398(); | 351 o.msgValue = buildUnnamed128(); |
| 352 o.name = "foo"; | 352 o.name = "foo"; |
| 353 o.stringValue = "foo"; | 353 o.stringValue = "foo"; |
| 354 } | 354 } |
| 355 buildCounterUsageReportParameters--; | 355 buildCounterUsageReportParameters--; |
| 356 return o; | 356 return o; |
| 357 } | 357 } |
| 358 | 358 |
| 359 checkUsageReportParameters(api.UsageReportParameters o) { | 359 checkUsageReportParameters(api.UsageReportParameters o) { |
| 360 buildCounterUsageReportParameters++; | 360 buildCounterUsageReportParameters++; |
| 361 if (buildCounterUsageReportParameters < 3) { | 361 if (buildCounterUsageReportParameters < 3) { |
| 362 unittest.expect(o.boolValue, unittest.isTrue); | 362 unittest.expect(o.boolValue, unittest.isTrue); |
| 363 unittest.expect(o.datetimeValue, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 363 unittest.expect(o.datetimeValue, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
| 364 unittest.expect(o.intValue, unittest.equals('foo')); | 364 unittest.expect(o.intValue, unittest.equals('foo')); |
| 365 checkUnnamed398(o.msgValue); | 365 checkUnnamed128(o.msgValue); |
| 366 unittest.expect(o.name, unittest.equals('foo')); | 366 unittest.expect(o.name, unittest.equals('foo')); |
| 367 unittest.expect(o.stringValue, unittest.equals('foo')); | 367 unittest.expect(o.stringValue, unittest.equals('foo')); |
| 368 } | 368 } |
| 369 buildCounterUsageReportParameters--; | 369 buildCounterUsageReportParameters--; |
| 370 } | 370 } |
| 371 | 371 |
| 372 buildUnnamed399() { | 372 buildUnnamed129() { |
| 373 var o = new core.List<api.UsageReportParameters>(); | 373 var o = new core.List<api.UsageReportParameters>(); |
| 374 o.add(buildUsageReportParameters()); | 374 o.add(buildUsageReportParameters()); |
| 375 o.add(buildUsageReportParameters()); | 375 o.add(buildUsageReportParameters()); |
| 376 return o; | 376 return o; |
| 377 } | 377 } |
| 378 | 378 |
| 379 checkUnnamed399(core.List<api.UsageReportParameters> o) { | 379 checkUnnamed129(core.List<api.UsageReportParameters> o) { |
| 380 unittest.expect(o, unittest.hasLength(2)); | 380 unittest.expect(o, unittest.hasLength(2)); |
| 381 checkUsageReportParameters(o[0]); | 381 checkUsageReportParameters(o[0]); |
| 382 checkUsageReportParameters(o[1]); | 382 checkUsageReportParameters(o[1]); |
| 383 } | 383 } |
| 384 | 384 |
| 385 core.int buildCounterUsageReport = 0; | 385 core.int buildCounterUsageReport = 0; |
| 386 buildUsageReport() { | 386 buildUsageReport() { |
| 387 var o = new api.UsageReport(); | 387 var o = new api.UsageReport(); |
| 388 buildCounterUsageReport++; | 388 buildCounterUsageReport++; |
| 389 if (buildCounterUsageReport < 3) { | 389 if (buildCounterUsageReport < 3) { |
| 390 o.date = "foo"; | 390 o.date = "foo"; |
| 391 o.entity = buildUsageReportEntity(); | 391 o.entity = buildUsageReportEntity(); |
| 392 o.etag = "foo"; | 392 o.etag = "foo"; |
| 393 o.kind = "foo"; | 393 o.kind = "foo"; |
| 394 o.parameters = buildUnnamed399(); | 394 o.parameters = buildUnnamed129(); |
| 395 } | 395 } |
| 396 buildCounterUsageReport--; | 396 buildCounterUsageReport--; |
| 397 return o; | 397 return o; |
| 398 } | 398 } |
| 399 | 399 |
| 400 checkUsageReport(api.UsageReport o) { | 400 checkUsageReport(api.UsageReport o) { |
| 401 buildCounterUsageReport++; | 401 buildCounterUsageReport++; |
| 402 if (buildCounterUsageReport < 3) { | 402 if (buildCounterUsageReport < 3) { |
| 403 unittest.expect(o.date, unittest.equals('foo')); | 403 unittest.expect(o.date, unittest.equals('foo')); |
| 404 checkUsageReportEntity(o.entity); | 404 checkUsageReportEntity(o.entity); |
| 405 unittest.expect(o.etag, unittest.equals('foo')); | 405 unittest.expect(o.etag, unittest.equals('foo')); |
| 406 unittest.expect(o.kind, unittest.equals('foo')); | 406 unittest.expect(o.kind, unittest.equals('foo')); |
| 407 checkUnnamed399(o.parameters); | 407 checkUnnamed129(o.parameters); |
| 408 } | 408 } |
| 409 buildCounterUsageReport--; | 409 buildCounterUsageReport--; |
| 410 } | 410 } |
| 411 | 411 |
| 412 buildUnnamed400() { | 412 buildUnnamed130() { |
| 413 var o = new core.List<api.UsageReport>(); | 413 var o = new core.List<api.UsageReport>(); |
| 414 o.add(buildUsageReport()); | 414 o.add(buildUsageReport()); |
| 415 o.add(buildUsageReport()); | 415 o.add(buildUsageReport()); |
| 416 return o; | 416 return o; |
| 417 } | 417 } |
| 418 | 418 |
| 419 checkUnnamed400(core.List<api.UsageReport> o) { | 419 checkUnnamed130(core.List<api.UsageReport> o) { |
| 420 unittest.expect(o, unittest.hasLength(2)); | 420 unittest.expect(o, unittest.hasLength(2)); |
| 421 checkUsageReport(o[0]); | 421 checkUsageReport(o[0]); |
| 422 checkUsageReport(o[1]); | 422 checkUsageReport(o[1]); |
| 423 } | 423 } |
| 424 | 424 |
| 425 core.int buildCounterUsageReportsWarningsData = 0; | 425 core.int buildCounterUsageReportsWarningsData = 0; |
| 426 buildUsageReportsWarningsData() { | 426 buildUsageReportsWarningsData() { |
| 427 var o = new api.UsageReportsWarningsData(); | 427 var o = new api.UsageReportsWarningsData(); |
| 428 buildCounterUsageReportsWarningsData++; | 428 buildCounterUsageReportsWarningsData++; |
| 429 if (buildCounterUsageReportsWarningsData < 3) { | 429 if (buildCounterUsageReportsWarningsData < 3) { |
| 430 o.key = "foo"; | 430 o.key = "foo"; |
| 431 o.value = "foo"; | 431 o.value = "foo"; |
| 432 } | 432 } |
| 433 buildCounterUsageReportsWarningsData--; | 433 buildCounterUsageReportsWarningsData--; |
| 434 return o; | 434 return o; |
| 435 } | 435 } |
| 436 | 436 |
| 437 checkUsageReportsWarningsData(api.UsageReportsWarningsData o) { | 437 checkUsageReportsWarningsData(api.UsageReportsWarningsData o) { |
| 438 buildCounterUsageReportsWarningsData++; | 438 buildCounterUsageReportsWarningsData++; |
| 439 if (buildCounterUsageReportsWarningsData < 3) { | 439 if (buildCounterUsageReportsWarningsData < 3) { |
| 440 unittest.expect(o.key, unittest.equals('foo')); | 440 unittest.expect(o.key, unittest.equals('foo')); |
| 441 unittest.expect(o.value, unittest.equals('foo')); | 441 unittest.expect(o.value, unittest.equals('foo')); |
| 442 } | 442 } |
| 443 buildCounterUsageReportsWarningsData--; | 443 buildCounterUsageReportsWarningsData--; |
| 444 } | 444 } |
| 445 | 445 |
| 446 buildUnnamed401() { | 446 buildUnnamed131() { |
| 447 var o = new core.List<api.UsageReportsWarningsData>(); | 447 var o = new core.List<api.UsageReportsWarningsData>(); |
| 448 o.add(buildUsageReportsWarningsData()); | 448 o.add(buildUsageReportsWarningsData()); |
| 449 o.add(buildUsageReportsWarningsData()); | 449 o.add(buildUsageReportsWarningsData()); |
| 450 return o; | 450 return o; |
| 451 } | 451 } |
| 452 | 452 |
| 453 checkUnnamed401(core.List<api.UsageReportsWarningsData> o) { | 453 checkUnnamed131(core.List<api.UsageReportsWarningsData> o) { |
| 454 unittest.expect(o, unittest.hasLength(2)); | 454 unittest.expect(o, unittest.hasLength(2)); |
| 455 checkUsageReportsWarningsData(o[0]); | 455 checkUsageReportsWarningsData(o[0]); |
| 456 checkUsageReportsWarningsData(o[1]); | 456 checkUsageReportsWarningsData(o[1]); |
| 457 } | 457 } |
| 458 | 458 |
| 459 core.int buildCounterUsageReportsWarnings = 0; | 459 core.int buildCounterUsageReportsWarnings = 0; |
| 460 buildUsageReportsWarnings() { | 460 buildUsageReportsWarnings() { |
| 461 var o = new api.UsageReportsWarnings(); | 461 var o = new api.UsageReportsWarnings(); |
| 462 buildCounterUsageReportsWarnings++; | 462 buildCounterUsageReportsWarnings++; |
| 463 if (buildCounterUsageReportsWarnings < 3) { | 463 if (buildCounterUsageReportsWarnings < 3) { |
| 464 o.code = "foo"; | 464 o.code = "foo"; |
| 465 o.data = buildUnnamed401(); | 465 o.data = buildUnnamed131(); |
| 466 o.message = "foo"; | 466 o.message = "foo"; |
| 467 } | 467 } |
| 468 buildCounterUsageReportsWarnings--; | 468 buildCounterUsageReportsWarnings--; |
| 469 return o; | 469 return o; |
| 470 } | 470 } |
| 471 | 471 |
| 472 checkUsageReportsWarnings(api.UsageReportsWarnings o) { | 472 checkUsageReportsWarnings(api.UsageReportsWarnings o) { |
| 473 buildCounterUsageReportsWarnings++; | 473 buildCounterUsageReportsWarnings++; |
| 474 if (buildCounterUsageReportsWarnings < 3) { | 474 if (buildCounterUsageReportsWarnings < 3) { |
| 475 unittest.expect(o.code, unittest.equals('foo')); | 475 unittest.expect(o.code, unittest.equals('foo')); |
| 476 checkUnnamed401(o.data); | 476 checkUnnamed131(o.data); |
| 477 unittest.expect(o.message, unittest.equals('foo')); | 477 unittest.expect(o.message, unittest.equals('foo')); |
| 478 } | 478 } |
| 479 buildCounterUsageReportsWarnings--; | 479 buildCounterUsageReportsWarnings--; |
| 480 } | 480 } |
| 481 | 481 |
| 482 buildUnnamed402() { | 482 buildUnnamed132() { |
| 483 var o = new core.List<api.UsageReportsWarnings>(); | 483 var o = new core.List<api.UsageReportsWarnings>(); |
| 484 o.add(buildUsageReportsWarnings()); | 484 o.add(buildUsageReportsWarnings()); |
| 485 o.add(buildUsageReportsWarnings()); | 485 o.add(buildUsageReportsWarnings()); |
| 486 return o; | 486 return o; |
| 487 } | 487 } |
| 488 | 488 |
| 489 checkUnnamed402(core.List<api.UsageReportsWarnings> o) { | 489 checkUnnamed132(core.List<api.UsageReportsWarnings> o) { |
| 490 unittest.expect(o, unittest.hasLength(2)); | 490 unittest.expect(o, unittest.hasLength(2)); |
| 491 checkUsageReportsWarnings(o[0]); | 491 checkUsageReportsWarnings(o[0]); |
| 492 checkUsageReportsWarnings(o[1]); | 492 checkUsageReportsWarnings(o[1]); |
| 493 } | 493 } |
| 494 | 494 |
| 495 core.int buildCounterUsageReports = 0; | 495 core.int buildCounterUsageReports = 0; |
| 496 buildUsageReports() { | 496 buildUsageReports() { |
| 497 var o = new api.UsageReports(); | 497 var o = new api.UsageReports(); |
| 498 buildCounterUsageReports++; | 498 buildCounterUsageReports++; |
| 499 if (buildCounterUsageReports < 3) { | 499 if (buildCounterUsageReports < 3) { |
| 500 o.etag = "foo"; | 500 o.etag = "foo"; |
| 501 o.kind = "foo"; | 501 o.kind = "foo"; |
| 502 o.nextPageToken = "foo"; | 502 o.nextPageToken = "foo"; |
| 503 o.usageReports = buildUnnamed400(); | 503 o.usageReports = buildUnnamed130(); |
| 504 o.warnings = buildUnnamed402(); | 504 o.warnings = buildUnnamed132(); |
| 505 } | 505 } |
| 506 buildCounterUsageReports--; | 506 buildCounterUsageReports--; |
| 507 return o; | 507 return o; |
| 508 } | 508 } |
| 509 | 509 |
| 510 checkUsageReports(api.UsageReports o) { | 510 checkUsageReports(api.UsageReports o) { |
| 511 buildCounterUsageReports++; | 511 buildCounterUsageReports++; |
| 512 if (buildCounterUsageReports < 3) { | 512 if (buildCounterUsageReports < 3) { |
| 513 unittest.expect(o.etag, unittest.equals('foo')); | 513 unittest.expect(o.etag, unittest.equals('foo')); |
| 514 unittest.expect(o.kind, unittest.equals('foo')); | 514 unittest.expect(o.kind, unittest.equals('foo')); |
| 515 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 515 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 516 checkUnnamed400(o.usageReports); | 516 checkUnnamed130(o.usageReports); |
| 517 checkUnnamed402(o.warnings); | 517 checkUnnamed132(o.warnings); |
| 518 } | 518 } |
| 519 buildCounterUsageReports--; | 519 buildCounterUsageReports--; |
| 520 } | 520 } |
| 521 | 521 |
| 522 | 522 |
| 523 main() { | 523 main() { |
| 524 unittest.group("obj-schema-Activities", () { | 524 unittest.group("obj-schema-Activities", () { |
| 525 unittest.test("to-json--from-json", () { | 525 unittest.test("to-json--from-json", () { |
| 526 var o = buildActivities(); | 526 var o = buildActivities(); |
| 527 var od = new api.Activities.fromJson(o.toJson()); | 527 var od = new api.Activities.fromJson(o.toJson()); |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 res.get(arg_userKey, arg_date, customerId: arg_customerId, filters: arg_fi
lters, maxResults: arg_maxResults, pageToken: arg_pageToken, parameters: arg_par
ameters).then(unittest.expectAsync(((api.UsageReports response) { | 970 res.get(arg_userKey, arg_date, customerId: arg_customerId, filters: arg_fi
lters, maxResults: arg_maxResults, pageToken: arg_pageToken, parameters: arg_par
ameters).then(unittest.expectAsync(((api.UsageReports response) { |
| 971 checkUsageReports(response); | 971 checkUsageReports(response); |
| 972 }))); | 972 }))); |
| 973 }); | 973 }); |
| 974 | 974 |
| 975 }); | 975 }); |
| 976 | 976 |
| 977 | 977 |
| 978 } | 978 } |
| 979 | 979 |
| OLD | NEW |