Index: generated/googleapis/test/deploymentmanager/v2_test.dart |
diff --git a/generated/googleapis/test/deploymentmanager/v2_test.dart b/generated/googleapis/test/deploymentmanager/v2_test.dart |
index 29c261f565a495d6f218551f56887180f3bdf9c3..082e48a1a70c75f5ac1046194fac8821359defc0 100644 |
--- a/generated/googleapis/test/deploymentmanager/v2_test.dart |
+++ b/generated/googleapis/test/deploymentmanager/v2_test.dart |
@@ -51,14 +51,27 @@ http.StreamedResponse stringResponse( |
return new http.StreamedResponse(stream, status, headers: headers); |
} |
-buildUnnamed2172() { |
+buildUnnamed1943() { |
+ var o = new core.List<api.AuditLogConfig>(); |
+ o.add(buildAuditLogConfig()); |
+ o.add(buildAuditLogConfig()); |
+ return o; |
+} |
+ |
+checkUnnamed1943(core.List<api.AuditLogConfig> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkAuditLogConfig(o[0]); |
+ checkAuditLogConfig(o[1]); |
+} |
+ |
+buildUnnamed1944() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2172(core.List<core.String> o) { |
+checkUnnamed1944(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -69,7 +82,8 @@ buildAuditConfig() { |
var o = new api.AuditConfig(); |
buildCounterAuditConfig++; |
if (buildCounterAuditConfig < 3) { |
- o.exemptedMembers = buildUnnamed2172(); |
+ o.auditLogConfigs = buildUnnamed1943(); |
+ o.exemptedMembers = buildUnnamed1944(); |
o.service = "foo"; |
} |
buildCounterAuditConfig--; |
@@ -79,20 +93,55 @@ buildAuditConfig() { |
checkAuditConfig(api.AuditConfig o) { |
buildCounterAuditConfig++; |
if (buildCounterAuditConfig < 3) { |
- checkUnnamed2172(o.exemptedMembers); |
+ checkUnnamed1943(o.auditLogConfigs); |
+ checkUnnamed1944(o.exemptedMembers); |
unittest.expect(o.service, unittest.equals('foo')); |
} |
buildCounterAuditConfig--; |
} |
-buildUnnamed2173() { |
+buildUnnamed1945() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2173(core.List<core.String> o) { |
+checkUnnamed1945(core.List<core.String> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ unittest.expect(o[0], unittest.equals('foo')); |
+ unittest.expect(o[1], unittest.equals('foo')); |
+} |
+ |
+core.int buildCounterAuditLogConfig = 0; |
+buildAuditLogConfig() { |
+ var o = new api.AuditLogConfig(); |
+ buildCounterAuditLogConfig++; |
+ if (buildCounterAuditLogConfig < 3) { |
+ o.exemptedMembers = buildUnnamed1945(); |
+ o.logType = "foo"; |
+ } |
+ buildCounterAuditLogConfig--; |
+ return o; |
+} |
+ |
+checkAuditLogConfig(api.AuditLogConfig o) { |
+ buildCounterAuditLogConfig++; |
+ if (buildCounterAuditLogConfig < 3) { |
+ checkUnnamed1945(o.exemptedMembers); |
+ unittest.expect(o.logType, unittest.equals('foo')); |
+ } |
+ buildCounterAuditLogConfig--; |
+} |
+ |
+buildUnnamed1946() { |
+ var o = new core.List<core.String>(); |
+ o.add("foo"); |
+ o.add("foo"); |
+ return o; |
+} |
+ |
+checkUnnamed1946(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -103,7 +152,7 @@ buildBinding() { |
var o = new api.Binding(); |
buildCounterBinding++; |
if (buildCounterBinding < 3) { |
- o.members = buildUnnamed2173(); |
+ o.members = buildUnnamed1946(); |
o.role = "foo"; |
} |
buildCounterBinding--; |
@@ -113,20 +162,20 @@ buildBinding() { |
checkBinding(api.Binding o) { |
buildCounterBinding++; |
if (buildCounterBinding < 3) { |
- checkUnnamed2173(o.members); |
+ checkUnnamed1946(o.members); |
unittest.expect(o.role, unittest.equals('foo')); |
} |
buildCounterBinding--; |
} |
-buildUnnamed2174() { |
+buildUnnamed1947() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2174(core.List<core.String> o) { |
+checkUnnamed1947(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -142,7 +191,7 @@ buildCondition() { |
o.svc = "foo"; |
o.sys = "foo"; |
o.value = "foo"; |
- o.values = buildUnnamed2174(); |
+ o.values = buildUnnamed1947(); |
} |
buildCounterCondition--; |
return o; |
@@ -156,7 +205,7 @@ checkCondition(api.Condition o) { |
unittest.expect(o.svc, unittest.equals('foo')); |
unittest.expect(o.sys, unittest.equals('foo')); |
unittest.expect(o.value, unittest.equals('foo')); |
- checkUnnamed2174(o.values); |
+ checkUnnamed1947(o.values); |
} |
buildCounterCondition--; |
} |
@@ -180,14 +229,14 @@ checkConfigFile(api.ConfigFile o) { |
buildCounterConfigFile--; |
} |
-buildUnnamed2175() { |
+buildUnnamed1948() { |
var o = new core.List<api.DeploymentLabelEntry>(); |
o.add(buildDeploymentLabelEntry()); |
o.add(buildDeploymentLabelEntry()); |
return o; |
} |
-checkUnnamed2175(core.List<api.DeploymentLabelEntry> o) { |
+checkUnnamed1948(core.List<api.DeploymentLabelEntry> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkDeploymentLabelEntry(o[0]); |
checkDeploymentLabelEntry(o[1]); |
@@ -202,7 +251,7 @@ buildDeployment() { |
o.fingerprint = "foo"; |
o.id = "foo"; |
o.insertTime = "foo"; |
- o.labels = buildUnnamed2175(); |
+ o.labels = buildUnnamed1948(); |
o.manifest = "foo"; |
o.name = "foo"; |
o.operation = buildOperation(); |
@@ -221,7 +270,7 @@ checkDeployment(api.Deployment o) { |
unittest.expect(o.fingerprint, unittest.equals('foo')); |
unittest.expect(o.id, unittest.equals('foo')); |
unittest.expect(o.insertTime, unittest.equals('foo')); |
- checkUnnamed2175(o.labels); |
+ checkUnnamed1948(o.labels); |
unittest.expect(o.manifest, unittest.equals('foo')); |
unittest.expect(o.name, unittest.equals('foo')); |
checkOperation(o.operation); |
@@ -253,14 +302,14 @@ checkDeploymentLabelEntry(api.DeploymentLabelEntry o) { |
buildCounterDeploymentLabelEntry--; |
} |
-buildUnnamed2176() { |
+buildUnnamed1949() { |
var o = new core.List<api.DeploymentUpdateLabelEntry>(); |
o.add(buildDeploymentUpdateLabelEntry()); |
o.add(buildDeploymentUpdateLabelEntry()); |
return o; |
} |
-checkUnnamed2176(core.List<api.DeploymentUpdateLabelEntry> o) { |
+checkUnnamed1949(core.List<api.DeploymentUpdateLabelEntry> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkDeploymentUpdateLabelEntry(o[0]); |
checkDeploymentUpdateLabelEntry(o[1]); |
@@ -271,7 +320,7 @@ buildDeploymentUpdate() { |
var o = new api.DeploymentUpdate(); |
buildCounterDeploymentUpdate++; |
if (buildCounterDeploymentUpdate < 3) { |
- o.labels = buildUnnamed2176(); |
+ o.labels = buildUnnamed1949(); |
o.manifest = "foo"; |
} |
buildCounterDeploymentUpdate--; |
@@ -281,7 +330,7 @@ buildDeploymentUpdate() { |
checkDeploymentUpdate(api.DeploymentUpdate o) { |
buildCounterDeploymentUpdate++; |
if (buildCounterDeploymentUpdate < 3) { |
- checkUnnamed2176(o.labels); |
+ checkUnnamed1949(o.labels); |
unittest.expect(o.manifest, unittest.equals('foo')); |
} |
buildCounterDeploymentUpdate--; |
@@ -327,14 +376,14 @@ checkDeploymentsCancelPreviewRequest(api.DeploymentsCancelPreviewRequest o) { |
buildCounterDeploymentsCancelPreviewRequest--; |
} |
-buildUnnamed2177() { |
+buildUnnamed1950() { |
var o = new core.List<api.Deployment>(); |
o.add(buildDeployment()); |
o.add(buildDeployment()); |
return o; |
} |
-checkUnnamed2177(core.List<api.Deployment> o) { |
+checkUnnamed1950(core.List<api.Deployment> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkDeployment(o[0]); |
checkDeployment(o[1]); |
@@ -345,7 +394,7 @@ buildDeploymentsListResponse() { |
var o = new api.DeploymentsListResponse(); |
buildCounterDeploymentsListResponse++; |
if (buildCounterDeploymentsListResponse < 3) { |
- o.deployments = buildUnnamed2177(); |
+ o.deployments = buildUnnamed1950(); |
o.nextPageToken = "foo"; |
} |
buildCounterDeploymentsListResponse--; |
@@ -355,7 +404,7 @@ buildDeploymentsListResponse() { |
checkDeploymentsListResponse(api.DeploymentsListResponse o) { |
buildCounterDeploymentsListResponse++; |
if (buildCounterDeploymentsListResponse < 3) { |
- checkUnnamed2177(o.deployments); |
+ checkUnnamed1950(o.deployments); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterDeploymentsListResponse--; |
@@ -441,14 +490,14 @@ checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { |
buildCounterLogConfigCounterOptions--; |
} |
-buildUnnamed2178() { |
+buildUnnamed1951() { |
var o = new core.List<api.ImportFile>(); |
o.add(buildImportFile()); |
o.add(buildImportFile()); |
return o; |
} |
-checkUnnamed2178(core.List<api.ImportFile> o) { |
+checkUnnamed1951(core.List<api.ImportFile> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkImportFile(o[0]); |
checkImportFile(o[1]); |
@@ -462,7 +511,7 @@ buildManifest() { |
o.config = buildConfigFile(); |
o.expandedConfig = "foo"; |
o.id = "foo"; |
- o.imports = buildUnnamed2178(); |
+ o.imports = buildUnnamed1951(); |
o.insertTime = "foo"; |
o.layout = "foo"; |
o.name = "foo"; |
@@ -478,7 +527,7 @@ checkManifest(api.Manifest o) { |
checkConfigFile(o.config); |
unittest.expect(o.expandedConfig, unittest.equals('foo')); |
unittest.expect(o.id, unittest.equals('foo')); |
- checkUnnamed2178(o.imports); |
+ checkUnnamed1951(o.imports); |
unittest.expect(o.insertTime, unittest.equals('foo')); |
unittest.expect(o.layout, unittest.equals('foo')); |
unittest.expect(o.name, unittest.equals('foo')); |
@@ -487,14 +536,14 @@ checkManifest(api.Manifest o) { |
buildCounterManifest--; |
} |
-buildUnnamed2179() { |
+buildUnnamed1952() { |
var o = new core.List<api.Manifest>(); |
o.add(buildManifest()); |
o.add(buildManifest()); |
return o; |
} |
-checkUnnamed2179(core.List<api.Manifest> o) { |
+checkUnnamed1952(core.List<api.Manifest> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkManifest(o[0]); |
checkManifest(o[1]); |
@@ -505,7 +554,7 @@ buildManifestsListResponse() { |
var o = new api.ManifestsListResponse(); |
buildCounterManifestsListResponse++; |
if (buildCounterManifestsListResponse < 3) { |
- o.manifests = buildUnnamed2179(); |
+ o.manifests = buildUnnamed1952(); |
o.nextPageToken = "foo"; |
} |
buildCounterManifestsListResponse--; |
@@ -515,7 +564,7 @@ buildManifestsListResponse() { |
checkManifestsListResponse(api.ManifestsListResponse o) { |
buildCounterManifestsListResponse++; |
if (buildCounterManifestsListResponse < 3) { |
- checkUnnamed2179(o.manifests); |
+ checkUnnamed1952(o.manifests); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterManifestsListResponse--; |
@@ -544,14 +593,14 @@ checkOperationErrorErrors(api.OperationErrorErrors o) { |
buildCounterOperationErrorErrors--; |
} |
-buildUnnamed2180() { |
+buildUnnamed1953() { |
var o = new core.List<api.OperationErrorErrors>(); |
o.add(buildOperationErrorErrors()); |
o.add(buildOperationErrorErrors()); |
return o; |
} |
-checkUnnamed2180(core.List<api.OperationErrorErrors> o) { |
+checkUnnamed1953(core.List<api.OperationErrorErrors> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOperationErrorErrors(o[0]); |
checkOperationErrorErrors(o[1]); |
@@ -562,7 +611,7 @@ buildOperationError() { |
var o = new api.OperationError(); |
buildCounterOperationError++; |
if (buildCounterOperationError < 3) { |
- o.errors = buildUnnamed2180(); |
+ o.errors = buildUnnamed1953(); |
} |
buildCounterOperationError--; |
return o; |
@@ -571,7 +620,7 @@ buildOperationError() { |
checkOperationError(api.OperationError o) { |
buildCounterOperationError++; |
if (buildCounterOperationError < 3) { |
- checkUnnamed2180(o.errors); |
+ checkUnnamed1953(o.errors); |
} |
buildCounterOperationError--; |
} |
@@ -597,14 +646,14 @@ checkOperationWarningsData(api.OperationWarningsData o) { |
buildCounterOperationWarningsData--; |
} |
-buildUnnamed2181() { |
+buildUnnamed1954() { |
var o = new core.List<api.OperationWarningsData>(); |
o.add(buildOperationWarningsData()); |
o.add(buildOperationWarningsData()); |
return o; |
} |
-checkUnnamed2181(core.List<api.OperationWarningsData> o) { |
+checkUnnamed1954(core.List<api.OperationWarningsData> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOperationWarningsData(o[0]); |
checkOperationWarningsData(o[1]); |
@@ -616,7 +665,7 @@ buildOperationWarnings() { |
buildCounterOperationWarnings++; |
if (buildCounterOperationWarnings < 3) { |
o.code = "foo"; |
- o.data = buildUnnamed2181(); |
+ o.data = buildUnnamed1954(); |
o.message = "foo"; |
} |
buildCounterOperationWarnings--; |
@@ -627,20 +676,20 @@ checkOperationWarnings(api.OperationWarnings o) { |
buildCounterOperationWarnings++; |
if (buildCounterOperationWarnings < 3) { |
unittest.expect(o.code, unittest.equals('foo')); |
- checkUnnamed2181(o.data); |
+ checkUnnamed1954(o.data); |
unittest.expect(o.message, unittest.equals('foo')); |
} |
buildCounterOperationWarnings--; |
} |
-buildUnnamed2182() { |
+buildUnnamed1955() { |
var o = new core.List<api.OperationWarnings>(); |
o.add(buildOperationWarnings()); |
o.add(buildOperationWarnings()); |
return o; |
} |
-checkUnnamed2182(core.List<api.OperationWarnings> o) { |
+checkUnnamed1955(core.List<api.OperationWarnings> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOperationWarnings(o[0]); |
checkOperationWarnings(o[1]); |
@@ -672,7 +721,7 @@ buildOperation() { |
o.targetId = "foo"; |
o.targetLink = "foo"; |
o.user = "foo"; |
- o.warnings = buildUnnamed2182(); |
+ o.warnings = buildUnnamed1955(); |
o.zone = "foo"; |
} |
buildCounterOperation--; |
@@ -703,20 +752,20 @@ checkOperation(api.Operation o) { |
unittest.expect(o.targetId, unittest.equals('foo')); |
unittest.expect(o.targetLink, unittest.equals('foo')); |
unittest.expect(o.user, unittest.equals('foo')); |
- checkUnnamed2182(o.warnings); |
+ checkUnnamed1955(o.warnings); |
unittest.expect(o.zone, unittest.equals('foo')); |
} |
buildCounterOperation--; |
} |
-buildUnnamed2183() { |
+buildUnnamed1956() { |
var o = new core.List<api.Operation>(); |
o.add(buildOperation()); |
o.add(buildOperation()); |
return o; |
} |
-checkUnnamed2183(core.List<api.Operation> o) { |
+checkUnnamed1956(core.List<api.Operation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOperation(o[0]); |
checkOperation(o[1]); |
@@ -728,7 +777,7 @@ buildOperationsListResponse() { |
buildCounterOperationsListResponse++; |
if (buildCounterOperationsListResponse < 3) { |
o.nextPageToken = "foo"; |
- o.operations = buildUnnamed2183(); |
+ o.operations = buildUnnamed1956(); |
} |
buildCounterOperationsListResponse--; |
return o; |
@@ -738,45 +787,45 @@ checkOperationsListResponse(api.OperationsListResponse o) { |
buildCounterOperationsListResponse++; |
if (buildCounterOperationsListResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed2183(o.operations); |
+ checkUnnamed1956(o.operations); |
} |
buildCounterOperationsListResponse--; |
} |
-buildUnnamed2184() { |
+buildUnnamed1957() { |
var o = new core.List<api.AuditConfig>(); |
o.add(buildAuditConfig()); |
o.add(buildAuditConfig()); |
return o; |
} |
-checkUnnamed2184(core.List<api.AuditConfig> o) { |
+checkUnnamed1957(core.List<api.AuditConfig> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkAuditConfig(o[0]); |
checkAuditConfig(o[1]); |
} |
-buildUnnamed2185() { |
+buildUnnamed1958() { |
var o = new core.List<api.Binding>(); |
o.add(buildBinding()); |
o.add(buildBinding()); |
return o; |
} |
-checkUnnamed2185(core.List<api.Binding> o) { |
+checkUnnamed1958(core.List<api.Binding> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkBinding(o[0]); |
checkBinding(o[1]); |
} |
-buildUnnamed2186() { |
+buildUnnamed1959() { |
var o = new core.List<api.Rule>(); |
o.add(buildRule()); |
o.add(buildRule()); |
return o; |
} |
-checkUnnamed2186(core.List<api.Rule> o) { |
+checkUnnamed1959(core.List<api.Rule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkRule(o[0]); |
checkRule(o[1]); |
@@ -787,11 +836,11 @@ buildPolicy() { |
var o = new api.Policy(); |
buildCounterPolicy++; |
if (buildCounterPolicy < 3) { |
- o.auditConfigs = buildUnnamed2184(); |
- o.bindings = buildUnnamed2185(); |
+ o.auditConfigs = buildUnnamed1957(); |
+ o.bindings = buildUnnamed1958(); |
o.etag = "foo"; |
o.iamOwned = true; |
- o.rules = buildUnnamed2186(); |
+ o.rules = buildUnnamed1959(); |
o.version = 42; |
} |
buildCounterPolicy--; |
@@ -801,11 +850,11 @@ buildPolicy() { |
checkPolicy(api.Policy o) { |
buildCounterPolicy++; |
if (buildCounterPolicy < 3) { |
- checkUnnamed2184(o.auditConfigs); |
- checkUnnamed2185(o.bindings); |
+ checkUnnamed1957(o.auditConfigs); |
+ checkUnnamed1958(o.bindings); |
unittest.expect(o.etag, unittest.equals('foo')); |
unittest.expect(o.iamOwned, unittest.isTrue); |
- checkUnnamed2186(o.rules); |
+ checkUnnamed1959(o.rules); |
unittest.expect(o.version, unittest.equals(42)); |
} |
buildCounterPolicy--; |
@@ -832,14 +881,14 @@ checkResourceWarningsData(api.ResourceWarningsData o) { |
buildCounterResourceWarningsData--; |
} |
-buildUnnamed2187() { |
+buildUnnamed1960() { |
var o = new core.List<api.ResourceWarningsData>(); |
o.add(buildResourceWarningsData()); |
o.add(buildResourceWarningsData()); |
return o; |
} |
-checkUnnamed2187(core.List<api.ResourceWarningsData> o) { |
+checkUnnamed1960(core.List<api.ResourceWarningsData> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkResourceWarningsData(o[0]); |
checkResourceWarningsData(o[1]); |
@@ -851,7 +900,7 @@ buildResourceWarnings() { |
buildCounterResourceWarnings++; |
if (buildCounterResourceWarnings < 3) { |
o.code = "foo"; |
- o.data = buildUnnamed2187(); |
+ o.data = buildUnnamed1960(); |
o.message = "foo"; |
} |
buildCounterResourceWarnings--; |
@@ -862,20 +911,20 @@ checkResourceWarnings(api.ResourceWarnings o) { |
buildCounterResourceWarnings++; |
if (buildCounterResourceWarnings < 3) { |
unittest.expect(o.code, unittest.equals('foo')); |
- checkUnnamed2187(o.data); |
+ checkUnnamed1960(o.data); |
unittest.expect(o.message, unittest.equals('foo')); |
} |
buildCounterResourceWarnings--; |
} |
-buildUnnamed2188() { |
+buildUnnamed1961() { |
var o = new core.List<api.ResourceWarnings>(); |
o.add(buildResourceWarnings()); |
o.add(buildResourceWarnings()); |
return o; |
} |
-checkUnnamed2188(core.List<api.ResourceWarnings> o) { |
+checkUnnamed1961(core.List<api.ResourceWarnings> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkResourceWarnings(o[0]); |
checkResourceWarnings(o[1]); |
@@ -897,7 +946,7 @@ buildResource() { |
o.update = buildResourceUpdate(); |
o.updateTime = "foo"; |
o.url = "foo"; |
- o.warnings = buildUnnamed2188(); |
+ o.warnings = buildUnnamed1961(); |
} |
buildCounterResource--; |
return o; |
@@ -917,7 +966,7 @@ checkResource(api.Resource o) { |
checkResourceUpdate(o.update); |
unittest.expect(o.updateTime, unittest.equals('foo')); |
unittest.expect(o.url, unittest.equals('foo')); |
- checkUnnamed2188(o.warnings); |
+ checkUnnamed1961(o.warnings); |
} |
buildCounterResource--; |
} |
@@ -964,14 +1013,14 @@ checkResourceUpdateErrorErrors(api.ResourceUpdateErrorErrors o) { |
buildCounterResourceUpdateErrorErrors--; |
} |
-buildUnnamed2189() { |
+buildUnnamed1962() { |
var o = new core.List<api.ResourceUpdateErrorErrors>(); |
o.add(buildResourceUpdateErrorErrors()); |
o.add(buildResourceUpdateErrorErrors()); |
return o; |
} |
-checkUnnamed2189(core.List<api.ResourceUpdateErrorErrors> o) { |
+checkUnnamed1962(core.List<api.ResourceUpdateErrorErrors> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkResourceUpdateErrorErrors(o[0]); |
checkResourceUpdateErrorErrors(o[1]); |
@@ -982,7 +1031,7 @@ buildResourceUpdateError() { |
var o = new api.ResourceUpdateError(); |
buildCounterResourceUpdateError++; |
if (buildCounterResourceUpdateError < 3) { |
- o.errors = buildUnnamed2189(); |
+ o.errors = buildUnnamed1962(); |
} |
buildCounterResourceUpdateError--; |
return o; |
@@ -991,7 +1040,7 @@ buildResourceUpdateError() { |
checkResourceUpdateError(api.ResourceUpdateError o) { |
buildCounterResourceUpdateError++; |
if (buildCounterResourceUpdateError < 3) { |
- checkUnnamed2189(o.errors); |
+ checkUnnamed1962(o.errors); |
} |
buildCounterResourceUpdateError--; |
} |
@@ -1017,14 +1066,14 @@ checkResourceUpdateWarningsData(api.ResourceUpdateWarningsData o) { |
buildCounterResourceUpdateWarningsData--; |
} |
-buildUnnamed2190() { |
+buildUnnamed1963() { |
var o = new core.List<api.ResourceUpdateWarningsData>(); |
o.add(buildResourceUpdateWarningsData()); |
o.add(buildResourceUpdateWarningsData()); |
return o; |
} |
-checkUnnamed2190(core.List<api.ResourceUpdateWarningsData> o) { |
+checkUnnamed1963(core.List<api.ResourceUpdateWarningsData> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkResourceUpdateWarningsData(o[0]); |
checkResourceUpdateWarningsData(o[1]); |
@@ -1036,7 +1085,7 @@ buildResourceUpdateWarnings() { |
buildCounterResourceUpdateWarnings++; |
if (buildCounterResourceUpdateWarnings < 3) { |
o.code = "foo"; |
- o.data = buildUnnamed2190(); |
+ o.data = buildUnnamed1963(); |
o.message = "foo"; |
} |
buildCounterResourceUpdateWarnings--; |
@@ -1047,20 +1096,20 @@ checkResourceUpdateWarnings(api.ResourceUpdateWarnings o) { |
buildCounterResourceUpdateWarnings++; |
if (buildCounterResourceUpdateWarnings < 3) { |
unittest.expect(o.code, unittest.equals('foo')); |
- checkUnnamed2190(o.data); |
+ checkUnnamed1963(o.data); |
unittest.expect(o.message, unittest.equals('foo')); |
} |
buildCounterResourceUpdateWarnings--; |
} |
-buildUnnamed2191() { |
+buildUnnamed1964() { |
var o = new core.List<api.ResourceUpdateWarnings>(); |
o.add(buildResourceUpdateWarnings()); |
o.add(buildResourceUpdateWarnings()); |
return o; |
} |
-checkUnnamed2191(core.List<api.ResourceUpdateWarnings> o) { |
+checkUnnamed1964(core.List<api.ResourceUpdateWarnings> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkResourceUpdateWarnings(o[0]); |
checkResourceUpdateWarnings(o[1]); |
@@ -1078,7 +1127,7 @@ buildResourceUpdate() { |
o.manifest = "foo"; |
o.properties = "foo"; |
o.state = "foo"; |
- o.warnings = buildUnnamed2191(); |
+ o.warnings = buildUnnamed1964(); |
} |
buildCounterResourceUpdate--; |
return o; |
@@ -1094,19 +1143,19 @@ checkResourceUpdate(api.ResourceUpdate o) { |
unittest.expect(o.manifest, unittest.equals('foo')); |
unittest.expect(o.properties, unittest.equals('foo')); |
unittest.expect(o.state, unittest.equals('foo')); |
- checkUnnamed2191(o.warnings); |
+ checkUnnamed1964(o.warnings); |
} |
buildCounterResourceUpdate--; |
} |
-buildUnnamed2192() { |
+buildUnnamed1965() { |
var o = new core.List<api.Resource>(); |
o.add(buildResource()); |
o.add(buildResource()); |
return o; |
} |
-checkUnnamed2192(core.List<api.Resource> o) { |
+checkUnnamed1965(core.List<api.Resource> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkResource(o[0]); |
checkResource(o[1]); |
@@ -1118,7 +1167,7 @@ buildResourcesListResponse() { |
buildCounterResourcesListResponse++; |
if (buildCounterResourcesListResponse < 3) { |
o.nextPageToken = "foo"; |
- o.resources = buildUnnamed2192(); |
+ o.resources = buildUnnamed1965(); |
} |
buildCounterResourcesListResponse--; |
return o; |
@@ -1128,71 +1177,71 @@ checkResourcesListResponse(api.ResourcesListResponse o) { |
buildCounterResourcesListResponse++; |
if (buildCounterResourcesListResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed2192(o.resources); |
+ checkUnnamed1965(o.resources); |
} |
buildCounterResourcesListResponse--; |
} |
-buildUnnamed2193() { |
+buildUnnamed1966() { |
var o = new core.List<api.Condition>(); |
o.add(buildCondition()); |
o.add(buildCondition()); |
return o; |
} |
-checkUnnamed2193(core.List<api.Condition> o) { |
+checkUnnamed1966(core.List<api.Condition> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkCondition(o[0]); |
checkCondition(o[1]); |
} |
-buildUnnamed2194() { |
+buildUnnamed1967() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2194(core.List<core.String> o) { |
+checkUnnamed1967(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
} |
-buildUnnamed2195() { |
+buildUnnamed1968() { |
var o = new core.List<api.LogConfig>(); |
o.add(buildLogConfig()); |
o.add(buildLogConfig()); |
return o; |
} |
-checkUnnamed2195(core.List<api.LogConfig> o) { |
+checkUnnamed1968(core.List<api.LogConfig> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLogConfig(o[0]); |
checkLogConfig(o[1]); |
} |
-buildUnnamed2196() { |
+buildUnnamed1969() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2196(core.List<core.String> o) { |
+checkUnnamed1969(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
} |
-buildUnnamed2197() { |
+buildUnnamed1970() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2197(core.List<core.String> o) { |
+checkUnnamed1970(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -1204,12 +1253,12 @@ buildRule() { |
buildCounterRule++; |
if (buildCounterRule < 3) { |
o.action = "foo"; |
- o.conditions = buildUnnamed2193(); |
+ o.conditions = buildUnnamed1966(); |
o.description = "foo"; |
- o.ins = buildUnnamed2194(); |
- o.logConfigs = buildUnnamed2195(); |
- o.notIns = buildUnnamed2196(); |
- o.permissions = buildUnnamed2197(); |
+ o.ins = buildUnnamed1967(); |
+ o.logConfigs = buildUnnamed1968(); |
+ o.notIns = buildUnnamed1969(); |
+ o.permissions = buildUnnamed1970(); |
} |
buildCounterRule--; |
return o; |
@@ -1219,24 +1268,24 @@ checkRule(api.Rule o) { |
buildCounterRule++; |
if (buildCounterRule < 3) { |
unittest.expect(o.action, unittest.equals('foo')); |
- checkUnnamed2193(o.conditions); |
+ checkUnnamed1966(o.conditions); |
unittest.expect(o.description, unittest.equals('foo')); |
- checkUnnamed2194(o.ins); |
- checkUnnamed2195(o.logConfigs); |
- checkUnnamed2196(o.notIns); |
- checkUnnamed2197(o.permissions); |
+ checkUnnamed1967(o.ins); |
+ checkUnnamed1968(o.logConfigs); |
+ checkUnnamed1969(o.notIns); |
+ checkUnnamed1970(o.permissions); |
} |
buildCounterRule--; |
} |
-buildUnnamed2198() { |
+buildUnnamed1971() { |
var o = new core.List<api.ImportFile>(); |
o.add(buildImportFile()); |
o.add(buildImportFile()); |
return o; |
} |
-checkUnnamed2198(core.List<api.ImportFile> o) { |
+checkUnnamed1971(core.List<api.ImportFile> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkImportFile(o[0]); |
checkImportFile(o[1]); |
@@ -1248,7 +1297,7 @@ buildTargetConfiguration() { |
buildCounterTargetConfiguration++; |
if (buildCounterTargetConfiguration < 3) { |
o.config = buildConfigFile(); |
- o.imports = buildUnnamed2198(); |
+ o.imports = buildUnnamed1971(); |
} |
buildCounterTargetConfiguration--; |
return o; |
@@ -1258,19 +1307,19 @@ checkTargetConfiguration(api.TargetConfiguration o) { |
buildCounterTargetConfiguration++; |
if (buildCounterTargetConfiguration < 3) { |
checkConfigFile(o.config); |
- checkUnnamed2198(o.imports); |
+ checkUnnamed1971(o.imports); |
} |
buildCounterTargetConfiguration--; |
} |
-buildUnnamed2199() { |
+buildUnnamed1972() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2199(core.List<core.String> o) { |
+checkUnnamed1972(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -1281,7 +1330,7 @@ buildTestPermissionsRequest() { |
var o = new api.TestPermissionsRequest(); |
buildCounterTestPermissionsRequest++; |
if (buildCounterTestPermissionsRequest < 3) { |
- o.permissions = buildUnnamed2199(); |
+ o.permissions = buildUnnamed1972(); |
} |
buildCounterTestPermissionsRequest--; |
return o; |
@@ -1290,19 +1339,19 @@ buildTestPermissionsRequest() { |
checkTestPermissionsRequest(api.TestPermissionsRequest o) { |
buildCounterTestPermissionsRequest++; |
if (buildCounterTestPermissionsRequest < 3) { |
- checkUnnamed2199(o.permissions); |
+ checkUnnamed1972(o.permissions); |
} |
buildCounterTestPermissionsRequest--; |
} |
-buildUnnamed2200() { |
+buildUnnamed1973() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2200(core.List<core.String> o) { |
+checkUnnamed1973(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -1313,7 +1362,7 @@ buildTestPermissionsResponse() { |
var o = new api.TestPermissionsResponse(); |
buildCounterTestPermissionsResponse++; |
if (buildCounterTestPermissionsResponse < 3) { |
- o.permissions = buildUnnamed2200(); |
+ o.permissions = buildUnnamed1973(); |
} |
buildCounterTestPermissionsResponse--; |
return o; |
@@ -1322,7 +1371,7 @@ buildTestPermissionsResponse() { |
checkTestPermissionsResponse(api.TestPermissionsResponse o) { |
buildCounterTestPermissionsResponse++; |
if (buildCounterTestPermissionsResponse < 3) { |
- checkUnnamed2200(o.permissions); |
+ checkUnnamed1973(o.permissions); |
} |
buildCounterTestPermissionsResponse--; |
} |
@@ -1354,14 +1403,14 @@ checkType(api.Type o) { |
buildCounterType--; |
} |
-buildUnnamed2201() { |
+buildUnnamed1974() { |
var o = new core.List<api.Type>(); |
o.add(buildType()); |
o.add(buildType()); |
return o; |
} |
-checkUnnamed2201(core.List<api.Type> o) { |
+checkUnnamed1974(core.List<api.Type> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkType(o[0]); |
checkType(o[1]); |
@@ -1373,7 +1422,7 @@ buildTypesListResponse() { |
buildCounterTypesListResponse++; |
if (buildCounterTypesListResponse < 3) { |
o.nextPageToken = "foo"; |
- o.types = buildUnnamed2201(); |
+ o.types = buildUnnamed1974(); |
} |
buildCounterTypesListResponse--; |
return o; |
@@ -1383,7 +1432,7 @@ checkTypesListResponse(api.TypesListResponse o) { |
buildCounterTypesListResponse++; |
if (buildCounterTypesListResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed2201(o.types); |
+ checkUnnamed1974(o.types); |
} |
buildCounterTypesListResponse--; |
} |
@@ -1399,6 +1448,15 @@ main() { |
}); |
+ unittest.group("obj-schema-AuditLogConfig", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildAuditLogConfig(); |
+ var od = new api.AuditLogConfig.fromJson(o.toJson()); |
+ checkAuditLogConfig(od); |
+ }); |
+ }); |
+ |
+ |
unittest.group("obj-schema-Binding", () { |
unittest.test("to-json--from-json", () { |
var o = buildBinding(); |
@@ -1795,6 +1853,7 @@ main() { |
api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deployments; |
var arg_project = "foo"; |
var arg_deployment = "foo"; |
+ var arg_deletePolicy = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
@@ -1819,6 +1878,7 @@ main() { |
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
+ unittest.expect(queryMap["deletePolicy"].first, unittest.equals(arg_deletePolicy)); |
var h = { |
@@ -1827,7 +1887,7 @@ main() { |
var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.delete(arg_project, arg_deployment).then(unittest.expectAsync(((api.Operation response) { |
+ res.delete(arg_project, arg_deployment, deletePolicy: arg_deletePolicy).then(unittest.expectAsync(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |