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:test/test.dart' as unittest; | 10 import 'package:test/test.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<core.String, core.String> headers, core.String bod
y) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
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 buildUnnamed2142() { | 54 buildUnnamed2176() { |
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 checkUnnamed2142(core.List<api.AuditLogConfig> o) { | 61 checkUnnamed2176(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 buildUnnamed2143() { | 67 buildUnnamed2177() { |
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 checkUnnamed2143(core.List<core.String> o) { | 74 checkUnnamed2177(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 = buildUnnamed2142(); | 85 o.auditLogConfigs = buildUnnamed2176(); |
86 o.exemptedMembers = buildUnnamed2143(); | 86 o.exemptedMembers = buildUnnamed2177(); |
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 checkUnnamed2142(o.auditLogConfigs); | 96 checkUnnamed2176(o.auditLogConfigs); |
97 checkUnnamed2143(o.exemptedMembers); | 97 checkUnnamed2177(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 buildUnnamed2144() { | 103 buildUnnamed2178() { |
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 checkUnnamed2144(core.List<core.String> o) { | 110 checkUnnamed2178(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 = buildUnnamed2144(); | 121 o.exemptedMembers = buildUnnamed2178(); |
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 checkUnnamed2144(o.exemptedMembers); | 131 checkUnnamed2178(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 buildUnnamed2145() { | 137 buildUnnamed2179() { |
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 checkUnnamed2145(core.List<core.String> o) { | 144 checkUnnamed2179(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.condition = buildExpr(); | 155 o.condition = buildExpr(); |
156 o.members = buildUnnamed2145(); | 156 o.members = buildUnnamed2179(); |
157 o.role = "foo"; | 157 o.role = "foo"; |
158 } | 158 } |
159 buildCounterBinding--; | 159 buildCounterBinding--; |
160 return o; | 160 return o; |
161 } | 161 } |
162 | 162 |
163 checkBinding(api.Binding o) { | 163 checkBinding(api.Binding o) { |
164 buildCounterBinding++; | 164 buildCounterBinding++; |
165 if (buildCounterBinding < 3) { | 165 if (buildCounterBinding < 3) { |
166 checkExpr(o.condition); | 166 checkExpr(o.condition); |
167 checkUnnamed2145(o.members); | 167 checkUnnamed2179(o.members); |
168 unittest.expect(o.role, unittest.equals('foo')); | 168 unittest.expect(o.role, unittest.equals('foo')); |
169 } | 169 } |
170 buildCounterBinding--; | 170 buildCounterBinding--; |
171 } | 171 } |
172 | 172 |
173 buildUnnamed2146() { | 173 buildUnnamed2180() { |
174 var o = new core.List<core.String>(); | 174 var o = new core.List<core.String>(); |
175 o.add("foo"); | 175 o.add("foo"); |
176 o.add("foo"); | 176 o.add("foo"); |
177 return o; | 177 return o; |
178 } | 178 } |
179 | 179 |
180 checkUnnamed2146(core.List<core.String> o) { | 180 checkUnnamed2180(core.List<core.String> o) { |
181 unittest.expect(o, unittest.hasLength(2)); | 181 unittest.expect(o, unittest.hasLength(2)); |
182 unittest.expect(o[0], unittest.equals('foo')); | 182 unittest.expect(o[0], unittest.equals('foo')); |
183 unittest.expect(o[1], unittest.equals('foo')); | 183 unittest.expect(o[1], unittest.equals('foo')); |
184 } | 184 } |
185 | 185 |
186 core.int buildCounterCondition = 0; | 186 core.int buildCounterCondition = 0; |
187 buildCondition() { | 187 buildCondition() { |
188 var o = new api.Condition(); | 188 var o = new api.Condition(); |
189 buildCounterCondition++; | 189 buildCounterCondition++; |
190 if (buildCounterCondition < 3) { | 190 if (buildCounterCondition < 3) { |
191 o.iam = "foo"; | 191 o.iam = "foo"; |
192 o.op = "foo"; | 192 o.op = "foo"; |
193 o.svc = "foo"; | 193 o.svc = "foo"; |
194 o.sys = "foo"; | 194 o.sys = "foo"; |
195 o.value = "foo"; | 195 o.value = "foo"; |
196 o.values = buildUnnamed2146(); | 196 o.values = buildUnnamed2180(); |
197 } | 197 } |
198 buildCounterCondition--; | 198 buildCounterCondition--; |
199 return o; | 199 return o; |
200 } | 200 } |
201 | 201 |
202 checkCondition(api.Condition o) { | 202 checkCondition(api.Condition o) { |
203 buildCounterCondition++; | 203 buildCounterCondition++; |
204 if (buildCounterCondition < 3) { | 204 if (buildCounterCondition < 3) { |
205 unittest.expect(o.iam, unittest.equals('foo')); | 205 unittest.expect(o.iam, unittest.equals('foo')); |
206 unittest.expect(o.op, unittest.equals('foo')); | 206 unittest.expect(o.op, unittest.equals('foo')); |
207 unittest.expect(o.svc, unittest.equals('foo')); | 207 unittest.expect(o.svc, unittest.equals('foo')); |
208 unittest.expect(o.sys, unittest.equals('foo')); | 208 unittest.expect(o.sys, unittest.equals('foo')); |
209 unittest.expect(o.value, unittest.equals('foo')); | 209 unittest.expect(o.value, unittest.equals('foo')); |
210 checkUnnamed2146(o.values); | 210 checkUnnamed2180(o.values); |
211 } | 211 } |
212 buildCounterCondition--; | 212 buildCounterCondition--; |
213 } | 213 } |
214 | 214 |
215 core.int buildCounterConfigFile = 0; | 215 core.int buildCounterConfigFile = 0; |
216 buildConfigFile() { | 216 buildConfigFile() { |
217 var o = new api.ConfigFile(); | 217 var o = new api.ConfigFile(); |
218 buildCounterConfigFile++; | 218 buildCounterConfigFile++; |
219 if (buildCounterConfigFile < 3) { | 219 if (buildCounterConfigFile < 3) { |
220 o.content = "foo"; | 220 o.content = "foo"; |
221 } | 221 } |
222 buildCounterConfigFile--; | 222 buildCounterConfigFile--; |
223 return o; | 223 return o; |
224 } | 224 } |
225 | 225 |
226 checkConfigFile(api.ConfigFile o) { | 226 checkConfigFile(api.ConfigFile o) { |
227 buildCounterConfigFile++; | 227 buildCounterConfigFile++; |
228 if (buildCounterConfigFile < 3) { | 228 if (buildCounterConfigFile < 3) { |
229 unittest.expect(o.content, unittest.equals('foo')); | 229 unittest.expect(o.content, unittest.equals('foo')); |
230 } | 230 } |
231 buildCounterConfigFile--; | 231 buildCounterConfigFile--; |
232 } | 232 } |
233 | 233 |
234 buildUnnamed2147() { | 234 buildUnnamed2181() { |
235 var o = new core.List<api.DeploymentLabelEntry>(); | 235 var o = new core.List<api.DeploymentLabelEntry>(); |
236 o.add(buildDeploymentLabelEntry()); | 236 o.add(buildDeploymentLabelEntry()); |
237 o.add(buildDeploymentLabelEntry()); | 237 o.add(buildDeploymentLabelEntry()); |
238 return o; | 238 return o; |
239 } | 239 } |
240 | 240 |
241 checkUnnamed2147(core.List<api.DeploymentLabelEntry> o) { | 241 checkUnnamed2181(core.List<api.DeploymentLabelEntry> o) { |
242 unittest.expect(o, unittest.hasLength(2)); | 242 unittest.expect(o, unittest.hasLength(2)); |
243 checkDeploymentLabelEntry(o[0]); | 243 checkDeploymentLabelEntry(o[0]); |
244 checkDeploymentLabelEntry(o[1]); | 244 checkDeploymentLabelEntry(o[1]); |
245 } | 245 } |
246 | 246 |
247 core.int buildCounterDeployment = 0; | 247 core.int buildCounterDeployment = 0; |
248 buildDeployment() { | 248 buildDeployment() { |
249 var o = new api.Deployment(); | 249 var o = new api.Deployment(); |
250 buildCounterDeployment++; | 250 buildCounterDeployment++; |
251 if (buildCounterDeployment < 3) { | 251 if (buildCounterDeployment < 3) { |
252 o.description = "foo"; | 252 o.description = "foo"; |
253 o.fingerprint = "foo"; | 253 o.fingerprint = "foo"; |
254 o.id = "foo"; | 254 o.id = "foo"; |
255 o.insertTime = "foo"; | 255 o.insertTime = "foo"; |
256 o.labels = buildUnnamed2147(); | 256 o.labels = buildUnnamed2181(); |
257 o.manifest = "foo"; | 257 o.manifest = "foo"; |
258 o.name = "foo"; | 258 o.name = "foo"; |
259 o.operation = buildOperation(); | 259 o.operation = buildOperation(); |
260 o.selfLink = "foo"; | 260 o.selfLink = "foo"; |
261 o.target = buildTargetConfiguration(); | 261 o.target = buildTargetConfiguration(); |
262 o.update = buildDeploymentUpdate(); | 262 o.update = buildDeploymentUpdate(); |
263 } | 263 } |
264 buildCounterDeployment--; | 264 buildCounterDeployment--; |
265 return o; | 265 return o; |
266 } | 266 } |
267 | 267 |
268 checkDeployment(api.Deployment o) { | 268 checkDeployment(api.Deployment o) { |
269 buildCounterDeployment++; | 269 buildCounterDeployment++; |
270 if (buildCounterDeployment < 3) { | 270 if (buildCounterDeployment < 3) { |
271 unittest.expect(o.description, unittest.equals('foo')); | 271 unittest.expect(o.description, unittest.equals('foo')); |
272 unittest.expect(o.fingerprint, unittest.equals('foo')); | 272 unittest.expect(o.fingerprint, unittest.equals('foo')); |
273 unittest.expect(o.id, unittest.equals('foo')); | 273 unittest.expect(o.id, unittest.equals('foo')); |
274 unittest.expect(o.insertTime, unittest.equals('foo')); | 274 unittest.expect(o.insertTime, unittest.equals('foo')); |
275 checkUnnamed2147(o.labels); | 275 checkUnnamed2181(o.labels); |
276 unittest.expect(o.manifest, unittest.equals('foo')); | 276 unittest.expect(o.manifest, unittest.equals('foo')); |
277 unittest.expect(o.name, unittest.equals('foo')); | 277 unittest.expect(o.name, unittest.equals('foo')); |
278 checkOperation(o.operation); | 278 checkOperation(o.operation); |
279 unittest.expect(o.selfLink, unittest.equals('foo')); | 279 unittest.expect(o.selfLink, unittest.equals('foo')); |
280 checkTargetConfiguration(o.target); | 280 checkTargetConfiguration(o.target); |
281 checkDeploymentUpdate(o.update); | 281 checkDeploymentUpdate(o.update); |
282 } | 282 } |
283 buildCounterDeployment--; | 283 buildCounterDeployment--; |
284 } | 284 } |
285 | 285 |
(...skipping 11 matching lines...) Expand all Loading... |
297 | 297 |
298 checkDeploymentLabelEntry(api.DeploymentLabelEntry o) { | 298 checkDeploymentLabelEntry(api.DeploymentLabelEntry o) { |
299 buildCounterDeploymentLabelEntry++; | 299 buildCounterDeploymentLabelEntry++; |
300 if (buildCounterDeploymentLabelEntry < 3) { | 300 if (buildCounterDeploymentLabelEntry < 3) { |
301 unittest.expect(o.key, unittest.equals('foo')); | 301 unittest.expect(o.key, unittest.equals('foo')); |
302 unittest.expect(o.value, unittest.equals('foo')); | 302 unittest.expect(o.value, unittest.equals('foo')); |
303 } | 303 } |
304 buildCounterDeploymentLabelEntry--; | 304 buildCounterDeploymentLabelEntry--; |
305 } | 305 } |
306 | 306 |
307 buildUnnamed2148() { | 307 buildUnnamed2182() { |
308 var o = new core.List<api.DeploymentUpdateLabelEntry>(); | 308 var o = new core.List<api.DeploymentUpdateLabelEntry>(); |
309 o.add(buildDeploymentUpdateLabelEntry()); | 309 o.add(buildDeploymentUpdateLabelEntry()); |
310 o.add(buildDeploymentUpdateLabelEntry()); | 310 o.add(buildDeploymentUpdateLabelEntry()); |
311 return o; | 311 return o; |
312 } | 312 } |
313 | 313 |
314 checkUnnamed2148(core.List<api.DeploymentUpdateLabelEntry> o) { | 314 checkUnnamed2182(core.List<api.DeploymentUpdateLabelEntry> o) { |
315 unittest.expect(o, unittest.hasLength(2)); | 315 unittest.expect(o, unittest.hasLength(2)); |
316 checkDeploymentUpdateLabelEntry(o[0]); | 316 checkDeploymentUpdateLabelEntry(o[0]); |
317 checkDeploymentUpdateLabelEntry(o[1]); | 317 checkDeploymentUpdateLabelEntry(o[1]); |
318 } | 318 } |
319 | 319 |
320 core.int buildCounterDeploymentUpdate = 0; | 320 core.int buildCounterDeploymentUpdate = 0; |
321 buildDeploymentUpdate() { | 321 buildDeploymentUpdate() { |
322 var o = new api.DeploymentUpdate(); | 322 var o = new api.DeploymentUpdate(); |
323 buildCounterDeploymentUpdate++; | 323 buildCounterDeploymentUpdate++; |
324 if (buildCounterDeploymentUpdate < 3) { | 324 if (buildCounterDeploymentUpdate < 3) { |
325 o.description = "foo"; | 325 o.description = "foo"; |
326 o.labels = buildUnnamed2148(); | 326 o.labels = buildUnnamed2182(); |
327 o.manifest = "foo"; | 327 o.manifest = "foo"; |
328 } | 328 } |
329 buildCounterDeploymentUpdate--; | 329 buildCounterDeploymentUpdate--; |
330 return o; | 330 return o; |
331 } | 331 } |
332 | 332 |
333 checkDeploymentUpdate(api.DeploymentUpdate o) { | 333 checkDeploymentUpdate(api.DeploymentUpdate o) { |
334 buildCounterDeploymentUpdate++; | 334 buildCounterDeploymentUpdate++; |
335 if (buildCounterDeploymentUpdate < 3) { | 335 if (buildCounterDeploymentUpdate < 3) { |
336 unittest.expect(o.description, unittest.equals('foo')); | 336 unittest.expect(o.description, unittest.equals('foo')); |
337 checkUnnamed2148(o.labels); | 337 checkUnnamed2182(o.labels); |
338 unittest.expect(o.manifest, unittest.equals('foo')); | 338 unittest.expect(o.manifest, unittest.equals('foo')); |
339 } | 339 } |
340 buildCounterDeploymentUpdate--; | 340 buildCounterDeploymentUpdate--; |
341 } | 341 } |
342 | 342 |
343 core.int buildCounterDeploymentUpdateLabelEntry = 0; | 343 core.int buildCounterDeploymentUpdateLabelEntry = 0; |
344 buildDeploymentUpdateLabelEntry() { | 344 buildDeploymentUpdateLabelEntry() { |
345 var o = new api.DeploymentUpdateLabelEntry(); | 345 var o = new api.DeploymentUpdateLabelEntry(); |
346 buildCounterDeploymentUpdateLabelEntry++; | 346 buildCounterDeploymentUpdateLabelEntry++; |
347 if (buildCounterDeploymentUpdateLabelEntry < 3) { | 347 if (buildCounterDeploymentUpdateLabelEntry < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
373 } | 373 } |
374 | 374 |
375 checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) { | 375 checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) { |
376 buildCounterDeploymentsCancelPreviewRequest++; | 376 buildCounterDeploymentsCancelPreviewRequest++; |
377 if (buildCounterDeploymentsCancelPreviewRequest < 3) { | 377 if (buildCounterDeploymentsCancelPreviewRequest < 3) { |
378 unittest.expect(o.fingerprint, unittest.equals('foo')); | 378 unittest.expect(o.fingerprint, unittest.equals('foo')); |
379 } | 379 } |
380 buildCounterDeploymentsCancelPreviewRequest--; | 380 buildCounterDeploymentsCancelPreviewRequest--; |
381 } | 381 } |
382 | 382 |
383 buildUnnamed2149() { | 383 buildUnnamed2183() { |
384 var o = new core.List<api.Deployment>(); | 384 var o = new core.List<api.Deployment>(); |
385 o.add(buildDeployment()); | 385 o.add(buildDeployment()); |
386 o.add(buildDeployment()); | 386 o.add(buildDeployment()); |
387 return o; | 387 return o; |
388 } | 388 } |
389 | 389 |
390 checkUnnamed2149(core.List<api.Deployment> o) { | 390 checkUnnamed2183(core.List<api.Deployment> o) { |
391 unittest.expect(o, unittest.hasLength(2)); | 391 unittest.expect(o, unittest.hasLength(2)); |
392 checkDeployment(o[0]); | 392 checkDeployment(o[0]); |
393 checkDeployment(o[1]); | 393 checkDeployment(o[1]); |
394 } | 394 } |
395 | 395 |
396 core.int buildCounterDeploymentsListResponse = 0; | 396 core.int buildCounterDeploymentsListResponse = 0; |
397 buildDeploymentsListResponse() { | 397 buildDeploymentsListResponse() { |
398 var o = new api.DeploymentsListResponse(); | 398 var o = new api.DeploymentsListResponse(); |
399 buildCounterDeploymentsListResponse++; | 399 buildCounterDeploymentsListResponse++; |
400 if (buildCounterDeploymentsListResponse < 3) { | 400 if (buildCounterDeploymentsListResponse < 3) { |
401 o.deployments = buildUnnamed2149(); | 401 o.deployments = buildUnnamed2183(); |
402 o.nextPageToken = "foo"; | 402 o.nextPageToken = "foo"; |
403 } | 403 } |
404 buildCounterDeploymentsListResponse--; | 404 buildCounterDeploymentsListResponse--; |
405 return o; | 405 return o; |
406 } | 406 } |
407 | 407 |
408 checkDeploymentsListResponse(api.DeploymentsListResponse o) { | 408 checkDeploymentsListResponse(api.DeploymentsListResponse o) { |
409 buildCounterDeploymentsListResponse++; | 409 buildCounterDeploymentsListResponse++; |
410 if (buildCounterDeploymentsListResponse < 3) { | 410 if (buildCounterDeploymentsListResponse < 3) { |
411 checkUnnamed2149(o.deployments); | 411 checkUnnamed2183(o.deployments); |
412 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 412 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
413 } | 413 } |
414 buildCounterDeploymentsListResponse--; | 414 buildCounterDeploymentsListResponse--; |
415 } | 415 } |
416 | 416 |
417 core.int buildCounterDeploymentsStopRequest = 0; | 417 core.int buildCounterDeploymentsStopRequest = 0; |
418 buildDeploymentsStopRequest() { | 418 buildDeploymentsStopRequest() { |
419 var o = new api.DeploymentsStopRequest(); | 419 var o = new api.DeploymentsStopRequest(); |
420 buildCounterDeploymentsStopRequest++; | 420 buildCounterDeploymentsStopRequest++; |
421 if (buildCounterDeploymentsStopRequest < 3) { | 421 if (buildCounterDeploymentsStopRequest < 3) { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 | 533 |
534 checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { | 534 checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { |
535 buildCounterLogConfigCounterOptions++; | 535 buildCounterLogConfigCounterOptions++; |
536 if (buildCounterLogConfigCounterOptions < 3) { | 536 if (buildCounterLogConfigCounterOptions < 3) { |
537 unittest.expect(o.field, unittest.equals('foo')); | 537 unittest.expect(o.field, unittest.equals('foo')); |
538 unittest.expect(o.metric, unittest.equals('foo')); | 538 unittest.expect(o.metric, unittest.equals('foo')); |
539 } | 539 } |
540 buildCounterLogConfigCounterOptions--; | 540 buildCounterLogConfigCounterOptions--; |
541 } | 541 } |
542 | 542 |
543 buildUnnamed2150() { | 543 buildUnnamed2184() { |
544 var o = new core.List<api.ImportFile>(); | 544 var o = new core.List<api.ImportFile>(); |
545 o.add(buildImportFile()); | 545 o.add(buildImportFile()); |
546 o.add(buildImportFile()); | 546 o.add(buildImportFile()); |
547 return o; | 547 return o; |
548 } | 548 } |
549 | 549 |
550 checkUnnamed2150(core.List<api.ImportFile> o) { | 550 checkUnnamed2184(core.List<api.ImportFile> o) { |
551 unittest.expect(o, unittest.hasLength(2)); | 551 unittest.expect(o, unittest.hasLength(2)); |
552 checkImportFile(o[0]); | 552 checkImportFile(o[0]); |
553 checkImportFile(o[1]); | 553 checkImportFile(o[1]); |
554 } | 554 } |
555 | 555 |
556 core.int buildCounterManifest = 0; | 556 core.int buildCounterManifest = 0; |
557 buildManifest() { | 557 buildManifest() { |
558 var o = new api.Manifest(); | 558 var o = new api.Manifest(); |
559 buildCounterManifest++; | 559 buildCounterManifest++; |
560 if (buildCounterManifest < 3) { | 560 if (buildCounterManifest < 3) { |
561 o.config = buildConfigFile(); | 561 o.config = buildConfigFile(); |
562 o.expandedConfig = "foo"; | 562 o.expandedConfig = "foo"; |
563 o.id = "foo"; | 563 o.id = "foo"; |
564 o.imports = buildUnnamed2150(); | 564 o.imports = buildUnnamed2184(); |
565 o.insertTime = "foo"; | 565 o.insertTime = "foo"; |
566 o.layout = "foo"; | 566 o.layout = "foo"; |
567 o.name = "foo"; | 567 o.name = "foo"; |
568 o.selfLink = "foo"; | 568 o.selfLink = "foo"; |
569 } | 569 } |
570 buildCounterManifest--; | 570 buildCounterManifest--; |
571 return o; | 571 return o; |
572 } | 572 } |
573 | 573 |
574 checkManifest(api.Manifest o) { | 574 checkManifest(api.Manifest o) { |
575 buildCounterManifest++; | 575 buildCounterManifest++; |
576 if (buildCounterManifest < 3) { | 576 if (buildCounterManifest < 3) { |
577 checkConfigFile(o.config); | 577 checkConfigFile(o.config); |
578 unittest.expect(o.expandedConfig, unittest.equals('foo')); | 578 unittest.expect(o.expandedConfig, unittest.equals('foo')); |
579 unittest.expect(o.id, unittest.equals('foo')); | 579 unittest.expect(o.id, unittest.equals('foo')); |
580 checkUnnamed2150(o.imports); | 580 checkUnnamed2184(o.imports); |
581 unittest.expect(o.insertTime, unittest.equals('foo')); | 581 unittest.expect(o.insertTime, unittest.equals('foo')); |
582 unittest.expect(o.layout, unittest.equals('foo')); | 582 unittest.expect(o.layout, unittest.equals('foo')); |
583 unittest.expect(o.name, unittest.equals('foo')); | 583 unittest.expect(o.name, unittest.equals('foo')); |
584 unittest.expect(o.selfLink, unittest.equals('foo')); | 584 unittest.expect(o.selfLink, unittest.equals('foo')); |
585 } | 585 } |
586 buildCounterManifest--; | 586 buildCounterManifest--; |
587 } | 587 } |
588 | 588 |
589 buildUnnamed2151() { | 589 buildUnnamed2185() { |
590 var o = new core.List<api.Manifest>(); | 590 var o = new core.List<api.Manifest>(); |
591 o.add(buildManifest()); | 591 o.add(buildManifest()); |
592 o.add(buildManifest()); | 592 o.add(buildManifest()); |
593 return o; | 593 return o; |
594 } | 594 } |
595 | 595 |
596 checkUnnamed2151(core.List<api.Manifest> o) { | 596 checkUnnamed2185(core.List<api.Manifest> o) { |
597 unittest.expect(o, unittest.hasLength(2)); | 597 unittest.expect(o, unittest.hasLength(2)); |
598 checkManifest(o[0]); | 598 checkManifest(o[0]); |
599 checkManifest(o[1]); | 599 checkManifest(o[1]); |
600 } | 600 } |
601 | 601 |
602 core.int buildCounterManifestsListResponse = 0; | 602 core.int buildCounterManifestsListResponse = 0; |
603 buildManifestsListResponse() { | 603 buildManifestsListResponse() { |
604 var o = new api.ManifestsListResponse(); | 604 var o = new api.ManifestsListResponse(); |
605 buildCounterManifestsListResponse++; | 605 buildCounterManifestsListResponse++; |
606 if (buildCounterManifestsListResponse < 3) { | 606 if (buildCounterManifestsListResponse < 3) { |
607 o.manifests = buildUnnamed2151(); | 607 o.manifests = buildUnnamed2185(); |
608 o.nextPageToken = "foo"; | 608 o.nextPageToken = "foo"; |
609 } | 609 } |
610 buildCounterManifestsListResponse--; | 610 buildCounterManifestsListResponse--; |
611 return o; | 611 return o; |
612 } | 612 } |
613 | 613 |
614 checkManifestsListResponse(api.ManifestsListResponse o) { | 614 checkManifestsListResponse(api.ManifestsListResponse o) { |
615 buildCounterManifestsListResponse++; | 615 buildCounterManifestsListResponse++; |
616 if (buildCounterManifestsListResponse < 3) { | 616 if (buildCounterManifestsListResponse < 3) { |
617 checkUnnamed2151(o.manifests); | 617 checkUnnamed2185(o.manifests); |
618 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 618 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
619 } | 619 } |
620 buildCounterManifestsListResponse--; | 620 buildCounterManifestsListResponse--; |
621 } | 621 } |
622 | 622 |
623 core.int buildCounterOperationErrorErrors = 0; | 623 core.int buildCounterOperationErrorErrors = 0; |
624 buildOperationErrorErrors() { | 624 buildOperationErrorErrors() { |
625 var o = new api.OperationErrorErrors(); | 625 var o = new api.OperationErrorErrors(); |
626 buildCounterOperationErrorErrors++; | 626 buildCounterOperationErrorErrors++; |
627 if (buildCounterOperationErrorErrors < 3) { | 627 if (buildCounterOperationErrorErrors < 3) { |
628 o.code = "foo"; | 628 o.code = "foo"; |
629 o.location = "foo"; | 629 o.location = "foo"; |
630 o.message = "foo"; | 630 o.message = "foo"; |
631 } | 631 } |
632 buildCounterOperationErrorErrors--; | 632 buildCounterOperationErrorErrors--; |
633 return o; | 633 return o; |
634 } | 634 } |
635 | 635 |
636 checkOperationErrorErrors(api.OperationErrorErrors o) { | 636 checkOperationErrorErrors(api.OperationErrorErrors o) { |
637 buildCounterOperationErrorErrors++; | 637 buildCounterOperationErrorErrors++; |
638 if (buildCounterOperationErrorErrors < 3) { | 638 if (buildCounterOperationErrorErrors < 3) { |
639 unittest.expect(o.code, unittest.equals('foo')); | 639 unittest.expect(o.code, unittest.equals('foo')); |
640 unittest.expect(o.location, unittest.equals('foo')); | 640 unittest.expect(o.location, unittest.equals('foo')); |
641 unittest.expect(o.message, unittest.equals('foo')); | 641 unittest.expect(o.message, unittest.equals('foo')); |
642 } | 642 } |
643 buildCounterOperationErrorErrors--; | 643 buildCounterOperationErrorErrors--; |
644 } | 644 } |
645 | 645 |
646 buildUnnamed2152() { | 646 buildUnnamed2186() { |
647 var o = new core.List<api.OperationErrorErrors>(); | 647 var o = new core.List<api.OperationErrorErrors>(); |
648 o.add(buildOperationErrorErrors()); | 648 o.add(buildOperationErrorErrors()); |
649 o.add(buildOperationErrorErrors()); | 649 o.add(buildOperationErrorErrors()); |
650 return o; | 650 return o; |
651 } | 651 } |
652 | 652 |
653 checkUnnamed2152(core.List<api.OperationErrorErrors> o) { | 653 checkUnnamed2186(core.List<api.OperationErrorErrors> o) { |
654 unittest.expect(o, unittest.hasLength(2)); | 654 unittest.expect(o, unittest.hasLength(2)); |
655 checkOperationErrorErrors(o[0]); | 655 checkOperationErrorErrors(o[0]); |
656 checkOperationErrorErrors(o[1]); | 656 checkOperationErrorErrors(o[1]); |
657 } | 657 } |
658 | 658 |
659 core.int buildCounterOperationError = 0; | 659 core.int buildCounterOperationError = 0; |
660 buildOperationError() { | 660 buildOperationError() { |
661 var o = new api.OperationError(); | 661 var o = new api.OperationError(); |
662 buildCounterOperationError++; | 662 buildCounterOperationError++; |
663 if (buildCounterOperationError < 3) { | 663 if (buildCounterOperationError < 3) { |
664 o.errors = buildUnnamed2152(); | 664 o.errors = buildUnnamed2186(); |
665 } | 665 } |
666 buildCounterOperationError--; | 666 buildCounterOperationError--; |
667 return o; | 667 return o; |
668 } | 668 } |
669 | 669 |
670 checkOperationError(api.OperationError o) { | 670 checkOperationError(api.OperationError o) { |
671 buildCounterOperationError++; | 671 buildCounterOperationError++; |
672 if (buildCounterOperationError < 3) { | 672 if (buildCounterOperationError < 3) { |
673 checkUnnamed2152(o.errors); | 673 checkUnnamed2186(o.errors); |
674 } | 674 } |
675 buildCounterOperationError--; | 675 buildCounterOperationError--; |
676 } | 676 } |
677 | 677 |
678 core.int buildCounterOperationWarningsData = 0; | 678 core.int buildCounterOperationWarningsData = 0; |
679 buildOperationWarningsData() { | 679 buildOperationWarningsData() { |
680 var o = new api.OperationWarningsData(); | 680 var o = new api.OperationWarningsData(); |
681 buildCounterOperationWarningsData++; | 681 buildCounterOperationWarningsData++; |
682 if (buildCounterOperationWarningsData < 3) { | 682 if (buildCounterOperationWarningsData < 3) { |
683 o.key = "foo"; | 683 o.key = "foo"; |
684 o.value = "foo"; | 684 o.value = "foo"; |
685 } | 685 } |
686 buildCounterOperationWarningsData--; | 686 buildCounterOperationWarningsData--; |
687 return o; | 687 return o; |
688 } | 688 } |
689 | 689 |
690 checkOperationWarningsData(api.OperationWarningsData o) { | 690 checkOperationWarningsData(api.OperationWarningsData o) { |
691 buildCounterOperationWarningsData++; | 691 buildCounterOperationWarningsData++; |
692 if (buildCounterOperationWarningsData < 3) { | 692 if (buildCounterOperationWarningsData < 3) { |
693 unittest.expect(o.key, unittest.equals('foo')); | 693 unittest.expect(o.key, unittest.equals('foo')); |
694 unittest.expect(o.value, unittest.equals('foo')); | 694 unittest.expect(o.value, unittest.equals('foo')); |
695 } | 695 } |
696 buildCounterOperationWarningsData--; | 696 buildCounterOperationWarningsData--; |
697 } | 697 } |
698 | 698 |
699 buildUnnamed2153() { | 699 buildUnnamed2187() { |
700 var o = new core.List<api.OperationWarningsData>(); | 700 var o = new core.List<api.OperationWarningsData>(); |
701 o.add(buildOperationWarningsData()); | 701 o.add(buildOperationWarningsData()); |
702 o.add(buildOperationWarningsData()); | 702 o.add(buildOperationWarningsData()); |
703 return o; | 703 return o; |
704 } | 704 } |
705 | 705 |
706 checkUnnamed2153(core.List<api.OperationWarningsData> o) { | 706 checkUnnamed2187(core.List<api.OperationWarningsData> o) { |
707 unittest.expect(o, unittest.hasLength(2)); | 707 unittest.expect(o, unittest.hasLength(2)); |
708 checkOperationWarningsData(o[0]); | 708 checkOperationWarningsData(o[0]); |
709 checkOperationWarningsData(o[1]); | 709 checkOperationWarningsData(o[1]); |
710 } | 710 } |
711 | 711 |
712 core.int buildCounterOperationWarnings = 0; | 712 core.int buildCounterOperationWarnings = 0; |
713 buildOperationWarnings() { | 713 buildOperationWarnings() { |
714 var o = new api.OperationWarnings(); | 714 var o = new api.OperationWarnings(); |
715 buildCounterOperationWarnings++; | 715 buildCounterOperationWarnings++; |
716 if (buildCounterOperationWarnings < 3) { | 716 if (buildCounterOperationWarnings < 3) { |
717 o.code = "foo"; | 717 o.code = "foo"; |
718 o.data = buildUnnamed2153(); | 718 o.data = buildUnnamed2187(); |
719 o.message = "foo"; | 719 o.message = "foo"; |
720 } | 720 } |
721 buildCounterOperationWarnings--; | 721 buildCounterOperationWarnings--; |
722 return o; | 722 return o; |
723 } | 723 } |
724 | 724 |
725 checkOperationWarnings(api.OperationWarnings o) { | 725 checkOperationWarnings(api.OperationWarnings o) { |
726 buildCounterOperationWarnings++; | 726 buildCounterOperationWarnings++; |
727 if (buildCounterOperationWarnings < 3) { | 727 if (buildCounterOperationWarnings < 3) { |
728 unittest.expect(o.code, unittest.equals('foo')); | 728 unittest.expect(o.code, unittest.equals('foo')); |
729 checkUnnamed2153(o.data); | 729 checkUnnamed2187(o.data); |
730 unittest.expect(o.message, unittest.equals('foo')); | 730 unittest.expect(o.message, unittest.equals('foo')); |
731 } | 731 } |
732 buildCounterOperationWarnings--; | 732 buildCounterOperationWarnings--; |
733 } | 733 } |
734 | 734 |
735 buildUnnamed2154() { | 735 buildUnnamed2188() { |
736 var o = new core.List<api.OperationWarnings>(); | 736 var o = new core.List<api.OperationWarnings>(); |
737 o.add(buildOperationWarnings()); | 737 o.add(buildOperationWarnings()); |
738 o.add(buildOperationWarnings()); | 738 o.add(buildOperationWarnings()); |
739 return o; | 739 return o; |
740 } | 740 } |
741 | 741 |
742 checkUnnamed2154(core.List<api.OperationWarnings> o) { | 742 checkUnnamed2188(core.List<api.OperationWarnings> o) { |
743 unittest.expect(o, unittest.hasLength(2)); | 743 unittest.expect(o, unittest.hasLength(2)); |
744 checkOperationWarnings(o[0]); | 744 checkOperationWarnings(o[0]); |
745 checkOperationWarnings(o[1]); | 745 checkOperationWarnings(o[1]); |
746 } | 746 } |
747 | 747 |
748 core.int buildCounterOperation = 0; | 748 core.int buildCounterOperation = 0; |
749 buildOperation() { | 749 buildOperation() { |
750 var o = new api.Operation(); | 750 var o = new api.Operation(); |
751 buildCounterOperation++; | 751 buildCounterOperation++; |
752 if (buildCounterOperation < 3) { | 752 if (buildCounterOperation < 3) { |
(...skipping 11 matching lines...) Expand all Loading... |
764 o.operationType = "foo"; | 764 o.operationType = "foo"; |
765 o.progress = 42; | 765 o.progress = 42; |
766 o.region = "foo"; | 766 o.region = "foo"; |
767 o.selfLink = "foo"; | 767 o.selfLink = "foo"; |
768 o.startTime = "foo"; | 768 o.startTime = "foo"; |
769 o.status = "foo"; | 769 o.status = "foo"; |
770 o.statusMessage = "foo"; | 770 o.statusMessage = "foo"; |
771 o.targetId = "foo"; | 771 o.targetId = "foo"; |
772 o.targetLink = "foo"; | 772 o.targetLink = "foo"; |
773 o.user = "foo"; | 773 o.user = "foo"; |
774 o.warnings = buildUnnamed2154(); | 774 o.warnings = buildUnnamed2188(); |
775 o.zone = "foo"; | 775 o.zone = "foo"; |
776 } | 776 } |
777 buildCounterOperation--; | 777 buildCounterOperation--; |
778 return o; | 778 return o; |
779 } | 779 } |
780 | 780 |
781 checkOperation(api.Operation o) { | 781 checkOperation(api.Operation o) { |
782 buildCounterOperation++; | 782 buildCounterOperation++; |
783 if (buildCounterOperation < 3) { | 783 if (buildCounterOperation < 3) { |
784 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 784 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
(...skipping 10 matching lines...) Expand all Loading... |
795 unittest.expect(o.operationType, unittest.equals('foo')); | 795 unittest.expect(o.operationType, unittest.equals('foo')); |
796 unittest.expect(o.progress, unittest.equals(42)); | 796 unittest.expect(o.progress, unittest.equals(42)); |
797 unittest.expect(o.region, unittest.equals('foo')); | 797 unittest.expect(o.region, unittest.equals('foo')); |
798 unittest.expect(o.selfLink, unittest.equals('foo')); | 798 unittest.expect(o.selfLink, unittest.equals('foo')); |
799 unittest.expect(o.startTime, unittest.equals('foo')); | 799 unittest.expect(o.startTime, unittest.equals('foo')); |
800 unittest.expect(o.status, unittest.equals('foo')); | 800 unittest.expect(o.status, unittest.equals('foo')); |
801 unittest.expect(o.statusMessage, unittest.equals('foo')); | 801 unittest.expect(o.statusMessage, unittest.equals('foo')); |
802 unittest.expect(o.targetId, unittest.equals('foo')); | 802 unittest.expect(o.targetId, unittest.equals('foo')); |
803 unittest.expect(o.targetLink, unittest.equals('foo')); | 803 unittest.expect(o.targetLink, unittest.equals('foo')); |
804 unittest.expect(o.user, unittest.equals('foo')); | 804 unittest.expect(o.user, unittest.equals('foo')); |
805 checkUnnamed2154(o.warnings); | 805 checkUnnamed2188(o.warnings); |
806 unittest.expect(o.zone, unittest.equals('foo')); | 806 unittest.expect(o.zone, unittest.equals('foo')); |
807 } | 807 } |
808 buildCounterOperation--; | 808 buildCounterOperation--; |
809 } | 809 } |
810 | 810 |
811 buildUnnamed2155() { | 811 buildUnnamed2189() { |
812 var o = new core.List<api.Operation>(); | 812 var o = new core.List<api.Operation>(); |
813 o.add(buildOperation()); | 813 o.add(buildOperation()); |
814 o.add(buildOperation()); | 814 o.add(buildOperation()); |
815 return o; | 815 return o; |
816 } | 816 } |
817 | 817 |
818 checkUnnamed2155(core.List<api.Operation> o) { | 818 checkUnnamed2189(core.List<api.Operation> o) { |
819 unittest.expect(o, unittest.hasLength(2)); | 819 unittest.expect(o, unittest.hasLength(2)); |
820 checkOperation(o[0]); | 820 checkOperation(o[0]); |
821 checkOperation(o[1]); | 821 checkOperation(o[1]); |
822 } | 822 } |
823 | 823 |
824 core.int buildCounterOperationsListResponse = 0; | 824 core.int buildCounterOperationsListResponse = 0; |
825 buildOperationsListResponse() { | 825 buildOperationsListResponse() { |
826 var o = new api.OperationsListResponse(); | 826 var o = new api.OperationsListResponse(); |
827 buildCounterOperationsListResponse++; | 827 buildCounterOperationsListResponse++; |
828 if (buildCounterOperationsListResponse < 3) { | 828 if (buildCounterOperationsListResponse < 3) { |
829 o.nextPageToken = "foo"; | 829 o.nextPageToken = "foo"; |
830 o.operations = buildUnnamed2155(); | 830 o.operations = buildUnnamed2189(); |
831 } | 831 } |
832 buildCounterOperationsListResponse--; | 832 buildCounterOperationsListResponse--; |
833 return o; | 833 return o; |
834 } | 834 } |
835 | 835 |
836 checkOperationsListResponse(api.OperationsListResponse o) { | 836 checkOperationsListResponse(api.OperationsListResponse o) { |
837 buildCounterOperationsListResponse++; | 837 buildCounterOperationsListResponse++; |
838 if (buildCounterOperationsListResponse < 3) { | 838 if (buildCounterOperationsListResponse < 3) { |
839 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 839 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
840 checkUnnamed2155(o.operations); | 840 checkUnnamed2189(o.operations); |
841 } | 841 } |
842 buildCounterOperationsListResponse--; | 842 buildCounterOperationsListResponse--; |
843 } | 843 } |
844 | 844 |
845 buildUnnamed2156() { | 845 buildUnnamed2190() { |
846 var o = new core.List<api.AuditConfig>(); | 846 var o = new core.List<api.AuditConfig>(); |
847 o.add(buildAuditConfig()); | 847 o.add(buildAuditConfig()); |
848 o.add(buildAuditConfig()); | 848 o.add(buildAuditConfig()); |
849 return o; | 849 return o; |
850 } | 850 } |
851 | 851 |
852 checkUnnamed2156(core.List<api.AuditConfig> o) { | 852 checkUnnamed2190(core.List<api.AuditConfig> o) { |
853 unittest.expect(o, unittest.hasLength(2)); | 853 unittest.expect(o, unittest.hasLength(2)); |
854 checkAuditConfig(o[0]); | 854 checkAuditConfig(o[0]); |
855 checkAuditConfig(o[1]); | 855 checkAuditConfig(o[1]); |
856 } | 856 } |
857 | 857 |
858 buildUnnamed2157() { | 858 buildUnnamed2191() { |
859 var o = new core.List<api.Binding>(); | 859 var o = new core.List<api.Binding>(); |
860 o.add(buildBinding()); | 860 o.add(buildBinding()); |
861 o.add(buildBinding()); | 861 o.add(buildBinding()); |
862 return o; | 862 return o; |
863 } | 863 } |
864 | 864 |
865 checkUnnamed2157(core.List<api.Binding> o) { | 865 checkUnnamed2191(core.List<api.Binding> o) { |
866 unittest.expect(o, unittest.hasLength(2)); | 866 unittest.expect(o, unittest.hasLength(2)); |
867 checkBinding(o[0]); | 867 checkBinding(o[0]); |
868 checkBinding(o[1]); | 868 checkBinding(o[1]); |
869 } | 869 } |
870 | 870 |
871 buildUnnamed2158() { | 871 buildUnnamed2192() { |
872 var o = new core.List<api.Rule>(); | 872 var o = new core.List<api.Rule>(); |
873 o.add(buildRule()); | 873 o.add(buildRule()); |
874 o.add(buildRule()); | 874 o.add(buildRule()); |
875 return o; | 875 return o; |
876 } | 876 } |
877 | 877 |
878 checkUnnamed2158(core.List<api.Rule> o) { | 878 checkUnnamed2192(core.List<api.Rule> o) { |
879 unittest.expect(o, unittest.hasLength(2)); | 879 unittest.expect(o, unittest.hasLength(2)); |
880 checkRule(o[0]); | 880 checkRule(o[0]); |
881 checkRule(o[1]); | 881 checkRule(o[1]); |
882 } | 882 } |
883 | 883 |
884 core.int buildCounterPolicy = 0; | 884 core.int buildCounterPolicy = 0; |
885 buildPolicy() { | 885 buildPolicy() { |
886 var o = new api.Policy(); | 886 var o = new api.Policy(); |
887 buildCounterPolicy++; | 887 buildCounterPolicy++; |
888 if (buildCounterPolicy < 3) { | 888 if (buildCounterPolicy < 3) { |
889 o.auditConfigs = buildUnnamed2156(); | 889 o.auditConfigs = buildUnnamed2190(); |
890 o.bindings = buildUnnamed2157(); | 890 o.bindings = buildUnnamed2191(); |
891 o.etag = "foo"; | 891 o.etag = "foo"; |
892 o.iamOwned = true; | 892 o.iamOwned = true; |
893 o.rules = buildUnnamed2158(); | 893 o.rules = buildUnnamed2192(); |
894 o.version = 42; | 894 o.version = 42; |
895 } | 895 } |
896 buildCounterPolicy--; | 896 buildCounterPolicy--; |
897 return o; | 897 return o; |
898 } | 898 } |
899 | 899 |
900 checkPolicy(api.Policy o) { | 900 checkPolicy(api.Policy o) { |
901 buildCounterPolicy++; | 901 buildCounterPolicy++; |
902 if (buildCounterPolicy < 3) { | 902 if (buildCounterPolicy < 3) { |
903 checkUnnamed2156(o.auditConfigs); | 903 checkUnnamed2190(o.auditConfigs); |
904 checkUnnamed2157(o.bindings); | 904 checkUnnamed2191(o.bindings); |
905 unittest.expect(o.etag, unittest.equals('foo')); | 905 unittest.expect(o.etag, unittest.equals('foo')); |
906 unittest.expect(o.iamOwned, unittest.isTrue); | 906 unittest.expect(o.iamOwned, unittest.isTrue); |
907 checkUnnamed2158(o.rules); | 907 checkUnnamed2192(o.rules); |
908 unittest.expect(o.version, unittest.equals(42)); | 908 unittest.expect(o.version, unittest.equals(42)); |
909 } | 909 } |
910 buildCounterPolicy--; | 910 buildCounterPolicy--; |
911 } | 911 } |
912 | 912 |
913 core.int buildCounterResourceWarningsData = 0; | 913 core.int buildCounterResourceWarningsData = 0; |
914 buildResourceWarningsData() { | 914 buildResourceWarningsData() { |
915 var o = new api.ResourceWarningsData(); | 915 var o = new api.ResourceWarningsData(); |
916 buildCounterResourceWarningsData++; | 916 buildCounterResourceWarningsData++; |
917 if (buildCounterResourceWarningsData < 3) { | 917 if (buildCounterResourceWarningsData < 3) { |
918 o.key = "foo"; | 918 o.key = "foo"; |
919 o.value = "foo"; | 919 o.value = "foo"; |
920 } | 920 } |
921 buildCounterResourceWarningsData--; | 921 buildCounterResourceWarningsData--; |
922 return o; | 922 return o; |
923 } | 923 } |
924 | 924 |
925 checkResourceWarningsData(api.ResourceWarningsData o) { | 925 checkResourceWarningsData(api.ResourceWarningsData o) { |
926 buildCounterResourceWarningsData++; | 926 buildCounterResourceWarningsData++; |
927 if (buildCounterResourceWarningsData < 3) { | 927 if (buildCounterResourceWarningsData < 3) { |
928 unittest.expect(o.key, unittest.equals('foo')); | 928 unittest.expect(o.key, unittest.equals('foo')); |
929 unittest.expect(o.value, unittest.equals('foo')); | 929 unittest.expect(o.value, unittest.equals('foo')); |
930 } | 930 } |
931 buildCounterResourceWarningsData--; | 931 buildCounterResourceWarningsData--; |
932 } | 932 } |
933 | 933 |
934 buildUnnamed2159() { | 934 buildUnnamed2193() { |
935 var o = new core.List<api.ResourceWarningsData>(); | 935 var o = new core.List<api.ResourceWarningsData>(); |
936 o.add(buildResourceWarningsData()); | 936 o.add(buildResourceWarningsData()); |
937 o.add(buildResourceWarningsData()); | 937 o.add(buildResourceWarningsData()); |
938 return o; | 938 return o; |
939 } | 939 } |
940 | 940 |
941 checkUnnamed2159(core.List<api.ResourceWarningsData> o) { | 941 checkUnnamed2193(core.List<api.ResourceWarningsData> o) { |
942 unittest.expect(o, unittest.hasLength(2)); | 942 unittest.expect(o, unittest.hasLength(2)); |
943 checkResourceWarningsData(o[0]); | 943 checkResourceWarningsData(o[0]); |
944 checkResourceWarningsData(o[1]); | 944 checkResourceWarningsData(o[1]); |
945 } | 945 } |
946 | 946 |
947 core.int buildCounterResourceWarnings = 0; | 947 core.int buildCounterResourceWarnings = 0; |
948 buildResourceWarnings() { | 948 buildResourceWarnings() { |
949 var o = new api.ResourceWarnings(); | 949 var o = new api.ResourceWarnings(); |
950 buildCounterResourceWarnings++; | 950 buildCounterResourceWarnings++; |
951 if (buildCounterResourceWarnings < 3) { | 951 if (buildCounterResourceWarnings < 3) { |
952 o.code = "foo"; | 952 o.code = "foo"; |
953 o.data = buildUnnamed2159(); | 953 o.data = buildUnnamed2193(); |
954 o.message = "foo"; | 954 o.message = "foo"; |
955 } | 955 } |
956 buildCounterResourceWarnings--; | 956 buildCounterResourceWarnings--; |
957 return o; | 957 return o; |
958 } | 958 } |
959 | 959 |
960 checkResourceWarnings(api.ResourceWarnings o) { | 960 checkResourceWarnings(api.ResourceWarnings o) { |
961 buildCounterResourceWarnings++; | 961 buildCounterResourceWarnings++; |
962 if (buildCounterResourceWarnings < 3) { | 962 if (buildCounterResourceWarnings < 3) { |
963 unittest.expect(o.code, unittest.equals('foo')); | 963 unittest.expect(o.code, unittest.equals('foo')); |
964 checkUnnamed2159(o.data); | 964 checkUnnamed2193(o.data); |
965 unittest.expect(o.message, unittest.equals('foo')); | 965 unittest.expect(o.message, unittest.equals('foo')); |
966 } | 966 } |
967 buildCounterResourceWarnings--; | 967 buildCounterResourceWarnings--; |
968 } | 968 } |
969 | 969 |
970 buildUnnamed2160() { | 970 buildUnnamed2194() { |
971 var o = new core.List<api.ResourceWarnings>(); | 971 var o = new core.List<api.ResourceWarnings>(); |
972 o.add(buildResourceWarnings()); | 972 o.add(buildResourceWarnings()); |
973 o.add(buildResourceWarnings()); | 973 o.add(buildResourceWarnings()); |
974 return o; | 974 return o; |
975 } | 975 } |
976 | 976 |
977 checkUnnamed2160(core.List<api.ResourceWarnings> o) { | 977 checkUnnamed2194(core.List<api.ResourceWarnings> o) { |
978 unittest.expect(o, unittest.hasLength(2)); | 978 unittest.expect(o, unittest.hasLength(2)); |
979 checkResourceWarnings(o[0]); | 979 checkResourceWarnings(o[0]); |
980 checkResourceWarnings(o[1]); | 980 checkResourceWarnings(o[1]); |
981 } | 981 } |
982 | 982 |
983 core.int buildCounterResource = 0; | 983 core.int buildCounterResource = 0; |
984 buildResource() { | 984 buildResource() { |
985 var o = new api.Resource(); | 985 var o = new api.Resource(); |
986 buildCounterResource++; | 986 buildCounterResource++; |
987 if (buildCounterResource < 3) { | 987 if (buildCounterResource < 3) { |
988 o.accessControl = buildResourceAccessControl(); | 988 o.accessControl = buildResourceAccessControl(); |
989 o.finalProperties = "foo"; | 989 o.finalProperties = "foo"; |
990 o.id = "foo"; | 990 o.id = "foo"; |
991 o.insertTime = "foo"; | 991 o.insertTime = "foo"; |
992 o.manifest = "foo"; | 992 o.manifest = "foo"; |
993 o.name = "foo"; | 993 o.name = "foo"; |
994 o.properties = "foo"; | 994 o.properties = "foo"; |
995 o.type = "foo"; | 995 o.type = "foo"; |
996 o.update = buildResourceUpdate(); | 996 o.update = buildResourceUpdate(); |
997 o.updateTime = "foo"; | 997 o.updateTime = "foo"; |
998 o.url = "foo"; | 998 o.url = "foo"; |
999 o.warnings = buildUnnamed2160(); | 999 o.warnings = buildUnnamed2194(); |
1000 } | 1000 } |
1001 buildCounterResource--; | 1001 buildCounterResource--; |
1002 return o; | 1002 return o; |
1003 } | 1003 } |
1004 | 1004 |
1005 checkResource(api.Resource o) { | 1005 checkResource(api.Resource o) { |
1006 buildCounterResource++; | 1006 buildCounterResource++; |
1007 if (buildCounterResource < 3) { | 1007 if (buildCounterResource < 3) { |
1008 checkResourceAccessControl(o.accessControl); | 1008 checkResourceAccessControl(o.accessControl); |
1009 unittest.expect(o.finalProperties, unittest.equals('foo')); | 1009 unittest.expect(o.finalProperties, unittest.equals('foo')); |
1010 unittest.expect(o.id, unittest.equals('foo')); | 1010 unittest.expect(o.id, unittest.equals('foo')); |
1011 unittest.expect(o.insertTime, unittest.equals('foo')); | 1011 unittest.expect(o.insertTime, unittest.equals('foo')); |
1012 unittest.expect(o.manifest, unittest.equals('foo')); | 1012 unittest.expect(o.manifest, unittest.equals('foo')); |
1013 unittest.expect(o.name, unittest.equals('foo')); | 1013 unittest.expect(o.name, unittest.equals('foo')); |
1014 unittest.expect(o.properties, unittest.equals('foo')); | 1014 unittest.expect(o.properties, unittest.equals('foo')); |
1015 unittest.expect(o.type, unittest.equals('foo')); | 1015 unittest.expect(o.type, unittest.equals('foo')); |
1016 checkResourceUpdate(o.update); | 1016 checkResourceUpdate(o.update); |
1017 unittest.expect(o.updateTime, unittest.equals('foo')); | 1017 unittest.expect(o.updateTime, unittest.equals('foo')); |
1018 unittest.expect(o.url, unittest.equals('foo')); | 1018 unittest.expect(o.url, unittest.equals('foo')); |
1019 checkUnnamed2160(o.warnings); | 1019 checkUnnamed2194(o.warnings); |
1020 } | 1020 } |
1021 buildCounterResource--; | 1021 buildCounterResource--; |
1022 } | 1022 } |
1023 | 1023 |
1024 core.int buildCounterResourceAccessControl = 0; | 1024 core.int buildCounterResourceAccessControl = 0; |
1025 buildResourceAccessControl() { | 1025 buildResourceAccessControl() { |
1026 var o = new api.ResourceAccessControl(); | 1026 var o = new api.ResourceAccessControl(); |
1027 buildCounterResourceAccessControl++; | 1027 buildCounterResourceAccessControl++; |
1028 if (buildCounterResourceAccessControl < 3) { | 1028 if (buildCounterResourceAccessControl < 3) { |
1029 o.gcpIamPolicy = "foo"; | 1029 o.gcpIamPolicy = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1056 checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) { | 1056 checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) { |
1057 buildCounterResourceUpdateErrorErrors++; | 1057 buildCounterResourceUpdateErrorErrors++; |
1058 if (buildCounterResourceUpdateErrorErrors < 3) { | 1058 if (buildCounterResourceUpdateErrorErrors < 3) { |
1059 unittest.expect(o.code, unittest.equals('foo')); | 1059 unittest.expect(o.code, unittest.equals('foo')); |
1060 unittest.expect(o.location, unittest.equals('foo')); | 1060 unittest.expect(o.location, unittest.equals('foo')); |
1061 unittest.expect(o.message, unittest.equals('foo')); | 1061 unittest.expect(o.message, unittest.equals('foo')); |
1062 } | 1062 } |
1063 buildCounterResourceUpdateErrorErrors--; | 1063 buildCounterResourceUpdateErrorErrors--; |
1064 } | 1064 } |
1065 | 1065 |
1066 buildUnnamed2161() { | 1066 buildUnnamed2195() { |
1067 var o = new core.List<api.ResourceUpdateErrorErrors>(); | 1067 var o = new core.List<api.ResourceUpdateErrorErrors>(); |
1068 o.add(buildResourceUpdateErrorErrors()); | 1068 o.add(buildResourceUpdateErrorErrors()); |
1069 o.add(buildResourceUpdateErrorErrors()); | 1069 o.add(buildResourceUpdateErrorErrors()); |
1070 return o; | 1070 return o; |
1071 } | 1071 } |
1072 | 1072 |
1073 checkUnnamed2161(core.List<api.ResourceUpdateErrorErrors> o) { | 1073 checkUnnamed2195(core.List<api.ResourceUpdateErrorErrors> o) { |
1074 unittest.expect(o, unittest.hasLength(2)); | 1074 unittest.expect(o, unittest.hasLength(2)); |
1075 checkResourceUpdateErrorErrors(o[0]); | 1075 checkResourceUpdateErrorErrors(o[0]); |
1076 checkResourceUpdateErrorErrors(o[1]); | 1076 checkResourceUpdateErrorErrors(o[1]); |
1077 } | 1077 } |
1078 | 1078 |
1079 core.int buildCounterResourceUpdateError = 0; | 1079 core.int buildCounterResourceUpdateError = 0; |
1080 buildResourceUpdateError() { | 1080 buildResourceUpdateError() { |
1081 var o = new api.ResourceUpdateError(); | 1081 var o = new api.ResourceUpdateError(); |
1082 buildCounterResourceUpdateError++; | 1082 buildCounterResourceUpdateError++; |
1083 if (buildCounterResourceUpdateError < 3) { | 1083 if (buildCounterResourceUpdateError < 3) { |
1084 o.errors = buildUnnamed2161(); | 1084 o.errors = buildUnnamed2195(); |
1085 } | 1085 } |
1086 buildCounterResourceUpdateError--; | 1086 buildCounterResourceUpdateError--; |
1087 return o; | 1087 return o; |
1088 } | 1088 } |
1089 | 1089 |
1090 checkResourceUpdateError(api.ResourceUpdateError o) { | 1090 checkResourceUpdateError(api.ResourceUpdateError o) { |
1091 buildCounterResourceUpdateError++; | 1091 buildCounterResourceUpdateError++; |
1092 if (buildCounterResourceUpdateError < 3) { | 1092 if (buildCounterResourceUpdateError < 3) { |
1093 checkUnnamed2161(o.errors); | 1093 checkUnnamed2195(o.errors); |
1094 } | 1094 } |
1095 buildCounterResourceUpdateError--; | 1095 buildCounterResourceUpdateError--; |
1096 } | 1096 } |
1097 | 1097 |
1098 core.int buildCounterResourceUpdateWarningsData = 0; | 1098 core.int buildCounterResourceUpdateWarningsData = 0; |
1099 buildResourceUpdateWarningsData() { | 1099 buildResourceUpdateWarningsData() { |
1100 var o = new api.ResourceUpdateWarningsData(); | 1100 var o = new api.ResourceUpdateWarningsData(); |
1101 buildCounterResourceUpdateWarningsData++; | 1101 buildCounterResourceUpdateWarningsData++; |
1102 if (buildCounterResourceUpdateWarningsData < 3) { | 1102 if (buildCounterResourceUpdateWarningsData < 3) { |
1103 o.key = "foo"; | 1103 o.key = "foo"; |
1104 o.value = "foo"; | 1104 o.value = "foo"; |
1105 } | 1105 } |
1106 buildCounterResourceUpdateWarningsData--; | 1106 buildCounterResourceUpdateWarningsData--; |
1107 return o; | 1107 return o; |
1108 } | 1108 } |
1109 | 1109 |
1110 checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) { | 1110 checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) { |
1111 buildCounterResourceUpdateWarningsData++; | 1111 buildCounterResourceUpdateWarningsData++; |
1112 if (buildCounterResourceUpdateWarningsData < 3) { | 1112 if (buildCounterResourceUpdateWarningsData < 3) { |
1113 unittest.expect(o.key, unittest.equals('foo')); | 1113 unittest.expect(o.key, unittest.equals('foo')); |
1114 unittest.expect(o.value, unittest.equals('foo')); | 1114 unittest.expect(o.value, unittest.equals('foo')); |
1115 } | 1115 } |
1116 buildCounterResourceUpdateWarningsData--; | 1116 buildCounterResourceUpdateWarningsData--; |
1117 } | 1117 } |
1118 | 1118 |
1119 buildUnnamed2162() { | 1119 buildUnnamed2196() { |
1120 var o = new core.List<api.ResourceUpdateWarningsData>(); | 1120 var o = new core.List<api.ResourceUpdateWarningsData>(); |
1121 o.add(buildResourceUpdateWarningsData()); | 1121 o.add(buildResourceUpdateWarningsData()); |
1122 o.add(buildResourceUpdateWarningsData()); | 1122 o.add(buildResourceUpdateWarningsData()); |
1123 return o; | 1123 return o; |
1124 } | 1124 } |
1125 | 1125 |
1126 checkUnnamed2162(core.List<api.ResourceUpdateWarningsData> o) { | 1126 checkUnnamed2196(core.List<api.ResourceUpdateWarningsData> o) { |
1127 unittest.expect(o, unittest.hasLength(2)); | 1127 unittest.expect(o, unittest.hasLength(2)); |
1128 checkResourceUpdateWarningsData(o[0]); | 1128 checkResourceUpdateWarningsData(o[0]); |
1129 checkResourceUpdateWarningsData(o[1]); | 1129 checkResourceUpdateWarningsData(o[1]); |
1130 } | 1130 } |
1131 | 1131 |
1132 core.int buildCounterResourceUpdateWarnings = 0; | 1132 core.int buildCounterResourceUpdateWarnings = 0; |
1133 buildResourceUpdateWarnings() { | 1133 buildResourceUpdateWarnings() { |
1134 var o = new api.ResourceUpdateWarnings(); | 1134 var o = new api.ResourceUpdateWarnings(); |
1135 buildCounterResourceUpdateWarnings++; | 1135 buildCounterResourceUpdateWarnings++; |
1136 if (buildCounterResourceUpdateWarnings < 3) { | 1136 if (buildCounterResourceUpdateWarnings < 3) { |
1137 o.code = "foo"; | 1137 o.code = "foo"; |
1138 o.data = buildUnnamed2162(); | 1138 o.data = buildUnnamed2196(); |
1139 o.message = "foo"; | 1139 o.message = "foo"; |
1140 } | 1140 } |
1141 buildCounterResourceUpdateWarnings--; | 1141 buildCounterResourceUpdateWarnings--; |
1142 return o; | 1142 return o; |
1143 } | 1143 } |
1144 | 1144 |
1145 checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) { | 1145 checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) { |
1146 buildCounterResourceUpdateWarnings++; | 1146 buildCounterResourceUpdateWarnings++; |
1147 if (buildCounterResourceUpdateWarnings < 3) { | 1147 if (buildCounterResourceUpdateWarnings < 3) { |
1148 unittest.expect(o.code, unittest.equals('foo')); | 1148 unittest.expect(o.code, unittest.equals('foo')); |
1149 checkUnnamed2162(o.data); | 1149 checkUnnamed2196(o.data); |
1150 unittest.expect(o.message, unittest.equals('foo')); | 1150 unittest.expect(o.message, unittest.equals('foo')); |
1151 } | 1151 } |
1152 buildCounterResourceUpdateWarnings--; | 1152 buildCounterResourceUpdateWarnings--; |
1153 } | 1153 } |
1154 | 1154 |
1155 buildUnnamed2163() { | 1155 buildUnnamed2197() { |
1156 var o = new core.List<api.ResourceUpdateWarnings>(); | 1156 var o = new core.List<api.ResourceUpdateWarnings>(); |
1157 o.add(buildResourceUpdateWarnings()); | 1157 o.add(buildResourceUpdateWarnings()); |
1158 o.add(buildResourceUpdateWarnings()); | 1158 o.add(buildResourceUpdateWarnings()); |
1159 return o; | 1159 return o; |
1160 } | 1160 } |
1161 | 1161 |
1162 checkUnnamed2163(core.List<api.ResourceUpdateWarnings> o) { | 1162 checkUnnamed2197(core.List<api.ResourceUpdateWarnings> o) { |
1163 unittest.expect(o, unittest.hasLength(2)); | 1163 unittest.expect(o, unittest.hasLength(2)); |
1164 checkResourceUpdateWarnings(o[0]); | 1164 checkResourceUpdateWarnings(o[0]); |
1165 checkResourceUpdateWarnings(o[1]); | 1165 checkResourceUpdateWarnings(o[1]); |
1166 } | 1166 } |
1167 | 1167 |
1168 core.int buildCounterResourceUpdate = 0; | 1168 core.int buildCounterResourceUpdate = 0; |
1169 buildResourceUpdate() { | 1169 buildResourceUpdate() { |
1170 var o = new api.ResourceUpdate(); | 1170 var o = new api.ResourceUpdate(); |
1171 buildCounterResourceUpdate++; | 1171 buildCounterResourceUpdate++; |
1172 if (buildCounterResourceUpdate < 3) { | 1172 if (buildCounterResourceUpdate < 3) { |
1173 o.accessControl = buildResourceAccessControl(); | 1173 o.accessControl = buildResourceAccessControl(); |
1174 o.error = buildResourceUpdateError(); | 1174 o.error = buildResourceUpdateError(); |
1175 o.finalProperties = "foo"; | 1175 o.finalProperties = "foo"; |
1176 o.intent = "foo"; | 1176 o.intent = "foo"; |
1177 o.manifest = "foo"; | 1177 o.manifest = "foo"; |
1178 o.properties = "foo"; | 1178 o.properties = "foo"; |
1179 o.state = "foo"; | 1179 o.state = "foo"; |
1180 o.warnings = buildUnnamed2163(); | 1180 o.warnings = buildUnnamed2197(); |
1181 } | 1181 } |
1182 buildCounterResourceUpdate--; | 1182 buildCounterResourceUpdate--; |
1183 return o; | 1183 return o; |
1184 } | 1184 } |
1185 | 1185 |
1186 checkResourceUpdate(api.ResourceUpdate o) { | 1186 checkResourceUpdate(api.ResourceUpdate o) { |
1187 buildCounterResourceUpdate++; | 1187 buildCounterResourceUpdate++; |
1188 if (buildCounterResourceUpdate < 3) { | 1188 if (buildCounterResourceUpdate < 3) { |
1189 checkResourceAccessControl(o.accessControl); | 1189 checkResourceAccessControl(o.accessControl); |
1190 checkResourceUpdateError(o.error); | 1190 checkResourceUpdateError(o.error); |
1191 unittest.expect(o.finalProperties, unittest.equals('foo')); | 1191 unittest.expect(o.finalProperties, unittest.equals('foo')); |
1192 unittest.expect(o.intent, unittest.equals('foo')); | 1192 unittest.expect(o.intent, unittest.equals('foo')); |
1193 unittest.expect(o.manifest, unittest.equals('foo')); | 1193 unittest.expect(o.manifest, unittest.equals('foo')); |
1194 unittest.expect(o.properties, unittest.equals('foo')); | 1194 unittest.expect(o.properties, unittest.equals('foo')); |
1195 unittest.expect(o.state, unittest.equals('foo')); | 1195 unittest.expect(o.state, unittest.equals('foo')); |
1196 checkUnnamed2163(o.warnings); | 1196 checkUnnamed2197(o.warnings); |
1197 } | 1197 } |
1198 buildCounterResourceUpdate--; | 1198 buildCounterResourceUpdate--; |
1199 } | 1199 } |
1200 | 1200 |
1201 buildUnnamed2164() { | 1201 buildUnnamed2198() { |
1202 var o = new core.List<api.Resource>(); | 1202 var o = new core.List<api.Resource>(); |
1203 o.add(buildResource()); | 1203 o.add(buildResource()); |
1204 o.add(buildResource()); | 1204 o.add(buildResource()); |
1205 return o; | 1205 return o; |
1206 } | 1206 } |
1207 | 1207 |
1208 checkUnnamed2164(core.List<api.Resource> o) { | 1208 checkUnnamed2198(core.List<api.Resource> o) { |
1209 unittest.expect(o, unittest.hasLength(2)); | 1209 unittest.expect(o, unittest.hasLength(2)); |
1210 checkResource(o[0]); | 1210 checkResource(o[0]); |
1211 checkResource(o[1]); | 1211 checkResource(o[1]); |
1212 } | 1212 } |
1213 | 1213 |
1214 core.int buildCounterResourcesListResponse = 0; | 1214 core.int buildCounterResourcesListResponse = 0; |
1215 buildResourcesListResponse() { | 1215 buildResourcesListResponse() { |
1216 var o = new api.ResourcesListResponse(); | 1216 var o = new api.ResourcesListResponse(); |
1217 buildCounterResourcesListResponse++; | 1217 buildCounterResourcesListResponse++; |
1218 if (buildCounterResourcesListResponse < 3) { | 1218 if (buildCounterResourcesListResponse < 3) { |
1219 o.nextPageToken = "foo"; | 1219 o.nextPageToken = "foo"; |
1220 o.resources = buildUnnamed2164(); | 1220 o.resources = buildUnnamed2198(); |
1221 } | 1221 } |
1222 buildCounterResourcesListResponse--; | 1222 buildCounterResourcesListResponse--; |
1223 return o; | 1223 return o; |
1224 } | 1224 } |
1225 | 1225 |
1226 checkResourcesListResponse(api.ResourcesListResponse o) { | 1226 checkResourcesListResponse(api.ResourcesListResponse o) { |
1227 buildCounterResourcesListResponse++; | 1227 buildCounterResourcesListResponse++; |
1228 if (buildCounterResourcesListResponse < 3) { | 1228 if (buildCounterResourcesListResponse < 3) { |
1229 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1229 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1230 checkUnnamed2164(o.resources); | 1230 checkUnnamed2198(o.resources); |
1231 } | 1231 } |
1232 buildCounterResourcesListResponse--; | 1232 buildCounterResourcesListResponse--; |
1233 } | 1233 } |
1234 | 1234 |
1235 buildUnnamed2165() { | 1235 buildUnnamed2199() { |
1236 var o = new core.List<api.Condition>(); | 1236 var o = new core.List<api.Condition>(); |
1237 o.add(buildCondition()); | 1237 o.add(buildCondition()); |
1238 o.add(buildCondition()); | 1238 o.add(buildCondition()); |
1239 return o; | 1239 return o; |
1240 } | 1240 } |
1241 | 1241 |
1242 checkUnnamed2165(core.List<api.Condition> o) { | 1242 checkUnnamed2199(core.List<api.Condition> o) { |
1243 unittest.expect(o, unittest.hasLength(2)); | 1243 unittest.expect(o, unittest.hasLength(2)); |
1244 checkCondition(o[0]); | 1244 checkCondition(o[0]); |
1245 checkCondition(o[1]); | 1245 checkCondition(o[1]); |
1246 } | 1246 } |
1247 | 1247 |
1248 buildUnnamed2166() { | 1248 buildUnnamed2200() { |
1249 var o = new core.List<core.String>(); | 1249 var o = new core.List<core.String>(); |
1250 o.add("foo"); | 1250 o.add("foo"); |
1251 o.add("foo"); | 1251 o.add("foo"); |
1252 return o; | 1252 return o; |
1253 } | 1253 } |
1254 | 1254 |
1255 checkUnnamed2166(core.List<core.String> o) { | 1255 checkUnnamed2200(core.List<core.String> o) { |
1256 unittest.expect(o, unittest.hasLength(2)); | 1256 unittest.expect(o, unittest.hasLength(2)); |
1257 unittest.expect(o[0], unittest.equals('foo')); | 1257 unittest.expect(o[0], unittest.equals('foo')); |
1258 unittest.expect(o[1], unittest.equals('foo')); | 1258 unittest.expect(o[1], unittest.equals('foo')); |
1259 } | 1259 } |
1260 | 1260 |
1261 buildUnnamed2167() { | 1261 buildUnnamed2201() { |
1262 var o = new core.List<api.LogConfig>(); | 1262 var o = new core.List<api.LogConfig>(); |
1263 o.add(buildLogConfig()); | 1263 o.add(buildLogConfig()); |
1264 o.add(buildLogConfig()); | 1264 o.add(buildLogConfig()); |
1265 return o; | 1265 return o; |
1266 } | 1266 } |
1267 | 1267 |
1268 checkUnnamed2167(core.List<api.LogConfig> o) { | 1268 checkUnnamed2201(core.List<api.LogConfig> o) { |
1269 unittest.expect(o, unittest.hasLength(2)); | 1269 unittest.expect(o, unittest.hasLength(2)); |
1270 checkLogConfig(o[0]); | 1270 checkLogConfig(o[0]); |
1271 checkLogConfig(o[1]); | 1271 checkLogConfig(o[1]); |
1272 } | 1272 } |
1273 | 1273 |
1274 buildUnnamed2168() { | 1274 buildUnnamed2202() { |
1275 var o = new core.List<core.String>(); | 1275 var o = new core.List<core.String>(); |
1276 o.add("foo"); | 1276 o.add("foo"); |
1277 o.add("foo"); | 1277 o.add("foo"); |
1278 return o; | 1278 return o; |
1279 } | 1279 } |
1280 | 1280 |
1281 checkUnnamed2168(core.List<core.String> o) { | 1281 checkUnnamed2202(core.List<core.String> o) { |
1282 unittest.expect(o, unittest.hasLength(2)); | 1282 unittest.expect(o, unittest.hasLength(2)); |
1283 unittest.expect(o[0], unittest.equals('foo')); | 1283 unittest.expect(o[0], unittest.equals('foo')); |
1284 unittest.expect(o[1], unittest.equals('foo')); | 1284 unittest.expect(o[1], unittest.equals('foo')); |
1285 } | 1285 } |
1286 | 1286 |
1287 buildUnnamed2169() { | 1287 buildUnnamed2203() { |
1288 var o = new core.List<core.String>(); | 1288 var o = new core.List<core.String>(); |
1289 o.add("foo"); | 1289 o.add("foo"); |
1290 o.add("foo"); | 1290 o.add("foo"); |
1291 return o; | 1291 return o; |
1292 } | 1292 } |
1293 | 1293 |
1294 checkUnnamed2169(core.List<core.String> o) { | 1294 checkUnnamed2203(core.List<core.String> o) { |
1295 unittest.expect(o, unittest.hasLength(2)); | 1295 unittest.expect(o, unittest.hasLength(2)); |
1296 unittest.expect(o[0], unittest.equals('foo')); | 1296 unittest.expect(o[0], unittest.equals('foo')); |
1297 unittest.expect(o[1], unittest.equals('foo')); | 1297 unittest.expect(o[1], unittest.equals('foo')); |
1298 } | 1298 } |
1299 | 1299 |
1300 core.int buildCounterRule = 0; | 1300 core.int buildCounterRule = 0; |
1301 buildRule() { | 1301 buildRule() { |
1302 var o = new api.Rule(); | 1302 var o = new api.Rule(); |
1303 buildCounterRule++; | 1303 buildCounterRule++; |
1304 if (buildCounterRule < 3) { | 1304 if (buildCounterRule < 3) { |
1305 o.action = "foo"; | 1305 o.action = "foo"; |
1306 o.conditions = buildUnnamed2165(); | 1306 o.conditions = buildUnnamed2199(); |
1307 o.description = "foo"; | 1307 o.description = "foo"; |
1308 o.ins = buildUnnamed2166(); | 1308 o.ins = buildUnnamed2200(); |
1309 o.logConfigs = buildUnnamed2167(); | 1309 o.logConfigs = buildUnnamed2201(); |
1310 o.notIns = buildUnnamed2168(); | 1310 o.notIns = buildUnnamed2202(); |
1311 o.permissions = buildUnnamed2169(); | 1311 o.permissions = buildUnnamed2203(); |
1312 } | 1312 } |
1313 buildCounterRule--; | 1313 buildCounterRule--; |
1314 return o; | 1314 return o; |
1315 } | 1315 } |
1316 | 1316 |
1317 checkRule(api.Rule o) { | 1317 checkRule(api.Rule o) { |
1318 buildCounterRule++; | 1318 buildCounterRule++; |
1319 if (buildCounterRule < 3) { | 1319 if (buildCounterRule < 3) { |
1320 unittest.expect(o.action, unittest.equals('foo')); | 1320 unittest.expect(o.action, unittest.equals('foo')); |
1321 checkUnnamed2165(o.conditions); | 1321 checkUnnamed2199(o.conditions); |
1322 unittest.expect(o.description, unittest.equals('foo')); | 1322 unittest.expect(o.description, unittest.equals('foo')); |
1323 checkUnnamed2166(o.ins); | 1323 checkUnnamed2200(o.ins); |
1324 checkUnnamed2167(o.logConfigs); | 1324 checkUnnamed2201(o.logConfigs); |
1325 checkUnnamed2168(o.notIns); | 1325 checkUnnamed2202(o.notIns); |
1326 checkUnnamed2169(o.permissions); | 1326 checkUnnamed2203(o.permissions); |
1327 } | 1327 } |
1328 buildCounterRule--; | 1328 buildCounterRule--; |
1329 } | 1329 } |
1330 | 1330 |
1331 buildUnnamed2170() { | 1331 buildUnnamed2204() { |
1332 var o = new core.List<api.ImportFile>(); | 1332 var o = new core.List<api.ImportFile>(); |
1333 o.add(buildImportFile()); | 1333 o.add(buildImportFile()); |
1334 o.add(buildImportFile()); | 1334 o.add(buildImportFile()); |
1335 return o; | 1335 return o; |
1336 } | 1336 } |
1337 | 1337 |
1338 checkUnnamed2170(core.List<api.ImportFile> o) { | 1338 checkUnnamed2204(core.List<api.ImportFile> o) { |
1339 unittest.expect(o, unittest.hasLength(2)); | 1339 unittest.expect(o, unittest.hasLength(2)); |
1340 checkImportFile(o[0]); | 1340 checkImportFile(o[0]); |
1341 checkImportFile(o[1]); | 1341 checkImportFile(o[1]); |
1342 } | 1342 } |
1343 | 1343 |
1344 core.int buildCounterTargetConfiguration = 0; | 1344 core.int buildCounterTargetConfiguration = 0; |
1345 buildTargetConfiguration() { | 1345 buildTargetConfiguration() { |
1346 var o = new api.TargetConfiguration(); | 1346 var o = new api.TargetConfiguration(); |
1347 buildCounterTargetConfiguration++; | 1347 buildCounterTargetConfiguration++; |
1348 if (buildCounterTargetConfiguration < 3) { | 1348 if (buildCounterTargetConfiguration < 3) { |
1349 o.config = buildConfigFile(); | 1349 o.config = buildConfigFile(); |
1350 o.imports = buildUnnamed2170(); | 1350 o.imports = buildUnnamed2204(); |
1351 } | 1351 } |
1352 buildCounterTargetConfiguration--; | 1352 buildCounterTargetConfiguration--; |
1353 return o; | 1353 return o; |
1354 } | 1354 } |
1355 | 1355 |
1356 checkTargetConfiguration(api.TargetConfiguration o) { | 1356 checkTargetConfiguration(api.TargetConfiguration o) { |
1357 buildCounterTargetConfiguration++; | 1357 buildCounterTargetConfiguration++; |
1358 if (buildCounterTargetConfiguration < 3) { | 1358 if (buildCounterTargetConfiguration < 3) { |
1359 checkConfigFile(o.config); | 1359 checkConfigFile(o.config); |
1360 checkUnnamed2170(o.imports); | 1360 checkUnnamed2204(o.imports); |
1361 } | 1361 } |
1362 buildCounterTargetConfiguration--; | 1362 buildCounterTargetConfiguration--; |
1363 } | 1363 } |
1364 | 1364 |
1365 buildUnnamed2171() { | 1365 buildUnnamed2205() { |
1366 var o = new core.List<core.String>(); | 1366 var o = new core.List<core.String>(); |
1367 o.add("foo"); | 1367 o.add("foo"); |
1368 o.add("foo"); | 1368 o.add("foo"); |
1369 return o; | 1369 return o; |
1370 } | 1370 } |
1371 | 1371 |
1372 checkUnnamed2171(core.List<core.String> o) { | 1372 checkUnnamed2205(core.List<core.String> o) { |
1373 unittest.expect(o, unittest.hasLength(2)); | 1373 unittest.expect(o, unittest.hasLength(2)); |
1374 unittest.expect(o[0], unittest.equals('foo')); | 1374 unittest.expect(o[0], unittest.equals('foo')); |
1375 unittest.expect(o[1], unittest.equals('foo')); | 1375 unittest.expect(o[1], unittest.equals('foo')); |
1376 } | 1376 } |
1377 | 1377 |
1378 core.int buildCounterTestPermissionsRequest = 0; | 1378 core.int buildCounterTestPermissionsRequest = 0; |
1379 buildTestPermissionsRequest() { | 1379 buildTestPermissionsRequest() { |
1380 var o = new api.TestPermissionsRequest(); | 1380 var o = new api.TestPermissionsRequest(); |
1381 buildCounterTestPermissionsRequest++; | 1381 buildCounterTestPermissionsRequest++; |
1382 if (buildCounterTestPermissionsRequest < 3) { | 1382 if (buildCounterTestPermissionsRequest < 3) { |
1383 o.permissions = buildUnnamed2171(); | 1383 o.permissions = buildUnnamed2205(); |
1384 } | 1384 } |
1385 buildCounterTestPermissionsRequest--; | 1385 buildCounterTestPermissionsRequest--; |
1386 return o; | 1386 return o; |
1387 } | 1387 } |
1388 | 1388 |
1389 checkTestPermissionsRequest(api.TestPermissionsRequest o) { | 1389 checkTestPermissionsRequest(api.TestPermissionsRequest o) { |
1390 buildCounterTestPermissionsRequest++; | 1390 buildCounterTestPermissionsRequest++; |
1391 if (buildCounterTestPermissionsRequest < 3) { | 1391 if (buildCounterTestPermissionsRequest < 3) { |
1392 checkUnnamed2171(o.permissions); | 1392 checkUnnamed2205(o.permissions); |
1393 } | 1393 } |
1394 buildCounterTestPermissionsRequest--; | 1394 buildCounterTestPermissionsRequest--; |
1395 } | 1395 } |
1396 | 1396 |
1397 buildUnnamed2172() { | 1397 buildUnnamed2206() { |
1398 var o = new core.List<core.String>(); | 1398 var o = new core.List<core.String>(); |
1399 o.add("foo"); | 1399 o.add("foo"); |
1400 o.add("foo"); | 1400 o.add("foo"); |
1401 return o; | 1401 return o; |
1402 } | 1402 } |
1403 | 1403 |
1404 checkUnnamed2172(core.List<core.String> o) { | 1404 checkUnnamed2206(core.List<core.String> o) { |
1405 unittest.expect(o, unittest.hasLength(2)); | 1405 unittest.expect(o, unittest.hasLength(2)); |
1406 unittest.expect(o[0], unittest.equals('foo')); | 1406 unittest.expect(o[0], unittest.equals('foo')); |
1407 unittest.expect(o[1], unittest.equals('foo')); | 1407 unittest.expect(o[1], unittest.equals('foo')); |
1408 } | 1408 } |
1409 | 1409 |
1410 core.int buildCounterTestPermissionsResponse = 0; | 1410 core.int buildCounterTestPermissionsResponse = 0; |
1411 buildTestPermissionsResponse() { | 1411 buildTestPermissionsResponse() { |
1412 var o = new api.TestPermissionsResponse(); | 1412 var o = new api.TestPermissionsResponse(); |
1413 buildCounterTestPermissionsResponse++; | 1413 buildCounterTestPermissionsResponse++; |
1414 if (buildCounterTestPermissionsResponse < 3) { | 1414 if (buildCounterTestPermissionsResponse < 3) { |
1415 o.permissions = buildUnnamed2172(); | 1415 o.permissions = buildUnnamed2206(); |
1416 } | 1416 } |
1417 buildCounterTestPermissionsResponse--; | 1417 buildCounterTestPermissionsResponse--; |
1418 return o; | 1418 return o; |
1419 } | 1419 } |
1420 | 1420 |
1421 checkTestPermissionsResponse(api.TestPermissionsResponse o) { | 1421 checkTestPermissionsResponse(api.TestPermissionsResponse o) { |
1422 buildCounterTestPermissionsResponse++; | 1422 buildCounterTestPermissionsResponse++; |
1423 if (buildCounterTestPermissionsResponse < 3) { | 1423 if (buildCounterTestPermissionsResponse < 3) { |
1424 checkUnnamed2172(o.permissions); | 1424 checkUnnamed2206(o.permissions); |
1425 } | 1425 } |
1426 buildCounterTestPermissionsResponse--; | 1426 buildCounterTestPermissionsResponse--; |
1427 } | 1427 } |
1428 | 1428 |
1429 core.int buildCounterType = 0; | 1429 core.int buildCounterType = 0; |
1430 buildType() { | 1430 buildType() { |
1431 var o = new api.Type(); | 1431 var o = new api.Type(); |
1432 buildCounterType++; | 1432 buildCounterType++; |
1433 if (buildCounterType < 3) { | 1433 if (buildCounterType < 3) { |
1434 o.id = "foo"; | 1434 o.id = "foo"; |
(...skipping 11 matching lines...) Expand all Loading... |
1446 if (buildCounterType < 3) { | 1446 if (buildCounterType < 3) { |
1447 unittest.expect(o.id, unittest.equals('foo')); | 1447 unittest.expect(o.id, unittest.equals('foo')); |
1448 unittest.expect(o.insertTime, unittest.equals('foo')); | 1448 unittest.expect(o.insertTime, unittest.equals('foo')); |
1449 unittest.expect(o.name, unittest.equals('foo')); | 1449 unittest.expect(o.name, unittest.equals('foo')); |
1450 checkOperation(o.operation); | 1450 checkOperation(o.operation); |
1451 unittest.expect(o.selfLink, unittest.equals('foo')); | 1451 unittest.expect(o.selfLink, unittest.equals('foo')); |
1452 } | 1452 } |
1453 buildCounterType--; | 1453 buildCounterType--; |
1454 } | 1454 } |
1455 | 1455 |
1456 buildUnnamed2173() { | 1456 buildUnnamed2207() { |
1457 var o = new core.List<api.Type>(); | 1457 var o = new core.List<api.Type>(); |
1458 o.add(buildType()); | 1458 o.add(buildType()); |
1459 o.add(buildType()); | 1459 o.add(buildType()); |
1460 return o; | 1460 return o; |
1461 } | 1461 } |
1462 | 1462 |
1463 checkUnnamed2173(core.List<api.Type> o) { | 1463 checkUnnamed2207(core.List<api.Type> o) { |
1464 unittest.expect(o, unittest.hasLength(2)); | 1464 unittest.expect(o, unittest.hasLength(2)); |
1465 checkType(o[0]); | 1465 checkType(o[0]); |
1466 checkType(o[1]); | 1466 checkType(o[1]); |
1467 } | 1467 } |
1468 | 1468 |
1469 core.int buildCounterTypesListResponse = 0; | 1469 core.int buildCounterTypesListResponse = 0; |
1470 buildTypesListResponse() { | 1470 buildTypesListResponse() { |
1471 var o = new api.TypesListResponse(); | 1471 var o = new api.TypesListResponse(); |
1472 buildCounterTypesListResponse++; | 1472 buildCounterTypesListResponse++; |
1473 if (buildCounterTypesListResponse < 3) { | 1473 if (buildCounterTypesListResponse < 3) { |
1474 o.nextPageToken = "foo"; | 1474 o.nextPageToken = "foo"; |
1475 o.types = buildUnnamed2173(); | 1475 o.types = buildUnnamed2207(); |
1476 } | 1476 } |
1477 buildCounterTypesListResponse--; | 1477 buildCounterTypesListResponse--; |
1478 return o; | 1478 return o; |
1479 } | 1479 } |
1480 | 1480 |
1481 checkTypesListResponse(api.TypesListResponse o) { | 1481 checkTypesListResponse(api.TypesListResponse o) { |
1482 buildCounterTypesListResponse++; | 1482 buildCounterTypesListResponse++; |
1483 if (buildCounterTypesListResponse < 3) { | 1483 if (buildCounterTypesListResponse < 3) { |
1484 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1484 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1485 checkUnnamed2173(o.types); | 1485 checkUnnamed2207(o.types); |
1486 } | 1486 } |
1487 buildCounterTypesListResponse--; | 1487 buildCounterTypesListResponse--; |
1488 } | 1488 } |
1489 | 1489 |
1490 | 1490 |
1491 main() { | 1491 main() { |
1492 unittest.group("obj-schema-AuditConfig", () { | 1492 unittest.group("obj-schema-AuditConfig", () { |
1493 unittest.test("to-json--from-json", () { | 1493 unittest.test("to-json--from-json", () { |
1494 var o = buildAuditConfig(); | 1494 var o = buildAuditConfig(); |
1495 var od = new api.AuditConfig.fromJson(o.toJson()); | 1495 var od = new api.AuditConfig.fromJson(o.toJson()); |
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2738 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Typ
esListResponse response) { | 2738 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Typ
esListResponse response) { |
2739 checkTypesListResponse(response); | 2739 checkTypesListResponse(response); |
2740 }))); | 2740 }))); |
2741 }); | 2741 }); |
2742 | 2742 |
2743 }); | 2743 }); |
2744 | 2744 |
2745 | 2745 |
2746 } | 2746 } |
2747 | 2747 |
OLD | NEW |