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 buildUnnamed1940() { | 54 buildUnnamed2034() { |
55 var o = new core.List<api.AuditLogConfig>(); | 55 var o = new core.List<api.AuditLogConfig>(); |
56 o.add(buildAuditLogConfig()); | 56 o.add(buildAuditLogConfig()); |
57 o.add(buildAuditLogConfig()); | 57 o.add(buildAuditLogConfig()); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed1940(core.List<api.AuditLogConfig> o) { | 61 checkUnnamed2034(core.List<api.AuditLogConfig> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 checkAuditLogConfig(o[0]); | 63 checkAuditLogConfig(o[0]); |
64 checkAuditLogConfig(o[1]); | 64 checkAuditLogConfig(o[1]); |
65 } | 65 } |
66 | 66 |
67 buildUnnamed1941() { | 67 buildUnnamed2035() { |
68 var o = new core.List<core.String>(); | 68 var o = new core.List<core.String>(); |
69 o.add("foo"); | 69 o.add("foo"); |
70 o.add("foo"); | 70 o.add("foo"); |
71 return o; | 71 return o; |
72 } | 72 } |
73 | 73 |
74 checkUnnamed1941(core.List<core.String> o) { | 74 checkUnnamed2035(core.List<core.String> o) { |
75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
76 unittest.expect(o[0], unittest.equals('foo')); | 76 unittest.expect(o[0], unittest.equals('foo')); |
77 unittest.expect(o[1], unittest.equals('foo')); | 77 unittest.expect(o[1], unittest.equals('foo')); |
78 } | 78 } |
79 | 79 |
80 core.int buildCounterAuditConfig = 0; | 80 core.int buildCounterAuditConfig = 0; |
81 buildAuditConfig() { | 81 buildAuditConfig() { |
82 var o = new api.AuditConfig(); | 82 var o = new api.AuditConfig(); |
83 buildCounterAuditConfig++; | 83 buildCounterAuditConfig++; |
84 if (buildCounterAuditConfig < 3) { | 84 if (buildCounterAuditConfig < 3) { |
85 o.auditLogConfigs = buildUnnamed1940(); | 85 o.auditLogConfigs = buildUnnamed2034(); |
86 o.exemptedMembers = buildUnnamed1941(); | 86 o.exemptedMembers = buildUnnamed2035(); |
87 o.service = "foo"; | 87 o.service = "foo"; |
88 } | 88 } |
89 buildCounterAuditConfig--; | 89 buildCounterAuditConfig--; |
90 return o; | 90 return o; |
91 } | 91 } |
92 | 92 |
93 checkAuditConfig(api.AuditConfig o) { | 93 checkAuditConfig(api.AuditConfig o) { |
94 buildCounterAuditConfig++; | 94 buildCounterAuditConfig++; |
95 if (buildCounterAuditConfig < 3) { | 95 if (buildCounterAuditConfig < 3) { |
96 checkUnnamed1940(o.auditLogConfigs); | 96 checkUnnamed2034(o.auditLogConfigs); |
97 checkUnnamed1941(o.exemptedMembers); | 97 checkUnnamed2035(o.exemptedMembers); |
98 unittest.expect(o.service, unittest.equals('foo')); | 98 unittest.expect(o.service, unittest.equals('foo')); |
99 } | 99 } |
100 buildCounterAuditConfig--; | 100 buildCounterAuditConfig--; |
101 } | 101 } |
102 | 102 |
103 buildUnnamed1942() { | 103 buildUnnamed2036() { |
104 var o = new core.List<core.String>(); | 104 var o = new core.List<core.String>(); |
105 o.add("foo"); | 105 o.add("foo"); |
106 o.add("foo"); | 106 o.add("foo"); |
107 return o; | 107 return o; |
108 } | 108 } |
109 | 109 |
110 checkUnnamed1942(core.List<core.String> o) { | 110 checkUnnamed2036(core.List<core.String> o) { |
111 unittest.expect(o, unittest.hasLength(2)); | 111 unittest.expect(o, unittest.hasLength(2)); |
112 unittest.expect(o[0], unittest.equals('foo')); | 112 unittest.expect(o[0], unittest.equals('foo')); |
113 unittest.expect(o[1], unittest.equals('foo')); | 113 unittest.expect(o[1], unittest.equals('foo')); |
114 } | 114 } |
115 | 115 |
116 core.int buildCounterAuditLogConfig = 0; | 116 core.int buildCounterAuditLogConfig = 0; |
117 buildAuditLogConfig() { | 117 buildAuditLogConfig() { |
118 var o = new api.AuditLogConfig(); | 118 var o = new api.AuditLogConfig(); |
119 buildCounterAuditLogConfig++; | 119 buildCounterAuditLogConfig++; |
120 if (buildCounterAuditLogConfig < 3) { | 120 if (buildCounterAuditLogConfig < 3) { |
121 o.exemptedMembers = buildUnnamed1942(); | 121 o.exemptedMembers = buildUnnamed2036(); |
122 o.logType = "foo"; | 122 o.logType = "foo"; |
123 } | 123 } |
124 buildCounterAuditLogConfig--; | 124 buildCounterAuditLogConfig--; |
125 return o; | 125 return o; |
126 } | 126 } |
127 | 127 |
128 checkAuditLogConfig(api.AuditLogConfig o) { | 128 checkAuditLogConfig(api.AuditLogConfig o) { |
129 buildCounterAuditLogConfig++; | 129 buildCounterAuditLogConfig++; |
130 if (buildCounterAuditLogConfig < 3) { | 130 if (buildCounterAuditLogConfig < 3) { |
131 checkUnnamed1942(o.exemptedMembers); | 131 checkUnnamed2036(o.exemptedMembers); |
132 unittest.expect(o.logType, unittest.equals('foo')); | 132 unittest.expect(o.logType, unittest.equals('foo')); |
133 } | 133 } |
134 buildCounterAuditLogConfig--; | 134 buildCounterAuditLogConfig--; |
135 } | 135 } |
136 | 136 |
137 buildUnnamed1943() { | 137 buildUnnamed2037() { |
138 var o = new core.List<core.String>(); | 138 var o = new core.List<core.String>(); |
139 o.add("foo"); | 139 o.add("foo"); |
140 o.add("foo"); | 140 o.add("foo"); |
141 return o; | 141 return o; |
142 } | 142 } |
143 | 143 |
144 checkUnnamed1943(core.List<core.String> o) { | 144 checkUnnamed2037(core.List<core.String> o) { |
145 unittest.expect(o, unittest.hasLength(2)); | 145 unittest.expect(o, unittest.hasLength(2)); |
146 unittest.expect(o[0], unittest.equals('foo')); | 146 unittest.expect(o[0], unittest.equals('foo')); |
147 unittest.expect(o[1], unittest.equals('foo')); | 147 unittest.expect(o[1], unittest.equals('foo')); |
148 } | 148 } |
149 | 149 |
150 core.int buildCounterBinding = 0; | 150 core.int buildCounterBinding = 0; |
151 buildBinding() { | 151 buildBinding() { |
152 var o = new api.Binding(); | 152 var o = new api.Binding(); |
153 buildCounterBinding++; | 153 buildCounterBinding++; |
154 if (buildCounterBinding < 3) { | 154 if (buildCounterBinding < 3) { |
155 o.members = buildUnnamed1943(); | 155 o.members = buildUnnamed2037(); |
156 o.role = "foo"; | 156 o.role = "foo"; |
157 } | 157 } |
158 buildCounterBinding--; | 158 buildCounterBinding--; |
159 return o; | 159 return o; |
160 } | 160 } |
161 | 161 |
162 checkBinding(api.Binding o) { | 162 checkBinding(api.Binding o) { |
163 buildCounterBinding++; | 163 buildCounterBinding++; |
164 if (buildCounterBinding < 3) { | 164 if (buildCounterBinding < 3) { |
165 checkUnnamed1943(o.members); | 165 checkUnnamed2037(o.members); |
166 unittest.expect(o.role, unittest.equals('foo')); | 166 unittest.expect(o.role, unittest.equals('foo')); |
167 } | 167 } |
168 buildCounterBinding--; | 168 buildCounterBinding--; |
169 } | 169 } |
170 | 170 |
171 buildUnnamed1944() { | 171 buildUnnamed2038() { |
172 var o = new core.List<core.String>(); | 172 var o = new core.List<core.String>(); |
173 o.add("foo"); | 173 o.add("foo"); |
174 o.add("foo"); | 174 o.add("foo"); |
175 return o; | 175 return o; |
176 } | 176 } |
177 | 177 |
178 checkUnnamed1944(core.List<core.String> o) { | 178 checkUnnamed2038(core.List<core.String> o) { |
179 unittest.expect(o, unittest.hasLength(2)); | 179 unittest.expect(o, unittest.hasLength(2)); |
180 unittest.expect(o[0], unittest.equals('foo')); | 180 unittest.expect(o[0], unittest.equals('foo')); |
181 unittest.expect(o[1], unittest.equals('foo')); | 181 unittest.expect(o[1], unittest.equals('foo')); |
182 } | 182 } |
183 | 183 |
184 core.int buildCounterCondition = 0; | 184 core.int buildCounterCondition = 0; |
185 buildCondition() { | 185 buildCondition() { |
186 var o = new api.Condition(); | 186 var o = new api.Condition(); |
187 buildCounterCondition++; | 187 buildCounterCondition++; |
188 if (buildCounterCondition < 3) { | 188 if (buildCounterCondition < 3) { |
189 o.iam = "foo"; | 189 o.iam = "foo"; |
190 o.op = "foo"; | 190 o.op = "foo"; |
191 o.svc = "foo"; | 191 o.svc = "foo"; |
192 o.sys = "foo"; | 192 o.sys = "foo"; |
193 o.value = "foo"; | 193 o.value = "foo"; |
194 o.values = buildUnnamed1944(); | 194 o.values = buildUnnamed2038(); |
195 } | 195 } |
196 buildCounterCondition--; | 196 buildCounterCondition--; |
197 return o; | 197 return o; |
198 } | 198 } |
199 | 199 |
200 checkCondition(api.Condition o) { | 200 checkCondition(api.Condition o) { |
201 buildCounterCondition++; | 201 buildCounterCondition++; |
202 if (buildCounterCondition < 3) { | 202 if (buildCounterCondition < 3) { |
203 unittest.expect(o.iam, unittest.equals('foo')); | 203 unittest.expect(o.iam, unittest.equals('foo')); |
204 unittest.expect(o.op, unittest.equals('foo')); | 204 unittest.expect(o.op, unittest.equals('foo')); |
205 unittest.expect(o.svc, unittest.equals('foo')); | 205 unittest.expect(o.svc, unittest.equals('foo')); |
206 unittest.expect(o.sys, unittest.equals('foo')); | 206 unittest.expect(o.sys, unittest.equals('foo')); |
207 unittest.expect(o.value, unittest.equals('foo')); | 207 unittest.expect(o.value, unittest.equals('foo')); |
208 checkUnnamed1944(o.values); | 208 checkUnnamed2038(o.values); |
209 } | 209 } |
210 buildCounterCondition--; | 210 buildCounterCondition--; |
211 } | 211 } |
212 | 212 |
213 core.int buildCounterConfigFile = 0; | 213 core.int buildCounterConfigFile = 0; |
214 buildConfigFile() { | 214 buildConfigFile() { |
215 var o = new api.ConfigFile(); | 215 var o = new api.ConfigFile(); |
216 buildCounterConfigFile++; | 216 buildCounterConfigFile++; |
217 if (buildCounterConfigFile < 3) { | 217 if (buildCounterConfigFile < 3) { |
218 o.content = "foo"; | 218 o.content = "foo"; |
219 } | 219 } |
220 buildCounterConfigFile--; | 220 buildCounterConfigFile--; |
221 return o; | 221 return o; |
222 } | 222 } |
223 | 223 |
224 checkConfigFile(api.ConfigFile o) { | 224 checkConfigFile(api.ConfigFile o) { |
225 buildCounterConfigFile++; | 225 buildCounterConfigFile++; |
226 if (buildCounterConfigFile < 3) { | 226 if (buildCounterConfigFile < 3) { |
227 unittest.expect(o.content, unittest.equals('foo')); | 227 unittest.expect(o.content, unittest.equals('foo')); |
228 } | 228 } |
229 buildCounterConfigFile--; | 229 buildCounterConfigFile--; |
230 } | 230 } |
231 | 231 |
232 buildUnnamed1945() { | 232 buildUnnamed2039() { |
233 var o = new core.List<api.DeploymentLabelEntry>(); | 233 var o = new core.List<api.DeploymentLabelEntry>(); |
234 o.add(buildDeploymentLabelEntry()); | 234 o.add(buildDeploymentLabelEntry()); |
235 o.add(buildDeploymentLabelEntry()); | 235 o.add(buildDeploymentLabelEntry()); |
236 return o; | 236 return o; |
237 } | 237 } |
238 | 238 |
239 checkUnnamed1945(core.List<api.DeploymentLabelEntry> o) { | 239 checkUnnamed2039(core.List<api.DeploymentLabelEntry> o) { |
240 unittest.expect(o, unittest.hasLength(2)); | 240 unittest.expect(o, unittest.hasLength(2)); |
241 checkDeploymentLabelEntry(o[0]); | 241 checkDeploymentLabelEntry(o[0]); |
242 checkDeploymentLabelEntry(o[1]); | 242 checkDeploymentLabelEntry(o[1]); |
243 } | 243 } |
244 | 244 |
245 core.int buildCounterDeployment = 0; | 245 core.int buildCounterDeployment = 0; |
246 buildDeployment() { | 246 buildDeployment() { |
247 var o = new api.Deployment(); | 247 var o = new api.Deployment(); |
248 buildCounterDeployment++; | 248 buildCounterDeployment++; |
249 if (buildCounterDeployment < 3) { | 249 if (buildCounterDeployment < 3) { |
250 o.description = "foo"; | 250 o.description = "foo"; |
251 o.fingerprint = "foo"; | 251 o.fingerprint = "foo"; |
252 o.id = "foo"; | 252 o.id = "foo"; |
253 o.insertTime = "foo"; | 253 o.insertTime = "foo"; |
254 o.labels = buildUnnamed1945(); | 254 o.labels = buildUnnamed2039(); |
255 o.manifest = "foo"; | 255 o.manifest = "foo"; |
256 o.name = "foo"; | 256 o.name = "foo"; |
257 o.operation = buildOperation(); | 257 o.operation = buildOperation(); |
258 o.selfLink = "foo"; | 258 o.selfLink = "foo"; |
259 o.target = buildTargetConfiguration(); | 259 o.target = buildTargetConfiguration(); |
260 o.update = buildDeploymentUpdate(); | 260 o.update = buildDeploymentUpdate(); |
261 } | 261 } |
262 buildCounterDeployment--; | 262 buildCounterDeployment--; |
263 return o; | 263 return o; |
264 } | 264 } |
265 | 265 |
266 checkDeployment(api.Deployment o) { | 266 checkDeployment(api.Deployment o) { |
267 buildCounterDeployment++; | 267 buildCounterDeployment++; |
268 if (buildCounterDeployment < 3) { | 268 if (buildCounterDeployment < 3) { |
269 unittest.expect(o.description, unittest.equals('foo')); | 269 unittest.expect(o.description, unittest.equals('foo')); |
270 unittest.expect(o.fingerprint, unittest.equals('foo')); | 270 unittest.expect(o.fingerprint, unittest.equals('foo')); |
271 unittest.expect(o.id, unittest.equals('foo')); | 271 unittest.expect(o.id, unittest.equals('foo')); |
272 unittest.expect(o.insertTime, unittest.equals('foo')); | 272 unittest.expect(o.insertTime, unittest.equals('foo')); |
273 checkUnnamed1945(o.labels); | 273 checkUnnamed2039(o.labels); |
274 unittest.expect(o.manifest, unittest.equals('foo')); | 274 unittest.expect(o.manifest, unittest.equals('foo')); |
275 unittest.expect(o.name, unittest.equals('foo')); | 275 unittest.expect(o.name, unittest.equals('foo')); |
276 checkOperation(o.operation); | 276 checkOperation(o.operation); |
277 unittest.expect(o.selfLink, unittest.equals('foo')); | 277 unittest.expect(o.selfLink, unittest.equals('foo')); |
278 checkTargetConfiguration(o.target); | 278 checkTargetConfiguration(o.target); |
279 checkDeploymentUpdate(o.update); | 279 checkDeploymentUpdate(o.update); |
280 } | 280 } |
281 buildCounterDeployment--; | 281 buildCounterDeployment--; |
282 } | 282 } |
283 | 283 |
(...skipping 11 matching lines...) Expand all Loading... |
295 | 295 |
296 checkDeploymentLabelEntry(api.DeploymentLabelEntry o) { | 296 checkDeploymentLabelEntry(api.DeploymentLabelEntry o) { |
297 buildCounterDeploymentLabelEntry++; | 297 buildCounterDeploymentLabelEntry++; |
298 if (buildCounterDeploymentLabelEntry < 3) { | 298 if (buildCounterDeploymentLabelEntry < 3) { |
299 unittest.expect(o.key, unittest.equals('foo')); | 299 unittest.expect(o.key, unittest.equals('foo')); |
300 unittest.expect(o.value, unittest.equals('foo')); | 300 unittest.expect(o.value, unittest.equals('foo')); |
301 } | 301 } |
302 buildCounterDeploymentLabelEntry--; | 302 buildCounterDeploymentLabelEntry--; |
303 } | 303 } |
304 | 304 |
305 buildUnnamed1946() { | 305 buildUnnamed2040() { |
306 var o = new core.List<api.DeploymentUpdateLabelEntry>(); | 306 var o = new core.List<api.DeploymentUpdateLabelEntry>(); |
307 o.add(buildDeploymentUpdateLabelEntry()); | 307 o.add(buildDeploymentUpdateLabelEntry()); |
308 o.add(buildDeploymentUpdateLabelEntry()); | 308 o.add(buildDeploymentUpdateLabelEntry()); |
309 return o; | 309 return o; |
310 } | 310 } |
311 | 311 |
312 checkUnnamed1946(core.List<api.DeploymentUpdateLabelEntry> o) { | 312 checkUnnamed2040(core.List<api.DeploymentUpdateLabelEntry> o) { |
313 unittest.expect(o, unittest.hasLength(2)); | 313 unittest.expect(o, unittest.hasLength(2)); |
314 checkDeploymentUpdateLabelEntry(o[0]); | 314 checkDeploymentUpdateLabelEntry(o[0]); |
315 checkDeploymentUpdateLabelEntry(o[1]); | 315 checkDeploymentUpdateLabelEntry(o[1]); |
316 } | 316 } |
317 | 317 |
318 core.int buildCounterDeploymentUpdate = 0; | 318 core.int buildCounterDeploymentUpdate = 0; |
319 buildDeploymentUpdate() { | 319 buildDeploymentUpdate() { |
320 var o = new api.DeploymentUpdate(); | 320 var o = new api.DeploymentUpdate(); |
321 buildCounterDeploymentUpdate++; | 321 buildCounterDeploymentUpdate++; |
322 if (buildCounterDeploymentUpdate < 3) { | 322 if (buildCounterDeploymentUpdate < 3) { |
323 o.labels = buildUnnamed1946(); | 323 o.description = "foo"; |
| 324 o.labels = buildUnnamed2040(); |
324 o.manifest = "foo"; | 325 o.manifest = "foo"; |
325 } | 326 } |
326 buildCounterDeploymentUpdate--; | 327 buildCounterDeploymentUpdate--; |
327 return o; | 328 return o; |
328 } | 329 } |
329 | 330 |
330 checkDeploymentUpdate(api.DeploymentUpdate o) { | 331 checkDeploymentUpdate(api.DeploymentUpdate o) { |
331 buildCounterDeploymentUpdate++; | 332 buildCounterDeploymentUpdate++; |
332 if (buildCounterDeploymentUpdate < 3) { | 333 if (buildCounterDeploymentUpdate < 3) { |
333 checkUnnamed1946(o.labels); | 334 unittest.expect(o.description, unittest.equals('foo')); |
| 335 checkUnnamed2040(o.labels); |
334 unittest.expect(o.manifest, unittest.equals('foo')); | 336 unittest.expect(o.manifest, unittest.equals('foo')); |
335 } | 337 } |
336 buildCounterDeploymentUpdate--; | 338 buildCounterDeploymentUpdate--; |
337 } | 339 } |
338 | 340 |
339 core.int buildCounterDeploymentUpdateLabelEntry = 0; | 341 core.int buildCounterDeploymentUpdateLabelEntry = 0; |
340 buildDeploymentUpdateLabelEntry() { | 342 buildDeploymentUpdateLabelEntry() { |
341 var o = new api.DeploymentUpdateLabelEntry(); | 343 var o = new api.DeploymentUpdateLabelEntry(); |
342 buildCounterDeploymentUpdateLabelEntry++; | 344 buildCounterDeploymentUpdateLabelEntry++; |
343 if (buildCounterDeploymentUpdateLabelEntry < 3) { | 345 if (buildCounterDeploymentUpdateLabelEntry < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
369 } | 371 } |
370 | 372 |
371 checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) { | 373 checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) { |
372 buildCounterDeploymentsCancelPreviewRequest++; | 374 buildCounterDeploymentsCancelPreviewRequest++; |
373 if (buildCounterDeploymentsCancelPreviewRequest < 3) { | 375 if (buildCounterDeploymentsCancelPreviewRequest < 3) { |
374 unittest.expect(o.fingerprint, unittest.equals('foo')); | 376 unittest.expect(o.fingerprint, unittest.equals('foo')); |
375 } | 377 } |
376 buildCounterDeploymentsCancelPreviewRequest--; | 378 buildCounterDeploymentsCancelPreviewRequest--; |
377 } | 379 } |
378 | 380 |
379 buildUnnamed1947() { | 381 buildUnnamed2041() { |
380 var o = new core.List<api.Deployment>(); | 382 var o = new core.List<api.Deployment>(); |
381 o.add(buildDeployment()); | 383 o.add(buildDeployment()); |
382 o.add(buildDeployment()); | 384 o.add(buildDeployment()); |
383 return o; | 385 return o; |
384 } | 386 } |
385 | 387 |
386 checkUnnamed1947(core.List<api.Deployment> o) { | 388 checkUnnamed2041(core.List<api.Deployment> o) { |
387 unittest.expect(o, unittest.hasLength(2)); | 389 unittest.expect(o, unittest.hasLength(2)); |
388 checkDeployment(o[0]); | 390 checkDeployment(o[0]); |
389 checkDeployment(o[1]); | 391 checkDeployment(o[1]); |
390 } | 392 } |
391 | 393 |
392 core.int buildCounterDeploymentsListResponse = 0; | 394 core.int buildCounterDeploymentsListResponse = 0; |
393 buildDeploymentsListResponse() { | 395 buildDeploymentsListResponse() { |
394 var o = new api.DeploymentsListResponse(); | 396 var o = new api.DeploymentsListResponse(); |
395 buildCounterDeploymentsListResponse++; | 397 buildCounterDeploymentsListResponse++; |
396 if (buildCounterDeploymentsListResponse < 3) { | 398 if (buildCounterDeploymentsListResponse < 3) { |
397 o.deployments = buildUnnamed1947(); | 399 o.deployments = buildUnnamed2041(); |
398 o.nextPageToken = "foo"; | 400 o.nextPageToken = "foo"; |
399 } | 401 } |
400 buildCounterDeploymentsListResponse--; | 402 buildCounterDeploymentsListResponse--; |
401 return o; | 403 return o; |
402 } | 404 } |
403 | 405 |
404 checkDeploymentsListResponse(api.DeploymentsListResponse o) { | 406 checkDeploymentsListResponse(api.DeploymentsListResponse o) { |
405 buildCounterDeploymentsListResponse++; | 407 buildCounterDeploymentsListResponse++; |
406 if (buildCounterDeploymentsListResponse < 3) { | 408 if (buildCounterDeploymentsListResponse < 3) { |
407 checkUnnamed1947(o.deployments); | 409 checkUnnamed2041(o.deployments); |
408 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 410 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
409 } | 411 } |
410 buildCounterDeploymentsListResponse--; | 412 buildCounterDeploymentsListResponse--; |
411 } | 413 } |
412 | 414 |
413 core.int buildCounterDeploymentsStopRequest = 0; | 415 core.int buildCounterDeploymentsStopRequest = 0; |
414 buildDeploymentsStopRequest() { | 416 buildDeploymentsStopRequest() { |
415 var o = new api.DeploymentsStopRequest(); | 417 var o = new api.DeploymentsStopRequest(); |
416 buildCounterDeploymentsStopRequest++; | 418 buildCounterDeploymentsStopRequest++; |
417 if (buildCounterDeploymentsStopRequest < 3) { | 419 if (buildCounterDeploymentsStopRequest < 3) { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 | 485 |
484 checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { | 486 checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { |
485 buildCounterLogConfigCounterOptions++; | 487 buildCounterLogConfigCounterOptions++; |
486 if (buildCounterLogConfigCounterOptions < 3) { | 488 if (buildCounterLogConfigCounterOptions < 3) { |
487 unittest.expect(o.field, unittest.equals('foo')); | 489 unittest.expect(o.field, unittest.equals('foo')); |
488 unittest.expect(o.metric, unittest.equals('foo')); | 490 unittest.expect(o.metric, unittest.equals('foo')); |
489 } | 491 } |
490 buildCounterLogConfigCounterOptions--; | 492 buildCounterLogConfigCounterOptions--; |
491 } | 493 } |
492 | 494 |
493 buildUnnamed1948() { | 495 buildUnnamed2042() { |
494 var o = new core.List<api.ImportFile>(); | 496 var o = new core.List<api.ImportFile>(); |
495 o.add(buildImportFile()); | 497 o.add(buildImportFile()); |
496 o.add(buildImportFile()); | 498 o.add(buildImportFile()); |
497 return o; | 499 return o; |
498 } | 500 } |
499 | 501 |
500 checkUnnamed1948(core.List<api.ImportFile> o) { | 502 checkUnnamed2042(core.List<api.ImportFile> o) { |
501 unittest.expect(o, unittest.hasLength(2)); | 503 unittest.expect(o, unittest.hasLength(2)); |
502 checkImportFile(o[0]); | 504 checkImportFile(o[0]); |
503 checkImportFile(o[1]); | 505 checkImportFile(o[1]); |
504 } | 506 } |
505 | 507 |
506 core.int buildCounterManifest = 0; | 508 core.int buildCounterManifest = 0; |
507 buildManifest() { | 509 buildManifest() { |
508 var o = new api.Manifest(); | 510 var o = new api.Manifest(); |
509 buildCounterManifest++; | 511 buildCounterManifest++; |
510 if (buildCounterManifest < 3) { | 512 if (buildCounterManifest < 3) { |
511 o.config = buildConfigFile(); | 513 o.config = buildConfigFile(); |
512 o.expandedConfig = "foo"; | 514 o.expandedConfig = "foo"; |
513 o.id = "foo"; | 515 o.id = "foo"; |
514 o.imports = buildUnnamed1948(); | 516 o.imports = buildUnnamed2042(); |
515 o.insertTime = "foo"; | 517 o.insertTime = "foo"; |
516 o.layout = "foo"; | 518 o.layout = "foo"; |
517 o.name = "foo"; | 519 o.name = "foo"; |
518 o.selfLink = "foo"; | 520 o.selfLink = "foo"; |
519 } | 521 } |
520 buildCounterManifest--; | 522 buildCounterManifest--; |
521 return o; | 523 return o; |
522 } | 524 } |
523 | 525 |
524 checkManifest(api.Manifest o) { | 526 checkManifest(api.Manifest o) { |
525 buildCounterManifest++; | 527 buildCounterManifest++; |
526 if (buildCounterManifest < 3) { | 528 if (buildCounterManifest < 3) { |
527 checkConfigFile(o.config); | 529 checkConfigFile(o.config); |
528 unittest.expect(o.expandedConfig, unittest.equals('foo')); | 530 unittest.expect(o.expandedConfig, unittest.equals('foo')); |
529 unittest.expect(o.id, unittest.equals('foo')); | 531 unittest.expect(o.id, unittest.equals('foo')); |
530 checkUnnamed1948(o.imports); | 532 checkUnnamed2042(o.imports); |
531 unittest.expect(o.insertTime, unittest.equals('foo')); | 533 unittest.expect(o.insertTime, unittest.equals('foo')); |
532 unittest.expect(o.layout, unittest.equals('foo')); | 534 unittest.expect(o.layout, unittest.equals('foo')); |
533 unittest.expect(o.name, unittest.equals('foo')); | 535 unittest.expect(o.name, unittest.equals('foo')); |
534 unittest.expect(o.selfLink, unittest.equals('foo')); | 536 unittest.expect(o.selfLink, unittest.equals('foo')); |
535 } | 537 } |
536 buildCounterManifest--; | 538 buildCounterManifest--; |
537 } | 539 } |
538 | 540 |
539 buildUnnamed1949() { | 541 buildUnnamed2043() { |
540 var o = new core.List<api.Manifest>(); | 542 var o = new core.List<api.Manifest>(); |
541 o.add(buildManifest()); | 543 o.add(buildManifest()); |
542 o.add(buildManifest()); | 544 o.add(buildManifest()); |
543 return o; | 545 return o; |
544 } | 546 } |
545 | 547 |
546 checkUnnamed1949(core.List<api.Manifest> o) { | 548 checkUnnamed2043(core.List<api.Manifest> o) { |
547 unittest.expect(o, unittest.hasLength(2)); | 549 unittest.expect(o, unittest.hasLength(2)); |
548 checkManifest(o[0]); | 550 checkManifest(o[0]); |
549 checkManifest(o[1]); | 551 checkManifest(o[1]); |
550 } | 552 } |
551 | 553 |
552 core.int buildCounterManifestsListResponse = 0; | 554 core.int buildCounterManifestsListResponse = 0; |
553 buildManifestsListResponse() { | 555 buildManifestsListResponse() { |
554 var o = new api.ManifestsListResponse(); | 556 var o = new api.ManifestsListResponse(); |
555 buildCounterManifestsListResponse++; | 557 buildCounterManifestsListResponse++; |
556 if (buildCounterManifestsListResponse < 3) { | 558 if (buildCounterManifestsListResponse < 3) { |
557 o.manifests = buildUnnamed1949(); | 559 o.manifests = buildUnnamed2043(); |
558 o.nextPageToken = "foo"; | 560 o.nextPageToken = "foo"; |
559 } | 561 } |
560 buildCounterManifestsListResponse--; | 562 buildCounterManifestsListResponse--; |
561 return o; | 563 return o; |
562 } | 564 } |
563 | 565 |
564 checkManifestsListResponse(api.ManifestsListResponse o) { | 566 checkManifestsListResponse(api.ManifestsListResponse o) { |
565 buildCounterManifestsListResponse++; | 567 buildCounterManifestsListResponse++; |
566 if (buildCounterManifestsListResponse < 3) { | 568 if (buildCounterManifestsListResponse < 3) { |
567 checkUnnamed1949(o.manifests); | 569 checkUnnamed2043(o.manifests); |
568 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 570 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
569 } | 571 } |
570 buildCounterManifestsListResponse--; | 572 buildCounterManifestsListResponse--; |
571 } | 573 } |
572 | 574 |
573 core.int buildCounterOperationErrorErrors = 0; | 575 core.int buildCounterOperationErrorErrors = 0; |
574 buildOperationErrorErrors() { | 576 buildOperationErrorErrors() { |
575 var o = new api.OperationErrorErrors(); | 577 var o = new api.OperationErrorErrors(); |
576 buildCounterOperationErrorErrors++; | 578 buildCounterOperationErrorErrors++; |
577 if (buildCounterOperationErrorErrors < 3) { | 579 if (buildCounterOperationErrorErrors < 3) { |
578 o.code = "foo"; | 580 o.code = "foo"; |
579 o.location = "foo"; | 581 o.location = "foo"; |
580 o.message = "foo"; | 582 o.message = "foo"; |
581 } | 583 } |
582 buildCounterOperationErrorErrors--; | 584 buildCounterOperationErrorErrors--; |
583 return o; | 585 return o; |
584 } | 586 } |
585 | 587 |
586 checkOperationErrorErrors(api.OperationErrorErrors o) { | 588 checkOperationErrorErrors(api.OperationErrorErrors o) { |
587 buildCounterOperationErrorErrors++; | 589 buildCounterOperationErrorErrors++; |
588 if (buildCounterOperationErrorErrors < 3) { | 590 if (buildCounterOperationErrorErrors < 3) { |
589 unittest.expect(o.code, unittest.equals('foo')); | 591 unittest.expect(o.code, unittest.equals('foo')); |
590 unittest.expect(o.location, unittest.equals('foo')); | 592 unittest.expect(o.location, unittest.equals('foo')); |
591 unittest.expect(o.message, unittest.equals('foo')); | 593 unittest.expect(o.message, unittest.equals('foo')); |
592 } | 594 } |
593 buildCounterOperationErrorErrors--; | 595 buildCounterOperationErrorErrors--; |
594 } | 596 } |
595 | 597 |
596 buildUnnamed1950() { | 598 buildUnnamed2044() { |
597 var o = new core.List<api.OperationErrorErrors>(); | 599 var o = new core.List<api.OperationErrorErrors>(); |
598 o.add(buildOperationErrorErrors()); | 600 o.add(buildOperationErrorErrors()); |
599 o.add(buildOperationErrorErrors()); | 601 o.add(buildOperationErrorErrors()); |
600 return o; | 602 return o; |
601 } | 603 } |
602 | 604 |
603 checkUnnamed1950(core.List<api.OperationErrorErrors> o) { | 605 checkUnnamed2044(core.List<api.OperationErrorErrors> o) { |
604 unittest.expect(o, unittest.hasLength(2)); | 606 unittest.expect(o, unittest.hasLength(2)); |
605 checkOperationErrorErrors(o[0]); | 607 checkOperationErrorErrors(o[0]); |
606 checkOperationErrorErrors(o[1]); | 608 checkOperationErrorErrors(o[1]); |
607 } | 609 } |
608 | 610 |
609 core.int buildCounterOperationError = 0; | 611 core.int buildCounterOperationError = 0; |
610 buildOperationError() { | 612 buildOperationError() { |
611 var o = new api.OperationError(); | 613 var o = new api.OperationError(); |
612 buildCounterOperationError++; | 614 buildCounterOperationError++; |
613 if (buildCounterOperationError < 3) { | 615 if (buildCounterOperationError < 3) { |
614 o.errors = buildUnnamed1950(); | 616 o.errors = buildUnnamed2044(); |
615 } | 617 } |
616 buildCounterOperationError--; | 618 buildCounterOperationError--; |
617 return o; | 619 return o; |
618 } | 620 } |
619 | 621 |
620 checkOperationError(api.OperationError o) { | 622 checkOperationError(api.OperationError o) { |
621 buildCounterOperationError++; | 623 buildCounterOperationError++; |
622 if (buildCounterOperationError < 3) { | 624 if (buildCounterOperationError < 3) { |
623 checkUnnamed1950(o.errors); | 625 checkUnnamed2044(o.errors); |
624 } | 626 } |
625 buildCounterOperationError--; | 627 buildCounterOperationError--; |
626 } | 628 } |
627 | 629 |
628 core.int buildCounterOperationWarningsData = 0; | 630 core.int buildCounterOperationWarningsData = 0; |
629 buildOperationWarningsData() { | 631 buildOperationWarningsData() { |
630 var o = new api.OperationWarningsData(); | 632 var o = new api.OperationWarningsData(); |
631 buildCounterOperationWarningsData++; | 633 buildCounterOperationWarningsData++; |
632 if (buildCounterOperationWarningsData < 3) { | 634 if (buildCounterOperationWarningsData < 3) { |
633 o.key = "foo"; | 635 o.key = "foo"; |
634 o.value = "foo"; | 636 o.value = "foo"; |
635 } | 637 } |
636 buildCounterOperationWarningsData--; | 638 buildCounterOperationWarningsData--; |
637 return o; | 639 return o; |
638 } | 640 } |
639 | 641 |
640 checkOperationWarningsData(api.OperationWarningsData o) { | 642 checkOperationWarningsData(api.OperationWarningsData o) { |
641 buildCounterOperationWarningsData++; | 643 buildCounterOperationWarningsData++; |
642 if (buildCounterOperationWarningsData < 3) { | 644 if (buildCounterOperationWarningsData < 3) { |
643 unittest.expect(o.key, unittest.equals('foo')); | 645 unittest.expect(o.key, unittest.equals('foo')); |
644 unittest.expect(o.value, unittest.equals('foo')); | 646 unittest.expect(o.value, unittest.equals('foo')); |
645 } | 647 } |
646 buildCounterOperationWarningsData--; | 648 buildCounterOperationWarningsData--; |
647 } | 649 } |
648 | 650 |
649 buildUnnamed1951() { | 651 buildUnnamed2045() { |
650 var o = new core.List<api.OperationWarningsData>(); | 652 var o = new core.List<api.OperationWarningsData>(); |
651 o.add(buildOperationWarningsData()); | 653 o.add(buildOperationWarningsData()); |
652 o.add(buildOperationWarningsData()); | 654 o.add(buildOperationWarningsData()); |
653 return o; | 655 return o; |
654 } | 656 } |
655 | 657 |
656 checkUnnamed1951(core.List<api.OperationWarningsData> o) { | 658 checkUnnamed2045(core.List<api.OperationWarningsData> o) { |
657 unittest.expect(o, unittest.hasLength(2)); | 659 unittest.expect(o, unittest.hasLength(2)); |
658 checkOperationWarningsData(o[0]); | 660 checkOperationWarningsData(o[0]); |
659 checkOperationWarningsData(o[1]); | 661 checkOperationWarningsData(o[1]); |
660 } | 662 } |
661 | 663 |
662 core.int buildCounterOperationWarnings = 0; | 664 core.int buildCounterOperationWarnings = 0; |
663 buildOperationWarnings() { | 665 buildOperationWarnings() { |
664 var o = new api.OperationWarnings(); | 666 var o = new api.OperationWarnings(); |
665 buildCounterOperationWarnings++; | 667 buildCounterOperationWarnings++; |
666 if (buildCounterOperationWarnings < 3) { | 668 if (buildCounterOperationWarnings < 3) { |
667 o.code = "foo"; | 669 o.code = "foo"; |
668 o.data = buildUnnamed1951(); | 670 o.data = buildUnnamed2045(); |
669 o.message = "foo"; | 671 o.message = "foo"; |
670 } | 672 } |
671 buildCounterOperationWarnings--; | 673 buildCounterOperationWarnings--; |
672 return o; | 674 return o; |
673 } | 675 } |
674 | 676 |
675 checkOperationWarnings(api.OperationWarnings o) { | 677 checkOperationWarnings(api.OperationWarnings o) { |
676 buildCounterOperationWarnings++; | 678 buildCounterOperationWarnings++; |
677 if (buildCounterOperationWarnings < 3) { | 679 if (buildCounterOperationWarnings < 3) { |
678 unittest.expect(o.code, unittest.equals('foo')); | 680 unittest.expect(o.code, unittest.equals('foo')); |
679 checkUnnamed1951(o.data); | 681 checkUnnamed2045(o.data); |
680 unittest.expect(o.message, unittest.equals('foo')); | 682 unittest.expect(o.message, unittest.equals('foo')); |
681 } | 683 } |
682 buildCounterOperationWarnings--; | 684 buildCounterOperationWarnings--; |
683 } | 685 } |
684 | 686 |
685 buildUnnamed1952() { | 687 buildUnnamed2046() { |
686 var o = new core.List<api.OperationWarnings>(); | 688 var o = new core.List<api.OperationWarnings>(); |
687 o.add(buildOperationWarnings()); | 689 o.add(buildOperationWarnings()); |
688 o.add(buildOperationWarnings()); | 690 o.add(buildOperationWarnings()); |
689 return o; | 691 return o; |
690 } | 692 } |
691 | 693 |
692 checkUnnamed1952(core.List<api.OperationWarnings> o) { | 694 checkUnnamed2046(core.List<api.OperationWarnings> o) { |
693 unittest.expect(o, unittest.hasLength(2)); | 695 unittest.expect(o, unittest.hasLength(2)); |
694 checkOperationWarnings(o[0]); | 696 checkOperationWarnings(o[0]); |
695 checkOperationWarnings(o[1]); | 697 checkOperationWarnings(o[1]); |
696 } | 698 } |
697 | 699 |
698 core.int buildCounterOperation = 0; | 700 core.int buildCounterOperation = 0; |
699 buildOperation() { | 701 buildOperation() { |
700 var o = new api.Operation(); | 702 var o = new api.Operation(); |
701 buildCounterOperation++; | 703 buildCounterOperation++; |
702 if (buildCounterOperation < 3) { | 704 if (buildCounterOperation < 3) { |
(...skipping 11 matching lines...) Expand all Loading... |
714 o.operationType = "foo"; | 716 o.operationType = "foo"; |
715 o.progress = 42; | 717 o.progress = 42; |
716 o.region = "foo"; | 718 o.region = "foo"; |
717 o.selfLink = "foo"; | 719 o.selfLink = "foo"; |
718 o.startTime = "foo"; | 720 o.startTime = "foo"; |
719 o.status = "foo"; | 721 o.status = "foo"; |
720 o.statusMessage = "foo"; | 722 o.statusMessage = "foo"; |
721 o.targetId = "foo"; | 723 o.targetId = "foo"; |
722 o.targetLink = "foo"; | 724 o.targetLink = "foo"; |
723 o.user = "foo"; | 725 o.user = "foo"; |
724 o.warnings = buildUnnamed1952(); | 726 o.warnings = buildUnnamed2046(); |
725 o.zone = "foo"; | 727 o.zone = "foo"; |
726 } | 728 } |
727 buildCounterOperation--; | 729 buildCounterOperation--; |
728 return o; | 730 return o; |
729 } | 731 } |
730 | 732 |
731 checkOperation(api.Operation o) { | 733 checkOperation(api.Operation o) { |
732 buildCounterOperation++; | 734 buildCounterOperation++; |
733 if (buildCounterOperation < 3) { | 735 if (buildCounterOperation < 3) { |
734 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 736 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
(...skipping 10 matching lines...) Expand all Loading... |
745 unittest.expect(o.operationType, unittest.equals('foo')); | 747 unittest.expect(o.operationType, unittest.equals('foo')); |
746 unittest.expect(o.progress, unittest.equals(42)); | 748 unittest.expect(o.progress, unittest.equals(42)); |
747 unittest.expect(o.region, unittest.equals('foo')); | 749 unittest.expect(o.region, unittest.equals('foo')); |
748 unittest.expect(o.selfLink, unittest.equals('foo')); | 750 unittest.expect(o.selfLink, unittest.equals('foo')); |
749 unittest.expect(o.startTime, unittest.equals('foo')); | 751 unittest.expect(o.startTime, unittest.equals('foo')); |
750 unittest.expect(o.status, unittest.equals('foo')); | 752 unittest.expect(o.status, unittest.equals('foo')); |
751 unittest.expect(o.statusMessage, unittest.equals('foo')); | 753 unittest.expect(o.statusMessage, unittest.equals('foo')); |
752 unittest.expect(o.targetId, unittest.equals('foo')); | 754 unittest.expect(o.targetId, unittest.equals('foo')); |
753 unittest.expect(o.targetLink, unittest.equals('foo')); | 755 unittest.expect(o.targetLink, unittest.equals('foo')); |
754 unittest.expect(o.user, unittest.equals('foo')); | 756 unittest.expect(o.user, unittest.equals('foo')); |
755 checkUnnamed1952(o.warnings); | 757 checkUnnamed2046(o.warnings); |
756 unittest.expect(o.zone, unittest.equals('foo')); | 758 unittest.expect(o.zone, unittest.equals('foo')); |
757 } | 759 } |
758 buildCounterOperation--; | 760 buildCounterOperation--; |
759 } | 761 } |
760 | 762 |
761 buildUnnamed1953() { | 763 buildUnnamed2047() { |
762 var o = new core.List<api.Operation>(); | 764 var o = new core.List<api.Operation>(); |
763 o.add(buildOperation()); | 765 o.add(buildOperation()); |
764 o.add(buildOperation()); | 766 o.add(buildOperation()); |
765 return o; | 767 return o; |
766 } | 768 } |
767 | 769 |
768 checkUnnamed1953(core.List<api.Operation> o) { | 770 checkUnnamed2047(core.List<api.Operation> o) { |
769 unittest.expect(o, unittest.hasLength(2)); | 771 unittest.expect(o, unittest.hasLength(2)); |
770 checkOperation(o[0]); | 772 checkOperation(o[0]); |
771 checkOperation(o[1]); | 773 checkOperation(o[1]); |
772 } | 774 } |
773 | 775 |
774 core.int buildCounterOperationsListResponse = 0; | 776 core.int buildCounterOperationsListResponse = 0; |
775 buildOperationsListResponse() { | 777 buildOperationsListResponse() { |
776 var o = new api.OperationsListResponse(); | 778 var o = new api.OperationsListResponse(); |
777 buildCounterOperationsListResponse++; | 779 buildCounterOperationsListResponse++; |
778 if (buildCounterOperationsListResponse < 3) { | 780 if (buildCounterOperationsListResponse < 3) { |
779 o.nextPageToken = "foo"; | 781 o.nextPageToken = "foo"; |
780 o.operations = buildUnnamed1953(); | 782 o.operations = buildUnnamed2047(); |
781 } | 783 } |
782 buildCounterOperationsListResponse--; | 784 buildCounterOperationsListResponse--; |
783 return o; | 785 return o; |
784 } | 786 } |
785 | 787 |
786 checkOperationsListResponse(api.OperationsListResponse o) { | 788 checkOperationsListResponse(api.OperationsListResponse o) { |
787 buildCounterOperationsListResponse++; | 789 buildCounterOperationsListResponse++; |
788 if (buildCounterOperationsListResponse < 3) { | 790 if (buildCounterOperationsListResponse < 3) { |
789 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 791 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
790 checkUnnamed1953(o.operations); | 792 checkUnnamed2047(o.operations); |
791 } | 793 } |
792 buildCounterOperationsListResponse--; | 794 buildCounterOperationsListResponse--; |
793 } | 795 } |
794 | 796 |
795 buildUnnamed1954() { | 797 buildUnnamed2048() { |
796 var o = new core.List<api.AuditConfig>(); | 798 var o = new core.List<api.AuditConfig>(); |
797 o.add(buildAuditConfig()); | 799 o.add(buildAuditConfig()); |
798 o.add(buildAuditConfig()); | 800 o.add(buildAuditConfig()); |
799 return o; | 801 return o; |
800 } | 802 } |
801 | 803 |
802 checkUnnamed1954(core.List<api.AuditConfig> o) { | 804 checkUnnamed2048(core.List<api.AuditConfig> o) { |
803 unittest.expect(o, unittest.hasLength(2)); | 805 unittest.expect(o, unittest.hasLength(2)); |
804 checkAuditConfig(o[0]); | 806 checkAuditConfig(o[0]); |
805 checkAuditConfig(o[1]); | 807 checkAuditConfig(o[1]); |
806 } | 808 } |
807 | 809 |
808 buildUnnamed1955() { | 810 buildUnnamed2049() { |
809 var o = new core.List<api.Binding>(); | 811 var o = new core.List<api.Binding>(); |
810 o.add(buildBinding()); | 812 o.add(buildBinding()); |
811 o.add(buildBinding()); | 813 o.add(buildBinding()); |
812 return o; | 814 return o; |
813 } | 815 } |
814 | 816 |
815 checkUnnamed1955(core.List<api.Binding> o) { | 817 checkUnnamed2049(core.List<api.Binding> o) { |
816 unittest.expect(o, unittest.hasLength(2)); | 818 unittest.expect(o, unittest.hasLength(2)); |
817 checkBinding(o[0]); | 819 checkBinding(o[0]); |
818 checkBinding(o[1]); | 820 checkBinding(o[1]); |
819 } | 821 } |
820 | 822 |
821 buildUnnamed1956() { | 823 buildUnnamed2050() { |
822 var o = new core.List<api.Rule>(); | 824 var o = new core.List<api.Rule>(); |
823 o.add(buildRule()); | 825 o.add(buildRule()); |
824 o.add(buildRule()); | 826 o.add(buildRule()); |
825 return o; | 827 return o; |
826 } | 828 } |
827 | 829 |
828 checkUnnamed1956(core.List<api.Rule> o) { | 830 checkUnnamed2050(core.List<api.Rule> o) { |
829 unittest.expect(o, unittest.hasLength(2)); | 831 unittest.expect(o, unittest.hasLength(2)); |
830 checkRule(o[0]); | 832 checkRule(o[0]); |
831 checkRule(o[1]); | 833 checkRule(o[1]); |
832 } | 834 } |
833 | 835 |
834 core.int buildCounterPolicy = 0; | 836 core.int buildCounterPolicy = 0; |
835 buildPolicy() { | 837 buildPolicy() { |
836 var o = new api.Policy(); | 838 var o = new api.Policy(); |
837 buildCounterPolicy++; | 839 buildCounterPolicy++; |
838 if (buildCounterPolicy < 3) { | 840 if (buildCounterPolicy < 3) { |
839 o.auditConfigs = buildUnnamed1954(); | 841 o.auditConfigs = buildUnnamed2048(); |
840 o.bindings = buildUnnamed1955(); | 842 o.bindings = buildUnnamed2049(); |
841 o.etag = "foo"; | 843 o.etag = "foo"; |
842 o.iamOwned = true; | 844 o.iamOwned = true; |
843 o.rules = buildUnnamed1956(); | 845 o.rules = buildUnnamed2050(); |
844 o.version = 42; | 846 o.version = 42; |
845 } | 847 } |
846 buildCounterPolicy--; | 848 buildCounterPolicy--; |
847 return o; | 849 return o; |
848 } | 850 } |
849 | 851 |
850 checkPolicy(api.Policy o) { | 852 checkPolicy(api.Policy o) { |
851 buildCounterPolicy++; | 853 buildCounterPolicy++; |
852 if (buildCounterPolicy < 3) { | 854 if (buildCounterPolicy < 3) { |
853 checkUnnamed1954(o.auditConfigs); | 855 checkUnnamed2048(o.auditConfigs); |
854 checkUnnamed1955(o.bindings); | 856 checkUnnamed2049(o.bindings); |
855 unittest.expect(o.etag, unittest.equals('foo')); | 857 unittest.expect(o.etag, unittest.equals('foo')); |
856 unittest.expect(o.iamOwned, unittest.isTrue); | 858 unittest.expect(o.iamOwned, unittest.isTrue); |
857 checkUnnamed1956(o.rules); | 859 checkUnnamed2050(o.rules); |
858 unittest.expect(o.version, unittest.equals(42)); | 860 unittest.expect(o.version, unittest.equals(42)); |
859 } | 861 } |
860 buildCounterPolicy--; | 862 buildCounterPolicy--; |
861 } | 863 } |
862 | 864 |
863 core.int buildCounterResourceWarningsData = 0; | 865 core.int buildCounterResourceWarningsData = 0; |
864 buildResourceWarningsData() { | 866 buildResourceWarningsData() { |
865 var o = new api.ResourceWarningsData(); | 867 var o = new api.ResourceWarningsData(); |
866 buildCounterResourceWarningsData++; | 868 buildCounterResourceWarningsData++; |
867 if (buildCounterResourceWarningsData < 3) { | 869 if (buildCounterResourceWarningsData < 3) { |
868 o.key = "foo"; | 870 o.key = "foo"; |
869 o.value = "foo"; | 871 o.value = "foo"; |
870 } | 872 } |
871 buildCounterResourceWarningsData--; | 873 buildCounterResourceWarningsData--; |
872 return o; | 874 return o; |
873 } | 875 } |
874 | 876 |
875 checkResourceWarningsData(api.ResourceWarningsData o) { | 877 checkResourceWarningsData(api.ResourceWarningsData o) { |
876 buildCounterResourceWarningsData++; | 878 buildCounterResourceWarningsData++; |
877 if (buildCounterResourceWarningsData < 3) { | 879 if (buildCounterResourceWarningsData < 3) { |
878 unittest.expect(o.key, unittest.equals('foo')); | 880 unittest.expect(o.key, unittest.equals('foo')); |
879 unittest.expect(o.value, unittest.equals('foo')); | 881 unittest.expect(o.value, unittest.equals('foo')); |
880 } | 882 } |
881 buildCounterResourceWarningsData--; | 883 buildCounterResourceWarningsData--; |
882 } | 884 } |
883 | 885 |
884 buildUnnamed1957() { | 886 buildUnnamed2051() { |
885 var o = new core.List<api.ResourceWarningsData>(); | 887 var o = new core.List<api.ResourceWarningsData>(); |
886 o.add(buildResourceWarningsData()); | 888 o.add(buildResourceWarningsData()); |
887 o.add(buildResourceWarningsData()); | 889 o.add(buildResourceWarningsData()); |
888 return o; | 890 return o; |
889 } | 891 } |
890 | 892 |
891 checkUnnamed1957(core.List<api.ResourceWarningsData> o) { | 893 checkUnnamed2051(core.List<api.ResourceWarningsData> o) { |
892 unittest.expect(o, unittest.hasLength(2)); | 894 unittest.expect(o, unittest.hasLength(2)); |
893 checkResourceWarningsData(o[0]); | 895 checkResourceWarningsData(o[0]); |
894 checkResourceWarningsData(o[1]); | 896 checkResourceWarningsData(o[1]); |
895 } | 897 } |
896 | 898 |
897 core.int buildCounterResourceWarnings = 0; | 899 core.int buildCounterResourceWarnings = 0; |
898 buildResourceWarnings() { | 900 buildResourceWarnings() { |
899 var o = new api.ResourceWarnings(); | 901 var o = new api.ResourceWarnings(); |
900 buildCounterResourceWarnings++; | 902 buildCounterResourceWarnings++; |
901 if (buildCounterResourceWarnings < 3) { | 903 if (buildCounterResourceWarnings < 3) { |
902 o.code = "foo"; | 904 o.code = "foo"; |
903 o.data = buildUnnamed1957(); | 905 o.data = buildUnnamed2051(); |
904 o.message = "foo"; | 906 o.message = "foo"; |
905 } | 907 } |
906 buildCounterResourceWarnings--; | 908 buildCounterResourceWarnings--; |
907 return o; | 909 return o; |
908 } | 910 } |
909 | 911 |
910 checkResourceWarnings(api.ResourceWarnings o) { | 912 checkResourceWarnings(api.ResourceWarnings o) { |
911 buildCounterResourceWarnings++; | 913 buildCounterResourceWarnings++; |
912 if (buildCounterResourceWarnings < 3) { | 914 if (buildCounterResourceWarnings < 3) { |
913 unittest.expect(o.code, unittest.equals('foo')); | 915 unittest.expect(o.code, unittest.equals('foo')); |
914 checkUnnamed1957(o.data); | 916 checkUnnamed2051(o.data); |
915 unittest.expect(o.message, unittest.equals('foo')); | 917 unittest.expect(o.message, unittest.equals('foo')); |
916 } | 918 } |
917 buildCounterResourceWarnings--; | 919 buildCounterResourceWarnings--; |
918 } | 920 } |
919 | 921 |
920 buildUnnamed1958() { | 922 buildUnnamed2052() { |
921 var o = new core.List<api.ResourceWarnings>(); | 923 var o = new core.List<api.ResourceWarnings>(); |
922 o.add(buildResourceWarnings()); | 924 o.add(buildResourceWarnings()); |
923 o.add(buildResourceWarnings()); | 925 o.add(buildResourceWarnings()); |
924 return o; | 926 return o; |
925 } | 927 } |
926 | 928 |
927 checkUnnamed1958(core.List<api.ResourceWarnings> o) { | 929 checkUnnamed2052(core.List<api.ResourceWarnings> o) { |
928 unittest.expect(o, unittest.hasLength(2)); | 930 unittest.expect(o, unittest.hasLength(2)); |
929 checkResourceWarnings(o[0]); | 931 checkResourceWarnings(o[0]); |
930 checkResourceWarnings(o[1]); | 932 checkResourceWarnings(o[1]); |
931 } | 933 } |
932 | 934 |
933 core.int buildCounterResource = 0; | 935 core.int buildCounterResource = 0; |
934 buildResource() { | 936 buildResource() { |
935 var o = new api.Resource(); | 937 var o = new api.Resource(); |
936 buildCounterResource++; | 938 buildCounterResource++; |
937 if (buildCounterResource < 3) { | 939 if (buildCounterResource < 3) { |
938 o.accessControl = buildResourceAccessControl(); | 940 o.accessControl = buildResourceAccessControl(); |
939 o.finalProperties = "foo"; | 941 o.finalProperties = "foo"; |
940 o.id = "foo"; | 942 o.id = "foo"; |
941 o.insertTime = "foo"; | 943 o.insertTime = "foo"; |
942 o.manifest = "foo"; | 944 o.manifest = "foo"; |
943 o.name = "foo"; | 945 o.name = "foo"; |
944 o.properties = "foo"; | 946 o.properties = "foo"; |
945 o.type = "foo"; | 947 o.type = "foo"; |
946 o.update = buildResourceUpdate(); | 948 o.update = buildResourceUpdate(); |
947 o.updateTime = "foo"; | 949 o.updateTime = "foo"; |
948 o.url = "foo"; | 950 o.url = "foo"; |
949 o.warnings = buildUnnamed1958(); | 951 o.warnings = buildUnnamed2052(); |
950 } | 952 } |
951 buildCounterResource--; | 953 buildCounterResource--; |
952 return o; | 954 return o; |
953 } | 955 } |
954 | 956 |
955 checkResource(api.Resource o) { | 957 checkResource(api.Resource o) { |
956 buildCounterResource++; | 958 buildCounterResource++; |
957 if (buildCounterResource < 3) { | 959 if (buildCounterResource < 3) { |
958 checkResourceAccessControl(o.accessControl); | 960 checkResourceAccessControl(o.accessControl); |
959 unittest.expect(o.finalProperties, unittest.equals('foo')); | 961 unittest.expect(o.finalProperties, unittest.equals('foo')); |
960 unittest.expect(o.id, unittest.equals('foo')); | 962 unittest.expect(o.id, unittest.equals('foo')); |
961 unittest.expect(o.insertTime, unittest.equals('foo')); | 963 unittest.expect(o.insertTime, unittest.equals('foo')); |
962 unittest.expect(o.manifest, unittest.equals('foo')); | 964 unittest.expect(o.manifest, unittest.equals('foo')); |
963 unittest.expect(o.name, unittest.equals('foo')); | 965 unittest.expect(o.name, unittest.equals('foo')); |
964 unittest.expect(o.properties, unittest.equals('foo')); | 966 unittest.expect(o.properties, unittest.equals('foo')); |
965 unittest.expect(o.type, unittest.equals('foo')); | 967 unittest.expect(o.type, unittest.equals('foo')); |
966 checkResourceUpdate(o.update); | 968 checkResourceUpdate(o.update); |
967 unittest.expect(o.updateTime, unittest.equals('foo')); | 969 unittest.expect(o.updateTime, unittest.equals('foo')); |
968 unittest.expect(o.url, unittest.equals('foo')); | 970 unittest.expect(o.url, unittest.equals('foo')); |
969 checkUnnamed1958(o.warnings); | 971 checkUnnamed2052(o.warnings); |
970 } | 972 } |
971 buildCounterResource--; | 973 buildCounterResource--; |
972 } | 974 } |
973 | 975 |
974 core.int buildCounterResourceAccessControl = 0; | 976 core.int buildCounterResourceAccessControl = 0; |
975 buildResourceAccessControl() { | 977 buildResourceAccessControl() { |
976 var o = new api.ResourceAccessControl(); | 978 var o = new api.ResourceAccessControl(); |
977 buildCounterResourceAccessControl++; | 979 buildCounterResourceAccessControl++; |
978 if (buildCounterResourceAccessControl < 3) { | 980 if (buildCounterResourceAccessControl < 3) { |
979 o.gcpIamPolicy = "foo"; | 981 o.gcpIamPolicy = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1006 checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) { | 1008 checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) { |
1007 buildCounterResourceUpdateErrorErrors++; | 1009 buildCounterResourceUpdateErrorErrors++; |
1008 if (buildCounterResourceUpdateErrorErrors < 3) { | 1010 if (buildCounterResourceUpdateErrorErrors < 3) { |
1009 unittest.expect(o.code, unittest.equals('foo')); | 1011 unittest.expect(o.code, unittest.equals('foo')); |
1010 unittest.expect(o.location, unittest.equals('foo')); | 1012 unittest.expect(o.location, unittest.equals('foo')); |
1011 unittest.expect(o.message, unittest.equals('foo')); | 1013 unittest.expect(o.message, unittest.equals('foo')); |
1012 } | 1014 } |
1013 buildCounterResourceUpdateErrorErrors--; | 1015 buildCounterResourceUpdateErrorErrors--; |
1014 } | 1016 } |
1015 | 1017 |
1016 buildUnnamed1959() { | 1018 buildUnnamed2053() { |
1017 var o = new core.List<api.ResourceUpdateErrorErrors>(); | 1019 var o = new core.List<api.ResourceUpdateErrorErrors>(); |
1018 o.add(buildResourceUpdateErrorErrors()); | 1020 o.add(buildResourceUpdateErrorErrors()); |
1019 o.add(buildResourceUpdateErrorErrors()); | 1021 o.add(buildResourceUpdateErrorErrors()); |
1020 return o; | 1022 return o; |
1021 } | 1023 } |
1022 | 1024 |
1023 checkUnnamed1959(core.List<api.ResourceUpdateErrorErrors> o) { | 1025 checkUnnamed2053(core.List<api.ResourceUpdateErrorErrors> o) { |
1024 unittest.expect(o, unittest.hasLength(2)); | 1026 unittest.expect(o, unittest.hasLength(2)); |
1025 checkResourceUpdateErrorErrors(o[0]); | 1027 checkResourceUpdateErrorErrors(o[0]); |
1026 checkResourceUpdateErrorErrors(o[1]); | 1028 checkResourceUpdateErrorErrors(o[1]); |
1027 } | 1029 } |
1028 | 1030 |
1029 core.int buildCounterResourceUpdateError = 0; | 1031 core.int buildCounterResourceUpdateError = 0; |
1030 buildResourceUpdateError() { | 1032 buildResourceUpdateError() { |
1031 var o = new api.ResourceUpdateError(); | 1033 var o = new api.ResourceUpdateError(); |
1032 buildCounterResourceUpdateError++; | 1034 buildCounterResourceUpdateError++; |
1033 if (buildCounterResourceUpdateError < 3) { | 1035 if (buildCounterResourceUpdateError < 3) { |
1034 o.errors = buildUnnamed1959(); | 1036 o.errors = buildUnnamed2053(); |
1035 } | 1037 } |
1036 buildCounterResourceUpdateError--; | 1038 buildCounterResourceUpdateError--; |
1037 return o; | 1039 return o; |
1038 } | 1040 } |
1039 | 1041 |
1040 checkResourceUpdateError(api.ResourceUpdateError o) { | 1042 checkResourceUpdateError(api.ResourceUpdateError o) { |
1041 buildCounterResourceUpdateError++; | 1043 buildCounterResourceUpdateError++; |
1042 if (buildCounterResourceUpdateError < 3) { | 1044 if (buildCounterResourceUpdateError < 3) { |
1043 checkUnnamed1959(o.errors); | 1045 checkUnnamed2053(o.errors); |
1044 } | 1046 } |
1045 buildCounterResourceUpdateError--; | 1047 buildCounterResourceUpdateError--; |
1046 } | 1048 } |
1047 | 1049 |
1048 core.int buildCounterResourceUpdateWarningsData = 0; | 1050 core.int buildCounterResourceUpdateWarningsData = 0; |
1049 buildResourceUpdateWarningsData() { | 1051 buildResourceUpdateWarningsData() { |
1050 var o = new api.ResourceUpdateWarningsData(); | 1052 var o = new api.ResourceUpdateWarningsData(); |
1051 buildCounterResourceUpdateWarningsData++; | 1053 buildCounterResourceUpdateWarningsData++; |
1052 if (buildCounterResourceUpdateWarningsData < 3) { | 1054 if (buildCounterResourceUpdateWarningsData < 3) { |
1053 o.key = "foo"; | 1055 o.key = "foo"; |
1054 o.value = "foo"; | 1056 o.value = "foo"; |
1055 } | 1057 } |
1056 buildCounterResourceUpdateWarningsData--; | 1058 buildCounterResourceUpdateWarningsData--; |
1057 return o; | 1059 return o; |
1058 } | 1060 } |
1059 | 1061 |
1060 checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) { | 1062 checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) { |
1061 buildCounterResourceUpdateWarningsData++; | 1063 buildCounterResourceUpdateWarningsData++; |
1062 if (buildCounterResourceUpdateWarningsData < 3) { | 1064 if (buildCounterResourceUpdateWarningsData < 3) { |
1063 unittest.expect(o.key, unittest.equals('foo')); | 1065 unittest.expect(o.key, unittest.equals('foo')); |
1064 unittest.expect(o.value, unittest.equals('foo')); | 1066 unittest.expect(o.value, unittest.equals('foo')); |
1065 } | 1067 } |
1066 buildCounterResourceUpdateWarningsData--; | 1068 buildCounterResourceUpdateWarningsData--; |
1067 } | 1069 } |
1068 | 1070 |
1069 buildUnnamed1960() { | 1071 buildUnnamed2054() { |
1070 var o = new core.List<api.ResourceUpdateWarningsData>(); | 1072 var o = new core.List<api.ResourceUpdateWarningsData>(); |
1071 o.add(buildResourceUpdateWarningsData()); | 1073 o.add(buildResourceUpdateWarningsData()); |
1072 o.add(buildResourceUpdateWarningsData()); | 1074 o.add(buildResourceUpdateWarningsData()); |
1073 return o; | 1075 return o; |
1074 } | 1076 } |
1075 | 1077 |
1076 checkUnnamed1960(core.List<api.ResourceUpdateWarningsData> o) { | 1078 checkUnnamed2054(core.List<api.ResourceUpdateWarningsData> o) { |
1077 unittest.expect(o, unittest.hasLength(2)); | 1079 unittest.expect(o, unittest.hasLength(2)); |
1078 checkResourceUpdateWarningsData(o[0]); | 1080 checkResourceUpdateWarningsData(o[0]); |
1079 checkResourceUpdateWarningsData(o[1]); | 1081 checkResourceUpdateWarningsData(o[1]); |
1080 } | 1082 } |
1081 | 1083 |
1082 core.int buildCounterResourceUpdateWarnings = 0; | 1084 core.int buildCounterResourceUpdateWarnings = 0; |
1083 buildResourceUpdateWarnings() { | 1085 buildResourceUpdateWarnings() { |
1084 var o = new api.ResourceUpdateWarnings(); | 1086 var o = new api.ResourceUpdateWarnings(); |
1085 buildCounterResourceUpdateWarnings++; | 1087 buildCounterResourceUpdateWarnings++; |
1086 if (buildCounterResourceUpdateWarnings < 3) { | 1088 if (buildCounterResourceUpdateWarnings < 3) { |
1087 o.code = "foo"; | 1089 o.code = "foo"; |
1088 o.data = buildUnnamed1960(); | 1090 o.data = buildUnnamed2054(); |
1089 o.message = "foo"; | 1091 o.message = "foo"; |
1090 } | 1092 } |
1091 buildCounterResourceUpdateWarnings--; | 1093 buildCounterResourceUpdateWarnings--; |
1092 return o; | 1094 return o; |
1093 } | 1095 } |
1094 | 1096 |
1095 checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) { | 1097 checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) { |
1096 buildCounterResourceUpdateWarnings++; | 1098 buildCounterResourceUpdateWarnings++; |
1097 if (buildCounterResourceUpdateWarnings < 3) { | 1099 if (buildCounterResourceUpdateWarnings < 3) { |
1098 unittest.expect(o.code, unittest.equals('foo')); | 1100 unittest.expect(o.code, unittest.equals('foo')); |
1099 checkUnnamed1960(o.data); | 1101 checkUnnamed2054(o.data); |
1100 unittest.expect(o.message, unittest.equals('foo')); | 1102 unittest.expect(o.message, unittest.equals('foo')); |
1101 } | 1103 } |
1102 buildCounterResourceUpdateWarnings--; | 1104 buildCounterResourceUpdateWarnings--; |
1103 } | 1105 } |
1104 | 1106 |
1105 buildUnnamed1961() { | 1107 buildUnnamed2055() { |
1106 var o = new core.List<api.ResourceUpdateWarnings>(); | 1108 var o = new core.List<api.ResourceUpdateWarnings>(); |
1107 o.add(buildResourceUpdateWarnings()); | 1109 o.add(buildResourceUpdateWarnings()); |
1108 o.add(buildResourceUpdateWarnings()); | 1110 o.add(buildResourceUpdateWarnings()); |
1109 return o; | 1111 return o; |
1110 } | 1112 } |
1111 | 1113 |
1112 checkUnnamed1961(core.List<api.ResourceUpdateWarnings> o) { | 1114 checkUnnamed2055(core.List<api.ResourceUpdateWarnings> o) { |
1113 unittest.expect(o, unittest.hasLength(2)); | 1115 unittest.expect(o, unittest.hasLength(2)); |
1114 checkResourceUpdateWarnings(o[0]); | 1116 checkResourceUpdateWarnings(o[0]); |
1115 checkResourceUpdateWarnings(o[1]); | 1117 checkResourceUpdateWarnings(o[1]); |
1116 } | 1118 } |
1117 | 1119 |
1118 core.int buildCounterResourceUpdate = 0; | 1120 core.int buildCounterResourceUpdate = 0; |
1119 buildResourceUpdate() { | 1121 buildResourceUpdate() { |
1120 var o = new api.ResourceUpdate(); | 1122 var o = new api.ResourceUpdate(); |
1121 buildCounterResourceUpdate++; | 1123 buildCounterResourceUpdate++; |
1122 if (buildCounterResourceUpdate < 3) { | 1124 if (buildCounterResourceUpdate < 3) { |
1123 o.accessControl = buildResourceAccessControl(); | 1125 o.accessControl = buildResourceAccessControl(); |
1124 o.error = buildResourceUpdateError(); | 1126 o.error = buildResourceUpdateError(); |
1125 o.finalProperties = "foo"; | 1127 o.finalProperties = "foo"; |
1126 o.intent = "foo"; | 1128 o.intent = "foo"; |
1127 o.manifest = "foo"; | 1129 o.manifest = "foo"; |
1128 o.properties = "foo"; | 1130 o.properties = "foo"; |
1129 o.state = "foo"; | 1131 o.state = "foo"; |
1130 o.warnings = buildUnnamed1961(); | 1132 o.warnings = buildUnnamed2055(); |
1131 } | 1133 } |
1132 buildCounterResourceUpdate--; | 1134 buildCounterResourceUpdate--; |
1133 return o; | 1135 return o; |
1134 } | 1136 } |
1135 | 1137 |
1136 checkResourceUpdate(api.ResourceUpdate o) { | 1138 checkResourceUpdate(api.ResourceUpdate o) { |
1137 buildCounterResourceUpdate++; | 1139 buildCounterResourceUpdate++; |
1138 if (buildCounterResourceUpdate < 3) { | 1140 if (buildCounterResourceUpdate < 3) { |
1139 checkResourceAccessControl(o.accessControl); | 1141 checkResourceAccessControl(o.accessControl); |
1140 checkResourceUpdateError(o.error); | 1142 checkResourceUpdateError(o.error); |
1141 unittest.expect(o.finalProperties, unittest.equals('foo')); | 1143 unittest.expect(o.finalProperties, unittest.equals('foo')); |
1142 unittest.expect(o.intent, unittest.equals('foo')); | 1144 unittest.expect(o.intent, unittest.equals('foo')); |
1143 unittest.expect(o.manifest, unittest.equals('foo')); | 1145 unittest.expect(o.manifest, unittest.equals('foo')); |
1144 unittest.expect(o.properties, unittest.equals('foo')); | 1146 unittest.expect(o.properties, unittest.equals('foo')); |
1145 unittest.expect(o.state, unittest.equals('foo')); | 1147 unittest.expect(o.state, unittest.equals('foo')); |
1146 checkUnnamed1961(o.warnings); | 1148 checkUnnamed2055(o.warnings); |
1147 } | 1149 } |
1148 buildCounterResourceUpdate--; | 1150 buildCounterResourceUpdate--; |
1149 } | 1151 } |
1150 | 1152 |
1151 buildUnnamed1962() { | 1153 buildUnnamed2056() { |
1152 var o = new core.List<api.Resource>(); | 1154 var o = new core.List<api.Resource>(); |
1153 o.add(buildResource()); | 1155 o.add(buildResource()); |
1154 o.add(buildResource()); | 1156 o.add(buildResource()); |
1155 return o; | 1157 return o; |
1156 } | 1158 } |
1157 | 1159 |
1158 checkUnnamed1962(core.List<api.Resource> o) { | 1160 checkUnnamed2056(core.List<api.Resource> o) { |
1159 unittest.expect(o, unittest.hasLength(2)); | 1161 unittest.expect(o, unittest.hasLength(2)); |
1160 checkResource(o[0]); | 1162 checkResource(o[0]); |
1161 checkResource(o[1]); | 1163 checkResource(o[1]); |
1162 } | 1164 } |
1163 | 1165 |
1164 core.int buildCounterResourcesListResponse = 0; | 1166 core.int buildCounterResourcesListResponse = 0; |
1165 buildResourcesListResponse() { | 1167 buildResourcesListResponse() { |
1166 var o = new api.ResourcesListResponse(); | 1168 var o = new api.ResourcesListResponse(); |
1167 buildCounterResourcesListResponse++; | 1169 buildCounterResourcesListResponse++; |
1168 if (buildCounterResourcesListResponse < 3) { | 1170 if (buildCounterResourcesListResponse < 3) { |
1169 o.nextPageToken = "foo"; | 1171 o.nextPageToken = "foo"; |
1170 o.resources = buildUnnamed1962(); | 1172 o.resources = buildUnnamed2056(); |
1171 } | 1173 } |
1172 buildCounterResourcesListResponse--; | 1174 buildCounterResourcesListResponse--; |
1173 return o; | 1175 return o; |
1174 } | 1176 } |
1175 | 1177 |
1176 checkResourcesListResponse(api.ResourcesListResponse o) { | 1178 checkResourcesListResponse(api.ResourcesListResponse o) { |
1177 buildCounterResourcesListResponse++; | 1179 buildCounterResourcesListResponse++; |
1178 if (buildCounterResourcesListResponse < 3) { | 1180 if (buildCounterResourcesListResponse < 3) { |
1179 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1181 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1180 checkUnnamed1962(o.resources); | 1182 checkUnnamed2056(o.resources); |
1181 } | 1183 } |
1182 buildCounterResourcesListResponse--; | 1184 buildCounterResourcesListResponse--; |
1183 } | 1185 } |
1184 | 1186 |
1185 buildUnnamed1963() { | 1187 buildUnnamed2057() { |
1186 var o = new core.List<api.Condition>(); | 1188 var o = new core.List<api.Condition>(); |
1187 o.add(buildCondition()); | 1189 o.add(buildCondition()); |
1188 o.add(buildCondition()); | 1190 o.add(buildCondition()); |
1189 return o; | 1191 return o; |
1190 } | 1192 } |
1191 | 1193 |
1192 checkUnnamed1963(core.List<api.Condition> o) { | 1194 checkUnnamed2057(core.List<api.Condition> o) { |
1193 unittest.expect(o, unittest.hasLength(2)); | 1195 unittest.expect(o, unittest.hasLength(2)); |
1194 checkCondition(o[0]); | 1196 checkCondition(o[0]); |
1195 checkCondition(o[1]); | 1197 checkCondition(o[1]); |
1196 } | 1198 } |
1197 | 1199 |
1198 buildUnnamed1964() { | 1200 buildUnnamed2058() { |
1199 var o = new core.List<core.String>(); | 1201 var o = new core.List<core.String>(); |
1200 o.add("foo"); | 1202 o.add("foo"); |
1201 o.add("foo"); | 1203 o.add("foo"); |
1202 return o; | 1204 return o; |
1203 } | 1205 } |
1204 | 1206 |
1205 checkUnnamed1964(core.List<core.String> o) { | 1207 checkUnnamed2058(core.List<core.String> o) { |
1206 unittest.expect(o, unittest.hasLength(2)); | 1208 unittest.expect(o, unittest.hasLength(2)); |
1207 unittest.expect(o[0], unittest.equals('foo')); | 1209 unittest.expect(o[0], unittest.equals('foo')); |
1208 unittest.expect(o[1], unittest.equals('foo')); | 1210 unittest.expect(o[1], unittest.equals('foo')); |
1209 } | 1211 } |
1210 | 1212 |
1211 buildUnnamed1965() { | 1213 buildUnnamed2059() { |
1212 var o = new core.List<api.LogConfig>(); | 1214 var o = new core.List<api.LogConfig>(); |
1213 o.add(buildLogConfig()); | 1215 o.add(buildLogConfig()); |
1214 o.add(buildLogConfig()); | 1216 o.add(buildLogConfig()); |
1215 return o; | 1217 return o; |
1216 } | 1218 } |
1217 | 1219 |
1218 checkUnnamed1965(core.List<api.LogConfig> o) { | 1220 checkUnnamed2059(core.List<api.LogConfig> o) { |
1219 unittest.expect(o, unittest.hasLength(2)); | 1221 unittest.expect(o, unittest.hasLength(2)); |
1220 checkLogConfig(o[0]); | 1222 checkLogConfig(o[0]); |
1221 checkLogConfig(o[1]); | 1223 checkLogConfig(o[1]); |
1222 } | 1224 } |
1223 | 1225 |
1224 buildUnnamed1966() { | 1226 buildUnnamed2060() { |
1225 var o = new core.List<core.String>(); | 1227 var o = new core.List<core.String>(); |
1226 o.add("foo"); | 1228 o.add("foo"); |
1227 o.add("foo"); | 1229 o.add("foo"); |
1228 return o; | 1230 return o; |
1229 } | 1231 } |
1230 | 1232 |
1231 checkUnnamed1966(core.List<core.String> o) { | 1233 checkUnnamed2060(core.List<core.String> o) { |
1232 unittest.expect(o, unittest.hasLength(2)); | 1234 unittest.expect(o, unittest.hasLength(2)); |
1233 unittest.expect(o[0], unittest.equals('foo')); | 1235 unittest.expect(o[0], unittest.equals('foo')); |
1234 unittest.expect(o[1], unittest.equals('foo')); | 1236 unittest.expect(o[1], unittest.equals('foo')); |
1235 } | 1237 } |
1236 | 1238 |
1237 buildUnnamed1967() { | 1239 buildUnnamed2061() { |
1238 var o = new core.List<core.String>(); | 1240 var o = new core.List<core.String>(); |
1239 o.add("foo"); | 1241 o.add("foo"); |
1240 o.add("foo"); | 1242 o.add("foo"); |
1241 return o; | 1243 return o; |
1242 } | 1244 } |
1243 | 1245 |
1244 checkUnnamed1967(core.List<core.String> o) { | 1246 checkUnnamed2061(core.List<core.String> o) { |
1245 unittest.expect(o, unittest.hasLength(2)); | 1247 unittest.expect(o, unittest.hasLength(2)); |
1246 unittest.expect(o[0], unittest.equals('foo')); | 1248 unittest.expect(o[0], unittest.equals('foo')); |
1247 unittest.expect(o[1], unittest.equals('foo')); | 1249 unittest.expect(o[1], unittest.equals('foo')); |
1248 } | 1250 } |
1249 | 1251 |
1250 core.int buildCounterRule = 0; | 1252 core.int buildCounterRule = 0; |
1251 buildRule() { | 1253 buildRule() { |
1252 var o = new api.Rule(); | 1254 var o = new api.Rule(); |
1253 buildCounterRule++; | 1255 buildCounterRule++; |
1254 if (buildCounterRule < 3) { | 1256 if (buildCounterRule < 3) { |
1255 o.action = "foo"; | 1257 o.action = "foo"; |
1256 o.conditions = buildUnnamed1963(); | 1258 o.conditions = buildUnnamed2057(); |
1257 o.description = "foo"; | 1259 o.description = "foo"; |
1258 o.ins = buildUnnamed1964(); | 1260 o.ins = buildUnnamed2058(); |
1259 o.logConfigs = buildUnnamed1965(); | 1261 o.logConfigs = buildUnnamed2059(); |
1260 o.notIns = buildUnnamed1966(); | 1262 o.notIns = buildUnnamed2060(); |
1261 o.permissions = buildUnnamed1967(); | 1263 o.permissions = buildUnnamed2061(); |
1262 } | 1264 } |
1263 buildCounterRule--; | 1265 buildCounterRule--; |
1264 return o; | 1266 return o; |
1265 } | 1267 } |
1266 | 1268 |
1267 checkRule(api.Rule o) { | 1269 checkRule(api.Rule o) { |
1268 buildCounterRule++; | 1270 buildCounterRule++; |
1269 if (buildCounterRule < 3) { | 1271 if (buildCounterRule < 3) { |
1270 unittest.expect(o.action, unittest.equals('foo')); | 1272 unittest.expect(o.action, unittest.equals('foo')); |
1271 checkUnnamed1963(o.conditions); | 1273 checkUnnamed2057(o.conditions); |
1272 unittest.expect(o.description, unittest.equals('foo')); | 1274 unittest.expect(o.description, unittest.equals('foo')); |
1273 checkUnnamed1964(o.ins); | 1275 checkUnnamed2058(o.ins); |
1274 checkUnnamed1965(o.logConfigs); | 1276 checkUnnamed2059(o.logConfigs); |
1275 checkUnnamed1966(o.notIns); | 1277 checkUnnamed2060(o.notIns); |
1276 checkUnnamed1967(o.permissions); | 1278 checkUnnamed2061(o.permissions); |
1277 } | 1279 } |
1278 buildCounterRule--; | 1280 buildCounterRule--; |
1279 } | 1281 } |
1280 | 1282 |
1281 buildUnnamed1968() { | 1283 buildUnnamed2062() { |
1282 var o = new core.List<api.ImportFile>(); | 1284 var o = new core.List<api.ImportFile>(); |
1283 o.add(buildImportFile()); | 1285 o.add(buildImportFile()); |
1284 o.add(buildImportFile()); | 1286 o.add(buildImportFile()); |
1285 return o; | 1287 return o; |
1286 } | 1288 } |
1287 | 1289 |
1288 checkUnnamed1968(core.List<api.ImportFile> o) { | 1290 checkUnnamed2062(core.List<api.ImportFile> o) { |
1289 unittest.expect(o, unittest.hasLength(2)); | 1291 unittest.expect(o, unittest.hasLength(2)); |
1290 checkImportFile(o[0]); | 1292 checkImportFile(o[0]); |
1291 checkImportFile(o[1]); | 1293 checkImportFile(o[1]); |
1292 } | 1294 } |
1293 | 1295 |
1294 core.int buildCounterTargetConfiguration = 0; | 1296 core.int buildCounterTargetConfiguration = 0; |
1295 buildTargetConfiguration() { | 1297 buildTargetConfiguration() { |
1296 var o = new api.TargetConfiguration(); | 1298 var o = new api.TargetConfiguration(); |
1297 buildCounterTargetConfiguration++; | 1299 buildCounterTargetConfiguration++; |
1298 if (buildCounterTargetConfiguration < 3) { | 1300 if (buildCounterTargetConfiguration < 3) { |
1299 o.config = buildConfigFile(); | 1301 o.config = buildConfigFile(); |
1300 o.imports = buildUnnamed1968(); | 1302 o.imports = buildUnnamed2062(); |
1301 } | 1303 } |
1302 buildCounterTargetConfiguration--; | 1304 buildCounterTargetConfiguration--; |
1303 return o; | 1305 return o; |
1304 } | 1306 } |
1305 | 1307 |
1306 checkTargetConfiguration(api.TargetConfiguration o) { | 1308 checkTargetConfiguration(api.TargetConfiguration o) { |
1307 buildCounterTargetConfiguration++; | 1309 buildCounterTargetConfiguration++; |
1308 if (buildCounterTargetConfiguration < 3) { | 1310 if (buildCounterTargetConfiguration < 3) { |
1309 checkConfigFile(o.config); | 1311 checkConfigFile(o.config); |
1310 checkUnnamed1968(o.imports); | 1312 checkUnnamed2062(o.imports); |
1311 } | 1313 } |
1312 buildCounterTargetConfiguration--; | 1314 buildCounterTargetConfiguration--; |
1313 } | 1315 } |
1314 | 1316 |
1315 buildUnnamed1969() { | 1317 buildUnnamed2063() { |
1316 var o = new core.List<core.String>(); | 1318 var o = new core.List<core.String>(); |
1317 o.add("foo"); | 1319 o.add("foo"); |
1318 o.add("foo"); | 1320 o.add("foo"); |
1319 return o; | 1321 return o; |
1320 } | 1322 } |
1321 | 1323 |
1322 checkUnnamed1969(core.List<core.String> o) { | 1324 checkUnnamed2063(core.List<core.String> o) { |
1323 unittest.expect(o, unittest.hasLength(2)); | 1325 unittest.expect(o, unittest.hasLength(2)); |
1324 unittest.expect(o[0], unittest.equals('foo')); | 1326 unittest.expect(o[0], unittest.equals('foo')); |
1325 unittest.expect(o[1], unittest.equals('foo')); | 1327 unittest.expect(o[1], unittest.equals('foo')); |
1326 } | 1328 } |
1327 | 1329 |
1328 core.int buildCounterTestPermissionsRequest = 0; | 1330 core.int buildCounterTestPermissionsRequest = 0; |
1329 buildTestPermissionsRequest() { | 1331 buildTestPermissionsRequest() { |
1330 var o = new api.TestPermissionsRequest(); | 1332 var o = new api.TestPermissionsRequest(); |
1331 buildCounterTestPermissionsRequest++; | 1333 buildCounterTestPermissionsRequest++; |
1332 if (buildCounterTestPermissionsRequest < 3) { | 1334 if (buildCounterTestPermissionsRequest < 3) { |
1333 o.permissions = buildUnnamed1969(); | 1335 o.permissions = buildUnnamed2063(); |
1334 } | 1336 } |
1335 buildCounterTestPermissionsRequest--; | 1337 buildCounterTestPermissionsRequest--; |
1336 return o; | 1338 return o; |
1337 } | 1339 } |
1338 | 1340 |
1339 checkTestPermissionsRequest(api.TestPermissionsRequest o) { | 1341 checkTestPermissionsRequest(api.TestPermissionsRequest o) { |
1340 buildCounterTestPermissionsRequest++; | 1342 buildCounterTestPermissionsRequest++; |
1341 if (buildCounterTestPermissionsRequest < 3) { | 1343 if (buildCounterTestPermissionsRequest < 3) { |
1342 checkUnnamed1969(o.permissions); | 1344 checkUnnamed2063(o.permissions); |
1343 } | 1345 } |
1344 buildCounterTestPermissionsRequest--; | 1346 buildCounterTestPermissionsRequest--; |
1345 } | 1347 } |
1346 | 1348 |
1347 buildUnnamed1970() { | 1349 buildUnnamed2064() { |
1348 var o = new core.List<core.String>(); | 1350 var o = new core.List<core.String>(); |
1349 o.add("foo"); | 1351 o.add("foo"); |
1350 o.add("foo"); | 1352 o.add("foo"); |
1351 return o; | 1353 return o; |
1352 } | 1354 } |
1353 | 1355 |
1354 checkUnnamed1970(core.List<core.String> o) { | 1356 checkUnnamed2064(core.List<core.String> o) { |
1355 unittest.expect(o, unittest.hasLength(2)); | 1357 unittest.expect(o, unittest.hasLength(2)); |
1356 unittest.expect(o[0], unittest.equals('foo')); | 1358 unittest.expect(o[0], unittest.equals('foo')); |
1357 unittest.expect(o[1], unittest.equals('foo')); | 1359 unittest.expect(o[1], unittest.equals('foo')); |
1358 } | 1360 } |
1359 | 1361 |
1360 core.int buildCounterTestPermissionsResponse = 0; | 1362 core.int buildCounterTestPermissionsResponse = 0; |
1361 buildTestPermissionsResponse() { | 1363 buildTestPermissionsResponse() { |
1362 var o = new api.TestPermissionsResponse(); | 1364 var o = new api.TestPermissionsResponse(); |
1363 buildCounterTestPermissionsResponse++; | 1365 buildCounterTestPermissionsResponse++; |
1364 if (buildCounterTestPermissionsResponse < 3) { | 1366 if (buildCounterTestPermissionsResponse < 3) { |
1365 o.permissions = buildUnnamed1970(); | 1367 o.permissions = buildUnnamed2064(); |
1366 } | 1368 } |
1367 buildCounterTestPermissionsResponse--; | 1369 buildCounterTestPermissionsResponse--; |
1368 return o; | 1370 return o; |
1369 } | 1371 } |
1370 | 1372 |
1371 checkTestPermissionsResponse(api.TestPermissionsResponse o) { | 1373 checkTestPermissionsResponse(api.TestPermissionsResponse o) { |
1372 buildCounterTestPermissionsResponse++; | 1374 buildCounterTestPermissionsResponse++; |
1373 if (buildCounterTestPermissionsResponse < 3) { | 1375 if (buildCounterTestPermissionsResponse < 3) { |
1374 checkUnnamed1970(o.permissions); | 1376 checkUnnamed2064(o.permissions); |
1375 } | 1377 } |
1376 buildCounterTestPermissionsResponse--; | 1378 buildCounterTestPermissionsResponse--; |
1377 } | 1379 } |
1378 | 1380 |
1379 core.int buildCounterType = 0; | 1381 core.int buildCounterType = 0; |
1380 buildType() { | 1382 buildType() { |
1381 var o = new api.Type(); | 1383 var o = new api.Type(); |
1382 buildCounterType++; | 1384 buildCounterType++; |
1383 if (buildCounterType < 3) { | 1385 if (buildCounterType < 3) { |
1384 o.id = "foo"; | 1386 o.id = "foo"; |
(...skipping 11 matching lines...) Expand all Loading... |
1396 if (buildCounterType < 3) { | 1398 if (buildCounterType < 3) { |
1397 unittest.expect(o.id, unittest.equals('foo')); | 1399 unittest.expect(o.id, unittest.equals('foo')); |
1398 unittest.expect(o.insertTime, unittest.equals('foo')); | 1400 unittest.expect(o.insertTime, unittest.equals('foo')); |
1399 unittest.expect(o.name, unittest.equals('foo')); | 1401 unittest.expect(o.name, unittest.equals('foo')); |
1400 checkOperation(o.operation); | 1402 checkOperation(o.operation); |
1401 unittest.expect(o.selfLink, unittest.equals('foo')); | 1403 unittest.expect(o.selfLink, unittest.equals('foo')); |
1402 } | 1404 } |
1403 buildCounterType--; | 1405 buildCounterType--; |
1404 } | 1406 } |
1405 | 1407 |
1406 buildUnnamed1971() { | 1408 buildUnnamed2065() { |
1407 var o = new core.List<api.Type>(); | 1409 var o = new core.List<api.Type>(); |
1408 o.add(buildType()); | 1410 o.add(buildType()); |
1409 o.add(buildType()); | 1411 o.add(buildType()); |
1410 return o; | 1412 return o; |
1411 } | 1413 } |
1412 | 1414 |
1413 checkUnnamed1971(core.List<api.Type> o) { | 1415 checkUnnamed2065(core.List<api.Type> o) { |
1414 unittest.expect(o, unittest.hasLength(2)); | 1416 unittest.expect(o, unittest.hasLength(2)); |
1415 checkType(o[0]); | 1417 checkType(o[0]); |
1416 checkType(o[1]); | 1418 checkType(o[1]); |
1417 } | 1419 } |
1418 | 1420 |
1419 core.int buildCounterTypesListResponse = 0; | 1421 core.int buildCounterTypesListResponse = 0; |
1420 buildTypesListResponse() { | 1422 buildTypesListResponse() { |
1421 var o = new api.TypesListResponse(); | 1423 var o = new api.TypesListResponse(); |
1422 buildCounterTypesListResponse++; | 1424 buildCounterTypesListResponse++; |
1423 if (buildCounterTypesListResponse < 3) { | 1425 if (buildCounterTypesListResponse < 3) { |
1424 o.nextPageToken = "foo"; | 1426 o.nextPageToken = "foo"; |
1425 o.types = buildUnnamed1971(); | 1427 o.types = buildUnnamed2065(); |
1426 } | 1428 } |
1427 buildCounterTypesListResponse--; | 1429 buildCounterTypesListResponse--; |
1428 return o; | 1430 return o; |
1429 } | 1431 } |
1430 | 1432 |
1431 checkTypesListResponse(api.TypesListResponse o) { | 1433 checkTypesListResponse(api.TypesListResponse o) { |
1432 buildCounterTypesListResponse++; | 1434 buildCounterTypesListResponse++; |
1433 if (buildCounterTypesListResponse < 3) { | 1435 if (buildCounterTypesListResponse < 3) { |
1434 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1436 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1435 checkUnnamed1971(o.types); | 1437 checkUnnamed2065(o.types); |
1436 } | 1438 } |
1437 buildCounterTypesListResponse--; | 1439 buildCounterTypesListResponse--; |
1438 } | 1440 } |
1439 | 1441 |
1440 | 1442 |
1441 main() { | 1443 main() { |
1442 unittest.group("obj-schema-AuditConfig", () { | 1444 unittest.group("obj-schema-AuditConfig", () { |
1443 unittest.test("to-json--from-json", () { | 1445 unittest.test("to-json--from-json", () { |
1444 var o = buildAuditConfig(); | 1446 var o = buildAuditConfig(); |
1445 var od = new api.AuditConfig.fromJson(o.toJson()); | 1447 var od = new api.AuditConfig.fromJson(o.toJson()); |
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) { | 2672 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Type
sListResponse response) { |
2671 checkTypesListResponse(response); | 2673 checkTypesListResponse(response); |
2672 }))); | 2674 }))); |
2673 }); | 2675 }); |
2674 | 2676 |
2675 }); | 2677 }); |
2676 | 2678 |
2677 | 2679 |
2678 } | 2680 } |
2679 | 2681 |
OLD | NEW |