OLD | NEW |
1 library googleapis.deploymentmanager.v2.test; | 1 library googleapis.deploymentmanager.v2.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 buildUnnamed2172() { | 54 buildUnnamed1943() { |
| 55 var o = new core.List<api.AuditLogConfig>(); |
| 56 o.add(buildAuditLogConfig()); |
| 57 o.add(buildAuditLogConfig()); |
| 58 return o; |
| 59 } |
| 60 |
| 61 checkUnnamed1943(core.List<api.AuditLogConfig> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 checkAuditLogConfig(o[0]); |
| 64 checkAuditLogConfig(o[1]); |
| 65 } |
| 66 |
| 67 buildUnnamed1944() { |
55 var o = new core.List<core.String>(); | 68 var o = new core.List<core.String>(); |
56 o.add("foo"); | 69 o.add("foo"); |
57 o.add("foo"); | 70 o.add("foo"); |
58 return o; | 71 return o; |
59 } | 72 } |
60 | 73 |
61 checkUnnamed2172(core.List<core.String> o) { | 74 checkUnnamed1944(core.List<core.String> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
63 unittest.expect(o[0], unittest.equals('foo')); | 76 unittest.expect(o[0], unittest.equals('foo')); |
64 unittest.expect(o[1], unittest.equals('foo')); | 77 unittest.expect(o[1], unittest.equals('foo')); |
65 } | 78 } |
66 | 79 |
67 core.int buildCounterAuditConfig = 0; | 80 core.int buildCounterAuditConfig = 0; |
68 buildAuditConfig() { | 81 buildAuditConfig() { |
69 var o = new api.AuditConfig(); | 82 var o = new api.AuditConfig(); |
70 buildCounterAuditConfig++; | 83 buildCounterAuditConfig++; |
71 if (buildCounterAuditConfig < 3) { | 84 if (buildCounterAuditConfig < 3) { |
72 o.exemptedMembers = buildUnnamed2172(); | 85 o.auditLogConfigs = buildUnnamed1943(); |
| 86 o.exemptedMembers = buildUnnamed1944(); |
73 o.service = "foo"; | 87 o.service = "foo"; |
74 } | 88 } |
75 buildCounterAuditConfig--; | 89 buildCounterAuditConfig--; |
76 return o; | 90 return o; |
77 } | 91 } |
78 | 92 |
79 checkAuditConfig(api.AuditConfig o) { | 93 checkAuditConfig(api.AuditConfig o) { |
80 buildCounterAuditConfig++; | 94 buildCounterAuditConfig++; |
81 if (buildCounterAuditConfig < 3) { | 95 if (buildCounterAuditConfig < 3) { |
82 checkUnnamed2172(o.exemptedMembers); | 96 checkUnnamed1943(o.auditLogConfigs); |
| 97 checkUnnamed1944(o.exemptedMembers); |
83 unittest.expect(o.service, unittest.equals('foo')); | 98 unittest.expect(o.service, unittest.equals('foo')); |
84 } | 99 } |
85 buildCounterAuditConfig--; | 100 buildCounterAuditConfig--; |
86 } | 101 } |
87 | 102 |
88 buildUnnamed2173() { | 103 buildUnnamed1945() { |
89 var o = new core.List<core.String>(); | 104 var o = new core.List<core.String>(); |
90 o.add("foo"); | 105 o.add("foo"); |
91 o.add("foo"); | 106 o.add("foo"); |
92 return o; | 107 return o; |
93 } | 108 } |
94 | 109 |
95 checkUnnamed2173(core.List<core.String> o) { | 110 checkUnnamed1945(core.List<core.String> o) { |
96 unittest.expect(o, unittest.hasLength(2)); | 111 unittest.expect(o, unittest.hasLength(2)); |
97 unittest.expect(o[0], unittest.equals('foo')); | 112 unittest.expect(o[0], unittest.equals('foo')); |
98 unittest.expect(o[1], unittest.equals('foo')); | 113 unittest.expect(o[1], unittest.equals('foo')); |
| 114 } |
| 115 |
| 116 core.int buildCounterAuditLogConfig = 0; |
| 117 buildAuditLogConfig() { |
| 118 var o = new api.AuditLogConfig(); |
| 119 buildCounterAuditLogConfig++; |
| 120 if (buildCounterAuditLogConfig < 3) { |
| 121 o.exemptedMembers = buildUnnamed1945(); |
| 122 o.logType = "foo"; |
| 123 } |
| 124 buildCounterAuditLogConfig--; |
| 125 return o; |
| 126 } |
| 127 |
| 128 checkAuditLogConfig(api.AuditLogConfig o) { |
| 129 buildCounterAuditLogConfig++; |
| 130 if (buildCounterAuditLogConfig < 3) { |
| 131 checkUnnamed1945(o.exemptedMembers); |
| 132 unittest.expect(o.logType, unittest.equals('foo')); |
| 133 } |
| 134 buildCounterAuditLogConfig--; |
| 135 } |
| 136 |
| 137 buildUnnamed1946() { |
| 138 var o = new core.List<core.String>(); |
| 139 o.add("foo"); |
| 140 o.add("foo"); |
| 141 return o; |
| 142 } |
| 143 |
| 144 checkUnnamed1946(core.List<core.String> o) { |
| 145 unittest.expect(o, unittest.hasLength(2)); |
| 146 unittest.expect(o[0], unittest.equals('foo')); |
| 147 unittest.expect(o[1], unittest.equals('foo')); |
99 } | 148 } |
100 | 149 |
101 core.int buildCounterBinding = 0; | 150 core.int buildCounterBinding = 0; |
102 buildBinding() { | 151 buildBinding() { |
103 var o = new api.Binding(); | 152 var o = new api.Binding(); |
104 buildCounterBinding++; | 153 buildCounterBinding++; |
105 if (buildCounterBinding < 3) { | 154 if (buildCounterBinding < 3) { |
106 o.members = buildUnnamed2173(); | 155 o.members = buildUnnamed1946(); |
107 o.role = "foo"; | 156 o.role = "foo"; |
108 } | 157 } |
109 buildCounterBinding--; | 158 buildCounterBinding--; |
110 return o; | 159 return o; |
111 } | 160 } |
112 | 161 |
113 checkBinding(api.Binding o) { | 162 checkBinding(api.Binding o) { |
114 buildCounterBinding++; | 163 buildCounterBinding++; |
115 if (buildCounterBinding < 3) { | 164 if (buildCounterBinding < 3) { |
116 checkUnnamed2173(o.members); | 165 checkUnnamed1946(o.members); |
117 unittest.expect(o.role, unittest.equals('foo')); | 166 unittest.expect(o.role, unittest.equals('foo')); |
118 } | 167 } |
119 buildCounterBinding--; | 168 buildCounterBinding--; |
120 } | 169 } |
121 | 170 |
122 buildUnnamed2174() { | 171 buildUnnamed1947() { |
123 var o = new core.List<core.String>(); | 172 var o = new core.List<core.String>(); |
124 o.add("foo"); | 173 o.add("foo"); |
125 o.add("foo"); | 174 o.add("foo"); |
126 return o; | 175 return o; |
127 } | 176 } |
128 | 177 |
129 checkUnnamed2174(core.List<core.String> o) { | 178 checkUnnamed1947(core.List<core.String> o) { |
130 unittest.expect(o, unittest.hasLength(2)); | 179 unittest.expect(o, unittest.hasLength(2)); |
131 unittest.expect(o[0], unittest.equals('foo')); | 180 unittest.expect(o[0], unittest.equals('foo')); |
132 unittest.expect(o[1], unittest.equals('foo')); | 181 unittest.expect(o[1], unittest.equals('foo')); |
133 } | 182 } |
134 | 183 |
135 core.int buildCounterCondition = 0; | 184 core.int buildCounterCondition = 0; |
136 buildCondition() { | 185 buildCondition() { |
137 var o = new api.Condition(); | 186 var o = new api.Condition(); |
138 buildCounterCondition++; | 187 buildCounterCondition++; |
139 if (buildCounterCondition < 3) { | 188 if (buildCounterCondition < 3) { |
140 o.iam = "foo"; | 189 o.iam = "foo"; |
141 o.op = "foo"; | 190 o.op = "foo"; |
142 o.svc = "foo"; | 191 o.svc = "foo"; |
143 o.sys = "foo"; | 192 o.sys = "foo"; |
144 o.value = "foo"; | 193 o.value = "foo"; |
145 o.values = buildUnnamed2174(); | 194 o.values = buildUnnamed1947(); |
146 } | 195 } |
147 buildCounterCondition--; | 196 buildCounterCondition--; |
148 return o; | 197 return o; |
149 } | 198 } |
150 | 199 |
151 checkCondition(api.Condition o) { | 200 checkCondition(api.Condition o) { |
152 buildCounterCondition++; | 201 buildCounterCondition++; |
153 if (buildCounterCondition < 3) { | 202 if (buildCounterCondition < 3) { |
154 unittest.expect(o.iam, unittest.equals('foo')); | 203 unittest.expect(o.iam, unittest.equals('foo')); |
155 unittest.expect(o.op, unittest.equals('foo')); | 204 unittest.expect(o.op, unittest.equals('foo')); |
156 unittest.expect(o.svc, unittest.equals('foo')); | 205 unittest.expect(o.svc, unittest.equals('foo')); |
157 unittest.expect(o.sys, unittest.equals('foo')); | 206 unittest.expect(o.sys, unittest.equals('foo')); |
158 unittest.expect(o.value, unittest.equals('foo')); | 207 unittest.expect(o.value, unittest.equals('foo')); |
159 checkUnnamed2174(o.values); | 208 checkUnnamed1947(o.values); |
160 } | 209 } |
161 buildCounterCondition--; | 210 buildCounterCondition--; |
162 } | 211 } |
163 | 212 |
164 core.int buildCounterConfigFile = 0; | 213 core.int buildCounterConfigFile = 0; |
165 buildConfigFile() { | 214 buildConfigFile() { |
166 var o = new api.ConfigFile(); | 215 var o = new api.ConfigFile(); |
167 buildCounterConfigFile++; | 216 buildCounterConfigFile++; |
168 if (buildCounterConfigFile < 3) { | 217 if (buildCounterConfigFile < 3) { |
169 o.content = "foo"; | 218 o.content = "foo"; |
170 } | 219 } |
171 buildCounterConfigFile--; | 220 buildCounterConfigFile--; |
172 return o; | 221 return o; |
173 } | 222 } |
174 | 223 |
175 checkConfigFile(api.ConfigFile o) { | 224 checkConfigFile(api.ConfigFile o) { |
176 buildCounterConfigFile++; | 225 buildCounterConfigFile++; |
177 if (buildCounterConfigFile < 3) { | 226 if (buildCounterConfigFile < 3) { |
178 unittest.expect(o.content, unittest.equals('foo')); | 227 unittest.expect(o.content, unittest.equals('foo')); |
179 } | 228 } |
180 buildCounterConfigFile--; | 229 buildCounterConfigFile--; |
181 } | 230 } |
182 | 231 |
183 buildUnnamed2175() { | 232 buildUnnamed1948() { |
184 var o = new core.List<api.DeploymentLabelEntry>(); | 233 var o = new core.List<api.DeploymentLabelEntry>(); |
185 o.add(buildDeploymentLabelEntry()); | 234 o.add(buildDeploymentLabelEntry()); |
186 o.add(buildDeploymentLabelEntry()); | 235 o.add(buildDeploymentLabelEntry()); |
187 return o; | 236 return o; |
188 } | 237 } |
189 | 238 |
190 checkUnnamed2175(core.List<api.DeploymentLabelEntry> o) { | 239 checkUnnamed1948(core.List<api.DeploymentLabelEntry> o) { |
191 unittest.expect(o, unittest.hasLength(2)); | 240 unittest.expect(o, unittest.hasLength(2)); |
192 checkDeploymentLabelEntry(o[0]); | 241 checkDeploymentLabelEntry(o[0]); |
193 checkDeploymentLabelEntry(o[1]); | 242 checkDeploymentLabelEntry(o[1]); |
194 } | 243 } |
195 | 244 |
196 core.int buildCounterDeployment = 0; | 245 core.int buildCounterDeployment = 0; |
197 buildDeployment() { | 246 buildDeployment() { |
198 var o = new api.Deployment(); | 247 var o = new api.Deployment(); |
199 buildCounterDeployment++; | 248 buildCounterDeployment++; |
200 if (buildCounterDeployment < 3) { | 249 if (buildCounterDeployment < 3) { |
201 o.description = "foo"; | 250 o.description = "foo"; |
202 o.fingerprint = "foo"; | 251 o.fingerprint = "foo"; |
203 o.id = "foo"; | 252 o.id = "foo"; |
204 o.insertTime = "foo"; | 253 o.insertTime = "foo"; |
205 o.labels = buildUnnamed2175(); | 254 o.labels = buildUnnamed1948(); |
206 o.manifest = "foo"; | 255 o.manifest = "foo"; |
207 o.name = "foo"; | 256 o.name = "foo"; |
208 o.operation = buildOperation(); | 257 o.operation = buildOperation(); |
209 o.selfLink = "foo"; | 258 o.selfLink = "foo"; |
210 o.target = buildTargetConfiguration(); | 259 o.target = buildTargetConfiguration(); |
211 o.update = buildDeploymentUpdate(); | 260 o.update = buildDeploymentUpdate(); |
212 } | 261 } |
213 buildCounterDeployment--; | 262 buildCounterDeployment--; |
214 return o; | 263 return o; |
215 } | 264 } |
216 | 265 |
217 checkDeployment(api.Deployment o) { | 266 checkDeployment(api.Deployment o) { |
218 buildCounterDeployment++; | 267 buildCounterDeployment++; |
219 if (buildCounterDeployment < 3) { | 268 if (buildCounterDeployment < 3) { |
220 unittest.expect(o.description, unittest.equals('foo')); | 269 unittest.expect(o.description, unittest.equals('foo')); |
221 unittest.expect(o.fingerprint, unittest.equals('foo')); | 270 unittest.expect(o.fingerprint, unittest.equals('foo')); |
222 unittest.expect(o.id, unittest.equals('foo')); | 271 unittest.expect(o.id, unittest.equals('foo')); |
223 unittest.expect(o.insertTime, unittest.equals('foo')); | 272 unittest.expect(o.insertTime, unittest.equals('foo')); |
224 checkUnnamed2175(o.labels); | 273 checkUnnamed1948(o.labels); |
225 unittest.expect(o.manifest, unittest.equals('foo')); | 274 unittest.expect(o.manifest, unittest.equals('foo')); |
226 unittest.expect(o.name, unittest.equals('foo')); | 275 unittest.expect(o.name, unittest.equals('foo')); |
227 checkOperation(o.operation); | 276 checkOperation(o.operation); |
228 unittest.expect(o.selfLink, unittest.equals('foo')); | 277 unittest.expect(o.selfLink, unittest.equals('foo')); |
229 checkTargetConfiguration(o.target); | 278 checkTargetConfiguration(o.target); |
230 checkDeploymentUpdate(o.update); | 279 checkDeploymentUpdate(o.update); |
231 } | 280 } |
232 buildCounterDeployment--; | 281 buildCounterDeployment--; |
233 } | 282 } |
234 | 283 |
(...skipping 11 matching lines...) Expand all Loading... |
246 | 295 |
247 checkDeploymentLabelEntry(api.DeploymentLabelEntry o) { | 296 checkDeploymentLabelEntry(api.DeploymentLabelEntry o) { |
248 buildCounterDeploymentLabelEntry++; | 297 buildCounterDeploymentLabelEntry++; |
249 if (buildCounterDeploymentLabelEntry < 3) { | 298 if (buildCounterDeploymentLabelEntry < 3) { |
250 unittest.expect(o.key, unittest.equals('foo')); | 299 unittest.expect(o.key, unittest.equals('foo')); |
251 unittest.expect(o.value, unittest.equals('foo')); | 300 unittest.expect(o.value, unittest.equals('foo')); |
252 } | 301 } |
253 buildCounterDeploymentLabelEntry--; | 302 buildCounterDeploymentLabelEntry--; |
254 } | 303 } |
255 | 304 |
256 buildUnnamed2176() { | 305 buildUnnamed1949() { |
257 var o = new core.List<api.DeploymentUpdateLabelEntry>(); | 306 var o = new core.List<api.DeploymentUpdateLabelEntry>(); |
258 o.add(buildDeploymentUpdateLabelEntry()); | 307 o.add(buildDeploymentUpdateLabelEntry()); |
259 o.add(buildDeploymentUpdateLabelEntry()); | 308 o.add(buildDeploymentUpdateLabelEntry()); |
260 return o; | 309 return o; |
261 } | 310 } |
262 | 311 |
263 checkUnnamed2176(core.List<api.DeploymentUpdateLabelEntry> o) { | 312 checkUnnamed1949(core.List<api.DeploymentUpdateLabelEntry> o) { |
264 unittest.expect(o, unittest.hasLength(2)); | 313 unittest.expect(o, unittest.hasLength(2)); |
265 checkDeploymentUpdateLabelEntry(o[0]); | 314 checkDeploymentUpdateLabelEntry(o[0]); |
266 checkDeploymentUpdateLabelEntry(o[1]); | 315 checkDeploymentUpdateLabelEntry(o[1]); |
267 } | 316 } |
268 | 317 |
269 core.int buildCounterDeploymentUpdate = 0; | 318 core.int buildCounterDeploymentUpdate = 0; |
270 buildDeploymentUpdate() { | 319 buildDeploymentUpdate() { |
271 var o = new api.DeploymentUpdate(); | 320 var o = new api.DeploymentUpdate(); |
272 buildCounterDeploymentUpdate++; | 321 buildCounterDeploymentUpdate++; |
273 if (buildCounterDeploymentUpdate < 3) { | 322 if (buildCounterDeploymentUpdate < 3) { |
274 o.labels = buildUnnamed2176(); | 323 o.labels = buildUnnamed1949(); |
275 o.manifest = "foo"; | 324 o.manifest = "foo"; |
276 } | 325 } |
277 buildCounterDeploymentUpdate--; | 326 buildCounterDeploymentUpdate--; |
278 return o; | 327 return o; |
279 } | 328 } |
280 | 329 |
281 checkDeploymentUpdate(api.DeploymentUpdate o) { | 330 checkDeploymentUpdate(api.DeploymentUpdate o) { |
282 buildCounterDeploymentUpdate++; | 331 buildCounterDeploymentUpdate++; |
283 if (buildCounterDeploymentUpdate < 3) { | 332 if (buildCounterDeploymentUpdate < 3) { |
284 checkUnnamed2176(o.labels); | 333 checkUnnamed1949(o.labels); |
285 unittest.expect(o.manifest, unittest.equals('foo')); | 334 unittest.expect(o.manifest, unittest.equals('foo')); |
286 } | 335 } |
287 buildCounterDeploymentUpdate--; | 336 buildCounterDeploymentUpdate--; |
288 } | 337 } |
289 | 338 |
290 core.int buildCounterDeploymentUpdateLabelEntry = 0; | 339 core.int buildCounterDeploymentUpdateLabelEntry = 0; |
291 buildDeploymentUpdateLabelEntry() { | 340 buildDeploymentUpdateLabelEntry() { |
292 var o = new api.DeploymentUpdateLabelEntry(); | 341 var o = new api.DeploymentUpdateLabelEntry(); |
293 buildCounterDeploymentUpdateLabelEntry++; | 342 buildCounterDeploymentUpdateLabelEntry++; |
294 if (buildCounterDeploymentUpdateLabelEntry < 3) { | 343 if (buildCounterDeploymentUpdateLabelEntry < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
320 } | 369 } |
321 | 370 |
322 checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) { | 371 checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) { |
323 buildCounterDeploymentsCancelPreviewRequest++; | 372 buildCounterDeploymentsCancelPreviewRequest++; |
324 if (buildCounterDeploymentsCancelPreviewRequest < 3) { | 373 if (buildCounterDeploymentsCancelPreviewRequest < 3) { |
325 unittest.expect(o.fingerprint, unittest.equals('foo')); | 374 unittest.expect(o.fingerprint, unittest.equals('foo')); |
326 } | 375 } |
327 buildCounterDeploymentsCancelPreviewRequest--; | 376 buildCounterDeploymentsCancelPreviewRequest--; |
328 } | 377 } |
329 | 378 |
330 buildUnnamed2177() { | 379 buildUnnamed1950() { |
331 var o = new core.List<api.Deployment>(); | 380 var o = new core.List<api.Deployment>(); |
332 o.add(buildDeployment()); | 381 o.add(buildDeployment()); |
333 o.add(buildDeployment()); | 382 o.add(buildDeployment()); |
334 return o; | 383 return o; |
335 } | 384 } |
336 | 385 |
337 checkUnnamed2177(core.List<api.Deployment> o) { | 386 checkUnnamed1950(core.List<api.Deployment> o) { |
338 unittest.expect(o, unittest.hasLength(2)); | 387 unittest.expect(o, unittest.hasLength(2)); |
339 checkDeployment(o[0]); | 388 checkDeployment(o[0]); |
340 checkDeployment(o[1]); | 389 checkDeployment(o[1]); |
341 } | 390 } |
342 | 391 |
343 core.int buildCounterDeploymentsListResponse = 0; | 392 core.int buildCounterDeploymentsListResponse = 0; |
344 buildDeploymentsListResponse() { | 393 buildDeploymentsListResponse() { |
345 var o = new api.DeploymentsListResponse(); | 394 var o = new api.DeploymentsListResponse(); |
346 buildCounterDeploymentsListResponse++; | 395 buildCounterDeploymentsListResponse++; |
347 if (buildCounterDeploymentsListResponse < 3) { | 396 if (buildCounterDeploymentsListResponse < 3) { |
348 o.deployments = buildUnnamed2177(); | 397 o.deployments = buildUnnamed1950(); |
349 o.nextPageToken = "foo"; | 398 o.nextPageToken = "foo"; |
350 } | 399 } |
351 buildCounterDeploymentsListResponse--; | 400 buildCounterDeploymentsListResponse--; |
352 return o; | 401 return o; |
353 } | 402 } |
354 | 403 |
355 checkDeploymentsListResponse(api.DeploymentsListResponse o) { | 404 checkDeploymentsListResponse(api.DeploymentsListResponse o) { |
356 buildCounterDeploymentsListResponse++; | 405 buildCounterDeploymentsListResponse++; |
357 if (buildCounterDeploymentsListResponse < 3) { | 406 if (buildCounterDeploymentsListResponse < 3) { |
358 checkUnnamed2177(o.deployments); | 407 checkUnnamed1950(o.deployments); |
359 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 408 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
360 } | 409 } |
361 buildCounterDeploymentsListResponse--; | 410 buildCounterDeploymentsListResponse--; |
362 } | 411 } |
363 | 412 |
364 core.int buildCounterDeploymentsStopRequest = 0; | 413 core.int buildCounterDeploymentsStopRequest = 0; |
365 buildDeploymentsStopRequest() { | 414 buildDeploymentsStopRequest() { |
366 var o = new api.DeploymentsStopRequest(); | 415 var o = new api.DeploymentsStopRequest(); |
367 buildCounterDeploymentsStopRequest++; | 416 buildCounterDeploymentsStopRequest++; |
368 if (buildCounterDeploymentsStopRequest < 3) { | 417 if (buildCounterDeploymentsStopRequest < 3) { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 | 483 |
435 checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { | 484 checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { |
436 buildCounterLogConfigCounterOptions++; | 485 buildCounterLogConfigCounterOptions++; |
437 if (buildCounterLogConfigCounterOptions < 3) { | 486 if (buildCounterLogConfigCounterOptions < 3) { |
438 unittest.expect(o.field, unittest.equals('foo')); | 487 unittest.expect(o.field, unittest.equals('foo')); |
439 unittest.expect(o.metric, unittest.equals('foo')); | 488 unittest.expect(o.metric, unittest.equals('foo')); |
440 } | 489 } |
441 buildCounterLogConfigCounterOptions--; | 490 buildCounterLogConfigCounterOptions--; |
442 } | 491 } |
443 | 492 |
444 buildUnnamed2178() { | 493 buildUnnamed1951() { |
445 var o = new core.List<api.ImportFile>(); | 494 var o = new core.List<api.ImportFile>(); |
446 o.add(buildImportFile()); | 495 o.add(buildImportFile()); |
447 o.add(buildImportFile()); | 496 o.add(buildImportFile()); |
448 return o; | 497 return o; |
449 } | 498 } |
450 | 499 |
451 checkUnnamed2178(core.List<api.ImportFile> o) { | 500 checkUnnamed1951(core.List<api.ImportFile> o) { |
452 unittest.expect(o, unittest.hasLength(2)); | 501 unittest.expect(o, unittest.hasLength(2)); |
453 checkImportFile(o[0]); | 502 checkImportFile(o[0]); |
454 checkImportFile(o[1]); | 503 checkImportFile(o[1]); |
455 } | 504 } |
456 | 505 |
457 core.int buildCounterManifest = 0; | 506 core.int buildCounterManifest = 0; |
458 buildManifest() { | 507 buildManifest() { |
459 var o = new api.Manifest(); | 508 var o = new api.Manifest(); |
460 buildCounterManifest++; | 509 buildCounterManifest++; |
461 if (buildCounterManifest < 3) { | 510 if (buildCounterManifest < 3) { |
462 o.config = buildConfigFile(); | 511 o.config = buildConfigFile(); |
463 o.expandedConfig = "foo"; | 512 o.expandedConfig = "foo"; |
464 o.id = "foo"; | 513 o.id = "foo"; |
465 o.imports = buildUnnamed2178(); | 514 o.imports = buildUnnamed1951(); |
466 o.insertTime = "foo"; | 515 o.insertTime = "foo"; |
467 o.layout = "foo"; | 516 o.layout = "foo"; |
468 o.name = "foo"; | 517 o.name = "foo"; |
469 o.selfLink = "foo"; | 518 o.selfLink = "foo"; |
470 } | 519 } |
471 buildCounterManifest--; | 520 buildCounterManifest--; |
472 return o; | 521 return o; |
473 } | 522 } |
474 | 523 |
475 checkManifest(api.Manifest o) { | 524 checkManifest(api.Manifest o) { |
476 buildCounterManifest++; | 525 buildCounterManifest++; |
477 if (buildCounterManifest < 3) { | 526 if (buildCounterManifest < 3) { |
478 checkConfigFile(o.config); | 527 checkConfigFile(o.config); |
479 unittest.expect(o.expandedConfig, unittest.equals('foo')); | 528 unittest.expect(o.expandedConfig, unittest.equals('foo')); |
480 unittest.expect(o.id, unittest.equals('foo')); | 529 unittest.expect(o.id, unittest.equals('foo')); |
481 checkUnnamed2178(o.imports); | 530 checkUnnamed1951(o.imports); |
482 unittest.expect(o.insertTime, unittest.equals('foo')); | 531 unittest.expect(o.insertTime, unittest.equals('foo')); |
483 unittest.expect(o.layout, unittest.equals('foo')); | 532 unittest.expect(o.layout, unittest.equals('foo')); |
484 unittest.expect(o.name, unittest.equals('foo')); | 533 unittest.expect(o.name, unittest.equals('foo')); |
485 unittest.expect(o.selfLink, unittest.equals('foo')); | 534 unittest.expect(o.selfLink, unittest.equals('foo')); |
486 } | 535 } |
487 buildCounterManifest--; | 536 buildCounterManifest--; |
488 } | 537 } |
489 | 538 |
490 buildUnnamed2179() { | 539 buildUnnamed1952() { |
491 var o = new core.List<api.Manifest>(); | 540 var o = new core.List<api.Manifest>(); |
492 o.add(buildManifest()); | 541 o.add(buildManifest()); |
493 o.add(buildManifest()); | 542 o.add(buildManifest()); |
494 return o; | 543 return o; |
495 } | 544 } |
496 | 545 |
497 checkUnnamed2179(core.List<api.Manifest> o) { | 546 checkUnnamed1952(core.List<api.Manifest> o) { |
498 unittest.expect(o, unittest.hasLength(2)); | 547 unittest.expect(o, unittest.hasLength(2)); |
499 checkManifest(o[0]); | 548 checkManifest(o[0]); |
500 checkManifest(o[1]); | 549 checkManifest(o[1]); |
501 } | 550 } |
502 | 551 |
503 core.int buildCounterManifestsListResponse = 0; | 552 core.int buildCounterManifestsListResponse = 0; |
504 buildManifestsListResponse() { | 553 buildManifestsListResponse() { |
505 var o = new api.ManifestsListResponse(); | 554 var o = new api.ManifestsListResponse(); |
506 buildCounterManifestsListResponse++; | 555 buildCounterManifestsListResponse++; |
507 if (buildCounterManifestsListResponse < 3) { | 556 if (buildCounterManifestsListResponse < 3) { |
508 o.manifests = buildUnnamed2179(); | 557 o.manifests = buildUnnamed1952(); |
509 o.nextPageToken = "foo"; | 558 o.nextPageToken = "foo"; |
510 } | 559 } |
511 buildCounterManifestsListResponse--; | 560 buildCounterManifestsListResponse--; |
512 return o; | 561 return o; |
513 } | 562 } |
514 | 563 |
515 checkManifestsListResponse(api.ManifestsListResponse o) { | 564 checkManifestsListResponse(api.ManifestsListResponse o) { |
516 buildCounterManifestsListResponse++; | 565 buildCounterManifestsListResponse++; |
517 if (buildCounterManifestsListResponse < 3) { | 566 if (buildCounterManifestsListResponse < 3) { |
518 checkUnnamed2179(o.manifests); | 567 checkUnnamed1952(o.manifests); |
519 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 568 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
520 } | 569 } |
521 buildCounterManifestsListResponse--; | 570 buildCounterManifestsListResponse--; |
522 } | 571 } |
523 | 572 |
524 core.int buildCounterOperationErrorErrors = 0; | 573 core.int buildCounterOperationErrorErrors = 0; |
525 buildOperationErrorErrors() { | 574 buildOperationErrorErrors() { |
526 var o = new api.OperationErrorErrors(); | 575 var o = new api.OperationErrorErrors(); |
527 buildCounterOperationErrorErrors++; | 576 buildCounterOperationErrorErrors++; |
528 if (buildCounterOperationErrorErrors < 3) { | 577 if (buildCounterOperationErrorErrors < 3) { |
529 o.code = "foo"; | 578 o.code = "foo"; |
530 o.location = "foo"; | 579 o.location = "foo"; |
531 o.message = "foo"; | 580 o.message = "foo"; |
532 } | 581 } |
533 buildCounterOperationErrorErrors--; | 582 buildCounterOperationErrorErrors--; |
534 return o; | 583 return o; |
535 } | 584 } |
536 | 585 |
537 checkOperationErrorErrors(api.OperationErrorErrors o) { | 586 checkOperationErrorErrors(api.OperationErrorErrors o) { |
538 buildCounterOperationErrorErrors++; | 587 buildCounterOperationErrorErrors++; |
539 if (buildCounterOperationErrorErrors < 3) { | 588 if (buildCounterOperationErrorErrors < 3) { |
540 unittest.expect(o.code, unittest.equals('foo')); | 589 unittest.expect(o.code, unittest.equals('foo')); |
541 unittest.expect(o.location, unittest.equals('foo')); | 590 unittest.expect(o.location, unittest.equals('foo')); |
542 unittest.expect(o.message, unittest.equals('foo')); | 591 unittest.expect(o.message, unittest.equals('foo')); |
543 } | 592 } |
544 buildCounterOperationErrorErrors--; | 593 buildCounterOperationErrorErrors--; |
545 } | 594 } |
546 | 595 |
547 buildUnnamed2180() { | 596 buildUnnamed1953() { |
548 var o = new core.List<api.OperationErrorErrors>(); | 597 var o = new core.List<api.OperationErrorErrors>(); |
549 o.add(buildOperationErrorErrors()); | 598 o.add(buildOperationErrorErrors()); |
550 o.add(buildOperationErrorErrors()); | 599 o.add(buildOperationErrorErrors()); |
551 return o; | 600 return o; |
552 } | 601 } |
553 | 602 |
554 checkUnnamed2180(core.List<api.OperationErrorErrors> o) { | 603 checkUnnamed1953(core.List<api.OperationErrorErrors> o) { |
555 unittest.expect(o, unittest.hasLength(2)); | 604 unittest.expect(o, unittest.hasLength(2)); |
556 checkOperationErrorErrors(o[0]); | 605 checkOperationErrorErrors(o[0]); |
557 checkOperationErrorErrors(o[1]); | 606 checkOperationErrorErrors(o[1]); |
558 } | 607 } |
559 | 608 |
560 core.int buildCounterOperationError = 0; | 609 core.int buildCounterOperationError = 0; |
561 buildOperationError() { | 610 buildOperationError() { |
562 var o = new api.OperationError(); | 611 var o = new api.OperationError(); |
563 buildCounterOperationError++; | 612 buildCounterOperationError++; |
564 if (buildCounterOperationError < 3) { | 613 if (buildCounterOperationError < 3) { |
565 o.errors = buildUnnamed2180(); | 614 o.errors = buildUnnamed1953(); |
566 } | 615 } |
567 buildCounterOperationError--; | 616 buildCounterOperationError--; |
568 return o; | 617 return o; |
569 } | 618 } |
570 | 619 |
571 checkOperationError(api.OperationError o) { | 620 checkOperationError(api.OperationError o) { |
572 buildCounterOperationError++; | 621 buildCounterOperationError++; |
573 if (buildCounterOperationError < 3) { | 622 if (buildCounterOperationError < 3) { |
574 checkUnnamed2180(o.errors); | 623 checkUnnamed1953(o.errors); |
575 } | 624 } |
576 buildCounterOperationError--; | 625 buildCounterOperationError--; |
577 } | 626 } |
578 | 627 |
579 core.int buildCounterOperationWarningsData = 0; | 628 core.int buildCounterOperationWarningsData = 0; |
580 buildOperationWarningsData() { | 629 buildOperationWarningsData() { |
581 var o = new api.OperationWarningsData(); | 630 var o = new api.OperationWarningsData(); |
582 buildCounterOperationWarningsData++; | 631 buildCounterOperationWarningsData++; |
583 if (buildCounterOperationWarningsData < 3) { | 632 if (buildCounterOperationWarningsData < 3) { |
584 o.key = "foo"; | 633 o.key = "foo"; |
585 o.value = "foo"; | 634 o.value = "foo"; |
586 } | 635 } |
587 buildCounterOperationWarningsData--; | 636 buildCounterOperationWarningsData--; |
588 return o; | 637 return o; |
589 } | 638 } |
590 | 639 |
591 checkOperationWarningsData(api.OperationWarningsData o) { | 640 checkOperationWarningsData(api.OperationWarningsData o) { |
592 buildCounterOperationWarningsData++; | 641 buildCounterOperationWarningsData++; |
593 if (buildCounterOperationWarningsData < 3) { | 642 if (buildCounterOperationWarningsData < 3) { |
594 unittest.expect(o.key, unittest.equals('foo')); | 643 unittest.expect(o.key, unittest.equals('foo')); |
595 unittest.expect(o.value, unittest.equals('foo')); | 644 unittest.expect(o.value, unittest.equals('foo')); |
596 } | 645 } |
597 buildCounterOperationWarningsData--; | 646 buildCounterOperationWarningsData--; |
598 } | 647 } |
599 | 648 |
600 buildUnnamed2181() { | 649 buildUnnamed1954() { |
601 var o = new core.List<api.OperationWarningsData>(); | 650 var o = new core.List<api.OperationWarningsData>(); |
602 o.add(buildOperationWarningsData()); | 651 o.add(buildOperationWarningsData()); |
603 o.add(buildOperationWarningsData()); | 652 o.add(buildOperationWarningsData()); |
604 return o; | 653 return o; |
605 } | 654 } |
606 | 655 |
607 checkUnnamed2181(core.List<api.OperationWarningsData> o) { | 656 checkUnnamed1954(core.List<api.OperationWarningsData> o) { |
608 unittest.expect(o, unittest.hasLength(2)); | 657 unittest.expect(o, unittest.hasLength(2)); |
609 checkOperationWarningsData(o[0]); | 658 checkOperationWarningsData(o[0]); |
610 checkOperationWarningsData(o[1]); | 659 checkOperationWarningsData(o[1]); |
611 } | 660 } |
612 | 661 |
613 core.int buildCounterOperationWarnings = 0; | 662 core.int buildCounterOperationWarnings = 0; |
614 buildOperationWarnings() { | 663 buildOperationWarnings() { |
615 var o = new api.OperationWarnings(); | 664 var o = new api.OperationWarnings(); |
616 buildCounterOperationWarnings++; | 665 buildCounterOperationWarnings++; |
617 if (buildCounterOperationWarnings < 3) { | 666 if (buildCounterOperationWarnings < 3) { |
618 o.code = "foo"; | 667 o.code = "foo"; |
619 o.data = buildUnnamed2181(); | 668 o.data = buildUnnamed1954(); |
620 o.message = "foo"; | 669 o.message = "foo"; |
621 } | 670 } |
622 buildCounterOperationWarnings--; | 671 buildCounterOperationWarnings--; |
623 return o; | 672 return o; |
624 } | 673 } |
625 | 674 |
626 checkOperationWarnings(api.OperationWarnings o) { | 675 checkOperationWarnings(api.OperationWarnings o) { |
627 buildCounterOperationWarnings++; | 676 buildCounterOperationWarnings++; |
628 if (buildCounterOperationWarnings < 3) { | 677 if (buildCounterOperationWarnings < 3) { |
629 unittest.expect(o.code, unittest.equals('foo')); | 678 unittest.expect(o.code, unittest.equals('foo')); |
630 checkUnnamed2181(o.data); | 679 checkUnnamed1954(o.data); |
631 unittest.expect(o.message, unittest.equals('foo')); | 680 unittest.expect(o.message, unittest.equals('foo')); |
632 } | 681 } |
633 buildCounterOperationWarnings--; | 682 buildCounterOperationWarnings--; |
634 } | 683 } |
635 | 684 |
636 buildUnnamed2182() { | 685 buildUnnamed1955() { |
637 var o = new core.List<api.OperationWarnings>(); | 686 var o = new core.List<api.OperationWarnings>(); |
638 o.add(buildOperationWarnings()); | 687 o.add(buildOperationWarnings()); |
639 o.add(buildOperationWarnings()); | 688 o.add(buildOperationWarnings()); |
640 return o; | 689 return o; |
641 } | 690 } |
642 | 691 |
643 checkUnnamed2182(core.List<api.OperationWarnings> o) { | 692 checkUnnamed1955(core.List<api.OperationWarnings> o) { |
644 unittest.expect(o, unittest.hasLength(2)); | 693 unittest.expect(o, unittest.hasLength(2)); |
645 checkOperationWarnings(o[0]); | 694 checkOperationWarnings(o[0]); |
646 checkOperationWarnings(o[1]); | 695 checkOperationWarnings(o[1]); |
647 } | 696 } |
648 | 697 |
649 core.int buildCounterOperation = 0; | 698 core.int buildCounterOperation = 0; |
650 buildOperation() { | 699 buildOperation() { |
651 var o = new api.Operation(); | 700 var o = new api.Operation(); |
652 buildCounterOperation++; | 701 buildCounterOperation++; |
653 if (buildCounterOperation < 3) { | 702 if (buildCounterOperation < 3) { |
(...skipping 11 matching lines...) Expand all Loading... |
665 o.operationType = "foo"; | 714 o.operationType = "foo"; |
666 o.progress = 42; | 715 o.progress = 42; |
667 o.region = "foo"; | 716 o.region = "foo"; |
668 o.selfLink = "foo"; | 717 o.selfLink = "foo"; |
669 o.startTime = "foo"; | 718 o.startTime = "foo"; |
670 o.status = "foo"; | 719 o.status = "foo"; |
671 o.statusMessage = "foo"; | 720 o.statusMessage = "foo"; |
672 o.targetId = "foo"; | 721 o.targetId = "foo"; |
673 o.targetLink = "foo"; | 722 o.targetLink = "foo"; |
674 o.user = "foo"; | 723 o.user = "foo"; |
675 o.warnings = buildUnnamed2182(); | 724 o.warnings = buildUnnamed1955(); |
676 o.zone = "foo"; | 725 o.zone = "foo"; |
677 } | 726 } |
678 buildCounterOperation--; | 727 buildCounterOperation--; |
679 return o; | 728 return o; |
680 } | 729 } |
681 | 730 |
682 checkOperation(api.Operation o) { | 731 checkOperation(api.Operation o) { |
683 buildCounterOperation++; | 732 buildCounterOperation++; |
684 if (buildCounterOperation < 3) { | 733 if (buildCounterOperation < 3) { |
685 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 734 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
(...skipping 10 matching lines...) Expand all Loading... |
696 unittest.expect(o.operationType, unittest.equals('foo')); | 745 unittest.expect(o.operationType, unittest.equals('foo')); |
697 unittest.expect(o.progress, unittest.equals(42)); | 746 unittest.expect(o.progress, unittest.equals(42)); |
698 unittest.expect(o.region, unittest.equals('foo')); | 747 unittest.expect(o.region, unittest.equals('foo')); |
699 unittest.expect(o.selfLink, unittest.equals('foo')); | 748 unittest.expect(o.selfLink, unittest.equals('foo')); |
700 unittest.expect(o.startTime, unittest.equals('foo')); | 749 unittest.expect(o.startTime, unittest.equals('foo')); |
701 unittest.expect(o.status, unittest.equals('foo')); | 750 unittest.expect(o.status, unittest.equals('foo')); |
702 unittest.expect(o.statusMessage, unittest.equals('foo')); | 751 unittest.expect(o.statusMessage, unittest.equals('foo')); |
703 unittest.expect(o.targetId, unittest.equals('foo')); | 752 unittest.expect(o.targetId, unittest.equals('foo')); |
704 unittest.expect(o.targetLink, unittest.equals('foo')); | 753 unittest.expect(o.targetLink, unittest.equals('foo')); |
705 unittest.expect(o.user, unittest.equals('foo')); | 754 unittest.expect(o.user, unittest.equals('foo')); |
706 checkUnnamed2182(o.warnings); | 755 checkUnnamed1955(o.warnings); |
707 unittest.expect(o.zone, unittest.equals('foo')); | 756 unittest.expect(o.zone, unittest.equals('foo')); |
708 } | 757 } |
709 buildCounterOperation--; | 758 buildCounterOperation--; |
710 } | 759 } |
711 | 760 |
712 buildUnnamed2183() { | 761 buildUnnamed1956() { |
713 var o = new core.List<api.Operation>(); | 762 var o = new core.List<api.Operation>(); |
714 o.add(buildOperation()); | 763 o.add(buildOperation()); |
715 o.add(buildOperation()); | 764 o.add(buildOperation()); |
716 return o; | 765 return o; |
717 } | 766 } |
718 | 767 |
719 checkUnnamed2183(core.List<api.Operation> o) { | 768 checkUnnamed1956(core.List<api.Operation> o) { |
720 unittest.expect(o, unittest.hasLength(2)); | 769 unittest.expect(o, unittest.hasLength(2)); |
721 checkOperation(o[0]); | 770 checkOperation(o[0]); |
722 checkOperation(o[1]); | 771 checkOperation(o[1]); |
723 } | 772 } |
724 | 773 |
725 core.int buildCounterOperationsListResponse = 0; | 774 core.int buildCounterOperationsListResponse = 0; |
726 buildOperationsListResponse() { | 775 buildOperationsListResponse() { |
727 var o = new api.OperationsListResponse(); | 776 var o = new api.OperationsListResponse(); |
728 buildCounterOperationsListResponse++; | 777 buildCounterOperationsListResponse++; |
729 if (buildCounterOperationsListResponse < 3) { | 778 if (buildCounterOperationsListResponse < 3) { |
730 o.nextPageToken = "foo"; | 779 o.nextPageToken = "foo"; |
731 o.operations = buildUnnamed2183(); | 780 o.operations = buildUnnamed1956(); |
732 } | 781 } |
733 buildCounterOperationsListResponse--; | 782 buildCounterOperationsListResponse--; |
734 return o; | 783 return o; |
735 } | 784 } |
736 | 785 |
737 checkOperationsListResponse(api.OperationsListResponse o) { | 786 checkOperationsListResponse(api.OperationsListResponse o) { |
738 buildCounterOperationsListResponse++; | 787 buildCounterOperationsListResponse++; |
739 if (buildCounterOperationsListResponse < 3) { | 788 if (buildCounterOperationsListResponse < 3) { |
740 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 789 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
741 checkUnnamed2183(o.operations); | 790 checkUnnamed1956(o.operations); |
742 } | 791 } |
743 buildCounterOperationsListResponse--; | 792 buildCounterOperationsListResponse--; |
744 } | 793 } |
745 | 794 |
746 buildUnnamed2184() { | 795 buildUnnamed1957() { |
747 var o = new core.List<api.AuditConfig>(); | 796 var o = new core.List<api.AuditConfig>(); |
748 o.add(buildAuditConfig()); | 797 o.add(buildAuditConfig()); |
749 o.add(buildAuditConfig()); | 798 o.add(buildAuditConfig()); |
750 return o; | 799 return o; |
751 } | 800 } |
752 | 801 |
753 checkUnnamed2184(core.List<api.AuditConfig> o) { | 802 checkUnnamed1957(core.List<api.AuditConfig> o) { |
754 unittest.expect(o, unittest.hasLength(2)); | 803 unittest.expect(o, unittest.hasLength(2)); |
755 checkAuditConfig(o[0]); | 804 checkAuditConfig(o[0]); |
756 checkAuditConfig(o[1]); | 805 checkAuditConfig(o[1]); |
757 } | 806 } |
758 | 807 |
759 buildUnnamed2185() { | 808 buildUnnamed1958() { |
760 var o = new core.List<api.Binding>(); | 809 var o = new core.List<api.Binding>(); |
761 o.add(buildBinding()); | 810 o.add(buildBinding()); |
762 o.add(buildBinding()); | 811 o.add(buildBinding()); |
763 return o; | 812 return o; |
764 } | 813 } |
765 | 814 |
766 checkUnnamed2185(core.List<api.Binding> o) { | 815 checkUnnamed1958(core.List<api.Binding> o) { |
767 unittest.expect(o, unittest.hasLength(2)); | 816 unittest.expect(o, unittest.hasLength(2)); |
768 checkBinding(o[0]); | 817 checkBinding(o[0]); |
769 checkBinding(o[1]); | 818 checkBinding(o[1]); |
770 } | 819 } |
771 | 820 |
772 buildUnnamed2186() { | 821 buildUnnamed1959() { |
773 var o = new core.List<api.Rule>(); | 822 var o = new core.List<api.Rule>(); |
774 o.add(buildRule()); | 823 o.add(buildRule()); |
775 o.add(buildRule()); | 824 o.add(buildRule()); |
776 return o; | 825 return o; |
777 } | 826 } |
778 | 827 |
779 checkUnnamed2186(core.List<api.Rule> o) { | 828 checkUnnamed1959(core.List<api.Rule> o) { |
780 unittest.expect(o, unittest.hasLength(2)); | 829 unittest.expect(o, unittest.hasLength(2)); |
781 checkRule(o[0]); | 830 checkRule(o[0]); |
782 checkRule(o[1]); | 831 checkRule(o[1]); |
783 } | 832 } |
784 | 833 |
785 core.int buildCounterPolicy = 0; | 834 core.int buildCounterPolicy = 0; |
786 buildPolicy() { | 835 buildPolicy() { |
787 var o = new api.Policy(); | 836 var o = new api.Policy(); |
788 buildCounterPolicy++; | 837 buildCounterPolicy++; |
789 if (buildCounterPolicy < 3) { | 838 if (buildCounterPolicy < 3) { |
790 o.auditConfigs = buildUnnamed2184(); | 839 o.auditConfigs = buildUnnamed1957(); |
791 o.bindings = buildUnnamed2185(); | 840 o.bindings = buildUnnamed1958(); |
792 o.etag = "foo"; | 841 o.etag = "foo"; |
793 o.iamOwned = true; | 842 o.iamOwned = true; |
794 o.rules = buildUnnamed2186(); | 843 o.rules = buildUnnamed1959(); |
795 o.version = 42; | 844 o.version = 42; |
796 } | 845 } |
797 buildCounterPolicy--; | 846 buildCounterPolicy--; |
798 return o; | 847 return o; |
799 } | 848 } |
800 | 849 |
801 checkPolicy(api.Policy o) { | 850 checkPolicy(api.Policy o) { |
802 buildCounterPolicy++; | 851 buildCounterPolicy++; |
803 if (buildCounterPolicy < 3) { | 852 if (buildCounterPolicy < 3) { |
804 checkUnnamed2184(o.auditConfigs); | 853 checkUnnamed1957(o.auditConfigs); |
805 checkUnnamed2185(o.bindings); | 854 checkUnnamed1958(o.bindings); |
806 unittest.expect(o.etag, unittest.equals('foo')); | 855 unittest.expect(o.etag, unittest.equals('foo')); |
807 unittest.expect(o.iamOwned, unittest.isTrue); | 856 unittest.expect(o.iamOwned, unittest.isTrue); |
808 checkUnnamed2186(o.rules); | 857 checkUnnamed1959(o.rules); |
809 unittest.expect(o.version, unittest.equals(42)); | 858 unittest.expect(o.version, unittest.equals(42)); |
810 } | 859 } |
811 buildCounterPolicy--; | 860 buildCounterPolicy--; |
812 } | 861 } |
813 | 862 |
814 core.int buildCounterResourceWarningsData = 0; | 863 core.int buildCounterResourceWarningsData = 0; |
815 buildResourceWarningsData() { | 864 buildResourceWarningsData() { |
816 var o = new api.ResourceWarningsData(); | 865 var o = new api.ResourceWarningsData(); |
817 buildCounterResourceWarningsData++; | 866 buildCounterResourceWarningsData++; |
818 if (buildCounterResourceWarningsData < 3) { | 867 if (buildCounterResourceWarningsData < 3) { |
819 o.key = "foo"; | 868 o.key = "foo"; |
820 o.value = "foo"; | 869 o.value = "foo"; |
821 } | 870 } |
822 buildCounterResourceWarningsData--; | 871 buildCounterResourceWarningsData--; |
823 return o; | 872 return o; |
824 } | 873 } |
825 | 874 |
826 checkResourceWarningsData(api.ResourceWarningsData o) { | 875 checkResourceWarningsData(api.ResourceWarningsData o) { |
827 buildCounterResourceWarningsData++; | 876 buildCounterResourceWarningsData++; |
828 if (buildCounterResourceWarningsData < 3) { | 877 if (buildCounterResourceWarningsData < 3) { |
829 unittest.expect(o.key, unittest.equals('foo')); | 878 unittest.expect(o.key, unittest.equals('foo')); |
830 unittest.expect(o.value, unittest.equals('foo')); | 879 unittest.expect(o.value, unittest.equals('foo')); |
831 } | 880 } |
832 buildCounterResourceWarningsData--; | 881 buildCounterResourceWarningsData--; |
833 } | 882 } |
834 | 883 |
835 buildUnnamed2187() { | 884 buildUnnamed1960() { |
836 var o = new core.List<api.ResourceWarningsData>(); | 885 var o = new core.List<api.ResourceWarningsData>(); |
837 o.add(buildResourceWarningsData()); | 886 o.add(buildResourceWarningsData()); |
838 o.add(buildResourceWarningsData()); | 887 o.add(buildResourceWarningsData()); |
839 return o; | 888 return o; |
840 } | 889 } |
841 | 890 |
842 checkUnnamed2187(core.List<api.ResourceWarningsData> o) { | 891 checkUnnamed1960(core.List<api.ResourceWarningsData> o) { |
843 unittest.expect(o, unittest.hasLength(2)); | 892 unittest.expect(o, unittest.hasLength(2)); |
844 checkResourceWarningsData(o[0]); | 893 checkResourceWarningsData(o[0]); |
845 checkResourceWarningsData(o[1]); | 894 checkResourceWarningsData(o[1]); |
846 } | 895 } |
847 | 896 |
848 core.int buildCounterResourceWarnings = 0; | 897 core.int buildCounterResourceWarnings = 0; |
849 buildResourceWarnings() { | 898 buildResourceWarnings() { |
850 var o = new api.ResourceWarnings(); | 899 var o = new api.ResourceWarnings(); |
851 buildCounterResourceWarnings++; | 900 buildCounterResourceWarnings++; |
852 if (buildCounterResourceWarnings < 3) { | 901 if (buildCounterResourceWarnings < 3) { |
853 o.code = "foo"; | 902 o.code = "foo"; |
854 o.data = buildUnnamed2187(); | 903 o.data = buildUnnamed1960(); |
855 o.message = "foo"; | 904 o.message = "foo"; |
856 } | 905 } |
857 buildCounterResourceWarnings--; | 906 buildCounterResourceWarnings--; |
858 return o; | 907 return o; |
859 } | 908 } |
860 | 909 |
861 checkResourceWarnings(api.ResourceWarnings o) { | 910 checkResourceWarnings(api.ResourceWarnings o) { |
862 buildCounterResourceWarnings++; | 911 buildCounterResourceWarnings++; |
863 if (buildCounterResourceWarnings < 3) { | 912 if (buildCounterResourceWarnings < 3) { |
864 unittest.expect(o.code, unittest.equals('foo')); | 913 unittest.expect(o.code, unittest.equals('foo')); |
865 checkUnnamed2187(o.data); | 914 checkUnnamed1960(o.data); |
866 unittest.expect(o.message, unittest.equals('foo')); | 915 unittest.expect(o.message, unittest.equals('foo')); |
867 } | 916 } |
868 buildCounterResourceWarnings--; | 917 buildCounterResourceWarnings--; |
869 } | 918 } |
870 | 919 |
871 buildUnnamed2188() { | 920 buildUnnamed1961() { |
872 var o = new core.List<api.ResourceWarnings>(); | 921 var o = new core.List<api.ResourceWarnings>(); |
873 o.add(buildResourceWarnings()); | 922 o.add(buildResourceWarnings()); |
874 o.add(buildResourceWarnings()); | 923 o.add(buildResourceWarnings()); |
875 return o; | 924 return o; |
876 } | 925 } |
877 | 926 |
878 checkUnnamed2188(core.List<api.ResourceWarnings> o) { | 927 checkUnnamed1961(core.List<api.ResourceWarnings> o) { |
879 unittest.expect(o, unittest.hasLength(2)); | 928 unittest.expect(o, unittest.hasLength(2)); |
880 checkResourceWarnings(o[0]); | 929 checkResourceWarnings(o[0]); |
881 checkResourceWarnings(o[1]); | 930 checkResourceWarnings(o[1]); |
882 } | 931 } |
883 | 932 |
884 core.int buildCounterResource = 0; | 933 core.int buildCounterResource = 0; |
885 buildResource() { | 934 buildResource() { |
886 var o = new api.Resource(); | 935 var o = new api.Resource(); |
887 buildCounterResource++; | 936 buildCounterResource++; |
888 if (buildCounterResource < 3) { | 937 if (buildCounterResource < 3) { |
889 o.accessControl = buildResourceAccessControl(); | 938 o.accessControl = buildResourceAccessControl(); |
890 o.finalProperties = "foo"; | 939 o.finalProperties = "foo"; |
891 o.id = "foo"; | 940 o.id = "foo"; |
892 o.insertTime = "foo"; | 941 o.insertTime = "foo"; |
893 o.manifest = "foo"; | 942 o.manifest = "foo"; |
894 o.name = "foo"; | 943 o.name = "foo"; |
895 o.properties = "foo"; | 944 o.properties = "foo"; |
896 o.type = "foo"; | 945 o.type = "foo"; |
897 o.update = buildResourceUpdate(); | 946 o.update = buildResourceUpdate(); |
898 o.updateTime = "foo"; | 947 o.updateTime = "foo"; |
899 o.url = "foo"; | 948 o.url = "foo"; |
900 o.warnings = buildUnnamed2188(); | 949 o.warnings = buildUnnamed1961(); |
901 } | 950 } |
902 buildCounterResource--; | 951 buildCounterResource--; |
903 return o; | 952 return o; |
904 } | 953 } |
905 | 954 |
906 checkResource(api.Resource o) { | 955 checkResource(api.Resource o) { |
907 buildCounterResource++; | 956 buildCounterResource++; |
908 if (buildCounterResource < 3) { | 957 if (buildCounterResource < 3) { |
909 checkResourceAccessControl(o.accessControl); | 958 checkResourceAccessControl(o.accessControl); |
910 unittest.expect(o.finalProperties, unittest.equals('foo')); | 959 unittest.expect(o.finalProperties, unittest.equals('foo')); |
911 unittest.expect(o.id, unittest.equals('foo')); | 960 unittest.expect(o.id, unittest.equals('foo')); |
912 unittest.expect(o.insertTime, unittest.equals('foo')); | 961 unittest.expect(o.insertTime, unittest.equals('foo')); |
913 unittest.expect(o.manifest, unittest.equals('foo')); | 962 unittest.expect(o.manifest, unittest.equals('foo')); |
914 unittest.expect(o.name, unittest.equals('foo')); | 963 unittest.expect(o.name, unittest.equals('foo')); |
915 unittest.expect(o.properties, unittest.equals('foo')); | 964 unittest.expect(o.properties, unittest.equals('foo')); |
916 unittest.expect(o.type, unittest.equals('foo')); | 965 unittest.expect(o.type, unittest.equals('foo')); |
917 checkResourceUpdate(o.update); | 966 checkResourceUpdate(o.update); |
918 unittest.expect(o.updateTime, unittest.equals('foo')); | 967 unittest.expect(o.updateTime, unittest.equals('foo')); |
919 unittest.expect(o.url, unittest.equals('foo')); | 968 unittest.expect(o.url, unittest.equals('foo')); |
920 checkUnnamed2188(o.warnings); | 969 checkUnnamed1961(o.warnings); |
921 } | 970 } |
922 buildCounterResource--; | 971 buildCounterResource--; |
923 } | 972 } |
924 | 973 |
925 core.int buildCounterResourceAccessControl = 0; | 974 core.int buildCounterResourceAccessControl = 0; |
926 buildResourceAccessControl() { | 975 buildResourceAccessControl() { |
927 var o = new api.ResourceAccessControl(); | 976 var o = new api.ResourceAccessControl(); |
928 buildCounterResourceAccessControl++; | 977 buildCounterResourceAccessControl++; |
929 if (buildCounterResourceAccessControl < 3) { | 978 if (buildCounterResourceAccessControl < 3) { |
930 o.gcpIamPolicy = "foo"; | 979 o.gcpIamPolicy = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
957 checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) { | 1006 checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) { |
958 buildCounterResourceUpdateErrorErrors++; | 1007 buildCounterResourceUpdateErrorErrors++; |
959 if (buildCounterResourceUpdateErrorErrors < 3) { | 1008 if (buildCounterResourceUpdateErrorErrors < 3) { |
960 unittest.expect(o.code, unittest.equals('foo')); | 1009 unittest.expect(o.code, unittest.equals('foo')); |
961 unittest.expect(o.location, unittest.equals('foo')); | 1010 unittest.expect(o.location, unittest.equals('foo')); |
962 unittest.expect(o.message, unittest.equals('foo')); | 1011 unittest.expect(o.message, unittest.equals('foo')); |
963 } | 1012 } |
964 buildCounterResourceUpdateErrorErrors--; | 1013 buildCounterResourceUpdateErrorErrors--; |
965 } | 1014 } |
966 | 1015 |
967 buildUnnamed2189() { | 1016 buildUnnamed1962() { |
968 var o = new core.List<api.ResourceUpdateErrorErrors>(); | 1017 var o = new core.List<api.ResourceUpdateErrorErrors>(); |
969 o.add(buildResourceUpdateErrorErrors()); | 1018 o.add(buildResourceUpdateErrorErrors()); |
970 o.add(buildResourceUpdateErrorErrors()); | 1019 o.add(buildResourceUpdateErrorErrors()); |
971 return o; | 1020 return o; |
972 } | 1021 } |
973 | 1022 |
974 checkUnnamed2189(core.List<api.ResourceUpdateErrorErrors> o) { | 1023 checkUnnamed1962(core.List<api.ResourceUpdateErrorErrors> o) { |
975 unittest.expect(o, unittest.hasLength(2)); | 1024 unittest.expect(o, unittest.hasLength(2)); |
976 checkResourceUpdateErrorErrors(o[0]); | 1025 checkResourceUpdateErrorErrors(o[0]); |
977 checkResourceUpdateErrorErrors(o[1]); | 1026 checkResourceUpdateErrorErrors(o[1]); |
978 } | 1027 } |
979 | 1028 |
980 core.int buildCounterResourceUpdateError = 0; | 1029 core.int buildCounterResourceUpdateError = 0; |
981 buildResourceUpdateError() { | 1030 buildResourceUpdateError() { |
982 var o = new api.ResourceUpdateError(); | 1031 var o = new api.ResourceUpdateError(); |
983 buildCounterResourceUpdateError++; | 1032 buildCounterResourceUpdateError++; |
984 if (buildCounterResourceUpdateError < 3) { | 1033 if (buildCounterResourceUpdateError < 3) { |
985 o.errors = buildUnnamed2189(); | 1034 o.errors = buildUnnamed1962(); |
986 } | 1035 } |
987 buildCounterResourceUpdateError--; | 1036 buildCounterResourceUpdateError--; |
988 return o; | 1037 return o; |
989 } | 1038 } |
990 | 1039 |
991 checkResourceUpdateError(api.ResourceUpdateError o) { | 1040 checkResourceUpdateError(api.ResourceUpdateError o) { |
992 buildCounterResourceUpdateError++; | 1041 buildCounterResourceUpdateError++; |
993 if (buildCounterResourceUpdateError < 3) { | 1042 if (buildCounterResourceUpdateError < 3) { |
994 checkUnnamed2189(o.errors); | 1043 checkUnnamed1962(o.errors); |
995 } | 1044 } |
996 buildCounterResourceUpdateError--; | 1045 buildCounterResourceUpdateError--; |
997 } | 1046 } |
998 | 1047 |
999 core.int buildCounterResourceUpdateWarningsData = 0; | 1048 core.int buildCounterResourceUpdateWarningsData = 0; |
1000 buildResourceUpdateWarningsData() { | 1049 buildResourceUpdateWarningsData() { |
1001 var o = new api.ResourceUpdateWarningsData(); | 1050 var o = new api.ResourceUpdateWarningsData(); |
1002 buildCounterResourceUpdateWarningsData++; | 1051 buildCounterResourceUpdateWarningsData++; |
1003 if (buildCounterResourceUpdateWarningsData < 3) { | 1052 if (buildCounterResourceUpdateWarningsData < 3) { |
1004 o.key = "foo"; | 1053 o.key = "foo"; |
1005 o.value = "foo"; | 1054 o.value = "foo"; |
1006 } | 1055 } |
1007 buildCounterResourceUpdateWarningsData--; | 1056 buildCounterResourceUpdateWarningsData--; |
1008 return o; | 1057 return o; |
1009 } | 1058 } |
1010 | 1059 |
1011 checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) { | 1060 checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) { |
1012 buildCounterResourceUpdateWarningsData++; | 1061 buildCounterResourceUpdateWarningsData++; |
1013 if (buildCounterResourceUpdateWarningsData < 3) { | 1062 if (buildCounterResourceUpdateWarningsData < 3) { |
1014 unittest.expect(o.key, unittest.equals('foo')); | 1063 unittest.expect(o.key, unittest.equals('foo')); |
1015 unittest.expect(o.value, unittest.equals('foo')); | 1064 unittest.expect(o.value, unittest.equals('foo')); |
1016 } | 1065 } |
1017 buildCounterResourceUpdateWarningsData--; | 1066 buildCounterResourceUpdateWarningsData--; |
1018 } | 1067 } |
1019 | 1068 |
1020 buildUnnamed2190() { | 1069 buildUnnamed1963() { |
1021 var o = new core.List<api.ResourceUpdateWarningsData>(); | 1070 var o = new core.List<api.ResourceUpdateWarningsData>(); |
1022 o.add(buildResourceUpdateWarningsData()); | 1071 o.add(buildResourceUpdateWarningsData()); |
1023 o.add(buildResourceUpdateWarningsData()); | 1072 o.add(buildResourceUpdateWarningsData()); |
1024 return o; | 1073 return o; |
1025 } | 1074 } |
1026 | 1075 |
1027 checkUnnamed2190(core.List<api.ResourceUpdateWarningsData> o) { | 1076 checkUnnamed1963(core.List<api.ResourceUpdateWarningsData> o) { |
1028 unittest.expect(o, unittest.hasLength(2)); | 1077 unittest.expect(o, unittest.hasLength(2)); |
1029 checkResourceUpdateWarningsData(o[0]); | 1078 checkResourceUpdateWarningsData(o[0]); |
1030 checkResourceUpdateWarningsData(o[1]); | 1079 checkResourceUpdateWarningsData(o[1]); |
1031 } | 1080 } |
1032 | 1081 |
1033 core.int buildCounterResourceUpdateWarnings = 0; | 1082 core.int buildCounterResourceUpdateWarnings = 0; |
1034 buildResourceUpdateWarnings() { | 1083 buildResourceUpdateWarnings() { |
1035 var o = new api.ResourceUpdateWarnings(); | 1084 var o = new api.ResourceUpdateWarnings(); |
1036 buildCounterResourceUpdateWarnings++; | 1085 buildCounterResourceUpdateWarnings++; |
1037 if (buildCounterResourceUpdateWarnings < 3) { | 1086 if (buildCounterResourceUpdateWarnings < 3) { |
1038 o.code = "foo"; | 1087 o.code = "foo"; |
1039 o.data = buildUnnamed2190(); | 1088 o.data = buildUnnamed1963(); |
1040 o.message = "foo"; | 1089 o.message = "foo"; |
1041 } | 1090 } |
1042 buildCounterResourceUpdateWarnings--; | 1091 buildCounterResourceUpdateWarnings--; |
1043 return o; | 1092 return o; |
1044 } | 1093 } |
1045 | 1094 |
1046 checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) { | 1095 checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) { |
1047 buildCounterResourceUpdateWarnings++; | 1096 buildCounterResourceUpdateWarnings++; |
1048 if (buildCounterResourceUpdateWarnings < 3) { | 1097 if (buildCounterResourceUpdateWarnings < 3) { |
1049 unittest.expect(o.code, unittest.equals('foo')); | 1098 unittest.expect(o.code, unittest.equals('foo')); |
1050 checkUnnamed2190(o.data); | 1099 checkUnnamed1963(o.data); |
1051 unittest.expect(o.message, unittest.equals('foo')); | 1100 unittest.expect(o.message, unittest.equals('foo')); |
1052 } | 1101 } |
1053 buildCounterResourceUpdateWarnings--; | 1102 buildCounterResourceUpdateWarnings--; |
1054 } | 1103 } |
1055 | 1104 |
1056 buildUnnamed2191() { | 1105 buildUnnamed1964() { |
1057 var o = new core.List<api.ResourceUpdateWarnings>(); | 1106 var o = new core.List<api.ResourceUpdateWarnings>(); |
1058 o.add(buildResourceUpdateWarnings()); | 1107 o.add(buildResourceUpdateWarnings()); |
1059 o.add(buildResourceUpdateWarnings()); | 1108 o.add(buildResourceUpdateWarnings()); |
1060 return o; | 1109 return o; |
1061 } | 1110 } |
1062 | 1111 |
1063 checkUnnamed2191(core.List<api.ResourceUpdateWarnings> o) { | 1112 checkUnnamed1964(core.List<api.ResourceUpdateWarnings> o) { |
1064 unittest.expect(o, unittest.hasLength(2)); | 1113 unittest.expect(o, unittest.hasLength(2)); |
1065 checkResourceUpdateWarnings(o[0]); | 1114 checkResourceUpdateWarnings(o[0]); |
1066 checkResourceUpdateWarnings(o[1]); | 1115 checkResourceUpdateWarnings(o[1]); |
1067 } | 1116 } |
1068 | 1117 |
1069 core.int buildCounterResourceUpdate = 0; | 1118 core.int buildCounterResourceUpdate = 0; |
1070 buildResourceUpdate() { | 1119 buildResourceUpdate() { |
1071 var o = new api.ResourceUpdate(); | 1120 var o = new api.ResourceUpdate(); |
1072 buildCounterResourceUpdate++; | 1121 buildCounterResourceUpdate++; |
1073 if (buildCounterResourceUpdate < 3) { | 1122 if (buildCounterResourceUpdate < 3) { |
1074 o.accessControl = buildResourceAccessControl(); | 1123 o.accessControl = buildResourceAccessControl(); |
1075 o.error = buildResourceUpdateError(); | 1124 o.error = buildResourceUpdateError(); |
1076 o.finalProperties = "foo"; | 1125 o.finalProperties = "foo"; |
1077 o.intent = "foo"; | 1126 o.intent = "foo"; |
1078 o.manifest = "foo"; | 1127 o.manifest = "foo"; |
1079 o.properties = "foo"; | 1128 o.properties = "foo"; |
1080 o.state = "foo"; | 1129 o.state = "foo"; |
1081 o.warnings = buildUnnamed2191(); | 1130 o.warnings = buildUnnamed1964(); |
1082 } | 1131 } |
1083 buildCounterResourceUpdate--; | 1132 buildCounterResourceUpdate--; |
1084 return o; | 1133 return o; |
1085 } | 1134 } |
1086 | 1135 |
1087 checkResourceUpdate(api.ResourceUpdate o) { | 1136 checkResourceUpdate(api.ResourceUpdate o) { |
1088 buildCounterResourceUpdate++; | 1137 buildCounterResourceUpdate++; |
1089 if (buildCounterResourceUpdate < 3) { | 1138 if (buildCounterResourceUpdate < 3) { |
1090 checkResourceAccessControl(o.accessControl); | 1139 checkResourceAccessControl(o.accessControl); |
1091 checkResourceUpdateError(o.error); | 1140 checkResourceUpdateError(o.error); |
1092 unittest.expect(o.finalProperties, unittest.equals('foo')); | 1141 unittest.expect(o.finalProperties, unittest.equals('foo')); |
1093 unittest.expect(o.intent, unittest.equals('foo')); | 1142 unittest.expect(o.intent, unittest.equals('foo')); |
1094 unittest.expect(o.manifest, unittest.equals('foo')); | 1143 unittest.expect(o.manifest, unittest.equals('foo')); |
1095 unittest.expect(o.properties, unittest.equals('foo')); | 1144 unittest.expect(o.properties, unittest.equals('foo')); |
1096 unittest.expect(o.state, unittest.equals('foo')); | 1145 unittest.expect(o.state, unittest.equals('foo')); |
1097 checkUnnamed2191(o.warnings); | 1146 checkUnnamed1964(o.warnings); |
1098 } | 1147 } |
1099 buildCounterResourceUpdate--; | 1148 buildCounterResourceUpdate--; |
1100 } | 1149 } |
1101 | 1150 |
1102 buildUnnamed2192() { | 1151 buildUnnamed1965() { |
1103 var o = new core.List<api.Resource>(); | 1152 var o = new core.List<api.Resource>(); |
1104 o.add(buildResource()); | 1153 o.add(buildResource()); |
1105 o.add(buildResource()); | 1154 o.add(buildResource()); |
1106 return o; | 1155 return o; |
1107 } | 1156 } |
1108 | 1157 |
1109 checkUnnamed2192(core.List<api.Resource> o) { | 1158 checkUnnamed1965(core.List<api.Resource> o) { |
1110 unittest.expect(o, unittest.hasLength(2)); | 1159 unittest.expect(o, unittest.hasLength(2)); |
1111 checkResource(o[0]); | 1160 checkResource(o[0]); |
1112 checkResource(o[1]); | 1161 checkResource(o[1]); |
1113 } | 1162 } |
1114 | 1163 |
1115 core.int buildCounterResourcesListResponse = 0; | 1164 core.int buildCounterResourcesListResponse = 0; |
1116 buildResourcesListResponse() { | 1165 buildResourcesListResponse() { |
1117 var o = new api.ResourcesListResponse(); | 1166 var o = new api.ResourcesListResponse(); |
1118 buildCounterResourcesListResponse++; | 1167 buildCounterResourcesListResponse++; |
1119 if (buildCounterResourcesListResponse < 3) { | 1168 if (buildCounterResourcesListResponse < 3) { |
1120 o.nextPageToken = "foo"; | 1169 o.nextPageToken = "foo"; |
1121 o.resources = buildUnnamed2192(); | 1170 o.resources = buildUnnamed1965(); |
1122 } | 1171 } |
1123 buildCounterResourcesListResponse--; | 1172 buildCounterResourcesListResponse--; |
1124 return o; | 1173 return o; |
1125 } | 1174 } |
1126 | 1175 |
1127 checkResourcesListResponse(api.ResourcesListResponse o) { | 1176 checkResourcesListResponse(api.ResourcesListResponse o) { |
1128 buildCounterResourcesListResponse++; | 1177 buildCounterResourcesListResponse++; |
1129 if (buildCounterResourcesListResponse < 3) { | 1178 if (buildCounterResourcesListResponse < 3) { |
1130 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1179 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1131 checkUnnamed2192(o.resources); | 1180 checkUnnamed1965(o.resources); |
1132 } | 1181 } |
1133 buildCounterResourcesListResponse--; | 1182 buildCounterResourcesListResponse--; |
1134 } | 1183 } |
1135 | 1184 |
1136 buildUnnamed2193() { | 1185 buildUnnamed1966() { |
1137 var o = new core.List<api.Condition>(); | 1186 var o = new core.List<api.Condition>(); |
1138 o.add(buildCondition()); | 1187 o.add(buildCondition()); |
1139 o.add(buildCondition()); | 1188 o.add(buildCondition()); |
1140 return o; | 1189 return o; |
1141 } | 1190 } |
1142 | 1191 |
1143 checkUnnamed2193(core.List<api.Condition> o) { | 1192 checkUnnamed1966(core.List<api.Condition> o) { |
1144 unittest.expect(o, unittest.hasLength(2)); | 1193 unittest.expect(o, unittest.hasLength(2)); |
1145 checkCondition(o[0]); | 1194 checkCondition(o[0]); |
1146 checkCondition(o[1]); | 1195 checkCondition(o[1]); |
1147 } | 1196 } |
1148 | 1197 |
1149 buildUnnamed2194() { | 1198 buildUnnamed1967() { |
1150 var o = new core.List<core.String>(); | 1199 var o = new core.List<core.String>(); |
1151 o.add("foo"); | 1200 o.add("foo"); |
1152 o.add("foo"); | 1201 o.add("foo"); |
1153 return o; | 1202 return o; |
1154 } | 1203 } |
1155 | 1204 |
1156 checkUnnamed2194(core.List<core.String> o) { | 1205 checkUnnamed1967(core.List<core.String> o) { |
1157 unittest.expect(o, unittest.hasLength(2)); | 1206 unittest.expect(o, unittest.hasLength(2)); |
1158 unittest.expect(o[0], unittest.equals('foo')); | 1207 unittest.expect(o[0], unittest.equals('foo')); |
1159 unittest.expect(o[1], unittest.equals('foo')); | 1208 unittest.expect(o[1], unittest.equals('foo')); |
1160 } | 1209 } |
1161 | 1210 |
1162 buildUnnamed2195() { | 1211 buildUnnamed1968() { |
1163 var o = new core.List<api.LogConfig>(); | 1212 var o = new core.List<api.LogConfig>(); |
1164 o.add(buildLogConfig()); | 1213 o.add(buildLogConfig()); |
1165 o.add(buildLogConfig()); | 1214 o.add(buildLogConfig()); |
1166 return o; | 1215 return o; |
1167 } | 1216 } |
1168 | 1217 |
1169 checkUnnamed2195(core.List<api.LogConfig> o) { | 1218 checkUnnamed1968(core.List<api.LogConfig> o) { |
1170 unittest.expect(o, unittest.hasLength(2)); | 1219 unittest.expect(o, unittest.hasLength(2)); |
1171 checkLogConfig(o[0]); | 1220 checkLogConfig(o[0]); |
1172 checkLogConfig(o[1]); | 1221 checkLogConfig(o[1]); |
1173 } | 1222 } |
1174 | 1223 |
1175 buildUnnamed2196() { | 1224 buildUnnamed1969() { |
1176 var o = new core.List<core.String>(); | 1225 var o = new core.List<core.String>(); |
1177 o.add("foo"); | 1226 o.add("foo"); |
1178 o.add("foo"); | 1227 o.add("foo"); |
1179 return o; | 1228 return o; |
1180 } | 1229 } |
1181 | 1230 |
1182 checkUnnamed2196(core.List<core.String> o) { | 1231 checkUnnamed1969(core.List<core.String> o) { |
1183 unittest.expect(o, unittest.hasLength(2)); | 1232 unittest.expect(o, unittest.hasLength(2)); |
1184 unittest.expect(o[0], unittest.equals('foo')); | 1233 unittest.expect(o[0], unittest.equals('foo')); |
1185 unittest.expect(o[1], unittest.equals('foo')); | 1234 unittest.expect(o[1], unittest.equals('foo')); |
1186 } | 1235 } |
1187 | 1236 |
1188 buildUnnamed2197() { | 1237 buildUnnamed1970() { |
1189 var o = new core.List<core.String>(); | 1238 var o = new core.List<core.String>(); |
1190 o.add("foo"); | 1239 o.add("foo"); |
1191 o.add("foo"); | 1240 o.add("foo"); |
1192 return o; | 1241 return o; |
1193 } | 1242 } |
1194 | 1243 |
1195 checkUnnamed2197(core.List<core.String> o) { | 1244 checkUnnamed1970(core.List<core.String> o) { |
1196 unittest.expect(o, unittest.hasLength(2)); | 1245 unittest.expect(o, unittest.hasLength(2)); |
1197 unittest.expect(o[0], unittest.equals('foo')); | 1246 unittest.expect(o[0], unittest.equals('foo')); |
1198 unittest.expect(o[1], unittest.equals('foo')); | 1247 unittest.expect(o[1], unittest.equals('foo')); |
1199 } | 1248 } |
1200 | 1249 |
1201 core.int buildCounterRule = 0; | 1250 core.int buildCounterRule = 0; |
1202 buildRule() { | 1251 buildRule() { |
1203 var o = new api.Rule(); | 1252 var o = new api.Rule(); |
1204 buildCounterRule++; | 1253 buildCounterRule++; |
1205 if (buildCounterRule < 3) { | 1254 if (buildCounterRule < 3) { |
1206 o.action = "foo"; | 1255 o.action = "foo"; |
1207 o.conditions = buildUnnamed2193(); | 1256 o.conditions = buildUnnamed1966(); |
1208 o.description = "foo"; | 1257 o.description = "foo"; |
1209 o.ins = buildUnnamed2194(); | 1258 o.ins = buildUnnamed1967(); |
1210 o.logConfigs = buildUnnamed2195(); | 1259 o.logConfigs = buildUnnamed1968(); |
1211 o.notIns = buildUnnamed2196(); | 1260 o.notIns = buildUnnamed1969(); |
1212 o.permissions = buildUnnamed2197(); | 1261 o.permissions = buildUnnamed1970(); |
1213 } | 1262 } |
1214 buildCounterRule--; | 1263 buildCounterRule--; |
1215 return o; | 1264 return o; |
1216 } | 1265 } |
1217 | 1266 |
1218 checkRule(api.Rule o) { | 1267 checkRule(api.Rule o) { |
1219 buildCounterRule++; | 1268 buildCounterRule++; |
1220 if (buildCounterRule < 3) { | 1269 if (buildCounterRule < 3) { |
1221 unittest.expect(o.action, unittest.equals('foo')); | 1270 unittest.expect(o.action, unittest.equals('foo')); |
1222 checkUnnamed2193(o.conditions); | 1271 checkUnnamed1966(o.conditions); |
1223 unittest.expect(o.description, unittest.equals('foo')); | 1272 unittest.expect(o.description, unittest.equals('foo')); |
1224 checkUnnamed2194(o.ins); | 1273 checkUnnamed1967(o.ins); |
1225 checkUnnamed2195(o.logConfigs); | 1274 checkUnnamed1968(o.logConfigs); |
1226 checkUnnamed2196(o.notIns); | 1275 checkUnnamed1969(o.notIns); |
1227 checkUnnamed2197(o.permissions); | 1276 checkUnnamed1970(o.permissions); |
1228 } | 1277 } |
1229 buildCounterRule--; | 1278 buildCounterRule--; |
1230 } | 1279 } |
1231 | 1280 |
1232 buildUnnamed2198() { | 1281 buildUnnamed1971() { |
1233 var o = new core.List<api.ImportFile>(); | 1282 var o = new core.List<api.ImportFile>(); |
1234 o.add(buildImportFile()); | 1283 o.add(buildImportFile()); |
1235 o.add(buildImportFile()); | 1284 o.add(buildImportFile()); |
1236 return o; | 1285 return o; |
1237 } | 1286 } |
1238 | 1287 |
1239 checkUnnamed2198(core.List<api.ImportFile> o) { | 1288 checkUnnamed1971(core.List<api.ImportFile> o) { |
1240 unittest.expect(o, unittest.hasLength(2)); | 1289 unittest.expect(o, unittest.hasLength(2)); |
1241 checkImportFile(o[0]); | 1290 checkImportFile(o[0]); |
1242 checkImportFile(o[1]); | 1291 checkImportFile(o[1]); |
1243 } | 1292 } |
1244 | 1293 |
1245 core.int buildCounterTargetConfiguration = 0; | 1294 core.int buildCounterTargetConfiguration = 0; |
1246 buildTargetConfiguration() { | 1295 buildTargetConfiguration() { |
1247 var o = new api.TargetConfiguration(); | 1296 var o = new api.TargetConfiguration(); |
1248 buildCounterTargetConfiguration++; | 1297 buildCounterTargetConfiguration++; |
1249 if (buildCounterTargetConfiguration < 3) { | 1298 if (buildCounterTargetConfiguration < 3) { |
1250 o.config = buildConfigFile(); | 1299 o.config = buildConfigFile(); |
1251 o.imports = buildUnnamed2198(); | 1300 o.imports = buildUnnamed1971(); |
1252 } | 1301 } |
1253 buildCounterTargetConfiguration--; | 1302 buildCounterTargetConfiguration--; |
1254 return o; | 1303 return o; |
1255 } | 1304 } |
1256 | 1305 |
1257 checkTargetConfiguration(api.TargetConfiguration o) { | 1306 checkTargetConfiguration(api.TargetConfiguration o) { |
1258 buildCounterTargetConfiguration++; | 1307 buildCounterTargetConfiguration++; |
1259 if (buildCounterTargetConfiguration < 3) { | 1308 if (buildCounterTargetConfiguration < 3) { |
1260 checkConfigFile(o.config); | 1309 checkConfigFile(o.config); |
1261 checkUnnamed2198(o.imports); | 1310 checkUnnamed1971(o.imports); |
1262 } | 1311 } |
1263 buildCounterTargetConfiguration--; | 1312 buildCounterTargetConfiguration--; |
1264 } | 1313 } |
1265 | 1314 |
1266 buildUnnamed2199() { | 1315 buildUnnamed1972() { |
1267 var o = new core.List<core.String>(); | 1316 var o = new core.List<core.String>(); |
1268 o.add("foo"); | 1317 o.add("foo"); |
1269 o.add("foo"); | 1318 o.add("foo"); |
1270 return o; | 1319 return o; |
1271 } | 1320 } |
1272 | 1321 |
1273 checkUnnamed2199(core.List<core.String> o) { | 1322 checkUnnamed1972(core.List<core.String> o) { |
1274 unittest.expect(o, unittest.hasLength(2)); | 1323 unittest.expect(o, unittest.hasLength(2)); |
1275 unittest.expect(o[0], unittest.equals('foo')); | 1324 unittest.expect(o[0], unittest.equals('foo')); |
1276 unittest.expect(o[1], unittest.equals('foo')); | 1325 unittest.expect(o[1], unittest.equals('foo')); |
1277 } | 1326 } |
1278 | 1327 |
1279 core.int buildCounterTestPermissionsRequest = 0; | 1328 core.int buildCounterTestPermissionsRequest = 0; |
1280 buildTestPermissionsRequest() { | 1329 buildTestPermissionsRequest() { |
1281 var o = new api.TestPermissionsRequest(); | 1330 var o = new api.TestPermissionsRequest(); |
1282 buildCounterTestPermissionsRequest++; | 1331 buildCounterTestPermissionsRequest++; |
1283 if (buildCounterTestPermissionsRequest < 3) { | 1332 if (buildCounterTestPermissionsRequest < 3) { |
1284 o.permissions = buildUnnamed2199(); | 1333 o.permissions = buildUnnamed1972(); |
1285 } | 1334 } |
1286 buildCounterTestPermissionsRequest--; | 1335 buildCounterTestPermissionsRequest--; |
1287 return o; | 1336 return o; |
1288 } | 1337 } |
1289 | 1338 |
1290 checkTestPermissionsRequest(api.TestPermissionsRequest o) { | 1339 checkTestPermissionsRequest(api.TestPermissionsRequest o) { |
1291 buildCounterTestPermissionsRequest++; | 1340 buildCounterTestPermissionsRequest++; |
1292 if (buildCounterTestPermissionsRequest < 3) { | 1341 if (buildCounterTestPermissionsRequest < 3) { |
1293 checkUnnamed2199(o.permissions); | 1342 checkUnnamed1972(o.permissions); |
1294 } | 1343 } |
1295 buildCounterTestPermissionsRequest--; | 1344 buildCounterTestPermissionsRequest--; |
1296 } | 1345 } |
1297 | 1346 |
1298 buildUnnamed2200() { | 1347 buildUnnamed1973() { |
1299 var o = new core.List<core.String>(); | 1348 var o = new core.List<core.String>(); |
1300 o.add("foo"); | 1349 o.add("foo"); |
1301 o.add("foo"); | 1350 o.add("foo"); |
1302 return o; | 1351 return o; |
1303 } | 1352 } |
1304 | 1353 |
1305 checkUnnamed2200(core.List<core.String> o) { | 1354 checkUnnamed1973(core.List<core.String> o) { |
1306 unittest.expect(o, unittest.hasLength(2)); | 1355 unittest.expect(o, unittest.hasLength(2)); |
1307 unittest.expect(o[0], unittest.equals('foo')); | 1356 unittest.expect(o[0], unittest.equals('foo')); |
1308 unittest.expect(o[1], unittest.equals('foo')); | 1357 unittest.expect(o[1], unittest.equals('foo')); |
1309 } | 1358 } |
1310 | 1359 |
1311 core.int buildCounterTestPermissionsResponse = 0; | 1360 core.int buildCounterTestPermissionsResponse = 0; |
1312 buildTestPermissionsResponse() { | 1361 buildTestPermissionsResponse() { |
1313 var o = new api.TestPermissionsResponse(); | 1362 var o = new api.TestPermissionsResponse(); |
1314 buildCounterTestPermissionsResponse++; | 1363 buildCounterTestPermissionsResponse++; |
1315 if (buildCounterTestPermissionsResponse < 3) { | 1364 if (buildCounterTestPermissionsResponse < 3) { |
1316 o.permissions = buildUnnamed2200(); | 1365 o.permissions = buildUnnamed1973(); |
1317 } | 1366 } |
1318 buildCounterTestPermissionsResponse--; | 1367 buildCounterTestPermissionsResponse--; |
1319 return o; | 1368 return o; |
1320 } | 1369 } |
1321 | 1370 |
1322 checkTestPermissionsResponse(api.TestPermissionsResponse o) { | 1371 checkTestPermissionsResponse(api.TestPermissionsResponse o) { |
1323 buildCounterTestPermissionsResponse++; | 1372 buildCounterTestPermissionsResponse++; |
1324 if (buildCounterTestPermissionsResponse < 3) { | 1373 if (buildCounterTestPermissionsResponse < 3) { |
1325 checkUnnamed2200(o.permissions); | 1374 checkUnnamed1973(o.permissions); |
1326 } | 1375 } |
1327 buildCounterTestPermissionsResponse--; | 1376 buildCounterTestPermissionsResponse--; |
1328 } | 1377 } |
1329 | 1378 |
1330 core.int buildCounterType = 0; | 1379 core.int buildCounterType = 0; |
1331 buildType() { | 1380 buildType() { |
1332 var o = new api.Type(); | 1381 var o = new api.Type(); |
1333 buildCounterType++; | 1382 buildCounterType++; |
1334 if (buildCounterType < 3) { | 1383 if (buildCounterType < 3) { |
1335 o.id = "foo"; | 1384 o.id = "foo"; |
(...skipping 11 matching lines...) Expand all Loading... |
1347 if (buildCounterType < 3) { | 1396 if (buildCounterType < 3) { |
1348 unittest.expect(o.id, unittest.equals('foo')); | 1397 unittest.expect(o.id, unittest.equals('foo')); |
1349 unittest.expect(o.insertTime, unittest.equals('foo')); | 1398 unittest.expect(o.insertTime, unittest.equals('foo')); |
1350 unittest.expect(o.name, unittest.equals('foo')); | 1399 unittest.expect(o.name, unittest.equals('foo')); |
1351 checkOperation(o.operation); | 1400 checkOperation(o.operation); |
1352 unittest.expect(o.selfLink, unittest.equals('foo')); | 1401 unittest.expect(o.selfLink, unittest.equals('foo')); |
1353 } | 1402 } |
1354 buildCounterType--; | 1403 buildCounterType--; |
1355 } | 1404 } |
1356 | 1405 |
1357 buildUnnamed2201() { | 1406 buildUnnamed1974() { |
1358 var o = new core.List<api.Type>(); | 1407 var o = new core.List<api.Type>(); |
1359 o.add(buildType()); | 1408 o.add(buildType()); |
1360 o.add(buildType()); | 1409 o.add(buildType()); |
1361 return o; | 1410 return o; |
1362 } | 1411 } |
1363 | 1412 |
1364 checkUnnamed2201(core.List<api.Type> o) { | 1413 checkUnnamed1974(core.List<api.Type> o) { |
1365 unittest.expect(o, unittest.hasLength(2)); | 1414 unittest.expect(o, unittest.hasLength(2)); |
1366 checkType(o[0]); | 1415 checkType(o[0]); |
1367 checkType(o[1]); | 1416 checkType(o[1]); |
1368 } | 1417 } |
1369 | 1418 |
1370 core.int buildCounterTypesListResponse = 0; | 1419 core.int buildCounterTypesListResponse = 0; |
1371 buildTypesListResponse() { | 1420 buildTypesListResponse() { |
1372 var o = new api.TypesListResponse(); | 1421 var o = new api.TypesListResponse(); |
1373 buildCounterTypesListResponse++; | 1422 buildCounterTypesListResponse++; |
1374 if (buildCounterTypesListResponse < 3) { | 1423 if (buildCounterTypesListResponse < 3) { |
1375 o.nextPageToken = "foo"; | 1424 o.nextPageToken = "foo"; |
1376 o.types = buildUnnamed2201(); | 1425 o.types = buildUnnamed1974(); |
1377 } | 1426 } |
1378 buildCounterTypesListResponse--; | 1427 buildCounterTypesListResponse--; |
1379 return o; | 1428 return o; |
1380 } | 1429 } |
1381 | 1430 |
1382 checkTypesListResponse(api.TypesListResponse o) { | 1431 checkTypesListResponse(api.TypesListResponse o) { |
1383 buildCounterTypesListResponse++; | 1432 buildCounterTypesListResponse++; |
1384 if (buildCounterTypesListResponse < 3) { | 1433 if (buildCounterTypesListResponse < 3) { |
1385 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1434 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1386 checkUnnamed2201(o.types); | 1435 checkUnnamed1974(o.types); |
1387 } | 1436 } |
1388 buildCounterTypesListResponse--; | 1437 buildCounterTypesListResponse--; |
1389 } | 1438 } |
1390 | 1439 |
1391 | 1440 |
1392 main() { | 1441 main() { |
1393 unittest.group("obj-schema-AuditConfig", () { | 1442 unittest.group("obj-schema-AuditConfig", () { |
1394 unittest.test("to-json--from-json", () { | 1443 unittest.test("to-json--from-json", () { |
1395 var o = buildAuditConfig(); | 1444 var o = buildAuditConfig(); |
1396 var od = new api.AuditConfig.fromJson(o.toJson()); | 1445 var od = new api.AuditConfig.fromJson(o.toJson()); |
1397 checkAuditConfig(od); | 1446 checkAuditConfig(od); |
1398 }); | 1447 }); |
1399 }); | 1448 }); |
1400 | 1449 |
1401 | 1450 |
| 1451 unittest.group("obj-schema-AuditLogConfig", () { |
| 1452 unittest.test("to-json--from-json", () { |
| 1453 var o = buildAuditLogConfig(); |
| 1454 var od = new api.AuditLogConfig.fromJson(o.toJson()); |
| 1455 checkAuditLogConfig(od); |
| 1456 }); |
| 1457 }); |
| 1458 |
| 1459 |
1402 unittest.group("obj-schema-Binding", () { | 1460 unittest.group("obj-schema-Binding", () { |
1403 unittest.test("to-json--from-json", () { | 1461 unittest.test("to-json--from-json", () { |
1404 var o = buildBinding(); | 1462 var o = buildBinding(); |
1405 var od = new api.Binding.fromJson(o.toJson()); | 1463 var od = new api.Binding.fromJson(o.toJson()); |
1406 checkBinding(od); | 1464 checkBinding(od); |
1407 }); | 1465 }); |
1408 }); | 1466 }); |
1409 | 1467 |
1410 | 1468 |
1411 unittest.group("obj-schema-Condition", () { | 1469 unittest.group("obj-schema-Condition", () { |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1788 checkOperation(response); | 1846 checkOperation(response); |
1789 }))); | 1847 }))); |
1790 }); | 1848 }); |
1791 | 1849 |
1792 unittest.test("method--delete", () { | 1850 unittest.test("method--delete", () { |
1793 | 1851 |
1794 var mock = new HttpServerMock(); | 1852 var mock = new HttpServerMock(); |
1795 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 1853 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
1796 var arg_project = "foo"; | 1854 var arg_project = "foo"; |
1797 var arg_deployment = "foo"; | 1855 var arg_deployment = "foo"; |
| 1856 var arg_deletePolicy = "foo"; |
1798 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1857 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1799 var path = (req.url).path; | 1858 var path = (req.url).path; |
1800 var pathOffset = 0; | 1859 var pathOffset = 0; |
1801 var index; | 1860 var index; |
1802 var subPart; | 1861 var subPart; |
1803 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1862 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1804 pathOffset += 1; | 1863 pathOffset += 1; |
1805 | 1864 |
1806 var query = (req.url).query; | 1865 var query = (req.url).query; |
1807 var queryOffset = 0; | 1866 var queryOffset = 0; |
1808 var queryMap = {}; | 1867 var queryMap = {}; |
1809 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1868 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1810 parseBool(n) { | 1869 parseBool(n) { |
1811 if (n == "true") return true; | 1870 if (n == "true") return true; |
1812 if (n == "false") return false; | 1871 if (n == "false") return false; |
1813 if (n == null) return null; | 1872 if (n == null) return null; |
1814 throw new core.ArgumentError("Invalid boolean: $n"); | 1873 throw new core.ArgumentError("Invalid boolean: $n"); |
1815 } | 1874 } |
1816 if (query.length > 0) { | 1875 if (query.length > 0) { |
1817 for (var part in query.split("&")) { | 1876 for (var part in query.split("&")) { |
1818 var keyvalue = part.split("="); | 1877 var keyvalue = part.split("="); |
1819 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1878 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1820 } | 1879 } |
1821 } | 1880 } |
| 1881 unittest.expect(queryMap["deletePolicy"].first, unittest.equals(arg_dele
tePolicy)); |
1822 | 1882 |
1823 | 1883 |
1824 var h = { | 1884 var h = { |
1825 "content-type" : "application/json; charset=utf-8", | 1885 "content-type" : "application/json; charset=utf-8", |
1826 }; | 1886 }; |
1827 var resp = convert.JSON.encode(buildOperation()); | 1887 var resp = convert.JSON.encode(buildOperation()); |
1828 return new async.Future.value(stringResponse(200, h, resp)); | 1888 return new async.Future.value(stringResponse(200, h, resp)); |
1829 }), true); | 1889 }), true); |
1830 res.delete(arg_project, arg_deployment).then(unittest.expectAsync(((api.Op
eration response) { | 1890 res.delete(arg_project, arg_deployment, deletePolicy: arg_deletePolicy).th
en(unittest.expectAsync(((api.Operation response) { |
1831 checkOperation(response); | 1891 checkOperation(response); |
1832 }))); | 1892 }))); |
1833 }); | 1893 }); |
1834 | 1894 |
1835 unittest.test("method--get", () { | 1895 unittest.test("method--get", () { |
1836 | 1896 |
1837 var mock = new HttpServerMock(); | 1897 var mock = new HttpServerMock(); |
1838 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 1898 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
1839 var arg_project = "foo"; | 1899 var arg_project = "foo"; |
1840 var arg_deployment = "foo"; | 1900 var arg_deployment = "foo"; |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2610 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Type
sListResponse response) { | 2670 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Type
sListResponse response) { |
2611 checkTypesListResponse(response); | 2671 checkTypesListResponse(response); |
2612 }))); | 2672 }))); |
2613 }); | 2673 }); |
2614 | 2674 |
2615 }); | 2675 }); |
2616 | 2676 |
2617 | 2677 |
2618 } | 2678 } |
2619 | 2679 |
OLD | NEW |