| 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:test/test.dart' as unittest; |
| 11 | 11 |
| 12 import 'package:googleapis/deploymentmanager/v2.dart' as api; | 12 import 'package:googleapis/deploymentmanager/v2.dart' as api; |
| 13 | 13 |
| 14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; | 15 core.Function _callback; |
| 16 core.bool _expectJson; | 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; | 19 _callback = callback; |
| 20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 } else { | 39 } else { |
| 40 return stream.toBytes().then((data) { | 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); | 41 return _callback(request, data); |
| 42 }); | 42 }); |
| 43 } | 43 } |
| 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<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 buildUnnamed2045() { | 54 buildUnnamed2056() { |
| 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 checkUnnamed2045(core.List<api.AuditLogConfig> o) { | 61 checkUnnamed2056(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 buildUnnamed2046() { | 67 buildUnnamed2057() { |
| 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 checkUnnamed2046(core.List<core.String> o) { | 74 checkUnnamed2057(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 = buildUnnamed2045(); | 85 o.auditLogConfigs = buildUnnamed2056(); |
| 86 o.exemptedMembers = buildUnnamed2046(); | 86 o.exemptedMembers = buildUnnamed2057(); |
| 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 checkUnnamed2045(o.auditLogConfigs); | 96 checkUnnamed2056(o.auditLogConfigs); |
| 97 checkUnnamed2046(o.exemptedMembers); | 97 checkUnnamed2057(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 buildUnnamed2047() { | 103 buildUnnamed2058() { |
| 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 checkUnnamed2047(core.List<core.String> o) { | 110 checkUnnamed2058(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 = buildUnnamed2047(); | 121 o.exemptedMembers = buildUnnamed2058(); |
| 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 checkUnnamed2047(o.exemptedMembers); | 131 checkUnnamed2058(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 buildUnnamed2048() { | 137 buildUnnamed2059() { |
| 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 checkUnnamed2048(core.List<core.String> o) { | 144 checkUnnamed2059(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 = buildUnnamed2048(); | 155 o.members = buildUnnamed2059(); |
| 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 checkUnnamed2048(o.members); | 165 checkUnnamed2059(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 buildUnnamed2049() { | 171 buildUnnamed2060() { |
| 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 checkUnnamed2049(core.List<core.String> o) { | 178 checkUnnamed2060(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 = buildUnnamed2049(); | 194 o.values = buildUnnamed2060(); |
| 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 checkUnnamed2049(o.values); | 208 checkUnnamed2060(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 buildUnnamed2050() { | 232 buildUnnamed2061() { |
| 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 checkUnnamed2050(core.List<api.DeploymentLabelEntry> o) { | 239 checkUnnamed2061(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 = buildUnnamed2050(); | 254 o.labels = buildUnnamed2061(); |
| 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 checkUnnamed2050(o.labels); | 273 checkUnnamed2061(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 buildUnnamed2051() { | 305 buildUnnamed2062() { |
| 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 checkUnnamed2051(core.List<api.DeploymentUpdateLabelEntry> o) { | 312 checkUnnamed2062(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.description = "foo"; | 323 o.description = "foo"; |
| 324 o.labels = buildUnnamed2051(); | 324 o.labels = buildUnnamed2062(); |
| 325 o.manifest = "foo"; | 325 o.manifest = "foo"; |
| 326 } | 326 } |
| 327 buildCounterDeploymentUpdate--; | 327 buildCounterDeploymentUpdate--; |
| 328 return o; | 328 return o; |
| 329 } | 329 } |
| 330 | 330 |
| 331 checkDeploymentUpdate(api.DeploymentUpdate o) { | 331 checkDeploymentUpdate(api.DeploymentUpdate o) { |
| 332 buildCounterDeploymentUpdate++; | 332 buildCounterDeploymentUpdate++; |
| 333 if (buildCounterDeploymentUpdate < 3) { | 333 if (buildCounterDeploymentUpdate < 3) { |
| 334 unittest.expect(o.description, unittest.equals('foo')); | 334 unittest.expect(o.description, unittest.equals('foo')); |
| 335 checkUnnamed2051(o.labels); | 335 checkUnnamed2062(o.labels); |
| 336 unittest.expect(o.manifest, unittest.equals('foo')); | 336 unittest.expect(o.manifest, unittest.equals('foo')); |
| 337 } | 337 } |
| 338 buildCounterDeploymentUpdate--; | 338 buildCounterDeploymentUpdate--; |
| 339 } | 339 } |
| 340 | 340 |
| 341 core.int buildCounterDeploymentUpdateLabelEntry = 0; | 341 core.int buildCounterDeploymentUpdateLabelEntry = 0; |
| 342 buildDeploymentUpdateLabelEntry() { | 342 buildDeploymentUpdateLabelEntry() { |
| 343 var o = new api.DeploymentUpdateLabelEntry(); | 343 var o = new api.DeploymentUpdateLabelEntry(); |
| 344 buildCounterDeploymentUpdateLabelEntry++; | 344 buildCounterDeploymentUpdateLabelEntry++; |
| 345 if (buildCounterDeploymentUpdateLabelEntry < 3) { | 345 if (buildCounterDeploymentUpdateLabelEntry < 3) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 371 } | 371 } |
| 372 | 372 |
| 373 checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) { | 373 checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) { |
| 374 buildCounterDeploymentsCancelPreviewRequest++; | 374 buildCounterDeploymentsCancelPreviewRequest++; |
| 375 if (buildCounterDeploymentsCancelPreviewRequest < 3) { | 375 if (buildCounterDeploymentsCancelPreviewRequest < 3) { |
| 376 unittest.expect(o.fingerprint, unittest.equals('foo')); | 376 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 377 } | 377 } |
| 378 buildCounterDeploymentsCancelPreviewRequest--; | 378 buildCounterDeploymentsCancelPreviewRequest--; |
| 379 } | 379 } |
| 380 | 380 |
| 381 buildUnnamed2052() { | 381 buildUnnamed2063() { |
| 382 var o = new core.List<api.Deployment>(); | 382 var o = new core.List<api.Deployment>(); |
| 383 o.add(buildDeployment()); | 383 o.add(buildDeployment()); |
| 384 o.add(buildDeployment()); | 384 o.add(buildDeployment()); |
| 385 return o; | 385 return o; |
| 386 } | 386 } |
| 387 | 387 |
| 388 checkUnnamed2052(core.List<api.Deployment> o) { | 388 checkUnnamed2063(core.List<api.Deployment> o) { |
| 389 unittest.expect(o, unittest.hasLength(2)); | 389 unittest.expect(o, unittest.hasLength(2)); |
| 390 checkDeployment(o[0]); | 390 checkDeployment(o[0]); |
| 391 checkDeployment(o[1]); | 391 checkDeployment(o[1]); |
| 392 } | 392 } |
| 393 | 393 |
| 394 core.int buildCounterDeploymentsListResponse = 0; | 394 core.int buildCounterDeploymentsListResponse = 0; |
| 395 buildDeploymentsListResponse() { | 395 buildDeploymentsListResponse() { |
| 396 var o = new api.DeploymentsListResponse(); | 396 var o = new api.DeploymentsListResponse(); |
| 397 buildCounterDeploymentsListResponse++; | 397 buildCounterDeploymentsListResponse++; |
| 398 if (buildCounterDeploymentsListResponse < 3) { | 398 if (buildCounterDeploymentsListResponse < 3) { |
| 399 o.deployments = buildUnnamed2052(); | 399 o.deployments = buildUnnamed2063(); |
| 400 o.nextPageToken = "foo"; | 400 o.nextPageToken = "foo"; |
| 401 } | 401 } |
| 402 buildCounterDeploymentsListResponse--; | 402 buildCounterDeploymentsListResponse--; |
| 403 return o; | 403 return o; |
| 404 } | 404 } |
| 405 | 405 |
| 406 checkDeploymentsListResponse(api.DeploymentsListResponse o) { | 406 checkDeploymentsListResponse(api.DeploymentsListResponse o) { |
| 407 buildCounterDeploymentsListResponse++; | 407 buildCounterDeploymentsListResponse++; |
| 408 if (buildCounterDeploymentsListResponse < 3) { | 408 if (buildCounterDeploymentsListResponse < 3) { |
| 409 checkUnnamed2052(o.deployments); | 409 checkUnnamed2063(o.deployments); |
| 410 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 410 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 411 } | 411 } |
| 412 buildCounterDeploymentsListResponse--; | 412 buildCounterDeploymentsListResponse--; |
| 413 } | 413 } |
| 414 | 414 |
| 415 core.int buildCounterDeploymentsStopRequest = 0; | 415 core.int buildCounterDeploymentsStopRequest = 0; |
| 416 buildDeploymentsStopRequest() { | 416 buildDeploymentsStopRequest() { |
| 417 var o = new api.DeploymentsStopRequest(); | 417 var o = new api.DeploymentsStopRequest(); |
| 418 buildCounterDeploymentsStopRequest++; | 418 buildCounterDeploymentsStopRequest++; |
| 419 if (buildCounterDeploymentsStopRequest < 3) { | 419 if (buildCounterDeploymentsStopRequest < 3) { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 | 485 |
| 486 checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { | 486 checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { |
| 487 buildCounterLogConfigCounterOptions++; | 487 buildCounterLogConfigCounterOptions++; |
| 488 if (buildCounterLogConfigCounterOptions < 3) { | 488 if (buildCounterLogConfigCounterOptions < 3) { |
| 489 unittest.expect(o.field, unittest.equals('foo')); | 489 unittest.expect(o.field, unittest.equals('foo')); |
| 490 unittest.expect(o.metric, unittest.equals('foo')); | 490 unittest.expect(o.metric, unittest.equals('foo')); |
| 491 } | 491 } |
| 492 buildCounterLogConfigCounterOptions--; | 492 buildCounterLogConfigCounterOptions--; |
| 493 } | 493 } |
| 494 | 494 |
| 495 buildUnnamed2053() { | 495 buildUnnamed2064() { |
| 496 var o = new core.List<api.ImportFile>(); | 496 var o = new core.List<api.ImportFile>(); |
| 497 o.add(buildImportFile()); | 497 o.add(buildImportFile()); |
| 498 o.add(buildImportFile()); | 498 o.add(buildImportFile()); |
| 499 return o; | 499 return o; |
| 500 } | 500 } |
| 501 | 501 |
| 502 checkUnnamed2053(core.List<api.ImportFile> o) { | 502 checkUnnamed2064(core.List<api.ImportFile> o) { |
| 503 unittest.expect(o, unittest.hasLength(2)); | 503 unittest.expect(o, unittest.hasLength(2)); |
| 504 checkImportFile(o[0]); | 504 checkImportFile(o[0]); |
| 505 checkImportFile(o[1]); | 505 checkImportFile(o[1]); |
| 506 } | 506 } |
| 507 | 507 |
| 508 core.int buildCounterManifest = 0; | 508 core.int buildCounterManifest = 0; |
| 509 buildManifest() { | 509 buildManifest() { |
| 510 var o = new api.Manifest(); | 510 var o = new api.Manifest(); |
| 511 buildCounterManifest++; | 511 buildCounterManifest++; |
| 512 if (buildCounterManifest < 3) { | 512 if (buildCounterManifest < 3) { |
| 513 o.config = buildConfigFile(); | 513 o.config = buildConfigFile(); |
| 514 o.expandedConfig = "foo"; | 514 o.expandedConfig = "foo"; |
| 515 o.id = "foo"; | 515 o.id = "foo"; |
| 516 o.imports = buildUnnamed2053(); | 516 o.imports = buildUnnamed2064(); |
| 517 o.insertTime = "foo"; | 517 o.insertTime = "foo"; |
| 518 o.layout = "foo"; | 518 o.layout = "foo"; |
| 519 o.name = "foo"; | 519 o.name = "foo"; |
| 520 o.selfLink = "foo"; | 520 o.selfLink = "foo"; |
| 521 } | 521 } |
| 522 buildCounterManifest--; | 522 buildCounterManifest--; |
| 523 return o; | 523 return o; |
| 524 } | 524 } |
| 525 | 525 |
| 526 checkManifest(api.Manifest o) { | 526 checkManifest(api.Manifest o) { |
| 527 buildCounterManifest++; | 527 buildCounterManifest++; |
| 528 if (buildCounterManifest < 3) { | 528 if (buildCounterManifest < 3) { |
| 529 checkConfigFile(o.config); | 529 checkConfigFile(o.config); |
| 530 unittest.expect(o.expandedConfig, unittest.equals('foo')); | 530 unittest.expect(o.expandedConfig, unittest.equals('foo')); |
| 531 unittest.expect(o.id, unittest.equals('foo')); | 531 unittest.expect(o.id, unittest.equals('foo')); |
| 532 checkUnnamed2053(o.imports); | 532 checkUnnamed2064(o.imports); |
| 533 unittest.expect(o.insertTime, unittest.equals('foo')); | 533 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 534 unittest.expect(o.layout, unittest.equals('foo')); | 534 unittest.expect(o.layout, unittest.equals('foo')); |
| 535 unittest.expect(o.name, unittest.equals('foo')); | 535 unittest.expect(o.name, unittest.equals('foo')); |
| 536 unittest.expect(o.selfLink, unittest.equals('foo')); | 536 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 537 } | 537 } |
| 538 buildCounterManifest--; | 538 buildCounterManifest--; |
| 539 } | 539 } |
| 540 | 540 |
| 541 buildUnnamed2054() { | 541 buildUnnamed2065() { |
| 542 var o = new core.List<api.Manifest>(); | 542 var o = new core.List<api.Manifest>(); |
| 543 o.add(buildManifest()); | 543 o.add(buildManifest()); |
| 544 o.add(buildManifest()); | 544 o.add(buildManifest()); |
| 545 return o; | 545 return o; |
| 546 } | 546 } |
| 547 | 547 |
| 548 checkUnnamed2054(core.List<api.Manifest> o) { | 548 checkUnnamed2065(core.List<api.Manifest> o) { |
| 549 unittest.expect(o, unittest.hasLength(2)); | 549 unittest.expect(o, unittest.hasLength(2)); |
| 550 checkManifest(o[0]); | 550 checkManifest(o[0]); |
| 551 checkManifest(o[1]); | 551 checkManifest(o[1]); |
| 552 } | 552 } |
| 553 | 553 |
| 554 core.int buildCounterManifestsListResponse = 0; | 554 core.int buildCounterManifestsListResponse = 0; |
| 555 buildManifestsListResponse() { | 555 buildManifestsListResponse() { |
| 556 var o = new api.ManifestsListResponse(); | 556 var o = new api.ManifestsListResponse(); |
| 557 buildCounterManifestsListResponse++; | 557 buildCounterManifestsListResponse++; |
| 558 if (buildCounterManifestsListResponse < 3) { | 558 if (buildCounterManifestsListResponse < 3) { |
| 559 o.manifests = buildUnnamed2054(); | 559 o.manifests = buildUnnamed2065(); |
| 560 o.nextPageToken = "foo"; | 560 o.nextPageToken = "foo"; |
| 561 } | 561 } |
| 562 buildCounterManifestsListResponse--; | 562 buildCounterManifestsListResponse--; |
| 563 return o; | 563 return o; |
| 564 } | 564 } |
| 565 | 565 |
| 566 checkManifestsListResponse(api.ManifestsListResponse o) { | 566 checkManifestsListResponse(api.ManifestsListResponse o) { |
| 567 buildCounterManifestsListResponse++; | 567 buildCounterManifestsListResponse++; |
| 568 if (buildCounterManifestsListResponse < 3) { | 568 if (buildCounterManifestsListResponse < 3) { |
| 569 checkUnnamed2054(o.manifests); | 569 checkUnnamed2065(o.manifests); |
| 570 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 570 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 571 } | 571 } |
| 572 buildCounterManifestsListResponse--; | 572 buildCounterManifestsListResponse--; |
| 573 } | 573 } |
| 574 | 574 |
| 575 core.int buildCounterOperationErrorErrors = 0; | 575 core.int buildCounterOperationErrorErrors = 0; |
| 576 buildOperationErrorErrors() { | 576 buildOperationErrorErrors() { |
| 577 var o = new api.OperationErrorErrors(); | 577 var o = new api.OperationErrorErrors(); |
| 578 buildCounterOperationErrorErrors++; | 578 buildCounterOperationErrorErrors++; |
| 579 if (buildCounterOperationErrorErrors < 3) { | 579 if (buildCounterOperationErrorErrors < 3) { |
| 580 o.code = "foo"; | 580 o.code = "foo"; |
| 581 o.location = "foo"; | 581 o.location = "foo"; |
| 582 o.message = "foo"; | 582 o.message = "foo"; |
| 583 } | 583 } |
| 584 buildCounterOperationErrorErrors--; | 584 buildCounterOperationErrorErrors--; |
| 585 return o; | 585 return o; |
| 586 } | 586 } |
| 587 | 587 |
| 588 checkOperationErrorErrors(api.OperationErrorErrors o) { | 588 checkOperationErrorErrors(api.OperationErrorErrors o) { |
| 589 buildCounterOperationErrorErrors++; | 589 buildCounterOperationErrorErrors++; |
| 590 if (buildCounterOperationErrorErrors < 3) { | 590 if (buildCounterOperationErrorErrors < 3) { |
| 591 unittest.expect(o.code, unittest.equals('foo')); | 591 unittest.expect(o.code, unittest.equals('foo')); |
| 592 unittest.expect(o.location, unittest.equals('foo')); | 592 unittest.expect(o.location, unittest.equals('foo')); |
| 593 unittest.expect(o.message, unittest.equals('foo')); | 593 unittest.expect(o.message, unittest.equals('foo')); |
| 594 } | 594 } |
| 595 buildCounterOperationErrorErrors--; | 595 buildCounterOperationErrorErrors--; |
| 596 } | 596 } |
| 597 | 597 |
| 598 buildUnnamed2055() { | 598 buildUnnamed2066() { |
| 599 var o = new core.List<api.OperationErrorErrors>(); | 599 var o = new core.List<api.OperationErrorErrors>(); |
| 600 o.add(buildOperationErrorErrors()); | 600 o.add(buildOperationErrorErrors()); |
| 601 o.add(buildOperationErrorErrors()); | 601 o.add(buildOperationErrorErrors()); |
| 602 return o; | 602 return o; |
| 603 } | 603 } |
| 604 | 604 |
| 605 checkUnnamed2055(core.List<api.OperationErrorErrors> o) { | 605 checkUnnamed2066(core.List<api.OperationErrorErrors> o) { |
| 606 unittest.expect(o, unittest.hasLength(2)); | 606 unittest.expect(o, unittest.hasLength(2)); |
| 607 checkOperationErrorErrors(o[0]); | 607 checkOperationErrorErrors(o[0]); |
| 608 checkOperationErrorErrors(o[1]); | 608 checkOperationErrorErrors(o[1]); |
| 609 } | 609 } |
| 610 | 610 |
| 611 core.int buildCounterOperationError = 0; | 611 core.int buildCounterOperationError = 0; |
| 612 buildOperationError() { | 612 buildOperationError() { |
| 613 var o = new api.OperationError(); | 613 var o = new api.OperationError(); |
| 614 buildCounterOperationError++; | 614 buildCounterOperationError++; |
| 615 if (buildCounterOperationError < 3) { | 615 if (buildCounterOperationError < 3) { |
| 616 o.errors = buildUnnamed2055(); | 616 o.errors = buildUnnamed2066(); |
| 617 } | 617 } |
| 618 buildCounterOperationError--; | 618 buildCounterOperationError--; |
| 619 return o; | 619 return o; |
| 620 } | 620 } |
| 621 | 621 |
| 622 checkOperationError(api.OperationError o) { | 622 checkOperationError(api.OperationError o) { |
| 623 buildCounterOperationError++; | 623 buildCounterOperationError++; |
| 624 if (buildCounterOperationError < 3) { | 624 if (buildCounterOperationError < 3) { |
| 625 checkUnnamed2055(o.errors); | 625 checkUnnamed2066(o.errors); |
| 626 } | 626 } |
| 627 buildCounterOperationError--; | 627 buildCounterOperationError--; |
| 628 } | 628 } |
| 629 | 629 |
| 630 core.int buildCounterOperationWarningsData = 0; | 630 core.int buildCounterOperationWarningsData = 0; |
| 631 buildOperationWarningsData() { | 631 buildOperationWarningsData() { |
| 632 var o = new api.OperationWarningsData(); | 632 var o = new api.OperationWarningsData(); |
| 633 buildCounterOperationWarningsData++; | 633 buildCounterOperationWarningsData++; |
| 634 if (buildCounterOperationWarningsData < 3) { | 634 if (buildCounterOperationWarningsData < 3) { |
| 635 o.key = "foo"; | 635 o.key = "foo"; |
| 636 o.value = "foo"; | 636 o.value = "foo"; |
| 637 } | 637 } |
| 638 buildCounterOperationWarningsData--; | 638 buildCounterOperationWarningsData--; |
| 639 return o; | 639 return o; |
| 640 } | 640 } |
| 641 | 641 |
| 642 checkOperationWarningsData(api.OperationWarningsData o) { | 642 checkOperationWarningsData(api.OperationWarningsData o) { |
| 643 buildCounterOperationWarningsData++; | 643 buildCounterOperationWarningsData++; |
| 644 if (buildCounterOperationWarningsData < 3) { | 644 if (buildCounterOperationWarningsData < 3) { |
| 645 unittest.expect(o.key, unittest.equals('foo')); | 645 unittest.expect(o.key, unittest.equals('foo')); |
| 646 unittest.expect(o.value, unittest.equals('foo')); | 646 unittest.expect(o.value, unittest.equals('foo')); |
| 647 } | 647 } |
| 648 buildCounterOperationWarningsData--; | 648 buildCounterOperationWarningsData--; |
| 649 } | 649 } |
| 650 | 650 |
| 651 buildUnnamed2056() { | 651 buildUnnamed2067() { |
| 652 var o = new core.List<api.OperationWarningsData>(); | 652 var o = new core.List<api.OperationWarningsData>(); |
| 653 o.add(buildOperationWarningsData()); | 653 o.add(buildOperationWarningsData()); |
| 654 o.add(buildOperationWarningsData()); | 654 o.add(buildOperationWarningsData()); |
| 655 return o; | 655 return o; |
| 656 } | 656 } |
| 657 | 657 |
| 658 checkUnnamed2056(core.List<api.OperationWarningsData> o) { | 658 checkUnnamed2067(core.List<api.OperationWarningsData> o) { |
| 659 unittest.expect(o, unittest.hasLength(2)); | 659 unittest.expect(o, unittest.hasLength(2)); |
| 660 checkOperationWarningsData(o[0]); | 660 checkOperationWarningsData(o[0]); |
| 661 checkOperationWarningsData(o[1]); | 661 checkOperationWarningsData(o[1]); |
| 662 } | 662 } |
| 663 | 663 |
| 664 core.int buildCounterOperationWarnings = 0; | 664 core.int buildCounterOperationWarnings = 0; |
| 665 buildOperationWarnings() { | 665 buildOperationWarnings() { |
| 666 var o = new api.OperationWarnings(); | 666 var o = new api.OperationWarnings(); |
| 667 buildCounterOperationWarnings++; | 667 buildCounterOperationWarnings++; |
| 668 if (buildCounterOperationWarnings < 3) { | 668 if (buildCounterOperationWarnings < 3) { |
| 669 o.code = "foo"; | 669 o.code = "foo"; |
| 670 o.data = buildUnnamed2056(); | 670 o.data = buildUnnamed2067(); |
| 671 o.message = "foo"; | 671 o.message = "foo"; |
| 672 } | 672 } |
| 673 buildCounterOperationWarnings--; | 673 buildCounterOperationWarnings--; |
| 674 return o; | 674 return o; |
| 675 } | 675 } |
| 676 | 676 |
| 677 checkOperationWarnings(api.OperationWarnings o) { | 677 checkOperationWarnings(api.OperationWarnings o) { |
| 678 buildCounterOperationWarnings++; | 678 buildCounterOperationWarnings++; |
| 679 if (buildCounterOperationWarnings < 3) { | 679 if (buildCounterOperationWarnings < 3) { |
| 680 unittest.expect(o.code, unittest.equals('foo')); | 680 unittest.expect(o.code, unittest.equals('foo')); |
| 681 checkUnnamed2056(o.data); | 681 checkUnnamed2067(o.data); |
| 682 unittest.expect(o.message, unittest.equals('foo')); | 682 unittest.expect(o.message, unittest.equals('foo')); |
| 683 } | 683 } |
| 684 buildCounterOperationWarnings--; | 684 buildCounterOperationWarnings--; |
| 685 } | 685 } |
| 686 | 686 |
| 687 buildUnnamed2057() { | 687 buildUnnamed2068() { |
| 688 var o = new core.List<api.OperationWarnings>(); | 688 var o = new core.List<api.OperationWarnings>(); |
| 689 o.add(buildOperationWarnings()); | 689 o.add(buildOperationWarnings()); |
| 690 o.add(buildOperationWarnings()); | 690 o.add(buildOperationWarnings()); |
| 691 return o; | 691 return o; |
| 692 } | 692 } |
| 693 | 693 |
| 694 checkUnnamed2057(core.List<api.OperationWarnings> o) { | 694 checkUnnamed2068(core.List<api.OperationWarnings> o) { |
| 695 unittest.expect(o, unittest.hasLength(2)); | 695 unittest.expect(o, unittest.hasLength(2)); |
| 696 checkOperationWarnings(o[0]); | 696 checkOperationWarnings(o[0]); |
| 697 checkOperationWarnings(o[1]); | 697 checkOperationWarnings(o[1]); |
| 698 } | 698 } |
| 699 | 699 |
| 700 core.int buildCounterOperation = 0; | 700 core.int buildCounterOperation = 0; |
| 701 buildOperation() { | 701 buildOperation() { |
| 702 var o = new api.Operation(); | 702 var o = new api.Operation(); |
| 703 buildCounterOperation++; | 703 buildCounterOperation++; |
| 704 if (buildCounterOperation < 3) { | 704 if (buildCounterOperation < 3) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 716 o.operationType = "foo"; | 716 o.operationType = "foo"; |
| 717 o.progress = 42; | 717 o.progress = 42; |
| 718 o.region = "foo"; | 718 o.region = "foo"; |
| 719 o.selfLink = "foo"; | 719 o.selfLink = "foo"; |
| 720 o.startTime = "foo"; | 720 o.startTime = "foo"; |
| 721 o.status = "foo"; | 721 o.status = "foo"; |
| 722 o.statusMessage = "foo"; | 722 o.statusMessage = "foo"; |
| 723 o.targetId = "foo"; | 723 o.targetId = "foo"; |
| 724 o.targetLink = "foo"; | 724 o.targetLink = "foo"; |
| 725 o.user = "foo"; | 725 o.user = "foo"; |
| 726 o.warnings = buildUnnamed2057(); | 726 o.warnings = buildUnnamed2068(); |
| 727 o.zone = "foo"; | 727 o.zone = "foo"; |
| 728 } | 728 } |
| 729 buildCounterOperation--; | 729 buildCounterOperation--; |
| 730 return o; | 730 return o; |
| 731 } | 731 } |
| 732 | 732 |
| 733 checkOperation(api.Operation o) { | 733 checkOperation(api.Operation o) { |
| 734 buildCounterOperation++; | 734 buildCounterOperation++; |
| 735 if (buildCounterOperation < 3) { | 735 if (buildCounterOperation < 3) { |
| 736 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 736 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 747 unittest.expect(o.operationType, unittest.equals('foo')); | 747 unittest.expect(o.operationType, unittest.equals('foo')); |
| 748 unittest.expect(o.progress, unittest.equals(42)); | 748 unittest.expect(o.progress, unittest.equals(42)); |
| 749 unittest.expect(o.region, unittest.equals('foo')); | 749 unittest.expect(o.region, unittest.equals('foo')); |
| 750 unittest.expect(o.selfLink, unittest.equals('foo')); | 750 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 751 unittest.expect(o.startTime, unittest.equals('foo')); | 751 unittest.expect(o.startTime, unittest.equals('foo')); |
| 752 unittest.expect(o.status, unittest.equals('foo')); | 752 unittest.expect(o.status, unittest.equals('foo')); |
| 753 unittest.expect(o.statusMessage, unittest.equals('foo')); | 753 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 754 unittest.expect(o.targetId, unittest.equals('foo')); | 754 unittest.expect(o.targetId, unittest.equals('foo')); |
| 755 unittest.expect(o.targetLink, unittest.equals('foo')); | 755 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 756 unittest.expect(o.user, unittest.equals('foo')); | 756 unittest.expect(o.user, unittest.equals('foo')); |
| 757 checkUnnamed2057(o.warnings); | 757 checkUnnamed2068(o.warnings); |
| 758 unittest.expect(o.zone, unittest.equals('foo')); | 758 unittest.expect(o.zone, unittest.equals('foo')); |
| 759 } | 759 } |
| 760 buildCounterOperation--; | 760 buildCounterOperation--; |
| 761 } | 761 } |
| 762 | 762 |
| 763 buildUnnamed2058() { | 763 buildUnnamed2069() { |
| 764 var o = new core.List<api.Operation>(); | 764 var o = new core.List<api.Operation>(); |
| 765 o.add(buildOperation()); | 765 o.add(buildOperation()); |
| 766 o.add(buildOperation()); | 766 o.add(buildOperation()); |
| 767 return o; | 767 return o; |
| 768 } | 768 } |
| 769 | 769 |
| 770 checkUnnamed2058(core.List<api.Operation> o) { | 770 checkUnnamed2069(core.List<api.Operation> o) { |
| 771 unittest.expect(o, unittest.hasLength(2)); | 771 unittest.expect(o, unittest.hasLength(2)); |
| 772 checkOperation(o[0]); | 772 checkOperation(o[0]); |
| 773 checkOperation(o[1]); | 773 checkOperation(o[1]); |
| 774 } | 774 } |
| 775 | 775 |
| 776 core.int buildCounterOperationsListResponse = 0; | 776 core.int buildCounterOperationsListResponse = 0; |
| 777 buildOperationsListResponse() { | 777 buildOperationsListResponse() { |
| 778 var o = new api.OperationsListResponse(); | 778 var o = new api.OperationsListResponse(); |
| 779 buildCounterOperationsListResponse++; | 779 buildCounterOperationsListResponse++; |
| 780 if (buildCounterOperationsListResponse < 3) { | 780 if (buildCounterOperationsListResponse < 3) { |
| 781 o.nextPageToken = "foo"; | 781 o.nextPageToken = "foo"; |
| 782 o.operations = buildUnnamed2058(); | 782 o.operations = buildUnnamed2069(); |
| 783 } | 783 } |
| 784 buildCounterOperationsListResponse--; | 784 buildCounterOperationsListResponse--; |
| 785 return o; | 785 return o; |
| 786 } | 786 } |
| 787 | 787 |
| 788 checkOperationsListResponse(api.OperationsListResponse o) { | 788 checkOperationsListResponse(api.OperationsListResponse o) { |
| 789 buildCounterOperationsListResponse++; | 789 buildCounterOperationsListResponse++; |
| 790 if (buildCounterOperationsListResponse < 3) { | 790 if (buildCounterOperationsListResponse < 3) { |
| 791 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 791 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 792 checkUnnamed2058(o.operations); | 792 checkUnnamed2069(o.operations); |
| 793 } | 793 } |
| 794 buildCounterOperationsListResponse--; | 794 buildCounterOperationsListResponse--; |
| 795 } | 795 } |
| 796 | 796 |
| 797 buildUnnamed2059() { | 797 buildUnnamed2070() { |
| 798 var o = new core.List<api.AuditConfig>(); | 798 var o = new core.List<api.AuditConfig>(); |
| 799 o.add(buildAuditConfig()); | 799 o.add(buildAuditConfig()); |
| 800 o.add(buildAuditConfig()); | 800 o.add(buildAuditConfig()); |
| 801 return o; | 801 return o; |
| 802 } | 802 } |
| 803 | 803 |
| 804 checkUnnamed2059(core.List<api.AuditConfig> o) { | 804 checkUnnamed2070(core.List<api.AuditConfig> o) { |
| 805 unittest.expect(o, unittest.hasLength(2)); | 805 unittest.expect(o, unittest.hasLength(2)); |
| 806 checkAuditConfig(o[0]); | 806 checkAuditConfig(o[0]); |
| 807 checkAuditConfig(o[1]); | 807 checkAuditConfig(o[1]); |
| 808 } | 808 } |
| 809 | 809 |
| 810 buildUnnamed2060() { | 810 buildUnnamed2071() { |
| 811 var o = new core.List<api.Binding>(); | 811 var o = new core.List<api.Binding>(); |
| 812 o.add(buildBinding()); | 812 o.add(buildBinding()); |
| 813 o.add(buildBinding()); | 813 o.add(buildBinding()); |
| 814 return o; | 814 return o; |
| 815 } | 815 } |
| 816 | 816 |
| 817 checkUnnamed2060(core.List<api.Binding> o) { | 817 checkUnnamed2071(core.List<api.Binding> o) { |
| 818 unittest.expect(o, unittest.hasLength(2)); | 818 unittest.expect(o, unittest.hasLength(2)); |
| 819 checkBinding(o[0]); | 819 checkBinding(o[0]); |
| 820 checkBinding(o[1]); | 820 checkBinding(o[1]); |
| 821 } | 821 } |
| 822 | 822 |
| 823 buildUnnamed2061() { | 823 buildUnnamed2072() { |
| 824 var o = new core.List<api.Rule>(); | 824 var o = new core.List<api.Rule>(); |
| 825 o.add(buildRule()); | 825 o.add(buildRule()); |
| 826 o.add(buildRule()); | 826 o.add(buildRule()); |
| 827 return o; | 827 return o; |
| 828 } | 828 } |
| 829 | 829 |
| 830 checkUnnamed2061(core.List<api.Rule> o) { | 830 checkUnnamed2072(core.List<api.Rule> o) { |
| 831 unittest.expect(o, unittest.hasLength(2)); | 831 unittest.expect(o, unittest.hasLength(2)); |
| 832 checkRule(o[0]); | 832 checkRule(o[0]); |
| 833 checkRule(o[1]); | 833 checkRule(o[1]); |
| 834 } | 834 } |
| 835 | 835 |
| 836 core.int buildCounterPolicy = 0; | 836 core.int buildCounterPolicy = 0; |
| 837 buildPolicy() { | 837 buildPolicy() { |
| 838 var o = new api.Policy(); | 838 var o = new api.Policy(); |
| 839 buildCounterPolicy++; | 839 buildCounterPolicy++; |
| 840 if (buildCounterPolicy < 3) { | 840 if (buildCounterPolicy < 3) { |
| 841 o.auditConfigs = buildUnnamed2059(); | 841 o.auditConfigs = buildUnnamed2070(); |
| 842 o.bindings = buildUnnamed2060(); | 842 o.bindings = buildUnnamed2071(); |
| 843 o.etag = "foo"; | 843 o.etag = "foo"; |
| 844 o.iamOwned = true; | 844 o.iamOwned = true; |
| 845 o.rules = buildUnnamed2061(); | 845 o.rules = buildUnnamed2072(); |
| 846 o.version = 42; | 846 o.version = 42; |
| 847 } | 847 } |
| 848 buildCounterPolicy--; | 848 buildCounterPolicy--; |
| 849 return o; | 849 return o; |
| 850 } | 850 } |
| 851 | 851 |
| 852 checkPolicy(api.Policy o) { | 852 checkPolicy(api.Policy o) { |
| 853 buildCounterPolicy++; | 853 buildCounterPolicy++; |
| 854 if (buildCounterPolicy < 3) { | 854 if (buildCounterPolicy < 3) { |
| 855 checkUnnamed2059(o.auditConfigs); | 855 checkUnnamed2070(o.auditConfigs); |
| 856 checkUnnamed2060(o.bindings); | 856 checkUnnamed2071(o.bindings); |
| 857 unittest.expect(o.etag, unittest.equals('foo')); | 857 unittest.expect(o.etag, unittest.equals('foo')); |
| 858 unittest.expect(o.iamOwned, unittest.isTrue); | 858 unittest.expect(o.iamOwned, unittest.isTrue); |
| 859 checkUnnamed2061(o.rules); | 859 checkUnnamed2072(o.rules); |
| 860 unittest.expect(o.version, unittest.equals(42)); | 860 unittest.expect(o.version, unittest.equals(42)); |
| 861 } | 861 } |
| 862 buildCounterPolicy--; | 862 buildCounterPolicy--; |
| 863 } | 863 } |
| 864 | 864 |
| 865 core.int buildCounterResourceWarningsData = 0; | 865 core.int buildCounterResourceWarningsData = 0; |
| 866 buildResourceWarningsData() { | 866 buildResourceWarningsData() { |
| 867 var o = new api.ResourceWarningsData(); | 867 var o = new api.ResourceWarningsData(); |
| 868 buildCounterResourceWarningsData++; | 868 buildCounterResourceWarningsData++; |
| 869 if (buildCounterResourceWarningsData < 3) { | 869 if (buildCounterResourceWarningsData < 3) { |
| 870 o.key = "foo"; | 870 o.key = "foo"; |
| 871 o.value = "foo"; | 871 o.value = "foo"; |
| 872 } | 872 } |
| 873 buildCounterResourceWarningsData--; | 873 buildCounterResourceWarningsData--; |
| 874 return o; | 874 return o; |
| 875 } | 875 } |
| 876 | 876 |
| 877 checkResourceWarningsData(api.ResourceWarningsData o) { | 877 checkResourceWarningsData(api.ResourceWarningsData o) { |
| 878 buildCounterResourceWarningsData++; | 878 buildCounterResourceWarningsData++; |
| 879 if (buildCounterResourceWarningsData < 3) { | 879 if (buildCounterResourceWarningsData < 3) { |
| 880 unittest.expect(o.key, unittest.equals('foo')); | 880 unittest.expect(o.key, unittest.equals('foo')); |
| 881 unittest.expect(o.value, unittest.equals('foo')); | 881 unittest.expect(o.value, unittest.equals('foo')); |
| 882 } | 882 } |
| 883 buildCounterResourceWarningsData--; | 883 buildCounterResourceWarningsData--; |
| 884 } | 884 } |
| 885 | 885 |
| 886 buildUnnamed2062() { | 886 buildUnnamed2073() { |
| 887 var o = new core.List<api.ResourceWarningsData>(); | 887 var o = new core.List<api.ResourceWarningsData>(); |
| 888 o.add(buildResourceWarningsData()); | 888 o.add(buildResourceWarningsData()); |
| 889 o.add(buildResourceWarningsData()); | 889 o.add(buildResourceWarningsData()); |
| 890 return o; | 890 return o; |
| 891 } | 891 } |
| 892 | 892 |
| 893 checkUnnamed2062(core.List<api.ResourceWarningsData> o) { | 893 checkUnnamed2073(core.List<api.ResourceWarningsData> o) { |
| 894 unittest.expect(o, unittest.hasLength(2)); | 894 unittest.expect(o, unittest.hasLength(2)); |
| 895 checkResourceWarningsData(o[0]); | 895 checkResourceWarningsData(o[0]); |
| 896 checkResourceWarningsData(o[1]); | 896 checkResourceWarningsData(o[1]); |
| 897 } | 897 } |
| 898 | 898 |
| 899 core.int buildCounterResourceWarnings = 0; | 899 core.int buildCounterResourceWarnings = 0; |
| 900 buildResourceWarnings() { | 900 buildResourceWarnings() { |
| 901 var o = new api.ResourceWarnings(); | 901 var o = new api.ResourceWarnings(); |
| 902 buildCounterResourceWarnings++; | 902 buildCounterResourceWarnings++; |
| 903 if (buildCounterResourceWarnings < 3) { | 903 if (buildCounterResourceWarnings < 3) { |
| 904 o.code = "foo"; | 904 o.code = "foo"; |
| 905 o.data = buildUnnamed2062(); | 905 o.data = buildUnnamed2073(); |
| 906 o.message = "foo"; | 906 o.message = "foo"; |
| 907 } | 907 } |
| 908 buildCounterResourceWarnings--; | 908 buildCounterResourceWarnings--; |
| 909 return o; | 909 return o; |
| 910 } | 910 } |
| 911 | 911 |
| 912 checkResourceWarnings(api.ResourceWarnings o) { | 912 checkResourceWarnings(api.ResourceWarnings o) { |
| 913 buildCounterResourceWarnings++; | 913 buildCounterResourceWarnings++; |
| 914 if (buildCounterResourceWarnings < 3) { | 914 if (buildCounterResourceWarnings < 3) { |
| 915 unittest.expect(o.code, unittest.equals('foo')); | 915 unittest.expect(o.code, unittest.equals('foo')); |
| 916 checkUnnamed2062(o.data); | 916 checkUnnamed2073(o.data); |
| 917 unittest.expect(o.message, unittest.equals('foo')); | 917 unittest.expect(o.message, unittest.equals('foo')); |
| 918 } | 918 } |
| 919 buildCounterResourceWarnings--; | 919 buildCounterResourceWarnings--; |
| 920 } | 920 } |
| 921 | 921 |
| 922 buildUnnamed2063() { | 922 buildUnnamed2074() { |
| 923 var o = new core.List<api.ResourceWarnings>(); | 923 var o = new core.List<api.ResourceWarnings>(); |
| 924 o.add(buildResourceWarnings()); | 924 o.add(buildResourceWarnings()); |
| 925 o.add(buildResourceWarnings()); | 925 o.add(buildResourceWarnings()); |
| 926 return o; | 926 return o; |
| 927 } | 927 } |
| 928 | 928 |
| 929 checkUnnamed2063(core.List<api.ResourceWarnings> o) { | 929 checkUnnamed2074(core.List<api.ResourceWarnings> o) { |
| 930 unittest.expect(o, unittest.hasLength(2)); | 930 unittest.expect(o, unittest.hasLength(2)); |
| 931 checkResourceWarnings(o[0]); | 931 checkResourceWarnings(o[0]); |
| 932 checkResourceWarnings(o[1]); | 932 checkResourceWarnings(o[1]); |
| 933 } | 933 } |
| 934 | 934 |
| 935 core.int buildCounterResource = 0; | 935 core.int buildCounterResource = 0; |
| 936 buildResource() { | 936 buildResource() { |
| 937 var o = new api.Resource(); | 937 var o = new api.Resource(); |
| 938 buildCounterResource++; | 938 buildCounterResource++; |
| 939 if (buildCounterResource < 3) { | 939 if (buildCounterResource < 3) { |
| 940 o.accessControl = buildResourceAccessControl(); | 940 o.accessControl = buildResourceAccessControl(); |
| 941 o.finalProperties = "foo"; | 941 o.finalProperties = "foo"; |
| 942 o.id = "foo"; | 942 o.id = "foo"; |
| 943 o.insertTime = "foo"; | 943 o.insertTime = "foo"; |
| 944 o.manifest = "foo"; | 944 o.manifest = "foo"; |
| 945 o.name = "foo"; | 945 o.name = "foo"; |
| 946 o.properties = "foo"; | 946 o.properties = "foo"; |
| 947 o.type = "foo"; | 947 o.type = "foo"; |
| 948 o.update = buildResourceUpdate(); | 948 o.update = buildResourceUpdate(); |
| 949 o.updateTime = "foo"; | 949 o.updateTime = "foo"; |
| 950 o.url = "foo"; | 950 o.url = "foo"; |
| 951 o.warnings = buildUnnamed2063(); | 951 o.warnings = buildUnnamed2074(); |
| 952 } | 952 } |
| 953 buildCounterResource--; | 953 buildCounterResource--; |
| 954 return o; | 954 return o; |
| 955 } | 955 } |
| 956 | 956 |
| 957 checkResource(api.Resource o) { | 957 checkResource(api.Resource o) { |
| 958 buildCounterResource++; | 958 buildCounterResource++; |
| 959 if (buildCounterResource < 3) { | 959 if (buildCounterResource < 3) { |
| 960 checkResourceAccessControl(o.accessControl); | 960 checkResourceAccessControl(o.accessControl); |
| 961 unittest.expect(o.finalProperties, unittest.equals('foo')); | 961 unittest.expect(o.finalProperties, unittest.equals('foo')); |
| 962 unittest.expect(o.id, unittest.equals('foo')); | 962 unittest.expect(o.id, unittest.equals('foo')); |
| 963 unittest.expect(o.insertTime, unittest.equals('foo')); | 963 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 964 unittest.expect(o.manifest, unittest.equals('foo')); | 964 unittest.expect(o.manifest, unittest.equals('foo')); |
| 965 unittest.expect(o.name, unittest.equals('foo')); | 965 unittest.expect(o.name, unittest.equals('foo')); |
| 966 unittest.expect(o.properties, unittest.equals('foo')); | 966 unittest.expect(o.properties, unittest.equals('foo')); |
| 967 unittest.expect(o.type, unittest.equals('foo')); | 967 unittest.expect(o.type, unittest.equals('foo')); |
| 968 checkResourceUpdate(o.update); | 968 checkResourceUpdate(o.update); |
| 969 unittest.expect(o.updateTime, unittest.equals('foo')); | 969 unittest.expect(o.updateTime, unittest.equals('foo')); |
| 970 unittest.expect(o.url, unittest.equals('foo')); | 970 unittest.expect(o.url, unittest.equals('foo')); |
| 971 checkUnnamed2063(o.warnings); | 971 checkUnnamed2074(o.warnings); |
| 972 } | 972 } |
| 973 buildCounterResource--; | 973 buildCounterResource--; |
| 974 } | 974 } |
| 975 | 975 |
| 976 core.int buildCounterResourceAccessControl = 0; | 976 core.int buildCounterResourceAccessControl = 0; |
| 977 buildResourceAccessControl() { | 977 buildResourceAccessControl() { |
| 978 var o = new api.ResourceAccessControl(); | 978 var o = new api.ResourceAccessControl(); |
| 979 buildCounterResourceAccessControl++; | 979 buildCounterResourceAccessControl++; |
| 980 if (buildCounterResourceAccessControl < 3) { | 980 if (buildCounterResourceAccessControl < 3) { |
| 981 o.gcpIamPolicy = "foo"; | 981 o.gcpIamPolicy = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1008 checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) { | 1008 checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) { |
| 1009 buildCounterResourceUpdateErrorErrors++; | 1009 buildCounterResourceUpdateErrorErrors++; |
| 1010 if (buildCounterResourceUpdateErrorErrors < 3) { | 1010 if (buildCounterResourceUpdateErrorErrors < 3) { |
| 1011 unittest.expect(o.code, unittest.equals('foo')); | 1011 unittest.expect(o.code, unittest.equals('foo')); |
| 1012 unittest.expect(o.location, unittest.equals('foo')); | 1012 unittest.expect(o.location, unittest.equals('foo')); |
| 1013 unittest.expect(o.message, unittest.equals('foo')); | 1013 unittest.expect(o.message, unittest.equals('foo')); |
| 1014 } | 1014 } |
| 1015 buildCounterResourceUpdateErrorErrors--; | 1015 buildCounterResourceUpdateErrorErrors--; |
| 1016 } | 1016 } |
| 1017 | 1017 |
| 1018 buildUnnamed2064() { | 1018 buildUnnamed2075() { |
| 1019 var o = new core.List<api.ResourceUpdateErrorErrors>(); | 1019 var o = new core.List<api.ResourceUpdateErrorErrors>(); |
| 1020 o.add(buildResourceUpdateErrorErrors()); | 1020 o.add(buildResourceUpdateErrorErrors()); |
| 1021 o.add(buildResourceUpdateErrorErrors()); | 1021 o.add(buildResourceUpdateErrorErrors()); |
| 1022 return o; | 1022 return o; |
| 1023 } | 1023 } |
| 1024 | 1024 |
| 1025 checkUnnamed2064(core.List<api.ResourceUpdateErrorErrors> o) { | 1025 checkUnnamed2075(core.List<api.ResourceUpdateErrorErrors> o) { |
| 1026 unittest.expect(o, unittest.hasLength(2)); | 1026 unittest.expect(o, unittest.hasLength(2)); |
| 1027 checkResourceUpdateErrorErrors(o[0]); | 1027 checkResourceUpdateErrorErrors(o[0]); |
| 1028 checkResourceUpdateErrorErrors(o[1]); | 1028 checkResourceUpdateErrorErrors(o[1]); |
| 1029 } | 1029 } |
| 1030 | 1030 |
| 1031 core.int buildCounterResourceUpdateError = 0; | 1031 core.int buildCounterResourceUpdateError = 0; |
| 1032 buildResourceUpdateError() { | 1032 buildResourceUpdateError() { |
| 1033 var o = new api.ResourceUpdateError(); | 1033 var o = new api.ResourceUpdateError(); |
| 1034 buildCounterResourceUpdateError++; | 1034 buildCounterResourceUpdateError++; |
| 1035 if (buildCounterResourceUpdateError < 3) { | 1035 if (buildCounterResourceUpdateError < 3) { |
| 1036 o.errors = buildUnnamed2064(); | 1036 o.errors = buildUnnamed2075(); |
| 1037 } | 1037 } |
| 1038 buildCounterResourceUpdateError--; | 1038 buildCounterResourceUpdateError--; |
| 1039 return o; | 1039 return o; |
| 1040 } | 1040 } |
| 1041 | 1041 |
| 1042 checkResourceUpdateError(api.ResourceUpdateError o) { | 1042 checkResourceUpdateError(api.ResourceUpdateError o) { |
| 1043 buildCounterResourceUpdateError++; | 1043 buildCounterResourceUpdateError++; |
| 1044 if (buildCounterResourceUpdateError < 3) { | 1044 if (buildCounterResourceUpdateError < 3) { |
| 1045 checkUnnamed2064(o.errors); | 1045 checkUnnamed2075(o.errors); |
| 1046 } | 1046 } |
| 1047 buildCounterResourceUpdateError--; | 1047 buildCounterResourceUpdateError--; |
| 1048 } | 1048 } |
| 1049 | 1049 |
| 1050 core.int buildCounterResourceUpdateWarningsData = 0; | 1050 core.int buildCounterResourceUpdateWarningsData = 0; |
| 1051 buildResourceUpdateWarningsData() { | 1051 buildResourceUpdateWarningsData() { |
| 1052 var o = new api.ResourceUpdateWarningsData(); | 1052 var o = new api.ResourceUpdateWarningsData(); |
| 1053 buildCounterResourceUpdateWarningsData++; | 1053 buildCounterResourceUpdateWarningsData++; |
| 1054 if (buildCounterResourceUpdateWarningsData < 3) { | 1054 if (buildCounterResourceUpdateWarningsData < 3) { |
| 1055 o.key = "foo"; | 1055 o.key = "foo"; |
| 1056 o.value = "foo"; | 1056 o.value = "foo"; |
| 1057 } | 1057 } |
| 1058 buildCounterResourceUpdateWarningsData--; | 1058 buildCounterResourceUpdateWarningsData--; |
| 1059 return o; | 1059 return o; |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) { | 1062 checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) { |
| 1063 buildCounterResourceUpdateWarningsData++; | 1063 buildCounterResourceUpdateWarningsData++; |
| 1064 if (buildCounterResourceUpdateWarningsData < 3) { | 1064 if (buildCounterResourceUpdateWarningsData < 3) { |
| 1065 unittest.expect(o.key, unittest.equals('foo')); | 1065 unittest.expect(o.key, unittest.equals('foo')); |
| 1066 unittest.expect(o.value, unittest.equals('foo')); | 1066 unittest.expect(o.value, unittest.equals('foo')); |
| 1067 } | 1067 } |
| 1068 buildCounterResourceUpdateWarningsData--; | 1068 buildCounterResourceUpdateWarningsData--; |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 buildUnnamed2065() { | 1071 buildUnnamed2076() { |
| 1072 var o = new core.List<api.ResourceUpdateWarningsData>(); | 1072 var o = new core.List<api.ResourceUpdateWarningsData>(); |
| 1073 o.add(buildResourceUpdateWarningsData()); | 1073 o.add(buildResourceUpdateWarningsData()); |
| 1074 o.add(buildResourceUpdateWarningsData()); | 1074 o.add(buildResourceUpdateWarningsData()); |
| 1075 return o; | 1075 return o; |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 checkUnnamed2065(core.List<api.ResourceUpdateWarningsData> o) { | 1078 checkUnnamed2076(core.List<api.ResourceUpdateWarningsData> o) { |
| 1079 unittest.expect(o, unittest.hasLength(2)); | 1079 unittest.expect(o, unittest.hasLength(2)); |
| 1080 checkResourceUpdateWarningsData(o[0]); | 1080 checkResourceUpdateWarningsData(o[0]); |
| 1081 checkResourceUpdateWarningsData(o[1]); | 1081 checkResourceUpdateWarningsData(o[1]); |
| 1082 } | 1082 } |
| 1083 | 1083 |
| 1084 core.int buildCounterResourceUpdateWarnings = 0; | 1084 core.int buildCounterResourceUpdateWarnings = 0; |
| 1085 buildResourceUpdateWarnings() { | 1085 buildResourceUpdateWarnings() { |
| 1086 var o = new api.ResourceUpdateWarnings(); | 1086 var o = new api.ResourceUpdateWarnings(); |
| 1087 buildCounterResourceUpdateWarnings++; | 1087 buildCounterResourceUpdateWarnings++; |
| 1088 if (buildCounterResourceUpdateWarnings < 3) { | 1088 if (buildCounterResourceUpdateWarnings < 3) { |
| 1089 o.code = "foo"; | 1089 o.code = "foo"; |
| 1090 o.data = buildUnnamed2065(); | 1090 o.data = buildUnnamed2076(); |
| 1091 o.message = "foo"; | 1091 o.message = "foo"; |
| 1092 } | 1092 } |
| 1093 buildCounterResourceUpdateWarnings--; | 1093 buildCounterResourceUpdateWarnings--; |
| 1094 return o; | 1094 return o; |
| 1095 } | 1095 } |
| 1096 | 1096 |
| 1097 checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) { | 1097 checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) { |
| 1098 buildCounterResourceUpdateWarnings++; | 1098 buildCounterResourceUpdateWarnings++; |
| 1099 if (buildCounterResourceUpdateWarnings < 3) { | 1099 if (buildCounterResourceUpdateWarnings < 3) { |
| 1100 unittest.expect(o.code, unittest.equals('foo')); | 1100 unittest.expect(o.code, unittest.equals('foo')); |
| 1101 checkUnnamed2065(o.data); | 1101 checkUnnamed2076(o.data); |
| 1102 unittest.expect(o.message, unittest.equals('foo')); | 1102 unittest.expect(o.message, unittest.equals('foo')); |
| 1103 } | 1103 } |
| 1104 buildCounterResourceUpdateWarnings--; | 1104 buildCounterResourceUpdateWarnings--; |
| 1105 } | 1105 } |
| 1106 | 1106 |
| 1107 buildUnnamed2066() { | 1107 buildUnnamed2077() { |
| 1108 var o = new core.List<api.ResourceUpdateWarnings>(); | 1108 var o = new core.List<api.ResourceUpdateWarnings>(); |
| 1109 o.add(buildResourceUpdateWarnings()); | 1109 o.add(buildResourceUpdateWarnings()); |
| 1110 o.add(buildResourceUpdateWarnings()); | 1110 o.add(buildResourceUpdateWarnings()); |
| 1111 return o; | 1111 return o; |
| 1112 } | 1112 } |
| 1113 | 1113 |
| 1114 checkUnnamed2066(core.List<api.ResourceUpdateWarnings> o) { | 1114 checkUnnamed2077(core.List<api.ResourceUpdateWarnings> o) { |
| 1115 unittest.expect(o, unittest.hasLength(2)); | 1115 unittest.expect(o, unittest.hasLength(2)); |
| 1116 checkResourceUpdateWarnings(o[0]); | 1116 checkResourceUpdateWarnings(o[0]); |
| 1117 checkResourceUpdateWarnings(o[1]); | 1117 checkResourceUpdateWarnings(o[1]); |
| 1118 } | 1118 } |
| 1119 | 1119 |
| 1120 core.int buildCounterResourceUpdate = 0; | 1120 core.int buildCounterResourceUpdate = 0; |
| 1121 buildResourceUpdate() { | 1121 buildResourceUpdate() { |
| 1122 var o = new api.ResourceUpdate(); | 1122 var o = new api.ResourceUpdate(); |
| 1123 buildCounterResourceUpdate++; | 1123 buildCounterResourceUpdate++; |
| 1124 if (buildCounterResourceUpdate < 3) { | 1124 if (buildCounterResourceUpdate < 3) { |
| 1125 o.accessControl = buildResourceAccessControl(); | 1125 o.accessControl = buildResourceAccessControl(); |
| 1126 o.error = buildResourceUpdateError(); | 1126 o.error = buildResourceUpdateError(); |
| 1127 o.finalProperties = "foo"; | 1127 o.finalProperties = "foo"; |
| 1128 o.intent = "foo"; | 1128 o.intent = "foo"; |
| 1129 o.manifest = "foo"; | 1129 o.manifest = "foo"; |
| 1130 o.properties = "foo"; | 1130 o.properties = "foo"; |
| 1131 o.state = "foo"; | 1131 o.state = "foo"; |
| 1132 o.warnings = buildUnnamed2066(); | 1132 o.warnings = buildUnnamed2077(); |
| 1133 } | 1133 } |
| 1134 buildCounterResourceUpdate--; | 1134 buildCounterResourceUpdate--; |
| 1135 return o; | 1135 return o; |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 checkResourceUpdate(api.ResourceUpdate o) { | 1138 checkResourceUpdate(api.ResourceUpdate o) { |
| 1139 buildCounterResourceUpdate++; | 1139 buildCounterResourceUpdate++; |
| 1140 if (buildCounterResourceUpdate < 3) { | 1140 if (buildCounterResourceUpdate < 3) { |
| 1141 checkResourceAccessControl(o.accessControl); | 1141 checkResourceAccessControl(o.accessControl); |
| 1142 checkResourceUpdateError(o.error); | 1142 checkResourceUpdateError(o.error); |
| 1143 unittest.expect(o.finalProperties, unittest.equals('foo')); | 1143 unittest.expect(o.finalProperties, unittest.equals('foo')); |
| 1144 unittest.expect(o.intent, unittest.equals('foo')); | 1144 unittest.expect(o.intent, unittest.equals('foo')); |
| 1145 unittest.expect(o.manifest, unittest.equals('foo')); | 1145 unittest.expect(o.manifest, unittest.equals('foo')); |
| 1146 unittest.expect(o.properties, unittest.equals('foo')); | 1146 unittest.expect(o.properties, unittest.equals('foo')); |
| 1147 unittest.expect(o.state, unittest.equals('foo')); | 1147 unittest.expect(o.state, unittest.equals('foo')); |
| 1148 checkUnnamed2066(o.warnings); | 1148 checkUnnamed2077(o.warnings); |
| 1149 } | 1149 } |
| 1150 buildCounterResourceUpdate--; | 1150 buildCounterResourceUpdate--; |
| 1151 } | 1151 } |
| 1152 | 1152 |
| 1153 buildUnnamed2067() { | 1153 buildUnnamed2078() { |
| 1154 var o = new core.List<api.Resource>(); | 1154 var o = new core.List<api.Resource>(); |
| 1155 o.add(buildResource()); | 1155 o.add(buildResource()); |
| 1156 o.add(buildResource()); | 1156 o.add(buildResource()); |
| 1157 return o; | 1157 return o; |
| 1158 } | 1158 } |
| 1159 | 1159 |
| 1160 checkUnnamed2067(core.List<api.Resource> o) { | 1160 checkUnnamed2078(core.List<api.Resource> o) { |
| 1161 unittest.expect(o, unittest.hasLength(2)); | 1161 unittest.expect(o, unittest.hasLength(2)); |
| 1162 checkResource(o[0]); | 1162 checkResource(o[0]); |
| 1163 checkResource(o[1]); | 1163 checkResource(o[1]); |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 core.int buildCounterResourcesListResponse = 0; | 1166 core.int buildCounterResourcesListResponse = 0; |
| 1167 buildResourcesListResponse() { | 1167 buildResourcesListResponse() { |
| 1168 var o = new api.ResourcesListResponse(); | 1168 var o = new api.ResourcesListResponse(); |
| 1169 buildCounterResourcesListResponse++; | 1169 buildCounterResourcesListResponse++; |
| 1170 if (buildCounterResourcesListResponse < 3) { | 1170 if (buildCounterResourcesListResponse < 3) { |
| 1171 o.nextPageToken = "foo"; | 1171 o.nextPageToken = "foo"; |
| 1172 o.resources = buildUnnamed2067(); | 1172 o.resources = buildUnnamed2078(); |
| 1173 } | 1173 } |
| 1174 buildCounterResourcesListResponse--; | 1174 buildCounterResourcesListResponse--; |
| 1175 return o; | 1175 return o; |
| 1176 } | 1176 } |
| 1177 | 1177 |
| 1178 checkResourcesListResponse(api.ResourcesListResponse o) { | 1178 checkResourcesListResponse(api.ResourcesListResponse o) { |
| 1179 buildCounterResourcesListResponse++; | 1179 buildCounterResourcesListResponse++; |
| 1180 if (buildCounterResourcesListResponse < 3) { | 1180 if (buildCounterResourcesListResponse < 3) { |
| 1181 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1181 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1182 checkUnnamed2067(o.resources); | 1182 checkUnnamed2078(o.resources); |
| 1183 } | 1183 } |
| 1184 buildCounterResourcesListResponse--; | 1184 buildCounterResourcesListResponse--; |
| 1185 } | 1185 } |
| 1186 | 1186 |
| 1187 buildUnnamed2068() { | 1187 buildUnnamed2079() { |
| 1188 var o = new core.List<api.Condition>(); | 1188 var o = new core.List<api.Condition>(); |
| 1189 o.add(buildCondition()); | 1189 o.add(buildCondition()); |
| 1190 o.add(buildCondition()); | 1190 o.add(buildCondition()); |
| 1191 return o; | 1191 return o; |
| 1192 } | 1192 } |
| 1193 | 1193 |
| 1194 checkUnnamed2068(core.List<api.Condition> o) { | 1194 checkUnnamed2079(core.List<api.Condition> o) { |
| 1195 unittest.expect(o, unittest.hasLength(2)); | 1195 unittest.expect(o, unittest.hasLength(2)); |
| 1196 checkCondition(o[0]); | 1196 checkCondition(o[0]); |
| 1197 checkCondition(o[1]); | 1197 checkCondition(o[1]); |
| 1198 } | 1198 } |
| 1199 | 1199 |
| 1200 buildUnnamed2069() { | 1200 buildUnnamed2080() { |
| 1201 var o = new core.List<core.String>(); | 1201 var o = new core.List<core.String>(); |
| 1202 o.add("foo"); | 1202 o.add("foo"); |
| 1203 o.add("foo"); | 1203 o.add("foo"); |
| 1204 return o; | 1204 return o; |
| 1205 } | 1205 } |
| 1206 | 1206 |
| 1207 checkUnnamed2069(core.List<core.String> o) { | 1207 checkUnnamed2080(core.List<core.String> o) { |
| 1208 unittest.expect(o, unittest.hasLength(2)); | 1208 unittest.expect(o, unittest.hasLength(2)); |
| 1209 unittest.expect(o[0], unittest.equals('foo')); | 1209 unittest.expect(o[0], unittest.equals('foo')); |
| 1210 unittest.expect(o[1], unittest.equals('foo')); | 1210 unittest.expect(o[1], unittest.equals('foo')); |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 buildUnnamed2070() { | 1213 buildUnnamed2081() { |
| 1214 var o = new core.List<api.LogConfig>(); | 1214 var o = new core.List<api.LogConfig>(); |
| 1215 o.add(buildLogConfig()); | 1215 o.add(buildLogConfig()); |
| 1216 o.add(buildLogConfig()); | 1216 o.add(buildLogConfig()); |
| 1217 return o; | 1217 return o; |
| 1218 } | 1218 } |
| 1219 | 1219 |
| 1220 checkUnnamed2070(core.List<api.LogConfig> o) { | 1220 checkUnnamed2081(core.List<api.LogConfig> o) { |
| 1221 unittest.expect(o, unittest.hasLength(2)); | 1221 unittest.expect(o, unittest.hasLength(2)); |
| 1222 checkLogConfig(o[0]); | 1222 checkLogConfig(o[0]); |
| 1223 checkLogConfig(o[1]); | 1223 checkLogConfig(o[1]); |
| 1224 } | 1224 } |
| 1225 | 1225 |
| 1226 buildUnnamed2071() { | 1226 buildUnnamed2082() { |
| 1227 var o = new core.List<core.String>(); | 1227 var o = new core.List<core.String>(); |
| 1228 o.add("foo"); | 1228 o.add("foo"); |
| 1229 o.add("foo"); | 1229 o.add("foo"); |
| 1230 return o; | 1230 return o; |
| 1231 } | 1231 } |
| 1232 | 1232 |
| 1233 checkUnnamed2071(core.List<core.String> o) { | 1233 checkUnnamed2082(core.List<core.String> o) { |
| 1234 unittest.expect(o, unittest.hasLength(2)); | 1234 unittest.expect(o, unittest.hasLength(2)); |
| 1235 unittest.expect(o[0], unittest.equals('foo')); | 1235 unittest.expect(o[0], unittest.equals('foo')); |
| 1236 unittest.expect(o[1], unittest.equals('foo')); | 1236 unittest.expect(o[1], unittest.equals('foo')); |
| 1237 } | 1237 } |
| 1238 | 1238 |
| 1239 buildUnnamed2072() { | 1239 buildUnnamed2083() { |
| 1240 var o = new core.List<core.String>(); | 1240 var o = new core.List<core.String>(); |
| 1241 o.add("foo"); | 1241 o.add("foo"); |
| 1242 o.add("foo"); | 1242 o.add("foo"); |
| 1243 return o; | 1243 return o; |
| 1244 } | 1244 } |
| 1245 | 1245 |
| 1246 checkUnnamed2072(core.List<core.String> o) { | 1246 checkUnnamed2083(core.List<core.String> o) { |
| 1247 unittest.expect(o, unittest.hasLength(2)); | 1247 unittest.expect(o, unittest.hasLength(2)); |
| 1248 unittest.expect(o[0], unittest.equals('foo')); | 1248 unittest.expect(o[0], unittest.equals('foo')); |
| 1249 unittest.expect(o[1], unittest.equals('foo')); | 1249 unittest.expect(o[1], unittest.equals('foo')); |
| 1250 } | 1250 } |
| 1251 | 1251 |
| 1252 core.int buildCounterRule = 0; | 1252 core.int buildCounterRule = 0; |
| 1253 buildRule() { | 1253 buildRule() { |
| 1254 var o = new api.Rule(); | 1254 var o = new api.Rule(); |
| 1255 buildCounterRule++; | 1255 buildCounterRule++; |
| 1256 if (buildCounterRule < 3) { | 1256 if (buildCounterRule < 3) { |
| 1257 o.action = "foo"; | 1257 o.action = "foo"; |
| 1258 o.conditions = buildUnnamed2068(); | 1258 o.conditions = buildUnnamed2079(); |
| 1259 o.description = "foo"; | 1259 o.description = "foo"; |
| 1260 o.ins = buildUnnamed2069(); | 1260 o.ins = buildUnnamed2080(); |
| 1261 o.logConfigs = buildUnnamed2070(); | 1261 o.logConfigs = buildUnnamed2081(); |
| 1262 o.notIns = buildUnnamed2071(); | 1262 o.notIns = buildUnnamed2082(); |
| 1263 o.permissions = buildUnnamed2072(); | 1263 o.permissions = buildUnnamed2083(); |
| 1264 } | 1264 } |
| 1265 buildCounterRule--; | 1265 buildCounterRule--; |
| 1266 return o; | 1266 return o; |
| 1267 } | 1267 } |
| 1268 | 1268 |
| 1269 checkRule(api.Rule o) { | 1269 checkRule(api.Rule o) { |
| 1270 buildCounterRule++; | 1270 buildCounterRule++; |
| 1271 if (buildCounterRule < 3) { | 1271 if (buildCounterRule < 3) { |
| 1272 unittest.expect(o.action, unittest.equals('foo')); | 1272 unittest.expect(o.action, unittest.equals('foo')); |
| 1273 checkUnnamed2068(o.conditions); | 1273 checkUnnamed2079(o.conditions); |
| 1274 unittest.expect(o.description, unittest.equals('foo')); | 1274 unittest.expect(o.description, unittest.equals('foo')); |
| 1275 checkUnnamed2069(o.ins); | 1275 checkUnnamed2080(o.ins); |
| 1276 checkUnnamed2070(o.logConfigs); | 1276 checkUnnamed2081(o.logConfigs); |
| 1277 checkUnnamed2071(o.notIns); | 1277 checkUnnamed2082(o.notIns); |
| 1278 checkUnnamed2072(o.permissions); | 1278 checkUnnamed2083(o.permissions); |
| 1279 } | 1279 } |
| 1280 buildCounterRule--; | 1280 buildCounterRule--; |
| 1281 } | 1281 } |
| 1282 | 1282 |
| 1283 buildUnnamed2073() { | 1283 buildUnnamed2084() { |
| 1284 var o = new core.List<api.ImportFile>(); | 1284 var o = new core.List<api.ImportFile>(); |
| 1285 o.add(buildImportFile()); | 1285 o.add(buildImportFile()); |
| 1286 o.add(buildImportFile()); | 1286 o.add(buildImportFile()); |
| 1287 return o; | 1287 return o; |
| 1288 } | 1288 } |
| 1289 | 1289 |
| 1290 checkUnnamed2073(core.List<api.ImportFile> o) { | 1290 checkUnnamed2084(core.List<api.ImportFile> o) { |
| 1291 unittest.expect(o, unittest.hasLength(2)); | 1291 unittest.expect(o, unittest.hasLength(2)); |
| 1292 checkImportFile(o[0]); | 1292 checkImportFile(o[0]); |
| 1293 checkImportFile(o[1]); | 1293 checkImportFile(o[1]); |
| 1294 } | 1294 } |
| 1295 | 1295 |
| 1296 core.int buildCounterTargetConfiguration = 0; | 1296 core.int buildCounterTargetConfiguration = 0; |
| 1297 buildTargetConfiguration() { | 1297 buildTargetConfiguration() { |
| 1298 var o = new api.TargetConfiguration(); | 1298 var o = new api.TargetConfiguration(); |
| 1299 buildCounterTargetConfiguration++; | 1299 buildCounterTargetConfiguration++; |
| 1300 if (buildCounterTargetConfiguration < 3) { | 1300 if (buildCounterTargetConfiguration < 3) { |
| 1301 o.config = buildConfigFile(); | 1301 o.config = buildConfigFile(); |
| 1302 o.imports = buildUnnamed2073(); | 1302 o.imports = buildUnnamed2084(); |
| 1303 } | 1303 } |
| 1304 buildCounterTargetConfiguration--; | 1304 buildCounterTargetConfiguration--; |
| 1305 return o; | 1305 return o; |
| 1306 } | 1306 } |
| 1307 | 1307 |
| 1308 checkTargetConfiguration(api.TargetConfiguration o) { | 1308 checkTargetConfiguration(api.TargetConfiguration o) { |
| 1309 buildCounterTargetConfiguration++; | 1309 buildCounterTargetConfiguration++; |
| 1310 if (buildCounterTargetConfiguration < 3) { | 1310 if (buildCounterTargetConfiguration < 3) { |
| 1311 checkConfigFile(o.config); | 1311 checkConfigFile(o.config); |
| 1312 checkUnnamed2073(o.imports); | 1312 checkUnnamed2084(o.imports); |
| 1313 } | 1313 } |
| 1314 buildCounterTargetConfiguration--; | 1314 buildCounterTargetConfiguration--; |
| 1315 } | 1315 } |
| 1316 | 1316 |
| 1317 buildUnnamed2074() { | 1317 buildUnnamed2085() { |
| 1318 var o = new core.List<core.String>(); | 1318 var o = new core.List<core.String>(); |
| 1319 o.add("foo"); | 1319 o.add("foo"); |
| 1320 o.add("foo"); | 1320 o.add("foo"); |
| 1321 return o; | 1321 return o; |
| 1322 } | 1322 } |
| 1323 | 1323 |
| 1324 checkUnnamed2074(core.List<core.String> o) { | 1324 checkUnnamed2085(core.List<core.String> o) { |
| 1325 unittest.expect(o, unittest.hasLength(2)); | 1325 unittest.expect(o, unittest.hasLength(2)); |
| 1326 unittest.expect(o[0], unittest.equals('foo')); | 1326 unittest.expect(o[0], unittest.equals('foo')); |
| 1327 unittest.expect(o[1], unittest.equals('foo')); | 1327 unittest.expect(o[1], unittest.equals('foo')); |
| 1328 } | 1328 } |
| 1329 | 1329 |
| 1330 core.int buildCounterTestPermissionsRequest = 0; | 1330 core.int buildCounterTestPermissionsRequest = 0; |
| 1331 buildTestPermissionsRequest() { | 1331 buildTestPermissionsRequest() { |
| 1332 var o = new api.TestPermissionsRequest(); | 1332 var o = new api.TestPermissionsRequest(); |
| 1333 buildCounterTestPermissionsRequest++; | 1333 buildCounterTestPermissionsRequest++; |
| 1334 if (buildCounterTestPermissionsRequest < 3) { | 1334 if (buildCounterTestPermissionsRequest < 3) { |
| 1335 o.permissions = buildUnnamed2074(); | 1335 o.permissions = buildUnnamed2085(); |
| 1336 } | 1336 } |
| 1337 buildCounterTestPermissionsRequest--; | 1337 buildCounterTestPermissionsRequest--; |
| 1338 return o; | 1338 return o; |
| 1339 } | 1339 } |
| 1340 | 1340 |
| 1341 checkTestPermissionsRequest(api.TestPermissionsRequest o) { | 1341 checkTestPermissionsRequest(api.TestPermissionsRequest o) { |
| 1342 buildCounterTestPermissionsRequest++; | 1342 buildCounterTestPermissionsRequest++; |
| 1343 if (buildCounterTestPermissionsRequest < 3) { | 1343 if (buildCounterTestPermissionsRequest < 3) { |
| 1344 checkUnnamed2074(o.permissions); | 1344 checkUnnamed2085(o.permissions); |
| 1345 } | 1345 } |
| 1346 buildCounterTestPermissionsRequest--; | 1346 buildCounterTestPermissionsRequest--; |
| 1347 } | 1347 } |
| 1348 | 1348 |
| 1349 buildUnnamed2075() { | 1349 buildUnnamed2086() { |
| 1350 var o = new core.List<core.String>(); | 1350 var o = new core.List<core.String>(); |
| 1351 o.add("foo"); | 1351 o.add("foo"); |
| 1352 o.add("foo"); | 1352 o.add("foo"); |
| 1353 return o; | 1353 return o; |
| 1354 } | 1354 } |
| 1355 | 1355 |
| 1356 checkUnnamed2075(core.List<core.String> o) { | 1356 checkUnnamed2086(core.List<core.String> o) { |
| 1357 unittest.expect(o, unittest.hasLength(2)); | 1357 unittest.expect(o, unittest.hasLength(2)); |
| 1358 unittest.expect(o[0], unittest.equals('foo')); | 1358 unittest.expect(o[0], unittest.equals('foo')); |
| 1359 unittest.expect(o[1], unittest.equals('foo')); | 1359 unittest.expect(o[1], unittest.equals('foo')); |
| 1360 } | 1360 } |
| 1361 | 1361 |
| 1362 core.int buildCounterTestPermissionsResponse = 0; | 1362 core.int buildCounterTestPermissionsResponse = 0; |
| 1363 buildTestPermissionsResponse() { | 1363 buildTestPermissionsResponse() { |
| 1364 var o = new api.TestPermissionsResponse(); | 1364 var o = new api.TestPermissionsResponse(); |
| 1365 buildCounterTestPermissionsResponse++; | 1365 buildCounterTestPermissionsResponse++; |
| 1366 if (buildCounterTestPermissionsResponse < 3) { | 1366 if (buildCounterTestPermissionsResponse < 3) { |
| 1367 o.permissions = buildUnnamed2075(); | 1367 o.permissions = buildUnnamed2086(); |
| 1368 } | 1368 } |
| 1369 buildCounterTestPermissionsResponse--; | 1369 buildCounterTestPermissionsResponse--; |
| 1370 return o; | 1370 return o; |
| 1371 } | 1371 } |
| 1372 | 1372 |
| 1373 checkTestPermissionsResponse(api.TestPermissionsResponse o) { | 1373 checkTestPermissionsResponse(api.TestPermissionsResponse o) { |
| 1374 buildCounterTestPermissionsResponse++; | 1374 buildCounterTestPermissionsResponse++; |
| 1375 if (buildCounterTestPermissionsResponse < 3) { | 1375 if (buildCounterTestPermissionsResponse < 3) { |
| 1376 checkUnnamed2075(o.permissions); | 1376 checkUnnamed2086(o.permissions); |
| 1377 } | 1377 } |
| 1378 buildCounterTestPermissionsResponse--; | 1378 buildCounterTestPermissionsResponse--; |
| 1379 } | 1379 } |
| 1380 | 1380 |
| 1381 core.int buildCounterType = 0; | 1381 core.int buildCounterType = 0; |
| 1382 buildType() { | 1382 buildType() { |
| 1383 var o = new api.Type(); | 1383 var o = new api.Type(); |
| 1384 buildCounterType++; | 1384 buildCounterType++; |
| 1385 if (buildCounterType < 3) { | 1385 if (buildCounterType < 3) { |
| 1386 o.id = "foo"; | 1386 o.id = "foo"; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1398 if (buildCounterType < 3) { | 1398 if (buildCounterType < 3) { |
| 1399 unittest.expect(o.id, unittest.equals('foo')); | 1399 unittest.expect(o.id, unittest.equals('foo')); |
| 1400 unittest.expect(o.insertTime, unittest.equals('foo')); | 1400 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 1401 unittest.expect(o.name, unittest.equals('foo')); | 1401 unittest.expect(o.name, unittest.equals('foo')); |
| 1402 checkOperation(o.operation); | 1402 checkOperation(o.operation); |
| 1403 unittest.expect(o.selfLink, unittest.equals('foo')); | 1403 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1404 } | 1404 } |
| 1405 buildCounterType--; | 1405 buildCounterType--; |
| 1406 } | 1406 } |
| 1407 | 1407 |
| 1408 buildUnnamed2076() { | 1408 buildUnnamed2087() { |
| 1409 var o = new core.List<api.Type>(); | 1409 var o = new core.List<api.Type>(); |
| 1410 o.add(buildType()); | 1410 o.add(buildType()); |
| 1411 o.add(buildType()); | 1411 o.add(buildType()); |
| 1412 return o; | 1412 return o; |
| 1413 } | 1413 } |
| 1414 | 1414 |
| 1415 checkUnnamed2076(core.List<api.Type> o) { | 1415 checkUnnamed2087(core.List<api.Type> o) { |
| 1416 unittest.expect(o, unittest.hasLength(2)); | 1416 unittest.expect(o, unittest.hasLength(2)); |
| 1417 checkType(o[0]); | 1417 checkType(o[0]); |
| 1418 checkType(o[1]); | 1418 checkType(o[1]); |
| 1419 } | 1419 } |
| 1420 | 1420 |
| 1421 core.int buildCounterTypesListResponse = 0; | 1421 core.int buildCounterTypesListResponse = 0; |
| 1422 buildTypesListResponse() { | 1422 buildTypesListResponse() { |
| 1423 var o = new api.TypesListResponse(); | 1423 var o = new api.TypesListResponse(); |
| 1424 buildCounterTypesListResponse++; | 1424 buildCounterTypesListResponse++; |
| 1425 if (buildCounterTypesListResponse < 3) { | 1425 if (buildCounterTypesListResponse < 3) { |
| 1426 o.nextPageToken = "foo"; | 1426 o.nextPageToken = "foo"; |
| 1427 o.types = buildUnnamed2076(); | 1427 o.types = buildUnnamed2087(); |
| 1428 } | 1428 } |
| 1429 buildCounterTypesListResponse--; | 1429 buildCounterTypesListResponse--; |
| 1430 return o; | 1430 return o; |
| 1431 } | 1431 } |
| 1432 | 1432 |
| 1433 checkTypesListResponse(api.TypesListResponse o) { | 1433 checkTypesListResponse(api.TypesListResponse o) { |
| 1434 buildCounterTypesListResponse++; | 1434 buildCounterTypesListResponse++; |
| 1435 if (buildCounterTypesListResponse < 3) { | 1435 if (buildCounterTypesListResponse < 3) { |
| 1436 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1436 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1437 checkUnnamed2076(o.types); | 1437 checkUnnamed2087(o.types); |
| 1438 } | 1438 } |
| 1439 buildCounterTypesListResponse--; | 1439 buildCounterTypesListResponse--; |
| 1440 } | 1440 } |
| 1441 | 1441 |
| 1442 | 1442 |
| 1443 main() { | 1443 main() { |
| 1444 unittest.group("obj-schema-AuditConfig", () { | 1444 unittest.group("obj-schema-AuditConfig", () { |
| 1445 unittest.test("to-json--from-json", () { | 1445 unittest.test("to-json--from-json", () { |
| 1446 var o = buildAuditConfig(); | 1446 var o = buildAuditConfig(); |
| 1447 var od = new api.AuditConfig.fromJson(o.toJson()); | 1447 var od = new api.AuditConfig.fromJson(o.toJson()); |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1802 | 1802 |
| 1803 | 1803 |
| 1804 unittest.group("resource-DeploymentsResourceApi", () { | 1804 unittest.group("resource-DeploymentsResourceApi", () { |
| 1805 unittest.test("method--cancelPreview", () { | 1805 unittest.test("method--cancelPreview", () { |
| 1806 | 1806 |
| 1807 var mock = new HttpServerMock(); | 1807 var mock = new HttpServerMock(); |
| 1808 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 1808 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
| 1809 var arg_request = buildDeploymentsCancelPreviewRequest(); | 1809 var arg_request = buildDeploymentsCancelPreviewRequest(); |
| 1810 var arg_project = "foo"; | 1810 var arg_project = "foo"; |
| 1811 var arg_deployment = "foo"; | 1811 var arg_deployment = "foo"; |
| 1812 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1812 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1813 var obj = new api.DeploymentsCancelPreviewRequest.fromJson(json); | 1813 var obj = new api.DeploymentsCancelPreviewRequest.fromJson(json); |
| 1814 checkDeploymentsCancelPreviewRequest(obj); | 1814 checkDeploymentsCancelPreviewRequest(obj); |
| 1815 | 1815 |
| 1816 var path = (req.url).path; | 1816 var path = (req.url).path; |
| 1817 var pathOffset = 0; | 1817 var pathOffset = 0; |
| 1818 var index; | 1818 var index; |
| 1819 var subPart; | 1819 var subPart; |
| 1820 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1820 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1821 pathOffset += 1; | 1821 pathOffset += 1; |
| 1822 | 1822 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1837 } | 1837 } |
| 1838 } | 1838 } |
| 1839 | 1839 |
| 1840 | 1840 |
| 1841 var h = { | 1841 var h = { |
| 1842 "content-type" : "application/json; charset=utf-8", | 1842 "content-type" : "application/json; charset=utf-8", |
| 1843 }; | 1843 }; |
| 1844 var resp = convert.JSON.encode(buildOperation()); | 1844 var resp = convert.JSON.encode(buildOperation()); |
| 1845 return new async.Future.value(stringResponse(200, h, resp)); | 1845 return new async.Future.value(stringResponse(200, h, resp)); |
| 1846 }), true); | 1846 }), true); |
| 1847 res.cancelPreview(arg_request, arg_project, arg_deployment).then(unittest.
expectAsync(((api.Operation response) { | 1847 res.cancelPreview(arg_request, arg_project, arg_deployment).then(unittest.
expectAsync1(((api.Operation response) { |
| 1848 checkOperation(response); | 1848 checkOperation(response); |
| 1849 }))); | 1849 }))); |
| 1850 }); | 1850 }); |
| 1851 | 1851 |
| 1852 unittest.test("method--delete", () { | 1852 unittest.test("method--delete", () { |
| 1853 | 1853 |
| 1854 var mock = new HttpServerMock(); | 1854 var mock = new HttpServerMock(); |
| 1855 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 1855 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
| 1856 var arg_project = "foo"; | 1856 var arg_project = "foo"; |
| 1857 var arg_deployment = "foo"; | 1857 var arg_deployment = "foo"; |
| 1858 var arg_deletePolicy = "foo"; | 1858 var arg_deletePolicy = "foo"; |
| 1859 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1859 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1860 var path = (req.url).path; | 1860 var path = (req.url).path; |
| 1861 var pathOffset = 0; | 1861 var pathOffset = 0; |
| 1862 var index; | 1862 var index; |
| 1863 var subPart; | 1863 var subPart; |
| 1864 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1864 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1865 pathOffset += 1; | 1865 pathOffset += 1; |
| 1866 | 1866 |
| 1867 var query = (req.url).query; | 1867 var query = (req.url).query; |
| 1868 var queryOffset = 0; | 1868 var queryOffset = 0; |
| 1869 var queryMap = {}; | 1869 var queryMap = {}; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1882 } | 1882 } |
| 1883 unittest.expect(queryMap["deletePolicy"].first, unittest.equals(arg_dele
tePolicy)); | 1883 unittest.expect(queryMap["deletePolicy"].first, unittest.equals(arg_dele
tePolicy)); |
| 1884 | 1884 |
| 1885 | 1885 |
| 1886 var h = { | 1886 var h = { |
| 1887 "content-type" : "application/json; charset=utf-8", | 1887 "content-type" : "application/json; charset=utf-8", |
| 1888 }; | 1888 }; |
| 1889 var resp = convert.JSON.encode(buildOperation()); | 1889 var resp = convert.JSON.encode(buildOperation()); |
| 1890 return new async.Future.value(stringResponse(200, h, resp)); | 1890 return new async.Future.value(stringResponse(200, h, resp)); |
| 1891 }), true); | 1891 }), true); |
| 1892 res.delete(arg_project, arg_deployment, deletePolicy: arg_deletePolicy).th
en(unittest.expectAsync(((api.Operation response) { | 1892 res.delete(arg_project, arg_deployment, deletePolicy: arg_deletePolicy).th
en(unittest.expectAsync1(((api.Operation response) { |
| 1893 checkOperation(response); | 1893 checkOperation(response); |
| 1894 }))); | 1894 }))); |
| 1895 }); | 1895 }); |
| 1896 | 1896 |
| 1897 unittest.test("method--get", () { | 1897 unittest.test("method--get", () { |
| 1898 | 1898 |
| 1899 var mock = new HttpServerMock(); | 1899 var mock = new HttpServerMock(); |
| 1900 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 1900 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
| 1901 var arg_project = "foo"; | 1901 var arg_project = "foo"; |
| 1902 var arg_deployment = "foo"; | 1902 var arg_deployment = "foo"; |
| 1903 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1903 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1904 var path = (req.url).path; | 1904 var path = (req.url).path; |
| 1905 var pathOffset = 0; | 1905 var pathOffset = 0; |
| 1906 var index; | 1906 var index; |
| 1907 var subPart; | 1907 var subPart; |
| 1908 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1908 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1909 pathOffset += 1; | 1909 pathOffset += 1; |
| 1910 | 1910 |
| 1911 var query = (req.url).query; | 1911 var query = (req.url).query; |
| 1912 var queryOffset = 0; | 1912 var queryOffset = 0; |
| 1913 var queryMap = {}; | 1913 var queryMap = {}; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1925 } | 1925 } |
| 1926 } | 1926 } |
| 1927 | 1927 |
| 1928 | 1928 |
| 1929 var h = { | 1929 var h = { |
| 1930 "content-type" : "application/json; charset=utf-8", | 1930 "content-type" : "application/json; charset=utf-8", |
| 1931 }; | 1931 }; |
| 1932 var resp = convert.JSON.encode(buildDeployment()); | 1932 var resp = convert.JSON.encode(buildDeployment()); |
| 1933 return new async.Future.value(stringResponse(200, h, resp)); | 1933 return new async.Future.value(stringResponse(200, h, resp)); |
| 1934 }), true); | 1934 }), true); |
| 1935 res.get(arg_project, arg_deployment).then(unittest.expectAsync(((api.Deplo
yment response) { | 1935 res.get(arg_project, arg_deployment).then(unittest.expectAsync1(((api.Depl
oyment response) { |
| 1936 checkDeployment(response); | 1936 checkDeployment(response); |
| 1937 }))); | 1937 }))); |
| 1938 }); | 1938 }); |
| 1939 | 1939 |
| 1940 unittest.test("method--getIamPolicy", () { | 1940 unittest.test("method--getIamPolicy", () { |
| 1941 | 1941 |
| 1942 var mock = new HttpServerMock(); | 1942 var mock = new HttpServerMock(); |
| 1943 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 1943 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
| 1944 var arg_project = "foo"; | 1944 var arg_project = "foo"; |
| 1945 var arg_resource = "foo"; | 1945 var arg_resource = "foo"; |
| 1946 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1946 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1947 var path = (req.url).path; | 1947 var path = (req.url).path; |
| 1948 var pathOffset = 0; | 1948 var pathOffset = 0; |
| 1949 var index; | 1949 var index; |
| 1950 var subPart; | 1950 var subPart; |
| 1951 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1951 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1952 pathOffset += 1; | 1952 pathOffset += 1; |
| 1953 | 1953 |
| 1954 var query = (req.url).query; | 1954 var query = (req.url).query; |
| 1955 var queryOffset = 0; | 1955 var queryOffset = 0; |
| 1956 var queryMap = {}; | 1956 var queryMap = {}; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1968 } | 1968 } |
| 1969 } | 1969 } |
| 1970 | 1970 |
| 1971 | 1971 |
| 1972 var h = { | 1972 var h = { |
| 1973 "content-type" : "application/json; charset=utf-8", | 1973 "content-type" : "application/json; charset=utf-8", |
| 1974 }; | 1974 }; |
| 1975 var resp = convert.JSON.encode(buildPolicy()); | 1975 var resp = convert.JSON.encode(buildPolicy()); |
| 1976 return new async.Future.value(stringResponse(200, h, resp)); | 1976 return new async.Future.value(stringResponse(200, h, resp)); |
| 1977 }), true); | 1977 }), true); |
| 1978 res.getIamPolicy(arg_project, arg_resource).then(unittest.expectAsync(((ap
i.Policy response) { | 1978 res.getIamPolicy(arg_project, arg_resource).then(unittest.expectAsync1(((a
pi.Policy response) { |
| 1979 checkPolicy(response); | 1979 checkPolicy(response); |
| 1980 }))); | 1980 }))); |
| 1981 }); | 1981 }); |
| 1982 | 1982 |
| 1983 unittest.test("method--insert", () { | 1983 unittest.test("method--insert", () { |
| 1984 | 1984 |
| 1985 var mock = new HttpServerMock(); | 1985 var mock = new HttpServerMock(); |
| 1986 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 1986 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
| 1987 var arg_request = buildDeployment(); | 1987 var arg_request = buildDeployment(); |
| 1988 var arg_project = "foo"; | 1988 var arg_project = "foo"; |
| 1989 var arg_preview = true; | 1989 var arg_preview = true; |
| 1990 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1990 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1991 var obj = new api.Deployment.fromJson(json); | 1991 var obj = new api.Deployment.fromJson(json); |
| 1992 checkDeployment(obj); | 1992 checkDeployment(obj); |
| 1993 | 1993 |
| 1994 var path = (req.url).path; | 1994 var path = (req.url).path; |
| 1995 var pathOffset = 0; | 1995 var pathOffset = 0; |
| 1996 var index; | 1996 var index; |
| 1997 var subPart; | 1997 var subPart; |
| 1998 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1998 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1999 pathOffset += 1; | 1999 pathOffset += 1; |
| 2000 | 2000 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2016 } | 2016 } |
| 2017 unittest.expect(queryMap["preview"].first, unittest.equals("$arg_preview
")); | 2017 unittest.expect(queryMap["preview"].first, unittest.equals("$arg_preview
")); |
| 2018 | 2018 |
| 2019 | 2019 |
| 2020 var h = { | 2020 var h = { |
| 2021 "content-type" : "application/json; charset=utf-8", | 2021 "content-type" : "application/json; charset=utf-8", |
| 2022 }; | 2022 }; |
| 2023 var resp = convert.JSON.encode(buildOperation()); | 2023 var resp = convert.JSON.encode(buildOperation()); |
| 2024 return new async.Future.value(stringResponse(200, h, resp)); | 2024 return new async.Future.value(stringResponse(200, h, resp)); |
| 2025 }), true); | 2025 }), true); |
| 2026 res.insert(arg_request, arg_project, preview: arg_preview).then(unittest.e
xpectAsync(((api.Operation response) { | 2026 res.insert(arg_request, arg_project, preview: arg_preview).then(unittest.e
xpectAsync1(((api.Operation response) { |
| 2027 checkOperation(response); | 2027 checkOperation(response); |
| 2028 }))); | 2028 }))); |
| 2029 }); | 2029 }); |
| 2030 | 2030 |
| 2031 unittest.test("method--list", () { | 2031 unittest.test("method--list", () { |
| 2032 | 2032 |
| 2033 var mock = new HttpServerMock(); | 2033 var mock = new HttpServerMock(); |
| 2034 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 2034 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
| 2035 var arg_project = "foo"; | 2035 var arg_project = "foo"; |
| 2036 var arg_filter = "foo"; | 2036 var arg_filter = "foo"; |
| 2037 var arg_maxResults = 42; | 2037 var arg_maxResults = 42; |
| 2038 var arg_orderBy = "foo"; | 2038 var arg_orderBy = "foo"; |
| 2039 var arg_pageToken = "foo"; | 2039 var arg_pageToken = "foo"; |
| 2040 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2040 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2041 var path = (req.url).path; | 2041 var path = (req.url).path; |
| 2042 var pathOffset = 0; | 2042 var pathOffset = 0; |
| 2043 var index; | 2043 var index; |
| 2044 var subPart; | 2044 var subPart; |
| 2045 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2045 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2046 pathOffset += 1; | 2046 pathOffset += 1; |
| 2047 | 2047 |
| 2048 var query = (req.url).query; | 2048 var query = (req.url).query; |
| 2049 var queryOffset = 0; | 2049 var queryOffset = 0; |
| 2050 var queryMap = {}; | 2050 var queryMap = {}; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2066 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 2066 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 2067 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2067 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2068 | 2068 |
| 2069 | 2069 |
| 2070 var h = { | 2070 var h = { |
| 2071 "content-type" : "application/json; charset=utf-8", | 2071 "content-type" : "application/json; charset=utf-8", |
| 2072 }; | 2072 }; |
| 2073 var resp = convert.JSON.encode(buildDeploymentsListResponse()); | 2073 var resp = convert.JSON.encode(buildDeploymentsListResponse()); |
| 2074 return new async.Future.value(stringResponse(200, h, resp)); | 2074 return new async.Future.value(stringResponse(200, h, resp)); |
| 2075 }), true); | 2075 }), true); |
| 2076 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Depl
oymentsListResponse response) { | 2076 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Dep
loymentsListResponse response) { |
| 2077 checkDeploymentsListResponse(response); | 2077 checkDeploymentsListResponse(response); |
| 2078 }))); | 2078 }))); |
| 2079 }); | 2079 }); |
| 2080 | 2080 |
| 2081 unittest.test("method--patch", () { | 2081 unittest.test("method--patch", () { |
| 2082 | 2082 |
| 2083 var mock = new HttpServerMock(); | 2083 var mock = new HttpServerMock(); |
| 2084 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 2084 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
| 2085 var arg_request = buildDeployment(); | 2085 var arg_request = buildDeployment(); |
| 2086 var arg_project = "foo"; | 2086 var arg_project = "foo"; |
| 2087 var arg_deployment = "foo"; | 2087 var arg_deployment = "foo"; |
| 2088 var arg_createPolicy = "foo"; | 2088 var arg_createPolicy = "foo"; |
| 2089 var arg_deletePolicy = "foo"; | 2089 var arg_deletePolicy = "foo"; |
| 2090 var arg_preview = true; | 2090 var arg_preview = true; |
| 2091 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2091 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2092 var obj = new api.Deployment.fromJson(json); | 2092 var obj = new api.Deployment.fromJson(json); |
| 2093 checkDeployment(obj); | 2093 checkDeployment(obj); |
| 2094 | 2094 |
| 2095 var path = (req.url).path; | 2095 var path = (req.url).path; |
| 2096 var pathOffset = 0; | 2096 var pathOffset = 0; |
| 2097 var index; | 2097 var index; |
| 2098 var subPart; | 2098 var subPart; |
| 2099 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2099 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2100 pathOffset += 1; | 2100 pathOffset += 1; |
| 2101 | 2101 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2119 unittest.expect(queryMap["deletePolicy"].first, unittest.equals(arg_dele
tePolicy)); | 2119 unittest.expect(queryMap["deletePolicy"].first, unittest.equals(arg_dele
tePolicy)); |
| 2120 unittest.expect(queryMap["preview"].first, unittest.equals("$arg_preview
")); | 2120 unittest.expect(queryMap["preview"].first, unittest.equals("$arg_preview
")); |
| 2121 | 2121 |
| 2122 | 2122 |
| 2123 var h = { | 2123 var h = { |
| 2124 "content-type" : "application/json; charset=utf-8", | 2124 "content-type" : "application/json; charset=utf-8", |
| 2125 }; | 2125 }; |
| 2126 var resp = convert.JSON.encode(buildOperation()); | 2126 var resp = convert.JSON.encode(buildOperation()); |
| 2127 return new async.Future.value(stringResponse(200, h, resp)); | 2127 return new async.Future.value(stringResponse(200, h, resp)); |
| 2128 }), true); | 2128 }), true); |
| 2129 res.patch(arg_request, arg_project, arg_deployment, createPolicy: arg_crea
tePolicy, deletePolicy: arg_deletePolicy, preview: arg_preview).then(unittest.ex
pectAsync(((api.Operation response) { | 2129 res.patch(arg_request, arg_project, arg_deployment, createPolicy: arg_crea
tePolicy, deletePolicy: arg_deletePolicy, preview: arg_preview).then(unittest.ex
pectAsync1(((api.Operation response) { |
| 2130 checkOperation(response); | 2130 checkOperation(response); |
| 2131 }))); | 2131 }))); |
| 2132 }); | 2132 }); |
| 2133 | 2133 |
| 2134 unittest.test("method--setIamPolicy", () { | 2134 unittest.test("method--setIamPolicy", () { |
| 2135 | 2135 |
| 2136 var mock = new HttpServerMock(); | 2136 var mock = new HttpServerMock(); |
| 2137 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 2137 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
| 2138 var arg_request = buildPolicy(); | 2138 var arg_request = buildPolicy(); |
| 2139 var arg_project = "foo"; | 2139 var arg_project = "foo"; |
| 2140 var arg_resource = "foo"; | 2140 var arg_resource = "foo"; |
| 2141 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2141 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2142 var obj = new api.Policy.fromJson(json); | 2142 var obj = new api.Policy.fromJson(json); |
| 2143 checkPolicy(obj); | 2143 checkPolicy(obj); |
| 2144 | 2144 |
| 2145 var path = (req.url).path; | 2145 var path = (req.url).path; |
| 2146 var pathOffset = 0; | 2146 var pathOffset = 0; |
| 2147 var index; | 2147 var index; |
| 2148 var subPart; | 2148 var subPart; |
| 2149 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2149 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2150 pathOffset += 1; | 2150 pathOffset += 1; |
| 2151 | 2151 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2166 } | 2166 } |
| 2167 } | 2167 } |
| 2168 | 2168 |
| 2169 | 2169 |
| 2170 var h = { | 2170 var h = { |
| 2171 "content-type" : "application/json; charset=utf-8", | 2171 "content-type" : "application/json; charset=utf-8", |
| 2172 }; | 2172 }; |
| 2173 var resp = convert.JSON.encode(buildPolicy()); | 2173 var resp = convert.JSON.encode(buildPolicy()); |
| 2174 return new async.Future.value(stringResponse(200, h, resp)); | 2174 return new async.Future.value(stringResponse(200, h, resp)); |
| 2175 }), true); | 2175 }), true); |
| 2176 res.setIamPolicy(arg_request, arg_project, arg_resource).then(unittest.exp
ectAsync(((api.Policy response) { | 2176 res.setIamPolicy(arg_request, arg_project, arg_resource).then(unittest.exp
ectAsync1(((api.Policy response) { |
| 2177 checkPolicy(response); | 2177 checkPolicy(response); |
| 2178 }))); | 2178 }))); |
| 2179 }); | 2179 }); |
| 2180 | 2180 |
| 2181 unittest.test("method--stop", () { | 2181 unittest.test("method--stop", () { |
| 2182 | 2182 |
| 2183 var mock = new HttpServerMock(); | 2183 var mock = new HttpServerMock(); |
| 2184 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 2184 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
| 2185 var arg_request = buildDeploymentsStopRequest(); | 2185 var arg_request = buildDeploymentsStopRequest(); |
| 2186 var arg_project = "foo"; | 2186 var arg_project = "foo"; |
| 2187 var arg_deployment = "foo"; | 2187 var arg_deployment = "foo"; |
| 2188 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2188 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2189 var obj = new api.DeploymentsStopRequest.fromJson(json); | 2189 var obj = new api.DeploymentsStopRequest.fromJson(json); |
| 2190 checkDeploymentsStopRequest(obj); | 2190 checkDeploymentsStopRequest(obj); |
| 2191 | 2191 |
| 2192 var path = (req.url).path; | 2192 var path = (req.url).path; |
| 2193 var pathOffset = 0; | 2193 var pathOffset = 0; |
| 2194 var index; | 2194 var index; |
| 2195 var subPart; | 2195 var subPart; |
| 2196 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2196 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2197 pathOffset += 1; | 2197 pathOffset += 1; |
| 2198 | 2198 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2213 } | 2213 } |
| 2214 } | 2214 } |
| 2215 | 2215 |
| 2216 | 2216 |
| 2217 var h = { | 2217 var h = { |
| 2218 "content-type" : "application/json; charset=utf-8", | 2218 "content-type" : "application/json; charset=utf-8", |
| 2219 }; | 2219 }; |
| 2220 var resp = convert.JSON.encode(buildOperation()); | 2220 var resp = convert.JSON.encode(buildOperation()); |
| 2221 return new async.Future.value(stringResponse(200, h, resp)); | 2221 return new async.Future.value(stringResponse(200, h, resp)); |
| 2222 }), true); | 2222 }), true); |
| 2223 res.stop(arg_request, arg_project, arg_deployment).then(unittest.expectAsy
nc(((api.Operation response) { | 2223 res.stop(arg_request, arg_project, arg_deployment).then(unittest.expectAsy
nc1(((api.Operation response) { |
| 2224 checkOperation(response); | 2224 checkOperation(response); |
| 2225 }))); | 2225 }))); |
| 2226 }); | 2226 }); |
| 2227 | 2227 |
| 2228 unittest.test("method--testIamPermissions", () { | 2228 unittest.test("method--testIamPermissions", () { |
| 2229 | 2229 |
| 2230 var mock = new HttpServerMock(); | 2230 var mock = new HttpServerMock(); |
| 2231 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 2231 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
| 2232 var arg_request = buildTestPermissionsRequest(); | 2232 var arg_request = buildTestPermissionsRequest(); |
| 2233 var arg_project = "foo"; | 2233 var arg_project = "foo"; |
| 2234 var arg_resource = "foo"; | 2234 var arg_resource = "foo"; |
| 2235 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2235 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2236 var obj = new api.TestPermissionsRequest.fromJson(json); | 2236 var obj = new api.TestPermissionsRequest.fromJson(json); |
| 2237 checkTestPermissionsRequest(obj); | 2237 checkTestPermissionsRequest(obj); |
| 2238 | 2238 |
| 2239 var path = (req.url).path; | 2239 var path = (req.url).path; |
| 2240 var pathOffset = 0; | 2240 var pathOffset = 0; |
| 2241 var index; | 2241 var index; |
| 2242 var subPart; | 2242 var subPart; |
| 2243 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2243 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2244 pathOffset += 1; | 2244 pathOffset += 1; |
| 2245 | 2245 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2260 } | 2260 } |
| 2261 } | 2261 } |
| 2262 | 2262 |
| 2263 | 2263 |
| 2264 var h = { | 2264 var h = { |
| 2265 "content-type" : "application/json; charset=utf-8", | 2265 "content-type" : "application/json; charset=utf-8", |
| 2266 }; | 2266 }; |
| 2267 var resp = convert.JSON.encode(buildTestPermissionsResponse()); | 2267 var resp = convert.JSON.encode(buildTestPermissionsResponse()); |
| 2268 return new async.Future.value(stringResponse(200, h, resp)); | 2268 return new async.Future.value(stringResponse(200, h, resp)); |
| 2269 }), true); | 2269 }), true); |
| 2270 res.testIamPermissions(arg_request, arg_project, arg_resource).then(unitte
st.expectAsync(((api.TestPermissionsResponse response) { | 2270 res.testIamPermissions(arg_request, arg_project, arg_resource).then(unitte
st.expectAsync1(((api.TestPermissionsResponse response) { |
| 2271 checkTestPermissionsResponse(response); | 2271 checkTestPermissionsResponse(response); |
| 2272 }))); | 2272 }))); |
| 2273 }); | 2273 }); |
| 2274 | 2274 |
| 2275 unittest.test("method--update", () { | 2275 unittest.test("method--update", () { |
| 2276 | 2276 |
| 2277 var mock = new HttpServerMock(); | 2277 var mock = new HttpServerMock(); |
| 2278 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; | 2278 api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deploy
ments; |
| 2279 var arg_request = buildDeployment(); | 2279 var arg_request = buildDeployment(); |
| 2280 var arg_project = "foo"; | 2280 var arg_project = "foo"; |
| 2281 var arg_deployment = "foo"; | 2281 var arg_deployment = "foo"; |
| 2282 var arg_createPolicy = "foo"; | 2282 var arg_createPolicy = "foo"; |
| 2283 var arg_deletePolicy = "foo"; | 2283 var arg_deletePolicy = "foo"; |
| 2284 var arg_preview = true; | 2284 var arg_preview = true; |
| 2285 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2285 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2286 var obj = new api.Deployment.fromJson(json); | 2286 var obj = new api.Deployment.fromJson(json); |
| 2287 checkDeployment(obj); | 2287 checkDeployment(obj); |
| 2288 | 2288 |
| 2289 var path = (req.url).path; | 2289 var path = (req.url).path; |
| 2290 var pathOffset = 0; | 2290 var pathOffset = 0; |
| 2291 var index; | 2291 var index; |
| 2292 var subPart; | 2292 var subPart; |
| 2293 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2293 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2294 pathOffset += 1; | 2294 pathOffset += 1; |
| 2295 | 2295 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2313 unittest.expect(queryMap["deletePolicy"].first, unittest.equals(arg_dele
tePolicy)); | 2313 unittest.expect(queryMap["deletePolicy"].first, unittest.equals(arg_dele
tePolicy)); |
| 2314 unittest.expect(queryMap["preview"].first, unittest.equals("$arg_preview
")); | 2314 unittest.expect(queryMap["preview"].first, unittest.equals("$arg_preview
")); |
| 2315 | 2315 |
| 2316 | 2316 |
| 2317 var h = { | 2317 var h = { |
| 2318 "content-type" : "application/json; charset=utf-8", | 2318 "content-type" : "application/json; charset=utf-8", |
| 2319 }; | 2319 }; |
| 2320 var resp = convert.JSON.encode(buildOperation()); | 2320 var resp = convert.JSON.encode(buildOperation()); |
| 2321 return new async.Future.value(stringResponse(200, h, resp)); | 2321 return new async.Future.value(stringResponse(200, h, resp)); |
| 2322 }), true); | 2322 }), true); |
| 2323 res.update(arg_request, arg_project, arg_deployment, createPolicy: arg_cre
atePolicy, deletePolicy: arg_deletePolicy, preview: arg_preview).then(unittest.e
xpectAsync(((api.Operation response) { | 2323 res.update(arg_request, arg_project, arg_deployment, createPolicy: arg_cre
atePolicy, deletePolicy: arg_deletePolicy, preview: arg_preview).then(unittest.e
xpectAsync1(((api.Operation response) { |
| 2324 checkOperation(response); | 2324 checkOperation(response); |
| 2325 }))); | 2325 }))); |
| 2326 }); | 2326 }); |
| 2327 | 2327 |
| 2328 }); | 2328 }); |
| 2329 | 2329 |
| 2330 | 2330 |
| 2331 unittest.group("resource-ManifestsResourceApi", () { | 2331 unittest.group("resource-ManifestsResourceApi", () { |
| 2332 unittest.test("method--get", () { | 2332 unittest.test("method--get", () { |
| 2333 | 2333 |
| 2334 var mock = new HttpServerMock(); | 2334 var mock = new HttpServerMock(); |
| 2335 api.ManifestsResourceApi res = new api.DeploymentmanagerApi(mock).manifest
s; | 2335 api.ManifestsResourceApi res = new api.DeploymentmanagerApi(mock).manifest
s; |
| 2336 var arg_project = "foo"; | 2336 var arg_project = "foo"; |
| 2337 var arg_deployment = "foo"; | 2337 var arg_deployment = "foo"; |
| 2338 var arg_manifest = "foo"; | 2338 var arg_manifest = "foo"; |
| 2339 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2339 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2340 var path = (req.url).path; | 2340 var path = (req.url).path; |
| 2341 var pathOffset = 0; | 2341 var pathOffset = 0; |
| 2342 var index; | 2342 var index; |
| 2343 var subPart; | 2343 var subPart; |
| 2344 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2344 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2345 pathOffset += 1; | 2345 pathOffset += 1; |
| 2346 | 2346 |
| 2347 var query = (req.url).query; | 2347 var query = (req.url).query; |
| 2348 var queryOffset = 0; | 2348 var queryOffset = 0; |
| 2349 var queryMap = {}; | 2349 var queryMap = {}; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2361 } | 2361 } |
| 2362 } | 2362 } |
| 2363 | 2363 |
| 2364 | 2364 |
| 2365 var h = { | 2365 var h = { |
| 2366 "content-type" : "application/json; charset=utf-8", | 2366 "content-type" : "application/json; charset=utf-8", |
| 2367 }; | 2367 }; |
| 2368 var resp = convert.JSON.encode(buildManifest()); | 2368 var resp = convert.JSON.encode(buildManifest()); |
| 2369 return new async.Future.value(stringResponse(200, h, resp)); | 2369 return new async.Future.value(stringResponse(200, h, resp)); |
| 2370 }), true); | 2370 }), true); |
| 2371 res.get(arg_project, arg_deployment, arg_manifest).then(unittest.expectAsy
nc(((api.Manifest response) { | 2371 res.get(arg_project, arg_deployment, arg_manifest).then(unittest.expectAsy
nc1(((api.Manifest response) { |
| 2372 checkManifest(response); | 2372 checkManifest(response); |
| 2373 }))); | 2373 }))); |
| 2374 }); | 2374 }); |
| 2375 | 2375 |
| 2376 unittest.test("method--list", () { | 2376 unittest.test("method--list", () { |
| 2377 | 2377 |
| 2378 var mock = new HttpServerMock(); | 2378 var mock = new HttpServerMock(); |
| 2379 api.ManifestsResourceApi res = new api.DeploymentmanagerApi(mock).manifest
s; | 2379 api.ManifestsResourceApi res = new api.DeploymentmanagerApi(mock).manifest
s; |
| 2380 var arg_project = "foo"; | 2380 var arg_project = "foo"; |
| 2381 var arg_deployment = "foo"; | 2381 var arg_deployment = "foo"; |
| 2382 var arg_filter = "foo"; | 2382 var arg_filter = "foo"; |
| 2383 var arg_maxResults = 42; | 2383 var arg_maxResults = 42; |
| 2384 var arg_orderBy = "foo"; | 2384 var arg_orderBy = "foo"; |
| 2385 var arg_pageToken = "foo"; | 2385 var arg_pageToken = "foo"; |
| 2386 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2386 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2387 var path = (req.url).path; | 2387 var path = (req.url).path; |
| 2388 var pathOffset = 0; | 2388 var pathOffset = 0; |
| 2389 var index; | 2389 var index; |
| 2390 var subPart; | 2390 var subPart; |
| 2391 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2391 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2392 pathOffset += 1; | 2392 pathOffset += 1; |
| 2393 | 2393 |
| 2394 var query = (req.url).query; | 2394 var query = (req.url).query; |
| 2395 var queryOffset = 0; | 2395 var queryOffset = 0; |
| 2396 var queryMap = {}; | 2396 var queryMap = {}; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2412 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 2412 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 2413 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2413 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2414 | 2414 |
| 2415 | 2415 |
| 2416 var h = { | 2416 var h = { |
| 2417 "content-type" : "application/json; charset=utf-8", | 2417 "content-type" : "application/json; charset=utf-8", |
| 2418 }; | 2418 }; |
| 2419 var resp = convert.JSON.encode(buildManifestsListResponse()); | 2419 var resp = convert.JSON.encode(buildManifestsListResponse()); |
| 2420 return new async.Future.value(stringResponse(200, h, resp)); | 2420 return new async.Future.value(stringResponse(200, h, resp)); |
| 2421 }), true); | 2421 }), true); |
| 2422 res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_
maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expect
Async(((api.ManifestsListResponse response) { | 2422 res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_
maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expect
Async1(((api.ManifestsListResponse response) { |
| 2423 checkManifestsListResponse(response); | 2423 checkManifestsListResponse(response); |
| 2424 }))); | 2424 }))); |
| 2425 }); | 2425 }); |
| 2426 | 2426 |
| 2427 }); | 2427 }); |
| 2428 | 2428 |
| 2429 | 2429 |
| 2430 unittest.group("resource-OperationsResourceApi", () { | 2430 unittest.group("resource-OperationsResourceApi", () { |
| 2431 unittest.test("method--get", () { | 2431 unittest.test("method--get", () { |
| 2432 | 2432 |
| 2433 var mock = new HttpServerMock(); | 2433 var mock = new HttpServerMock(); |
| 2434 api.OperationsResourceApi res = new api.DeploymentmanagerApi(mock).operati
ons; | 2434 api.OperationsResourceApi res = new api.DeploymentmanagerApi(mock).operati
ons; |
| 2435 var arg_project = "foo"; | 2435 var arg_project = "foo"; |
| 2436 var arg_operation = "foo"; | 2436 var arg_operation = "foo"; |
| 2437 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2437 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2438 var path = (req.url).path; | 2438 var path = (req.url).path; |
| 2439 var pathOffset = 0; | 2439 var pathOffset = 0; |
| 2440 var index; | 2440 var index; |
| 2441 var subPart; | 2441 var subPart; |
| 2442 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2442 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2443 pathOffset += 1; | 2443 pathOffset += 1; |
| 2444 | 2444 |
| 2445 var query = (req.url).query; | 2445 var query = (req.url).query; |
| 2446 var queryOffset = 0; | 2446 var queryOffset = 0; |
| 2447 var queryMap = {}; | 2447 var queryMap = {}; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2459 } | 2459 } |
| 2460 } | 2460 } |
| 2461 | 2461 |
| 2462 | 2462 |
| 2463 var h = { | 2463 var h = { |
| 2464 "content-type" : "application/json; charset=utf-8", | 2464 "content-type" : "application/json; charset=utf-8", |
| 2465 }; | 2465 }; |
| 2466 var resp = convert.JSON.encode(buildOperation()); | 2466 var resp = convert.JSON.encode(buildOperation()); |
| 2467 return new async.Future.value(stringResponse(200, h, resp)); | 2467 return new async.Future.value(stringResponse(200, h, resp)); |
| 2468 }), true); | 2468 }), true); |
| 2469 res.get(arg_project, arg_operation).then(unittest.expectAsync(((api.Operat
ion response) { | 2469 res.get(arg_project, arg_operation).then(unittest.expectAsync1(((api.Opera
tion response) { |
| 2470 checkOperation(response); | 2470 checkOperation(response); |
| 2471 }))); | 2471 }))); |
| 2472 }); | 2472 }); |
| 2473 | 2473 |
| 2474 unittest.test("method--list", () { | 2474 unittest.test("method--list", () { |
| 2475 | 2475 |
| 2476 var mock = new HttpServerMock(); | 2476 var mock = new HttpServerMock(); |
| 2477 api.OperationsResourceApi res = new api.DeploymentmanagerApi(mock).operati
ons; | 2477 api.OperationsResourceApi res = new api.DeploymentmanagerApi(mock).operati
ons; |
| 2478 var arg_project = "foo"; | 2478 var arg_project = "foo"; |
| 2479 var arg_filter = "foo"; | 2479 var arg_filter = "foo"; |
| 2480 var arg_maxResults = 42; | 2480 var arg_maxResults = 42; |
| 2481 var arg_orderBy = "foo"; | 2481 var arg_orderBy = "foo"; |
| 2482 var arg_pageToken = "foo"; | 2482 var arg_pageToken = "foo"; |
| 2483 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2483 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2484 var path = (req.url).path; | 2484 var path = (req.url).path; |
| 2485 var pathOffset = 0; | 2485 var pathOffset = 0; |
| 2486 var index; | 2486 var index; |
| 2487 var subPart; | 2487 var subPart; |
| 2488 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2488 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2489 pathOffset += 1; | 2489 pathOffset += 1; |
| 2490 | 2490 |
| 2491 var query = (req.url).query; | 2491 var query = (req.url).query; |
| 2492 var queryOffset = 0; | 2492 var queryOffset = 0; |
| 2493 var queryMap = {}; | 2493 var queryMap = {}; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2509 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 2509 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 2510 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2510 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2511 | 2511 |
| 2512 | 2512 |
| 2513 var h = { | 2513 var h = { |
| 2514 "content-type" : "application/json; charset=utf-8", | 2514 "content-type" : "application/json; charset=utf-8", |
| 2515 }; | 2515 }; |
| 2516 var resp = convert.JSON.encode(buildOperationsListResponse()); | 2516 var resp = convert.JSON.encode(buildOperationsListResponse()); |
| 2517 return new async.Future.value(stringResponse(200, h, resp)); | 2517 return new async.Future.value(stringResponse(200, h, resp)); |
| 2518 }), true); | 2518 }), true); |
| 2519 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Oper
ationsListResponse response) { | 2519 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Ope
rationsListResponse response) { |
| 2520 checkOperationsListResponse(response); | 2520 checkOperationsListResponse(response); |
| 2521 }))); | 2521 }))); |
| 2522 }); | 2522 }); |
| 2523 | 2523 |
| 2524 }); | 2524 }); |
| 2525 | 2525 |
| 2526 | 2526 |
| 2527 unittest.group("resource-ResourcesResourceApi", () { | 2527 unittest.group("resource-ResourcesResourceApi", () { |
| 2528 unittest.test("method--get", () { | 2528 unittest.test("method--get", () { |
| 2529 | 2529 |
| 2530 var mock = new HttpServerMock(); | 2530 var mock = new HttpServerMock(); |
| 2531 api.ResourcesResourceApi res = new api.DeploymentmanagerApi(mock).resource
s; | 2531 api.ResourcesResourceApi res = new api.DeploymentmanagerApi(mock).resource
s; |
| 2532 var arg_project = "foo"; | 2532 var arg_project = "foo"; |
| 2533 var arg_deployment = "foo"; | 2533 var arg_deployment = "foo"; |
| 2534 var arg_resource = "foo"; | 2534 var arg_resource = "foo"; |
| 2535 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2535 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2536 var path = (req.url).path; | 2536 var path = (req.url).path; |
| 2537 var pathOffset = 0; | 2537 var pathOffset = 0; |
| 2538 var index; | 2538 var index; |
| 2539 var subPart; | 2539 var subPart; |
| 2540 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2540 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2541 pathOffset += 1; | 2541 pathOffset += 1; |
| 2542 | 2542 |
| 2543 var query = (req.url).query; | 2543 var query = (req.url).query; |
| 2544 var queryOffset = 0; | 2544 var queryOffset = 0; |
| 2545 var queryMap = {}; | 2545 var queryMap = {}; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2557 } | 2557 } |
| 2558 } | 2558 } |
| 2559 | 2559 |
| 2560 | 2560 |
| 2561 var h = { | 2561 var h = { |
| 2562 "content-type" : "application/json; charset=utf-8", | 2562 "content-type" : "application/json; charset=utf-8", |
| 2563 }; | 2563 }; |
| 2564 var resp = convert.JSON.encode(buildResource()); | 2564 var resp = convert.JSON.encode(buildResource()); |
| 2565 return new async.Future.value(stringResponse(200, h, resp)); | 2565 return new async.Future.value(stringResponse(200, h, resp)); |
| 2566 }), true); | 2566 }), true); |
| 2567 res.get(arg_project, arg_deployment, arg_resource).then(unittest.expectAsy
nc(((api.Resource response) { | 2567 res.get(arg_project, arg_deployment, arg_resource).then(unittest.expectAsy
nc1(((api.Resource response) { |
| 2568 checkResource(response); | 2568 checkResource(response); |
| 2569 }))); | 2569 }))); |
| 2570 }); | 2570 }); |
| 2571 | 2571 |
| 2572 unittest.test("method--list", () { | 2572 unittest.test("method--list", () { |
| 2573 | 2573 |
| 2574 var mock = new HttpServerMock(); | 2574 var mock = new HttpServerMock(); |
| 2575 api.ResourcesResourceApi res = new api.DeploymentmanagerApi(mock).resource
s; | 2575 api.ResourcesResourceApi res = new api.DeploymentmanagerApi(mock).resource
s; |
| 2576 var arg_project = "foo"; | 2576 var arg_project = "foo"; |
| 2577 var arg_deployment = "foo"; | 2577 var arg_deployment = "foo"; |
| 2578 var arg_filter = "foo"; | 2578 var arg_filter = "foo"; |
| 2579 var arg_maxResults = 42; | 2579 var arg_maxResults = 42; |
| 2580 var arg_orderBy = "foo"; | 2580 var arg_orderBy = "foo"; |
| 2581 var arg_pageToken = "foo"; | 2581 var arg_pageToken = "foo"; |
| 2582 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2582 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2583 var path = (req.url).path; | 2583 var path = (req.url).path; |
| 2584 var pathOffset = 0; | 2584 var pathOffset = 0; |
| 2585 var index; | 2585 var index; |
| 2586 var subPart; | 2586 var subPart; |
| 2587 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2587 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2588 pathOffset += 1; | 2588 pathOffset += 1; |
| 2589 | 2589 |
| 2590 var query = (req.url).query; | 2590 var query = (req.url).query; |
| 2591 var queryOffset = 0; | 2591 var queryOffset = 0; |
| 2592 var queryMap = {}; | 2592 var queryMap = {}; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2608 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 2608 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 2609 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2609 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2610 | 2610 |
| 2611 | 2611 |
| 2612 var h = { | 2612 var h = { |
| 2613 "content-type" : "application/json; charset=utf-8", | 2613 "content-type" : "application/json; charset=utf-8", |
| 2614 }; | 2614 }; |
| 2615 var resp = convert.JSON.encode(buildResourcesListResponse()); | 2615 var resp = convert.JSON.encode(buildResourcesListResponse()); |
| 2616 return new async.Future.value(stringResponse(200, h, resp)); | 2616 return new async.Future.value(stringResponse(200, h, resp)); |
| 2617 }), true); | 2617 }), true); |
| 2618 res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_
maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expect
Async(((api.ResourcesListResponse response) { | 2618 res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_
maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expect
Async1(((api.ResourcesListResponse response) { |
| 2619 checkResourcesListResponse(response); | 2619 checkResourcesListResponse(response); |
| 2620 }))); | 2620 }))); |
| 2621 }); | 2621 }); |
| 2622 | 2622 |
| 2623 }); | 2623 }); |
| 2624 | 2624 |
| 2625 | 2625 |
| 2626 unittest.group("resource-TypesResourceApi", () { | 2626 unittest.group("resource-TypesResourceApi", () { |
| 2627 unittest.test("method--list", () { | 2627 unittest.test("method--list", () { |
| 2628 | 2628 |
| 2629 var mock = new HttpServerMock(); | 2629 var mock = new HttpServerMock(); |
| 2630 api.TypesResourceApi res = new api.DeploymentmanagerApi(mock).types; | 2630 api.TypesResourceApi res = new api.DeploymentmanagerApi(mock).types; |
| 2631 var arg_project = "foo"; | 2631 var arg_project = "foo"; |
| 2632 var arg_filter = "foo"; | 2632 var arg_filter = "foo"; |
| 2633 var arg_maxResults = 42; | 2633 var arg_maxResults = 42; |
| 2634 var arg_orderBy = "foo"; | 2634 var arg_orderBy = "foo"; |
| 2635 var arg_pageToken = "foo"; | 2635 var arg_pageToken = "foo"; |
| 2636 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2636 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2637 var path = (req.url).path; | 2637 var path = (req.url).path; |
| 2638 var pathOffset = 0; | 2638 var pathOffset = 0; |
| 2639 var index; | 2639 var index; |
| 2640 var subPart; | 2640 var subPart; |
| 2641 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2641 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2642 pathOffset += 1; | 2642 pathOffset += 1; |
| 2643 | 2643 |
| 2644 var query = (req.url).query; | 2644 var query = (req.url).query; |
| 2645 var queryOffset = 0; | 2645 var queryOffset = 0; |
| 2646 var queryMap = {}; | 2646 var queryMap = {}; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2662 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 2662 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 2663 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2663 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2664 | 2664 |
| 2665 | 2665 |
| 2666 var h = { | 2666 var h = { |
| 2667 "content-type" : "application/json; charset=utf-8", | 2667 "content-type" : "application/json; charset=utf-8", |
| 2668 }; | 2668 }; |
| 2669 var resp = convert.JSON.encode(buildTypesListResponse()); | 2669 var resp = convert.JSON.encode(buildTypesListResponse()); |
| 2670 return new async.Future.value(stringResponse(200, h, resp)); | 2670 return new async.Future.value(stringResponse(200, h, resp)); |
| 2671 }), true); | 2671 }), true); |
| 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) { | 2672 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Typ
esListResponse response) { |
| 2673 checkTypesListResponse(response); | 2673 checkTypesListResponse(response); |
| 2674 }))); | 2674 }))); |
| 2675 }); | 2675 }); |
| 2676 | 2676 |
| 2677 }); | 2677 }); |
| 2678 | 2678 |
| 2679 | 2679 |
| 2680 } | 2680 } |
| 2681 | 2681 |
| OLD | NEW |