| Index: generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart
|
| diff --git a/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart b/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart
|
| index 97d35e12609105524e2e9d8d9c6a3fc51f2c953d..86952afa2df56af05dcc87b66f8dcd2298a72b56 100644
|
| --- a/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart
|
| +++ b/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart
|
| @@ -70,14 +70,14 @@ checkAncestor(api.Ancestor o) {
|
| buildCounterAncestor--;
|
| }
|
|
|
| -buildUnnamed3394() {
|
| +buildUnnamed3426() {
|
| var o = new core.List<api.AuditLogConfig>();
|
| o.add(buildAuditLogConfig());
|
| o.add(buildAuditLogConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3394(core.List<api.AuditLogConfig> o) {
|
| +checkUnnamed3426(core.List<api.AuditLogConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuditLogConfig(o[0]);
|
| checkAuditLogConfig(o[1]);
|
| @@ -88,7 +88,7 @@ buildAuditConfig() {
|
| var o = new api.AuditConfig();
|
| buildCounterAuditConfig++;
|
| if (buildCounterAuditConfig < 3) {
|
| - o.auditLogConfigs = buildUnnamed3394();
|
| + o.auditLogConfigs = buildUnnamed3426();
|
| o.service = "foo";
|
| }
|
| buildCounterAuditConfig--;
|
| @@ -98,20 +98,20 @@ buildAuditConfig() {
|
| checkAuditConfig(api.AuditConfig o) {
|
| buildCounterAuditConfig++;
|
| if (buildCounterAuditConfig < 3) {
|
| - checkUnnamed3394(o.auditLogConfigs);
|
| + checkUnnamed3426(o.auditLogConfigs);
|
| unittest.expect(o.service, unittest.equals('foo'));
|
| }
|
| buildCounterAuditConfig--;
|
| }
|
|
|
| -buildUnnamed3395() {
|
| +buildUnnamed3427() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3395(core.List<core.String> o) {
|
| +checkUnnamed3427(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'));
|
| @@ -122,7 +122,7 @@ buildAuditLogConfig() {
|
| var o = new api.AuditLogConfig();
|
| buildCounterAuditLogConfig++;
|
| if (buildCounterAuditLogConfig < 3) {
|
| - o.exemptedMembers = buildUnnamed3395();
|
| + o.exemptedMembers = buildUnnamed3427();
|
| o.logType = "foo";
|
| }
|
| buildCounterAuditLogConfig--;
|
| @@ -132,20 +132,20 @@ buildAuditLogConfig() {
|
| checkAuditLogConfig(api.AuditLogConfig o) {
|
| buildCounterAuditLogConfig++;
|
| if (buildCounterAuditLogConfig < 3) {
|
| - checkUnnamed3395(o.exemptedMembers);
|
| + checkUnnamed3427(o.exemptedMembers);
|
| unittest.expect(o.logType, unittest.equals('foo'));
|
| }
|
| buildCounterAuditLogConfig--;
|
| }
|
|
|
| -buildUnnamed3396() {
|
| +buildUnnamed3428() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3396(core.List<core.String> o) {
|
| +checkUnnamed3428(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'));
|
| @@ -156,7 +156,7 @@ buildBinding() {
|
| var o = new api.Binding();
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| - o.members = buildUnnamed3396();
|
| + o.members = buildUnnamed3428();
|
| o.role = "foo";
|
| }
|
| buildCounterBinding--;
|
| @@ -166,7 +166,7 @@ buildBinding() {
|
| checkBinding(api.Binding o) {
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| - checkUnnamed3396(o.members);
|
| + checkUnnamed3428(o.members);
|
| unittest.expect(o.role, unittest.equals('foo'));
|
| }
|
| buildCounterBinding--;
|
| @@ -250,14 +250,14 @@ checkGetAncestryRequest(api.GetAncestryRequest o) {
|
| buildCounterGetAncestryRequest--;
|
| }
|
|
|
| -buildUnnamed3397() {
|
| +buildUnnamed3429() {
|
| var o = new core.List<api.Ancestor>();
|
| o.add(buildAncestor());
|
| o.add(buildAncestor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3397(core.List<api.Ancestor> o) {
|
| +checkUnnamed3429(core.List<api.Ancestor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAncestor(o[0]);
|
| checkAncestor(o[1]);
|
| @@ -268,7 +268,7 @@ buildGetAncestryResponse() {
|
| var o = new api.GetAncestryResponse();
|
| buildCounterGetAncestryResponse++;
|
| if (buildCounterGetAncestryResponse < 3) {
|
| - o.ancestor = buildUnnamed3397();
|
| + o.ancestor = buildUnnamed3429();
|
| }
|
| buildCounterGetAncestryResponse--;
|
| return o;
|
| @@ -277,7 +277,7 @@ buildGetAncestryResponse() {
|
| checkGetAncestryResponse(api.GetAncestryResponse o) {
|
| buildCounterGetAncestryResponse++;
|
| if (buildCounterGetAncestryResponse < 3) {
|
| - checkUnnamed3397(o.ancestor);
|
| + checkUnnamed3429(o.ancestor);
|
| }
|
| buildCounterGetAncestryResponse--;
|
| }
|
| @@ -299,14 +299,14 @@ checkGetIamPolicyRequest(api.GetIamPolicyRequest o) {
|
| buildCounterGetIamPolicyRequest--;
|
| }
|
|
|
| -buildUnnamed3398() {
|
| +buildUnnamed3430() {
|
| var o = new core.List<api.Organization>();
|
| o.add(buildOrganization());
|
| o.add(buildOrganization());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3398(core.List<api.Organization> o) {
|
| +checkUnnamed3430(core.List<api.Organization> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrganization(o[0]);
|
| checkOrganization(o[1]);
|
| @@ -318,7 +318,7 @@ buildListOrganizationsResponse() {
|
| buildCounterListOrganizationsResponse++;
|
| if (buildCounterListOrganizationsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.organizations = buildUnnamed3398();
|
| + o.organizations = buildUnnamed3430();
|
| }
|
| buildCounterListOrganizationsResponse--;
|
| return o;
|
| @@ -328,19 +328,19 @@ checkListOrganizationsResponse(api.ListOrganizationsResponse o) {
|
| buildCounterListOrganizationsResponse++;
|
| if (buildCounterListOrganizationsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3398(o.organizations);
|
| + checkUnnamed3430(o.organizations);
|
| }
|
| buildCounterListOrganizationsResponse--;
|
| }
|
|
|
| -buildUnnamed3399() {
|
| +buildUnnamed3431() {
|
| var o = new core.List<api.Project>();
|
| o.add(buildProject());
|
| o.add(buildProject());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3399(core.List<api.Project> o) {
|
| +checkUnnamed3431(core.List<api.Project> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkProject(o[0]);
|
| checkProject(o[1]);
|
| @@ -352,7 +352,7 @@ buildListProjectsResponse() {
|
| buildCounterListProjectsResponse++;
|
| if (buildCounterListProjectsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.projects = buildUnnamed3399();
|
| + o.projects = buildUnnamed3431();
|
| }
|
| buildCounterListProjectsResponse--;
|
| return o;
|
| @@ -362,7 +362,7 @@ checkListProjectsResponse(api.ListProjectsResponse o) {
|
| buildCounterListProjectsResponse++;
|
| if (buildCounterListProjectsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3399(o.projects);
|
| + checkUnnamed3431(o.projects);
|
| }
|
| buildCounterListProjectsResponse--;
|
| }
|
| @@ -415,27 +415,27 @@ checkOrganizationOwner(api.OrganizationOwner o) {
|
| buildCounterOrganizationOwner--;
|
| }
|
|
|
| -buildUnnamed3400() {
|
| +buildUnnamed3432() {
|
| var o = new core.List<api.AuditConfig>();
|
| o.add(buildAuditConfig());
|
| o.add(buildAuditConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3400(core.List<api.AuditConfig> o) {
|
| +checkUnnamed3432(core.List<api.AuditConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuditConfig(o[0]);
|
| checkAuditConfig(o[1]);
|
| }
|
|
|
| -buildUnnamed3401() {
|
| +buildUnnamed3433() {
|
| var o = new core.List<api.Binding>();
|
| o.add(buildBinding());
|
| o.add(buildBinding());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3401(core.List<api.Binding> o) {
|
| +checkUnnamed3433(core.List<api.Binding> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBinding(o[0]);
|
| checkBinding(o[1]);
|
| @@ -446,8 +446,8 @@ buildPolicy() {
|
| var o = new api.Policy();
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - o.auditConfigs = buildUnnamed3400();
|
| - o.bindings = buildUnnamed3401();
|
| + o.auditConfigs = buildUnnamed3432();
|
| + o.bindings = buildUnnamed3433();
|
| o.etag = "foo";
|
| o.version = 42;
|
| }
|
| @@ -458,22 +458,22 @@ buildPolicy() {
|
| checkPolicy(api.Policy o) {
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - checkUnnamed3400(o.auditConfigs);
|
| - checkUnnamed3401(o.bindings);
|
| + checkUnnamed3432(o.auditConfigs);
|
| + checkUnnamed3433(o.bindings);
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.version, unittest.equals(42));
|
| }
|
| buildCounterPolicy--;
|
| }
|
|
|
| -buildUnnamed3402() {
|
| +buildUnnamed3434() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed3402(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3434(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -485,7 +485,7 @@ buildProject() {
|
| buildCounterProject++;
|
| if (buildCounterProject < 3) {
|
| o.createTime = "foo";
|
| - o.labels = buildUnnamed3402();
|
| + o.labels = buildUnnamed3434();
|
| o.lifecycleState = "foo";
|
| o.name = "foo";
|
| o.parent = buildResourceId();
|
| @@ -500,7 +500,7 @@ checkProject(api.Project o) {
|
| buildCounterProject++;
|
| if (buildCounterProject < 3) {
|
| unittest.expect(o.createTime, unittest.equals('foo'));
|
| - checkUnnamed3402(o.labels);
|
| + checkUnnamed3434(o.labels);
|
| unittest.expect(o.lifecycleState, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| checkResourceId(o.parent);
|
| @@ -575,14 +575,14 @@ checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
|
| buildCounterSetIamPolicyRequest--;
|
| }
|
|
|
| -buildUnnamed3403() {
|
| +buildUnnamed3435() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3403(core.List<core.String> o) {
|
| +checkUnnamed3435(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'));
|
| @@ -593,7 +593,7 @@ buildTestIamPermissionsRequest() {
|
| var o = new api.TestIamPermissionsRequest();
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - o.permissions = buildUnnamed3403();
|
| + o.permissions = buildUnnamed3435();
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| return o;
|
| @@ -602,19 +602,19 @@ buildTestIamPermissionsRequest() {
|
| checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - checkUnnamed3403(o.permissions);
|
| + checkUnnamed3435(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| }
|
|
|
| -buildUnnamed3404() {
|
| +buildUnnamed3436() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3404(core.List<core.String> o) {
|
| +checkUnnamed3436(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'));
|
| @@ -625,7 +625,7 @@ buildTestIamPermissionsResponse() {
|
| var o = new api.TestIamPermissionsResponse();
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - o.permissions = buildUnnamed3404();
|
| + o.permissions = buildUnnamed3436();
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| return o;
|
| @@ -634,7 +634,7 @@ buildTestIamPermissionsResponse() {
|
| checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - checkUnnamed3404(o.permissions);
|
| + checkUnnamed3436(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| }
|
| @@ -1410,9 +1410,9 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects;
|
| - var arg_filter = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| + var arg_filter = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1439,9 +1439,9 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
|
|
|
|
| var h = {
|
| @@ -1450,7 +1450,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListProjectsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListProjectsResponse response) {
|
| + res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListProjectsResponse response) {
|
| checkListProjectsResponse(response);
|
| })));
|
| });
|
|
|