OLD | NEW |
1 library googleapis_beta.clouduseraccounts.beta.test; | 1 library googleapis_beta.clouduseraccounts.beta.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; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 buildUnnamed3264() { | 54 buildUnnamed3356() { |
55 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
56 o.add("foo"); | 56 o.add("foo"); |
57 o.add("foo"); | 57 o.add("foo"); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed3264(core.List<core.String> o) { | 61 checkUnnamed3356(core.List<core.String> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
64 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
65 } | 65 } |
66 | 66 |
67 core.int buildCounterAuthorizedKeysView = 0; | 67 core.int buildCounterAuthorizedKeysView = 0; |
68 buildAuthorizedKeysView() { | 68 buildAuthorizedKeysView() { |
69 var o = new api.AuthorizedKeysView(); | 69 var o = new api.AuthorizedKeysView(); |
70 buildCounterAuthorizedKeysView++; | 70 buildCounterAuthorizedKeysView++; |
71 if (buildCounterAuthorizedKeysView < 3) { | 71 if (buildCounterAuthorizedKeysView < 3) { |
72 o.keys = buildUnnamed3264(); | 72 o.keys = buildUnnamed3356(); |
73 o.sudoer = true; | 73 o.sudoer = true; |
74 } | 74 } |
75 buildCounterAuthorizedKeysView--; | 75 buildCounterAuthorizedKeysView--; |
76 return o; | 76 return o; |
77 } | 77 } |
78 | 78 |
79 checkAuthorizedKeysView(api.AuthorizedKeysView o) { | 79 checkAuthorizedKeysView(api.AuthorizedKeysView o) { |
80 buildCounterAuthorizedKeysView++; | 80 buildCounterAuthorizedKeysView++; |
81 if (buildCounterAuthorizedKeysView < 3) { | 81 if (buildCounterAuthorizedKeysView < 3) { |
82 checkUnnamed3264(o.keys); | 82 checkUnnamed3356(o.keys); |
83 unittest.expect(o.sudoer, unittest.isTrue); | 83 unittest.expect(o.sudoer, unittest.isTrue); |
84 } | 84 } |
85 buildCounterAuthorizedKeysView--; | 85 buildCounterAuthorizedKeysView--; |
86 } | 86 } |
87 | 87 |
88 buildUnnamed3265() { | 88 buildUnnamed3357() { |
89 var o = new core.List<core.String>(); | 89 var o = new core.List<core.String>(); |
90 o.add("foo"); | 90 o.add("foo"); |
91 o.add("foo"); | 91 o.add("foo"); |
92 return o; | 92 return o; |
93 } | 93 } |
94 | 94 |
95 checkUnnamed3265(core.List<core.String> o) { | 95 checkUnnamed3357(core.List<core.String> o) { |
96 unittest.expect(o, unittest.hasLength(2)); | 96 unittest.expect(o, unittest.hasLength(2)); |
97 unittest.expect(o[0], unittest.equals('foo')); | 97 unittest.expect(o[0], unittest.equals('foo')); |
98 unittest.expect(o[1], unittest.equals('foo')); | 98 unittest.expect(o[1], unittest.equals('foo')); |
99 } | 99 } |
100 | 100 |
101 core.int buildCounterGroup = 0; | 101 core.int buildCounterGroup = 0; |
102 buildGroup() { | 102 buildGroup() { |
103 var o = new api.Group(); | 103 var o = new api.Group(); |
104 buildCounterGroup++; | 104 buildCounterGroup++; |
105 if (buildCounterGroup < 3) { | 105 if (buildCounterGroup < 3) { |
106 o.creationTimestamp = "foo"; | 106 o.creationTimestamp = "foo"; |
107 o.description = "foo"; | 107 o.description = "foo"; |
108 o.id = "foo"; | 108 o.id = "foo"; |
109 o.kind = "foo"; | 109 o.kind = "foo"; |
110 o.members = buildUnnamed3265(); | 110 o.members = buildUnnamed3357(); |
111 o.name = "foo"; | 111 o.name = "foo"; |
112 o.selfLink = "foo"; | 112 o.selfLink = "foo"; |
113 } | 113 } |
114 buildCounterGroup--; | 114 buildCounterGroup--; |
115 return o; | 115 return o; |
116 } | 116 } |
117 | 117 |
118 checkGroup(api.Group o) { | 118 checkGroup(api.Group o) { |
119 buildCounterGroup++; | 119 buildCounterGroup++; |
120 if (buildCounterGroup < 3) { | 120 if (buildCounterGroup < 3) { |
121 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 121 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
122 unittest.expect(o.description, unittest.equals('foo')); | 122 unittest.expect(o.description, unittest.equals('foo')); |
123 unittest.expect(o.id, unittest.equals('foo')); | 123 unittest.expect(o.id, unittest.equals('foo')); |
124 unittest.expect(o.kind, unittest.equals('foo')); | 124 unittest.expect(o.kind, unittest.equals('foo')); |
125 checkUnnamed3265(o.members); | 125 checkUnnamed3357(o.members); |
126 unittest.expect(o.name, unittest.equals('foo')); | 126 unittest.expect(o.name, unittest.equals('foo')); |
127 unittest.expect(o.selfLink, unittest.equals('foo')); | 127 unittest.expect(o.selfLink, unittest.equals('foo')); |
128 } | 128 } |
129 buildCounterGroup--; | 129 buildCounterGroup--; |
130 } | 130 } |
131 | 131 |
132 buildUnnamed3266() { | 132 buildUnnamed3358() { |
133 var o = new core.List<api.Group>(); | 133 var o = new core.List<api.Group>(); |
134 o.add(buildGroup()); | 134 o.add(buildGroup()); |
135 o.add(buildGroup()); | 135 o.add(buildGroup()); |
136 return o; | 136 return o; |
137 } | 137 } |
138 | 138 |
139 checkUnnamed3266(core.List<api.Group> o) { | 139 checkUnnamed3358(core.List<api.Group> o) { |
140 unittest.expect(o, unittest.hasLength(2)); | 140 unittest.expect(o, unittest.hasLength(2)); |
141 checkGroup(o[0]); | 141 checkGroup(o[0]); |
142 checkGroup(o[1]); | 142 checkGroup(o[1]); |
143 } | 143 } |
144 | 144 |
145 core.int buildCounterGroupList = 0; | 145 core.int buildCounterGroupList = 0; |
146 buildGroupList() { | 146 buildGroupList() { |
147 var o = new api.GroupList(); | 147 var o = new api.GroupList(); |
148 buildCounterGroupList++; | 148 buildCounterGroupList++; |
149 if (buildCounterGroupList < 3) { | 149 if (buildCounterGroupList < 3) { |
150 o.id = "foo"; | 150 o.id = "foo"; |
151 o.items = buildUnnamed3266(); | 151 o.items = buildUnnamed3358(); |
152 o.kind = "foo"; | 152 o.kind = "foo"; |
153 o.nextPageToken = "foo"; | 153 o.nextPageToken = "foo"; |
154 o.selfLink = "foo"; | 154 o.selfLink = "foo"; |
155 } | 155 } |
156 buildCounterGroupList--; | 156 buildCounterGroupList--; |
157 return o; | 157 return o; |
158 } | 158 } |
159 | 159 |
160 checkGroupList(api.GroupList o) { | 160 checkGroupList(api.GroupList o) { |
161 buildCounterGroupList++; | 161 buildCounterGroupList++; |
162 if (buildCounterGroupList < 3) { | 162 if (buildCounterGroupList < 3) { |
163 unittest.expect(o.id, unittest.equals('foo')); | 163 unittest.expect(o.id, unittest.equals('foo')); |
164 checkUnnamed3266(o.items); | 164 checkUnnamed3358(o.items); |
165 unittest.expect(o.kind, unittest.equals('foo')); | 165 unittest.expect(o.kind, unittest.equals('foo')); |
166 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 166 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
167 unittest.expect(o.selfLink, unittest.equals('foo')); | 167 unittest.expect(o.selfLink, unittest.equals('foo')); |
168 } | 168 } |
169 buildCounterGroupList--; | 169 buildCounterGroupList--; |
170 } | 170 } |
171 | 171 |
172 buildUnnamed3267() { | 172 buildUnnamed3359() { |
173 var o = new core.List<core.String>(); | 173 var o = new core.List<core.String>(); |
174 o.add("foo"); | 174 o.add("foo"); |
175 o.add("foo"); | 175 o.add("foo"); |
176 return o; | 176 return o; |
177 } | 177 } |
178 | 178 |
179 checkUnnamed3267(core.List<core.String> o) { | 179 checkUnnamed3359(core.List<core.String> o) { |
180 unittest.expect(o, unittest.hasLength(2)); | 180 unittest.expect(o, unittest.hasLength(2)); |
181 unittest.expect(o[0], unittest.equals('foo')); | 181 unittest.expect(o[0], unittest.equals('foo')); |
182 unittest.expect(o[1], unittest.equals('foo')); | 182 unittest.expect(o[1], unittest.equals('foo')); |
183 } | 183 } |
184 | 184 |
185 core.int buildCounterGroupsAddMemberRequest = 0; | 185 core.int buildCounterGroupsAddMemberRequest = 0; |
186 buildGroupsAddMemberRequest() { | 186 buildGroupsAddMemberRequest() { |
187 var o = new api.GroupsAddMemberRequest(); | 187 var o = new api.GroupsAddMemberRequest(); |
188 buildCounterGroupsAddMemberRequest++; | 188 buildCounterGroupsAddMemberRequest++; |
189 if (buildCounterGroupsAddMemberRequest < 3) { | 189 if (buildCounterGroupsAddMemberRequest < 3) { |
190 o.users = buildUnnamed3267(); | 190 o.users = buildUnnamed3359(); |
191 } | 191 } |
192 buildCounterGroupsAddMemberRequest--; | 192 buildCounterGroupsAddMemberRequest--; |
193 return o; | 193 return o; |
194 } | 194 } |
195 | 195 |
196 checkGroupsAddMemberRequest(api.GroupsAddMemberRequest o) { | 196 checkGroupsAddMemberRequest(api.GroupsAddMemberRequest o) { |
197 buildCounterGroupsAddMemberRequest++; | 197 buildCounterGroupsAddMemberRequest++; |
198 if (buildCounterGroupsAddMemberRequest < 3) { | 198 if (buildCounterGroupsAddMemberRequest < 3) { |
199 checkUnnamed3267(o.users); | 199 checkUnnamed3359(o.users); |
200 } | 200 } |
201 buildCounterGroupsAddMemberRequest--; | 201 buildCounterGroupsAddMemberRequest--; |
202 } | 202 } |
203 | 203 |
204 buildUnnamed3268() { | 204 buildUnnamed3360() { |
205 var o = new core.List<core.String>(); | 205 var o = new core.List<core.String>(); |
206 o.add("foo"); | 206 o.add("foo"); |
207 o.add("foo"); | 207 o.add("foo"); |
208 return o; | 208 return o; |
209 } | 209 } |
210 | 210 |
211 checkUnnamed3268(core.List<core.String> o) { | 211 checkUnnamed3360(core.List<core.String> o) { |
212 unittest.expect(o, unittest.hasLength(2)); | 212 unittest.expect(o, unittest.hasLength(2)); |
213 unittest.expect(o[0], unittest.equals('foo')); | 213 unittest.expect(o[0], unittest.equals('foo')); |
214 unittest.expect(o[1], unittest.equals('foo')); | 214 unittest.expect(o[1], unittest.equals('foo')); |
215 } | 215 } |
216 | 216 |
217 core.int buildCounterGroupsRemoveMemberRequest = 0; | 217 core.int buildCounterGroupsRemoveMemberRequest = 0; |
218 buildGroupsRemoveMemberRequest() { | 218 buildGroupsRemoveMemberRequest() { |
219 var o = new api.GroupsRemoveMemberRequest(); | 219 var o = new api.GroupsRemoveMemberRequest(); |
220 buildCounterGroupsRemoveMemberRequest++; | 220 buildCounterGroupsRemoveMemberRequest++; |
221 if (buildCounterGroupsRemoveMemberRequest < 3) { | 221 if (buildCounterGroupsRemoveMemberRequest < 3) { |
222 o.users = buildUnnamed3268(); | 222 o.users = buildUnnamed3360(); |
223 } | 223 } |
224 buildCounterGroupsRemoveMemberRequest--; | 224 buildCounterGroupsRemoveMemberRequest--; |
225 return o; | 225 return o; |
226 } | 226 } |
227 | 227 |
228 checkGroupsRemoveMemberRequest(api.GroupsRemoveMemberRequest o) { | 228 checkGroupsRemoveMemberRequest(api.GroupsRemoveMemberRequest o) { |
229 buildCounterGroupsRemoveMemberRequest++; | 229 buildCounterGroupsRemoveMemberRequest++; |
230 if (buildCounterGroupsRemoveMemberRequest < 3) { | 230 if (buildCounterGroupsRemoveMemberRequest < 3) { |
231 checkUnnamed3268(o.users); | 231 checkUnnamed3360(o.users); |
232 } | 232 } |
233 buildCounterGroupsRemoveMemberRequest--; | 233 buildCounterGroupsRemoveMemberRequest--; |
234 } | 234 } |
235 | 235 |
236 buildUnnamed3269() { | 236 buildUnnamed3361() { |
237 var o = new core.List<api.LinuxGroupView>(); | 237 var o = new core.List<api.LinuxGroupView>(); |
238 o.add(buildLinuxGroupView()); | 238 o.add(buildLinuxGroupView()); |
239 o.add(buildLinuxGroupView()); | 239 o.add(buildLinuxGroupView()); |
240 return o; | 240 return o; |
241 } | 241 } |
242 | 242 |
243 checkUnnamed3269(core.List<api.LinuxGroupView> o) { | 243 checkUnnamed3361(core.List<api.LinuxGroupView> o) { |
244 unittest.expect(o, unittest.hasLength(2)); | 244 unittest.expect(o, unittest.hasLength(2)); |
245 checkLinuxGroupView(o[0]); | 245 checkLinuxGroupView(o[0]); |
246 checkLinuxGroupView(o[1]); | 246 checkLinuxGroupView(o[1]); |
247 } | 247 } |
248 | 248 |
249 buildUnnamed3270() { | 249 buildUnnamed3362() { |
250 var o = new core.List<api.LinuxUserView>(); | 250 var o = new core.List<api.LinuxUserView>(); |
251 o.add(buildLinuxUserView()); | 251 o.add(buildLinuxUserView()); |
252 o.add(buildLinuxUserView()); | 252 o.add(buildLinuxUserView()); |
253 return o; | 253 return o; |
254 } | 254 } |
255 | 255 |
256 checkUnnamed3270(core.List<api.LinuxUserView> o) { | 256 checkUnnamed3362(core.List<api.LinuxUserView> o) { |
257 unittest.expect(o, unittest.hasLength(2)); | 257 unittest.expect(o, unittest.hasLength(2)); |
258 checkLinuxUserView(o[0]); | 258 checkLinuxUserView(o[0]); |
259 checkLinuxUserView(o[1]); | 259 checkLinuxUserView(o[1]); |
260 } | 260 } |
261 | 261 |
262 core.int buildCounterLinuxAccountViews = 0; | 262 core.int buildCounterLinuxAccountViews = 0; |
263 buildLinuxAccountViews() { | 263 buildLinuxAccountViews() { |
264 var o = new api.LinuxAccountViews(); | 264 var o = new api.LinuxAccountViews(); |
265 buildCounterLinuxAccountViews++; | 265 buildCounterLinuxAccountViews++; |
266 if (buildCounterLinuxAccountViews < 3) { | 266 if (buildCounterLinuxAccountViews < 3) { |
267 o.groupViews = buildUnnamed3269(); | 267 o.groupViews = buildUnnamed3361(); |
268 o.kind = "foo"; | 268 o.kind = "foo"; |
269 o.userViews = buildUnnamed3270(); | 269 o.userViews = buildUnnamed3362(); |
270 } | 270 } |
271 buildCounterLinuxAccountViews--; | 271 buildCounterLinuxAccountViews--; |
272 return o; | 272 return o; |
273 } | 273 } |
274 | 274 |
275 checkLinuxAccountViews(api.LinuxAccountViews o) { | 275 checkLinuxAccountViews(api.LinuxAccountViews o) { |
276 buildCounterLinuxAccountViews++; | 276 buildCounterLinuxAccountViews++; |
277 if (buildCounterLinuxAccountViews < 3) { | 277 if (buildCounterLinuxAccountViews < 3) { |
278 checkUnnamed3269(o.groupViews); | 278 checkUnnamed3361(o.groupViews); |
279 unittest.expect(o.kind, unittest.equals('foo')); | 279 unittest.expect(o.kind, unittest.equals('foo')); |
280 checkUnnamed3270(o.userViews); | 280 checkUnnamed3362(o.userViews); |
281 } | 281 } |
282 buildCounterLinuxAccountViews--; | 282 buildCounterLinuxAccountViews--; |
283 } | 283 } |
284 | 284 |
285 core.int buildCounterLinuxGetAuthorizedKeysViewResponse = 0; | 285 core.int buildCounterLinuxGetAuthorizedKeysViewResponse = 0; |
286 buildLinuxGetAuthorizedKeysViewResponse() { | 286 buildLinuxGetAuthorizedKeysViewResponse() { |
287 var o = new api.LinuxGetAuthorizedKeysViewResponse(); | 287 var o = new api.LinuxGetAuthorizedKeysViewResponse(); |
288 buildCounterLinuxGetAuthorizedKeysViewResponse++; | 288 buildCounterLinuxGetAuthorizedKeysViewResponse++; |
289 if (buildCounterLinuxGetAuthorizedKeysViewResponse < 3) { | 289 if (buildCounterLinuxGetAuthorizedKeysViewResponse < 3) { |
290 o.resource = buildAuthorizedKeysView(); | 290 o.resource = buildAuthorizedKeysView(); |
(...skipping 22 matching lines...) Expand all Loading... |
313 } | 313 } |
314 | 314 |
315 checkLinuxGetLinuxAccountViewsResponse(api.LinuxGetLinuxAccountViewsResponse o)
{ | 315 checkLinuxGetLinuxAccountViewsResponse(api.LinuxGetLinuxAccountViewsResponse o)
{ |
316 buildCounterLinuxGetLinuxAccountViewsResponse++; | 316 buildCounterLinuxGetLinuxAccountViewsResponse++; |
317 if (buildCounterLinuxGetLinuxAccountViewsResponse < 3) { | 317 if (buildCounterLinuxGetLinuxAccountViewsResponse < 3) { |
318 checkLinuxAccountViews(o.resource); | 318 checkLinuxAccountViews(o.resource); |
319 } | 319 } |
320 buildCounterLinuxGetLinuxAccountViewsResponse--; | 320 buildCounterLinuxGetLinuxAccountViewsResponse--; |
321 } | 321 } |
322 | 322 |
323 buildUnnamed3271() { | 323 buildUnnamed3363() { |
324 var o = new core.List<core.String>(); | 324 var o = new core.List<core.String>(); |
325 o.add("foo"); | 325 o.add("foo"); |
326 o.add("foo"); | 326 o.add("foo"); |
327 return o; | 327 return o; |
328 } | 328 } |
329 | 329 |
330 checkUnnamed3271(core.List<core.String> o) { | 330 checkUnnamed3363(core.List<core.String> o) { |
331 unittest.expect(o, unittest.hasLength(2)); | 331 unittest.expect(o, unittest.hasLength(2)); |
332 unittest.expect(o[0], unittest.equals('foo')); | 332 unittest.expect(o[0], unittest.equals('foo')); |
333 unittest.expect(o[1], unittest.equals('foo')); | 333 unittest.expect(o[1], unittest.equals('foo')); |
334 } | 334 } |
335 | 335 |
336 core.int buildCounterLinuxGroupView = 0; | 336 core.int buildCounterLinuxGroupView = 0; |
337 buildLinuxGroupView() { | 337 buildLinuxGroupView() { |
338 var o = new api.LinuxGroupView(); | 338 var o = new api.LinuxGroupView(); |
339 buildCounterLinuxGroupView++; | 339 buildCounterLinuxGroupView++; |
340 if (buildCounterLinuxGroupView < 3) { | 340 if (buildCounterLinuxGroupView < 3) { |
341 o.gid = 42; | 341 o.gid = 42; |
342 o.groupName = "foo"; | 342 o.groupName = "foo"; |
343 o.members = buildUnnamed3271(); | 343 o.members = buildUnnamed3363(); |
344 } | 344 } |
345 buildCounterLinuxGroupView--; | 345 buildCounterLinuxGroupView--; |
346 return o; | 346 return o; |
347 } | 347 } |
348 | 348 |
349 checkLinuxGroupView(api.LinuxGroupView o) { | 349 checkLinuxGroupView(api.LinuxGroupView o) { |
350 buildCounterLinuxGroupView++; | 350 buildCounterLinuxGroupView++; |
351 if (buildCounterLinuxGroupView < 3) { | 351 if (buildCounterLinuxGroupView < 3) { |
352 unittest.expect(o.gid, unittest.equals(42)); | 352 unittest.expect(o.gid, unittest.equals(42)); |
353 unittest.expect(o.groupName, unittest.equals('foo')); | 353 unittest.expect(o.groupName, unittest.equals('foo')); |
354 checkUnnamed3271(o.members); | 354 checkUnnamed3363(o.members); |
355 } | 355 } |
356 buildCounterLinuxGroupView--; | 356 buildCounterLinuxGroupView--; |
357 } | 357 } |
358 | 358 |
359 core.int buildCounterLinuxUserView = 0; | 359 core.int buildCounterLinuxUserView = 0; |
360 buildLinuxUserView() { | 360 buildLinuxUserView() { |
361 var o = new api.LinuxUserView(); | 361 var o = new api.LinuxUserView(); |
362 buildCounterLinuxUserView++; | 362 buildCounterLinuxUserView++; |
363 if (buildCounterLinuxUserView < 3) { | 363 if (buildCounterLinuxUserView < 3) { |
364 o.gecos = "foo"; | 364 o.gecos = "foo"; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 checkOperationErrorErrors(api.OperationErrorErrors o) { | 401 checkOperationErrorErrors(api.OperationErrorErrors o) { |
402 buildCounterOperationErrorErrors++; | 402 buildCounterOperationErrorErrors++; |
403 if (buildCounterOperationErrorErrors < 3) { | 403 if (buildCounterOperationErrorErrors < 3) { |
404 unittest.expect(o.code, unittest.equals('foo')); | 404 unittest.expect(o.code, unittest.equals('foo')); |
405 unittest.expect(o.location, unittest.equals('foo')); | 405 unittest.expect(o.location, unittest.equals('foo')); |
406 unittest.expect(o.message, unittest.equals('foo')); | 406 unittest.expect(o.message, unittest.equals('foo')); |
407 } | 407 } |
408 buildCounterOperationErrorErrors--; | 408 buildCounterOperationErrorErrors--; |
409 } | 409 } |
410 | 410 |
411 buildUnnamed3272() { | 411 buildUnnamed3364() { |
412 var o = new core.List<api.OperationErrorErrors>(); | 412 var o = new core.List<api.OperationErrorErrors>(); |
413 o.add(buildOperationErrorErrors()); | 413 o.add(buildOperationErrorErrors()); |
414 o.add(buildOperationErrorErrors()); | 414 o.add(buildOperationErrorErrors()); |
415 return o; | 415 return o; |
416 } | 416 } |
417 | 417 |
418 checkUnnamed3272(core.List<api.OperationErrorErrors> o) { | 418 checkUnnamed3364(core.List<api.OperationErrorErrors> o) { |
419 unittest.expect(o, unittest.hasLength(2)); | 419 unittest.expect(o, unittest.hasLength(2)); |
420 checkOperationErrorErrors(o[0]); | 420 checkOperationErrorErrors(o[0]); |
421 checkOperationErrorErrors(o[1]); | 421 checkOperationErrorErrors(o[1]); |
422 } | 422 } |
423 | 423 |
424 core.int buildCounterOperationError = 0; | 424 core.int buildCounterOperationError = 0; |
425 buildOperationError() { | 425 buildOperationError() { |
426 var o = new api.OperationError(); | 426 var o = new api.OperationError(); |
427 buildCounterOperationError++; | 427 buildCounterOperationError++; |
428 if (buildCounterOperationError < 3) { | 428 if (buildCounterOperationError < 3) { |
429 o.errors = buildUnnamed3272(); | 429 o.errors = buildUnnamed3364(); |
430 } | 430 } |
431 buildCounterOperationError--; | 431 buildCounterOperationError--; |
432 return o; | 432 return o; |
433 } | 433 } |
434 | 434 |
435 checkOperationError(api.OperationError o) { | 435 checkOperationError(api.OperationError o) { |
436 buildCounterOperationError++; | 436 buildCounterOperationError++; |
437 if (buildCounterOperationError < 3) { | 437 if (buildCounterOperationError < 3) { |
438 checkUnnamed3272(o.errors); | 438 checkUnnamed3364(o.errors); |
439 } | 439 } |
440 buildCounterOperationError--; | 440 buildCounterOperationError--; |
441 } | 441 } |
442 | 442 |
443 core.int buildCounterOperationWarningsData = 0; | 443 core.int buildCounterOperationWarningsData = 0; |
444 buildOperationWarningsData() { | 444 buildOperationWarningsData() { |
445 var o = new api.OperationWarningsData(); | 445 var o = new api.OperationWarningsData(); |
446 buildCounterOperationWarningsData++; | 446 buildCounterOperationWarningsData++; |
447 if (buildCounterOperationWarningsData < 3) { | 447 if (buildCounterOperationWarningsData < 3) { |
448 o.key = "foo"; | 448 o.key = "foo"; |
449 o.value = "foo"; | 449 o.value = "foo"; |
450 } | 450 } |
451 buildCounterOperationWarningsData--; | 451 buildCounterOperationWarningsData--; |
452 return o; | 452 return o; |
453 } | 453 } |
454 | 454 |
455 checkOperationWarningsData(api.OperationWarningsData o) { | 455 checkOperationWarningsData(api.OperationWarningsData o) { |
456 buildCounterOperationWarningsData++; | 456 buildCounterOperationWarningsData++; |
457 if (buildCounterOperationWarningsData < 3) { | 457 if (buildCounterOperationWarningsData < 3) { |
458 unittest.expect(o.key, unittest.equals('foo')); | 458 unittest.expect(o.key, unittest.equals('foo')); |
459 unittest.expect(o.value, unittest.equals('foo')); | 459 unittest.expect(o.value, unittest.equals('foo')); |
460 } | 460 } |
461 buildCounterOperationWarningsData--; | 461 buildCounterOperationWarningsData--; |
462 } | 462 } |
463 | 463 |
464 buildUnnamed3273() { | 464 buildUnnamed3365() { |
465 var o = new core.List<api.OperationWarningsData>(); | 465 var o = new core.List<api.OperationWarningsData>(); |
466 o.add(buildOperationWarningsData()); | 466 o.add(buildOperationWarningsData()); |
467 o.add(buildOperationWarningsData()); | 467 o.add(buildOperationWarningsData()); |
468 return o; | 468 return o; |
469 } | 469 } |
470 | 470 |
471 checkUnnamed3273(core.List<api.OperationWarningsData> o) { | 471 checkUnnamed3365(core.List<api.OperationWarningsData> o) { |
472 unittest.expect(o, unittest.hasLength(2)); | 472 unittest.expect(o, unittest.hasLength(2)); |
473 checkOperationWarningsData(o[0]); | 473 checkOperationWarningsData(o[0]); |
474 checkOperationWarningsData(o[1]); | 474 checkOperationWarningsData(o[1]); |
475 } | 475 } |
476 | 476 |
477 core.int buildCounterOperationWarnings = 0; | 477 core.int buildCounterOperationWarnings = 0; |
478 buildOperationWarnings() { | 478 buildOperationWarnings() { |
479 var o = new api.OperationWarnings(); | 479 var o = new api.OperationWarnings(); |
480 buildCounterOperationWarnings++; | 480 buildCounterOperationWarnings++; |
481 if (buildCounterOperationWarnings < 3) { | 481 if (buildCounterOperationWarnings < 3) { |
482 o.code = "foo"; | 482 o.code = "foo"; |
483 o.data = buildUnnamed3273(); | 483 o.data = buildUnnamed3365(); |
484 o.message = "foo"; | 484 o.message = "foo"; |
485 } | 485 } |
486 buildCounterOperationWarnings--; | 486 buildCounterOperationWarnings--; |
487 return o; | 487 return o; |
488 } | 488 } |
489 | 489 |
490 checkOperationWarnings(api.OperationWarnings o) { | 490 checkOperationWarnings(api.OperationWarnings o) { |
491 buildCounterOperationWarnings++; | 491 buildCounterOperationWarnings++; |
492 if (buildCounterOperationWarnings < 3) { | 492 if (buildCounterOperationWarnings < 3) { |
493 unittest.expect(o.code, unittest.equals('foo')); | 493 unittest.expect(o.code, unittest.equals('foo')); |
494 checkUnnamed3273(o.data); | 494 checkUnnamed3365(o.data); |
495 unittest.expect(o.message, unittest.equals('foo')); | 495 unittest.expect(o.message, unittest.equals('foo')); |
496 } | 496 } |
497 buildCounterOperationWarnings--; | 497 buildCounterOperationWarnings--; |
498 } | 498 } |
499 | 499 |
500 buildUnnamed3274() { | 500 buildUnnamed3366() { |
501 var o = new core.List<api.OperationWarnings>(); | 501 var o = new core.List<api.OperationWarnings>(); |
502 o.add(buildOperationWarnings()); | 502 o.add(buildOperationWarnings()); |
503 o.add(buildOperationWarnings()); | 503 o.add(buildOperationWarnings()); |
504 return o; | 504 return o; |
505 } | 505 } |
506 | 506 |
507 checkUnnamed3274(core.List<api.OperationWarnings> o) { | 507 checkUnnamed3366(core.List<api.OperationWarnings> o) { |
508 unittest.expect(o, unittest.hasLength(2)); | 508 unittest.expect(o, unittest.hasLength(2)); |
509 checkOperationWarnings(o[0]); | 509 checkOperationWarnings(o[0]); |
510 checkOperationWarnings(o[1]); | 510 checkOperationWarnings(o[1]); |
511 } | 511 } |
512 | 512 |
513 core.int buildCounterOperation = 0; | 513 core.int buildCounterOperation = 0; |
514 buildOperation() { | 514 buildOperation() { |
515 var o = new api.Operation(); | 515 var o = new api.Operation(); |
516 buildCounterOperation++; | 516 buildCounterOperation++; |
517 if (buildCounterOperation < 3) { | 517 if (buildCounterOperation < 3) { |
(...skipping 11 matching lines...) Expand all Loading... |
529 o.operationType = "foo"; | 529 o.operationType = "foo"; |
530 o.progress = 42; | 530 o.progress = 42; |
531 o.region = "foo"; | 531 o.region = "foo"; |
532 o.selfLink = "foo"; | 532 o.selfLink = "foo"; |
533 o.startTime = "foo"; | 533 o.startTime = "foo"; |
534 o.status = "foo"; | 534 o.status = "foo"; |
535 o.statusMessage = "foo"; | 535 o.statusMessage = "foo"; |
536 o.targetId = "foo"; | 536 o.targetId = "foo"; |
537 o.targetLink = "foo"; | 537 o.targetLink = "foo"; |
538 o.user = "foo"; | 538 o.user = "foo"; |
539 o.warnings = buildUnnamed3274(); | 539 o.warnings = buildUnnamed3366(); |
540 o.zone = "foo"; | 540 o.zone = "foo"; |
541 } | 541 } |
542 buildCounterOperation--; | 542 buildCounterOperation--; |
543 return o; | 543 return o; |
544 } | 544 } |
545 | 545 |
546 checkOperation(api.Operation o) { | 546 checkOperation(api.Operation o) { |
547 buildCounterOperation++; | 547 buildCounterOperation++; |
548 if (buildCounterOperation < 3) { | 548 if (buildCounterOperation < 3) { |
549 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 549 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
(...skipping 10 matching lines...) Expand all Loading... |
560 unittest.expect(o.operationType, unittest.equals('foo')); | 560 unittest.expect(o.operationType, unittest.equals('foo')); |
561 unittest.expect(o.progress, unittest.equals(42)); | 561 unittest.expect(o.progress, unittest.equals(42)); |
562 unittest.expect(o.region, unittest.equals('foo')); | 562 unittest.expect(o.region, unittest.equals('foo')); |
563 unittest.expect(o.selfLink, unittest.equals('foo')); | 563 unittest.expect(o.selfLink, unittest.equals('foo')); |
564 unittest.expect(o.startTime, unittest.equals('foo')); | 564 unittest.expect(o.startTime, unittest.equals('foo')); |
565 unittest.expect(o.status, unittest.equals('foo')); | 565 unittest.expect(o.status, unittest.equals('foo')); |
566 unittest.expect(o.statusMessage, unittest.equals('foo')); | 566 unittest.expect(o.statusMessage, unittest.equals('foo')); |
567 unittest.expect(o.targetId, unittest.equals('foo')); | 567 unittest.expect(o.targetId, unittest.equals('foo')); |
568 unittest.expect(o.targetLink, unittest.equals('foo')); | 568 unittest.expect(o.targetLink, unittest.equals('foo')); |
569 unittest.expect(o.user, unittest.equals('foo')); | 569 unittest.expect(o.user, unittest.equals('foo')); |
570 checkUnnamed3274(o.warnings); | 570 checkUnnamed3366(o.warnings); |
571 unittest.expect(o.zone, unittest.equals('foo')); | 571 unittest.expect(o.zone, unittest.equals('foo')); |
572 } | 572 } |
573 buildCounterOperation--; | 573 buildCounterOperation--; |
574 } | 574 } |
575 | 575 |
576 buildUnnamed3275() { | 576 buildUnnamed3367() { |
577 var o = new core.List<api.Operation>(); | 577 var o = new core.List<api.Operation>(); |
578 o.add(buildOperation()); | 578 o.add(buildOperation()); |
579 o.add(buildOperation()); | 579 o.add(buildOperation()); |
580 return o; | 580 return o; |
581 } | 581 } |
582 | 582 |
583 checkUnnamed3275(core.List<api.Operation> o) { | 583 checkUnnamed3367(core.List<api.Operation> o) { |
584 unittest.expect(o, unittest.hasLength(2)); | 584 unittest.expect(o, unittest.hasLength(2)); |
585 checkOperation(o[0]); | 585 checkOperation(o[0]); |
586 checkOperation(o[1]); | 586 checkOperation(o[1]); |
587 } | 587 } |
588 | 588 |
589 core.int buildCounterOperationList = 0; | 589 core.int buildCounterOperationList = 0; |
590 buildOperationList() { | 590 buildOperationList() { |
591 var o = new api.OperationList(); | 591 var o = new api.OperationList(); |
592 buildCounterOperationList++; | 592 buildCounterOperationList++; |
593 if (buildCounterOperationList < 3) { | 593 if (buildCounterOperationList < 3) { |
594 o.id = "foo"; | 594 o.id = "foo"; |
595 o.items = buildUnnamed3275(); | 595 o.items = buildUnnamed3367(); |
596 o.kind = "foo"; | 596 o.kind = "foo"; |
597 o.nextPageToken = "foo"; | 597 o.nextPageToken = "foo"; |
598 o.selfLink = "foo"; | 598 o.selfLink = "foo"; |
599 } | 599 } |
600 buildCounterOperationList--; | 600 buildCounterOperationList--; |
601 return o; | 601 return o; |
602 } | 602 } |
603 | 603 |
604 checkOperationList(api.OperationList o) { | 604 checkOperationList(api.OperationList o) { |
605 buildCounterOperationList++; | 605 buildCounterOperationList++; |
606 if (buildCounterOperationList < 3) { | 606 if (buildCounterOperationList < 3) { |
607 unittest.expect(o.id, unittest.equals('foo')); | 607 unittest.expect(o.id, unittest.equals('foo')); |
608 checkUnnamed3275(o.items); | 608 checkUnnamed3367(o.items); |
609 unittest.expect(o.kind, unittest.equals('foo')); | 609 unittest.expect(o.kind, unittest.equals('foo')); |
610 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 610 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
611 unittest.expect(o.selfLink, unittest.equals('foo')); | 611 unittest.expect(o.selfLink, unittest.equals('foo')); |
612 } | 612 } |
613 buildCounterOperationList--; | 613 buildCounterOperationList--; |
614 } | 614 } |
615 | 615 |
616 core.int buildCounterPublicKey = 0; | 616 core.int buildCounterPublicKey = 0; |
617 buildPublicKey() { | 617 buildPublicKey() { |
618 var o = new api.PublicKey(); | 618 var o = new api.PublicKey(); |
(...skipping 14 matching lines...) Expand all Loading... |
633 if (buildCounterPublicKey < 3) { | 633 if (buildCounterPublicKey < 3) { |
634 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 634 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
635 unittest.expect(o.description, unittest.equals('foo')); | 635 unittest.expect(o.description, unittest.equals('foo')); |
636 unittest.expect(o.expirationTimestamp, unittest.equals('foo')); | 636 unittest.expect(o.expirationTimestamp, unittest.equals('foo')); |
637 unittest.expect(o.fingerprint, unittest.equals('foo')); | 637 unittest.expect(o.fingerprint, unittest.equals('foo')); |
638 unittest.expect(o.key, unittest.equals('foo')); | 638 unittest.expect(o.key, unittest.equals('foo')); |
639 } | 639 } |
640 buildCounterPublicKey--; | 640 buildCounterPublicKey--; |
641 } | 641 } |
642 | 642 |
643 buildUnnamed3276() { | 643 buildUnnamed3368() { |
644 var o = new core.List<core.String>(); | 644 var o = new core.List<core.String>(); |
645 o.add("foo"); | 645 o.add("foo"); |
646 o.add("foo"); | 646 o.add("foo"); |
647 return o; | 647 return o; |
648 } | 648 } |
649 | 649 |
650 checkUnnamed3276(core.List<core.String> o) { | 650 checkUnnamed3368(core.List<core.String> o) { |
651 unittest.expect(o, unittest.hasLength(2)); | 651 unittest.expect(o, unittest.hasLength(2)); |
652 unittest.expect(o[0], unittest.equals('foo')); | 652 unittest.expect(o[0], unittest.equals('foo')); |
653 unittest.expect(o[1], unittest.equals('foo')); | 653 unittest.expect(o[1], unittest.equals('foo')); |
654 } | 654 } |
655 | 655 |
656 buildUnnamed3277() { | 656 buildUnnamed3369() { |
657 var o = new core.List<api.PublicKey>(); | 657 var o = new core.List<api.PublicKey>(); |
658 o.add(buildPublicKey()); | 658 o.add(buildPublicKey()); |
659 o.add(buildPublicKey()); | 659 o.add(buildPublicKey()); |
660 return o; | 660 return o; |
661 } | 661 } |
662 | 662 |
663 checkUnnamed3277(core.List<api.PublicKey> o) { | 663 checkUnnamed3369(core.List<api.PublicKey> o) { |
664 unittest.expect(o, unittest.hasLength(2)); | 664 unittest.expect(o, unittest.hasLength(2)); |
665 checkPublicKey(o[0]); | 665 checkPublicKey(o[0]); |
666 checkPublicKey(o[1]); | 666 checkPublicKey(o[1]); |
667 } | 667 } |
668 | 668 |
669 core.int buildCounterUser = 0; | 669 core.int buildCounterUser = 0; |
670 buildUser() { | 670 buildUser() { |
671 var o = new api.User(); | 671 var o = new api.User(); |
672 buildCounterUser++; | 672 buildCounterUser++; |
673 if (buildCounterUser < 3) { | 673 if (buildCounterUser < 3) { |
674 o.creationTimestamp = "foo"; | 674 o.creationTimestamp = "foo"; |
675 o.description = "foo"; | 675 o.description = "foo"; |
676 o.groups = buildUnnamed3276(); | 676 o.groups = buildUnnamed3368(); |
677 o.id = "foo"; | 677 o.id = "foo"; |
678 o.kind = "foo"; | 678 o.kind = "foo"; |
679 o.name = "foo"; | 679 o.name = "foo"; |
680 o.owner = "foo"; | 680 o.owner = "foo"; |
681 o.publicKeys = buildUnnamed3277(); | 681 o.publicKeys = buildUnnamed3369(); |
682 o.selfLink = "foo"; | 682 o.selfLink = "foo"; |
683 } | 683 } |
684 buildCounterUser--; | 684 buildCounterUser--; |
685 return o; | 685 return o; |
686 } | 686 } |
687 | 687 |
688 checkUser(api.User o) { | 688 checkUser(api.User o) { |
689 buildCounterUser++; | 689 buildCounterUser++; |
690 if (buildCounterUser < 3) { | 690 if (buildCounterUser < 3) { |
691 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 691 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
692 unittest.expect(o.description, unittest.equals('foo')); | 692 unittest.expect(o.description, unittest.equals('foo')); |
693 checkUnnamed3276(o.groups); | 693 checkUnnamed3368(o.groups); |
694 unittest.expect(o.id, unittest.equals('foo')); | 694 unittest.expect(o.id, unittest.equals('foo')); |
695 unittest.expect(o.kind, unittest.equals('foo')); | 695 unittest.expect(o.kind, unittest.equals('foo')); |
696 unittest.expect(o.name, unittest.equals('foo')); | 696 unittest.expect(o.name, unittest.equals('foo')); |
697 unittest.expect(o.owner, unittest.equals('foo')); | 697 unittest.expect(o.owner, unittest.equals('foo')); |
698 checkUnnamed3277(o.publicKeys); | 698 checkUnnamed3369(o.publicKeys); |
699 unittest.expect(o.selfLink, unittest.equals('foo')); | 699 unittest.expect(o.selfLink, unittest.equals('foo')); |
700 } | 700 } |
701 buildCounterUser--; | 701 buildCounterUser--; |
702 } | 702 } |
703 | 703 |
704 buildUnnamed3278() { | 704 buildUnnamed3370() { |
705 var o = new core.List<api.User>(); | 705 var o = new core.List<api.User>(); |
706 o.add(buildUser()); | 706 o.add(buildUser()); |
707 o.add(buildUser()); | 707 o.add(buildUser()); |
708 return o; | 708 return o; |
709 } | 709 } |
710 | 710 |
711 checkUnnamed3278(core.List<api.User> o) { | 711 checkUnnamed3370(core.List<api.User> o) { |
712 unittest.expect(o, unittest.hasLength(2)); | 712 unittest.expect(o, unittest.hasLength(2)); |
713 checkUser(o[0]); | 713 checkUser(o[0]); |
714 checkUser(o[1]); | 714 checkUser(o[1]); |
715 } | 715 } |
716 | 716 |
717 core.int buildCounterUserList = 0; | 717 core.int buildCounterUserList = 0; |
718 buildUserList() { | 718 buildUserList() { |
719 var o = new api.UserList(); | 719 var o = new api.UserList(); |
720 buildCounterUserList++; | 720 buildCounterUserList++; |
721 if (buildCounterUserList < 3) { | 721 if (buildCounterUserList < 3) { |
722 o.id = "foo"; | 722 o.id = "foo"; |
723 o.items = buildUnnamed3278(); | 723 o.items = buildUnnamed3370(); |
724 o.kind = "foo"; | 724 o.kind = "foo"; |
725 o.nextPageToken = "foo"; | 725 o.nextPageToken = "foo"; |
726 o.selfLink = "foo"; | 726 o.selfLink = "foo"; |
727 } | 727 } |
728 buildCounterUserList--; | 728 buildCounterUserList--; |
729 return o; | 729 return o; |
730 } | 730 } |
731 | 731 |
732 checkUserList(api.UserList o) { | 732 checkUserList(api.UserList o) { |
733 buildCounterUserList++; | 733 buildCounterUserList++; |
734 if (buildCounterUserList < 3) { | 734 if (buildCounterUserList < 3) { |
735 unittest.expect(o.id, unittest.equals('foo')); | 735 unittest.expect(o.id, unittest.equals('foo')); |
736 checkUnnamed3278(o.items); | 736 checkUnnamed3370(o.items); |
737 unittest.expect(o.kind, unittest.equals('foo')); | 737 unittest.expect(o.kind, unittest.equals('foo')); |
738 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 738 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
739 unittest.expect(o.selfLink, unittest.equals('foo')); | 739 unittest.expect(o.selfLink, unittest.equals('foo')); |
740 } | 740 } |
741 buildCounterUserList--; | 741 buildCounterUserList--; |
742 } | 742 } |
743 | 743 |
744 | 744 |
745 main() { | 745 main() { |
746 unittest.group("obj-schema-AuthorizedKeysView", () { | 746 unittest.group("obj-schema-AuthorizedKeysView", () { |
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1710 res.removePublicKey(arg_project, arg_user, arg_fingerprint).then(unittest.
expectAsync(((api.Operation response) { | 1710 res.removePublicKey(arg_project, arg_user, arg_fingerprint).then(unittest.
expectAsync(((api.Operation response) { |
1711 checkOperation(response); | 1711 checkOperation(response); |
1712 }))); | 1712 }))); |
1713 }); | 1713 }); |
1714 | 1714 |
1715 }); | 1715 }); |
1716 | 1716 |
1717 | 1717 |
1718 } | 1718 } |
1719 | 1719 |
OLD | NEW |