| Index: generated/googleapis/test/compute/v1_test.dart
|
| diff --git a/generated/googleapis/test/compute/v1_test.dart b/generated/googleapis/test/compute/v1_test.dart
|
| index 7379eecd12842023a2d18949f7e00d1ffa987d33..af53739b6ff10a2fcc28e766d74aaa9283de718b 100644
|
| --- a/generated/googleapis/test/compute/v1_test.dart
|
| +++ b/generated/googleapis/test/compute/v1_test.dart
|
| @@ -76,14 +76,14 @@ checkAccessConfig(api.AccessConfig o) {
|
| buildCounterAccessConfig--;
|
| }
|
|
|
| -buildUnnamed2215() {
|
| +buildUnnamed1988() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2215(core.List<core.String> o) {
|
| +checkUnnamed1988(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 +103,7 @@ buildAddress() {
|
| o.region = "foo";
|
| o.selfLink = "foo";
|
| o.status = "foo";
|
| - o.users = buildUnnamed2215();
|
| + o.users = buildUnnamed1988();
|
| }
|
| buildCounterAddress--;
|
| return o;
|
| @@ -121,19 +121,19 @@ checkAddress(api.Address o) {
|
| unittest.expect(o.region, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| - checkUnnamed2215(o.users);
|
| + checkUnnamed1988(o.users);
|
| }
|
| buildCounterAddress--;
|
| }
|
|
|
| -buildUnnamed2216() {
|
| +buildUnnamed1989() {
|
| var o = new core.Map<core.String, api.AddressesScopedList>();
|
| o["x"] = buildAddressesScopedList();
|
| o["y"] = buildAddressesScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2216(core.Map<core.String, api.AddressesScopedList> o) {
|
| +checkUnnamed1989(core.Map<core.String, api.AddressesScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAddressesScopedList(o["x"]);
|
| checkAddressesScopedList(o["y"]);
|
| @@ -145,7 +145,7 @@ buildAddressAggregatedList() {
|
| buildCounterAddressAggregatedList++;
|
| if (buildCounterAddressAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2216();
|
| + o.items = buildUnnamed1989();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -158,7 +158,7 @@ checkAddressAggregatedList(api.AddressAggregatedList o) {
|
| buildCounterAddressAggregatedList++;
|
| if (buildCounterAddressAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2216(o.items);
|
| + checkUnnamed1989(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -166,14 +166,14 @@ checkAddressAggregatedList(api.AddressAggregatedList o) {
|
| buildCounterAddressAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2217() {
|
| +buildUnnamed1990() {
|
| var o = new core.List<api.Address>();
|
| o.add(buildAddress());
|
| o.add(buildAddress());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2217(core.List<api.Address> o) {
|
| +checkUnnamed1990(core.List<api.Address> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAddress(o[0]);
|
| checkAddress(o[1]);
|
| @@ -185,7 +185,7 @@ buildAddressList() {
|
| buildCounterAddressList++;
|
| if (buildCounterAddressList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2217();
|
| + o.items = buildUnnamed1990();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -198,7 +198,7 @@ checkAddressList(api.AddressList o) {
|
| buildCounterAddressList++;
|
| if (buildCounterAddressList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2217(o.items);
|
| + checkUnnamed1990(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -206,14 +206,14 @@ checkAddressList(api.AddressList o) {
|
| buildCounterAddressList--;
|
| }
|
|
|
| -buildUnnamed2218() {
|
| +buildUnnamed1991() {
|
| var o = new core.List<api.Address>();
|
| o.add(buildAddress());
|
| o.add(buildAddress());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2218(core.List<api.Address> o) {
|
| +checkUnnamed1991(core.List<api.Address> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAddress(o[0]);
|
| checkAddress(o[1]);
|
| @@ -240,14 +240,14 @@ checkAddressesScopedListWarningData(api.AddressesScopedListWarningData o) {
|
| buildCounterAddressesScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2219() {
|
| +buildUnnamed1992() {
|
| var o = new core.List<api.AddressesScopedListWarningData>();
|
| o.add(buildAddressesScopedListWarningData());
|
| o.add(buildAddressesScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2219(core.List<api.AddressesScopedListWarningData> o) {
|
| +checkUnnamed1992(core.List<api.AddressesScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAddressesScopedListWarningData(o[0]);
|
| checkAddressesScopedListWarningData(o[1]);
|
| @@ -259,7 +259,7 @@ buildAddressesScopedListWarning() {
|
| buildCounterAddressesScopedListWarning++;
|
| if (buildCounterAddressesScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2219();
|
| + o.data = buildUnnamed1992();
|
| o.message = "foo";
|
| }
|
| buildCounterAddressesScopedListWarning--;
|
| @@ -270,7 +270,7 @@ checkAddressesScopedListWarning(api.AddressesScopedListWarning o) {
|
| buildCounterAddressesScopedListWarning++;
|
| if (buildCounterAddressesScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2219(o.data);
|
| + checkUnnamed1992(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterAddressesScopedListWarning--;
|
| @@ -281,7 +281,7 @@ buildAddressesScopedList() {
|
| var o = new api.AddressesScopedList();
|
| buildCounterAddressesScopedList++;
|
| if (buildCounterAddressesScopedList < 3) {
|
| - o.addresses = buildUnnamed2218();
|
| + o.addresses = buildUnnamed1991();
|
| o.warning = buildAddressesScopedListWarning();
|
| }
|
| buildCounterAddressesScopedList--;
|
| @@ -291,20 +291,20 @@ buildAddressesScopedList() {
|
| checkAddressesScopedList(api.AddressesScopedList o) {
|
| buildCounterAddressesScopedList++;
|
| if (buildCounterAddressesScopedList < 3) {
|
| - checkUnnamed2218(o.addresses);
|
| + checkUnnamed1991(o.addresses);
|
| checkAddressesScopedListWarning(o.warning);
|
| }
|
| buildCounterAddressesScopedList--;
|
| }
|
|
|
| -buildUnnamed2220() {
|
| +buildUnnamed1993() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2220(core.List<core.String> o) {
|
| +checkUnnamed1993(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'));
|
| @@ -323,7 +323,7 @@ buildAttachedDisk() {
|
| o.initializeParams = buildAttachedDiskInitializeParams();
|
| o.interface = "foo";
|
| o.kind = "foo";
|
| - o.licenses = buildUnnamed2220();
|
| + o.licenses = buildUnnamed1993();
|
| o.mode = "foo";
|
| o.source = "foo";
|
| o.type = "foo";
|
| @@ -343,7 +343,7 @@ checkAttachedDisk(api.AttachedDisk o) {
|
| checkAttachedDiskInitializeParams(o.initializeParams);
|
| unittest.expect(o.interface, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed2220(o.licenses);
|
| + checkUnnamed1993(o.licenses);
|
| unittest.expect(o.mode, unittest.equals('foo'));
|
| unittest.expect(o.source, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| @@ -415,14 +415,14 @@ checkAutoscaler(api.Autoscaler o) {
|
| buildCounterAutoscaler--;
|
| }
|
|
|
| -buildUnnamed2221() {
|
| +buildUnnamed1994() {
|
| var o = new core.Map<core.String, api.AutoscalersScopedList>();
|
| o["x"] = buildAutoscalersScopedList();
|
| o["y"] = buildAutoscalersScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2221(core.Map<core.String, api.AutoscalersScopedList> o) {
|
| +checkUnnamed1994(core.Map<core.String, api.AutoscalersScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAutoscalersScopedList(o["x"]);
|
| checkAutoscalersScopedList(o["y"]);
|
| @@ -434,7 +434,7 @@ buildAutoscalerAggregatedList() {
|
| buildCounterAutoscalerAggregatedList++;
|
| if (buildCounterAutoscalerAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2221();
|
| + o.items = buildUnnamed1994();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -447,7 +447,7 @@ checkAutoscalerAggregatedList(api.AutoscalerAggregatedList o) {
|
| buildCounterAutoscalerAggregatedList++;
|
| if (buildCounterAutoscalerAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2221(o.items);
|
| + checkUnnamed1994(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -455,14 +455,14 @@ checkAutoscalerAggregatedList(api.AutoscalerAggregatedList o) {
|
| buildCounterAutoscalerAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2222() {
|
| +buildUnnamed1995() {
|
| var o = new core.List<api.Autoscaler>();
|
| o.add(buildAutoscaler());
|
| o.add(buildAutoscaler());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2222(core.List<api.Autoscaler> o) {
|
| +checkUnnamed1995(core.List<api.Autoscaler> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAutoscaler(o[0]);
|
| checkAutoscaler(o[1]);
|
| @@ -474,7 +474,7 @@ buildAutoscalerList() {
|
| buildCounterAutoscalerList++;
|
| if (buildCounterAutoscalerList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2222();
|
| + o.items = buildUnnamed1995();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -487,7 +487,7 @@ checkAutoscalerList(api.AutoscalerList o) {
|
| buildCounterAutoscalerList++;
|
| if (buildCounterAutoscalerList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2222(o.items);
|
| + checkUnnamed1995(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -495,14 +495,14 @@ checkAutoscalerList(api.AutoscalerList o) {
|
| buildCounterAutoscalerList--;
|
| }
|
|
|
| -buildUnnamed2223() {
|
| +buildUnnamed1996() {
|
| var o = new core.List<api.Autoscaler>();
|
| o.add(buildAutoscaler());
|
| o.add(buildAutoscaler());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2223(core.List<api.Autoscaler> o) {
|
| +checkUnnamed1996(core.List<api.Autoscaler> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAutoscaler(o[0]);
|
| checkAutoscaler(o[1]);
|
| @@ -529,14 +529,14 @@ checkAutoscalersScopedListWarningData(api.AutoscalersScopedListWarningData o) {
|
| buildCounterAutoscalersScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2224() {
|
| +buildUnnamed1997() {
|
| var o = new core.List<api.AutoscalersScopedListWarningData>();
|
| o.add(buildAutoscalersScopedListWarningData());
|
| o.add(buildAutoscalersScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2224(core.List<api.AutoscalersScopedListWarningData> o) {
|
| +checkUnnamed1997(core.List<api.AutoscalersScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAutoscalersScopedListWarningData(o[0]);
|
| checkAutoscalersScopedListWarningData(o[1]);
|
| @@ -548,7 +548,7 @@ buildAutoscalersScopedListWarning() {
|
| buildCounterAutoscalersScopedListWarning++;
|
| if (buildCounterAutoscalersScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2224();
|
| + o.data = buildUnnamed1997();
|
| o.message = "foo";
|
| }
|
| buildCounterAutoscalersScopedListWarning--;
|
| @@ -559,7 +559,7 @@ checkAutoscalersScopedListWarning(api.AutoscalersScopedListWarning o) {
|
| buildCounterAutoscalersScopedListWarning++;
|
| if (buildCounterAutoscalersScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2224(o.data);
|
| + checkUnnamed1997(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterAutoscalersScopedListWarning--;
|
| @@ -570,7 +570,7 @@ buildAutoscalersScopedList() {
|
| var o = new api.AutoscalersScopedList();
|
| buildCounterAutoscalersScopedList++;
|
| if (buildCounterAutoscalersScopedList < 3) {
|
| - o.autoscalers = buildUnnamed2223();
|
| + o.autoscalers = buildUnnamed1996();
|
| o.warning = buildAutoscalersScopedListWarning();
|
| }
|
| buildCounterAutoscalersScopedList--;
|
| @@ -580,20 +580,20 @@ buildAutoscalersScopedList() {
|
| checkAutoscalersScopedList(api.AutoscalersScopedList o) {
|
| buildCounterAutoscalersScopedList++;
|
| if (buildCounterAutoscalersScopedList < 3) {
|
| - checkUnnamed2223(o.autoscalers);
|
| + checkUnnamed1996(o.autoscalers);
|
| checkAutoscalersScopedListWarning(o.warning);
|
| }
|
| buildCounterAutoscalersScopedList--;
|
| }
|
|
|
| -buildUnnamed2225() {
|
| +buildUnnamed1998() {
|
| var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>();
|
| o.add(buildAutoscalingPolicyCustomMetricUtilization());
|
| o.add(buildAutoscalingPolicyCustomMetricUtilization());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2225(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) {
|
| +checkUnnamed1998(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAutoscalingPolicyCustomMetricUtilization(o[0]);
|
| checkAutoscalingPolicyCustomMetricUtilization(o[1]);
|
| @@ -606,7 +606,7 @@ buildAutoscalingPolicy() {
|
| if (buildCounterAutoscalingPolicy < 3) {
|
| o.coolDownPeriodSec = 42;
|
| o.cpuUtilization = buildAutoscalingPolicyCpuUtilization();
|
| - o.customMetricUtilizations = buildUnnamed2225();
|
| + o.customMetricUtilizations = buildUnnamed1998();
|
| o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization();
|
| o.maxNumReplicas = 42;
|
| o.minNumReplicas = 42;
|
| @@ -620,7 +620,7 @@ checkAutoscalingPolicy(api.AutoscalingPolicy o) {
|
| if (buildCounterAutoscalingPolicy < 3) {
|
| unittest.expect(o.coolDownPeriodSec, unittest.equals(42));
|
| checkAutoscalingPolicyCpuUtilization(o.cpuUtilization);
|
| - checkUnnamed2225(o.customMetricUtilizations);
|
| + checkUnnamed1998(o.customMetricUtilizations);
|
| checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization);
|
| unittest.expect(o.maxNumReplicas, unittest.equals(42));
|
| unittest.expect(o.minNumReplicas, unittest.equals(42));
|
| @@ -724,27 +724,27 @@ checkBackend(api.Backend o) {
|
| buildCounterBackend--;
|
| }
|
|
|
| -buildUnnamed2226() {
|
| +buildUnnamed1999() {
|
| var o = new core.List<api.Backend>();
|
| o.add(buildBackend());
|
| o.add(buildBackend());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2226(core.List<api.Backend> o) {
|
| +checkUnnamed1999(core.List<api.Backend> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBackend(o[0]);
|
| checkBackend(o[1]);
|
| }
|
|
|
| -buildUnnamed2227() {
|
| +buildUnnamed2000() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2227(core.List<core.String> o) {
|
| +checkUnnamed2000(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'));
|
| @@ -756,15 +756,16 @@ buildBackendService() {
|
| buildCounterBackendService++;
|
| if (buildCounterBackendService < 3) {
|
| o.affinityCookieTtlSec = 42;
|
| - o.backends = buildUnnamed2226();
|
| + o.backends = buildUnnamed1999();
|
| o.connectionDraining = buildConnectionDraining();
|
| o.creationTimestamp = "foo";
|
| o.description = "foo";
|
| o.enableCDN = true;
|
| o.fingerprint = "foo";
|
| - o.healthChecks = buildUnnamed2227();
|
| + o.healthChecks = buildUnnamed2000();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| + o.loadBalancingScheme = "foo";
|
| o.name = "foo";
|
| o.port = 42;
|
| o.portName = "foo";
|
| @@ -782,15 +783,16 @@ checkBackendService(api.BackendService o) {
|
| buildCounterBackendService++;
|
| if (buildCounterBackendService < 3) {
|
| unittest.expect(o.affinityCookieTtlSec, unittest.equals(42));
|
| - checkUnnamed2226(o.backends);
|
| + checkUnnamed1999(o.backends);
|
| checkConnectionDraining(o.connectionDraining);
|
| unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.enableCDN, unittest.isTrue);
|
| unittest.expect(o.fingerprint, unittest.equals('foo'));
|
| - checkUnnamed2227(o.healthChecks);
|
| + checkUnnamed2000(o.healthChecks);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.loadBalancingScheme, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.port, unittest.equals(42));
|
| unittest.expect(o.portName, unittest.equals('foo'));
|
| @@ -803,14 +805,54 @@ checkBackendService(api.BackendService o) {
|
| buildCounterBackendService--;
|
| }
|
|
|
| -buildUnnamed2228() {
|
| +buildUnnamed2001() {
|
| + var o = new core.Map<core.String, api.BackendServicesScopedList>();
|
| + o["x"] = buildBackendServicesScopedList();
|
| + o["y"] = buildBackendServicesScopedList();
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2001(core.Map<core.String, api.BackendServicesScopedList> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkBackendServicesScopedList(o["x"]);
|
| + checkBackendServicesScopedList(o["y"]);
|
| +}
|
| +
|
| +core.int buildCounterBackendServiceAggregatedList = 0;
|
| +buildBackendServiceAggregatedList() {
|
| + var o = new api.BackendServiceAggregatedList();
|
| + buildCounterBackendServiceAggregatedList++;
|
| + if (buildCounterBackendServiceAggregatedList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2001();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.selfLink = "foo";
|
| + }
|
| + buildCounterBackendServiceAggregatedList--;
|
| + return o;
|
| +}
|
| +
|
| +checkBackendServiceAggregatedList(api.BackendServiceAggregatedList o) {
|
| + buildCounterBackendServiceAggregatedList++;
|
| + if (buildCounterBackendServiceAggregatedList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2001(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + }
|
| + buildCounterBackendServiceAggregatedList--;
|
| +}
|
| +
|
| +buildUnnamed2002() {
|
| var o = new core.List<api.HealthStatus>();
|
| o.add(buildHealthStatus());
|
| o.add(buildHealthStatus());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2228(core.List<api.HealthStatus> o) {
|
| +checkUnnamed2002(core.List<api.HealthStatus> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkHealthStatus(o[0]);
|
| checkHealthStatus(o[1]);
|
| @@ -821,7 +863,7 @@ buildBackendServiceGroupHealth() {
|
| var o = new api.BackendServiceGroupHealth();
|
| buildCounterBackendServiceGroupHealth++;
|
| if (buildCounterBackendServiceGroupHealth < 3) {
|
| - o.healthStatus = buildUnnamed2228();
|
| + o.healthStatus = buildUnnamed2002();
|
| o.kind = "foo";
|
| }
|
| buildCounterBackendServiceGroupHealth--;
|
| @@ -831,20 +873,20 @@ buildBackendServiceGroupHealth() {
|
| checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) {
|
| buildCounterBackendServiceGroupHealth++;
|
| if (buildCounterBackendServiceGroupHealth < 3) {
|
| - checkUnnamed2228(o.healthStatus);
|
| + checkUnnamed2002(o.healthStatus);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterBackendServiceGroupHealth--;
|
| }
|
|
|
| -buildUnnamed2229() {
|
| +buildUnnamed2003() {
|
| var o = new core.List<api.BackendService>();
|
| o.add(buildBackendService());
|
| o.add(buildBackendService());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2229(core.List<api.BackendService> o) {
|
| +checkUnnamed2003(core.List<api.BackendService> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBackendService(o[0]);
|
| checkBackendService(o[1]);
|
| @@ -856,7 +898,7 @@ buildBackendServiceList() {
|
| buildCounterBackendServiceList++;
|
| if (buildCounterBackendServiceList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2229();
|
| + o.items = buildUnnamed2003();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -869,7 +911,7 @@ checkBackendServiceList(api.BackendServiceList o) {
|
| buildCounterBackendServiceList++;
|
| if (buildCounterBackendServiceList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2229(o.items);
|
| + checkUnnamed2003(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -877,6 +919,97 @@ checkBackendServiceList(api.BackendServiceList o) {
|
| buildCounterBackendServiceList--;
|
| }
|
|
|
| +buildUnnamed2004() {
|
| + var o = new core.List<api.BackendService>();
|
| + o.add(buildBackendService());
|
| + o.add(buildBackendService());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2004(core.List<api.BackendService> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkBackendService(o[0]);
|
| + checkBackendService(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterBackendServicesScopedListWarningData = 0;
|
| +buildBackendServicesScopedListWarningData() {
|
| + var o = new api.BackendServicesScopedListWarningData();
|
| + buildCounterBackendServicesScopedListWarningData++;
|
| + if (buildCounterBackendServicesScopedListWarningData < 3) {
|
| + o.key = "foo";
|
| + o.value = "foo";
|
| + }
|
| + buildCounterBackendServicesScopedListWarningData--;
|
| + return o;
|
| +}
|
| +
|
| +checkBackendServicesScopedListWarningData(api.BackendServicesScopedListWarningData o) {
|
| + buildCounterBackendServicesScopedListWarningData++;
|
| + if (buildCounterBackendServicesScopedListWarningData < 3) {
|
| + unittest.expect(o.key, unittest.equals('foo'));
|
| + unittest.expect(o.value, unittest.equals('foo'));
|
| + }
|
| + buildCounterBackendServicesScopedListWarningData--;
|
| +}
|
| +
|
| +buildUnnamed2005() {
|
| + var o = new core.List<api.BackendServicesScopedListWarningData>();
|
| + o.add(buildBackendServicesScopedListWarningData());
|
| + o.add(buildBackendServicesScopedListWarningData());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2005(core.List<api.BackendServicesScopedListWarningData> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkBackendServicesScopedListWarningData(o[0]);
|
| + checkBackendServicesScopedListWarningData(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterBackendServicesScopedListWarning = 0;
|
| +buildBackendServicesScopedListWarning() {
|
| + var o = new api.BackendServicesScopedListWarning();
|
| + buildCounterBackendServicesScopedListWarning++;
|
| + if (buildCounterBackendServicesScopedListWarning < 3) {
|
| + o.code = "foo";
|
| + o.data = buildUnnamed2005();
|
| + o.message = "foo";
|
| + }
|
| + buildCounterBackendServicesScopedListWarning--;
|
| + return o;
|
| +}
|
| +
|
| +checkBackendServicesScopedListWarning(api.BackendServicesScopedListWarning o) {
|
| + buildCounterBackendServicesScopedListWarning++;
|
| + if (buildCounterBackendServicesScopedListWarning < 3) {
|
| + unittest.expect(o.code, unittest.equals('foo'));
|
| + checkUnnamed2005(o.data);
|
| + unittest.expect(o.message, unittest.equals('foo'));
|
| + }
|
| + buildCounterBackendServicesScopedListWarning--;
|
| +}
|
| +
|
| +core.int buildCounterBackendServicesScopedList = 0;
|
| +buildBackendServicesScopedList() {
|
| + var o = new api.BackendServicesScopedList();
|
| + buildCounterBackendServicesScopedList++;
|
| + if (buildCounterBackendServicesScopedList < 3) {
|
| + o.backendServices = buildUnnamed2004();
|
| + o.warning = buildBackendServicesScopedListWarning();
|
| + }
|
| + buildCounterBackendServicesScopedList--;
|
| + return o;
|
| +}
|
| +
|
| +checkBackendServicesScopedList(api.BackendServicesScopedList o) {
|
| + buildCounterBackendServicesScopedList++;
|
| + if (buildCounterBackendServicesScopedList < 3) {
|
| + checkUnnamed2004(o.backendServices);
|
| + checkBackendServicesScopedListWarning(o.warning);
|
| + }
|
| + buildCounterBackendServicesScopedList--;
|
| +}
|
| +
|
| core.int buildCounterCacheInvalidationRule = 0;
|
| buildCacheInvalidationRule() {
|
| var o = new api.CacheInvalidationRule();
|
| @@ -984,27 +1117,27 @@ checkDeprecationStatus(api.DeprecationStatus o) {
|
| buildCounterDeprecationStatus--;
|
| }
|
|
|
| -buildUnnamed2230() {
|
| +buildUnnamed2006() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2230(core.List<core.String> o) {
|
| +checkUnnamed2006(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'));
|
| }
|
|
|
| -buildUnnamed2231() {
|
| +buildUnnamed2007() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2231(core.List<core.String> o) {
|
| +checkUnnamed2007(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'));
|
| @@ -1022,7 +1155,7 @@ buildDisk() {
|
| o.kind = "foo";
|
| o.lastAttachTimestamp = "foo";
|
| o.lastDetachTimestamp = "foo";
|
| - o.licenses = buildUnnamed2230();
|
| + o.licenses = buildUnnamed2006();
|
| o.name = "foo";
|
| o.options = "foo";
|
| o.selfLink = "foo";
|
| @@ -1035,7 +1168,7 @@ buildDisk() {
|
| o.sourceSnapshotId = "foo";
|
| o.status = "foo";
|
| o.type = "foo";
|
| - o.users = buildUnnamed2231();
|
| + o.users = buildUnnamed2007();
|
| o.zone = "foo";
|
| }
|
| buildCounterDisk--;
|
| @@ -1052,7 +1185,7 @@ checkDisk(api.Disk o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.lastAttachTimestamp, unittest.equals('foo'));
|
| unittest.expect(o.lastDetachTimestamp, unittest.equals('foo'));
|
| - checkUnnamed2230(o.licenses);
|
| + checkUnnamed2006(o.licenses);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.options, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -1065,20 +1198,20 @@ checkDisk(api.Disk o) {
|
| unittest.expect(o.sourceSnapshotId, unittest.equals('foo'));
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| - checkUnnamed2231(o.users);
|
| + checkUnnamed2007(o.users);
|
| unittest.expect(o.zone, unittest.equals('foo'));
|
| }
|
| buildCounterDisk--;
|
| }
|
|
|
| -buildUnnamed2232() {
|
| +buildUnnamed2008() {
|
| var o = new core.Map<core.String, api.DisksScopedList>();
|
| o["x"] = buildDisksScopedList();
|
| o["y"] = buildDisksScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2232(core.Map<core.String, api.DisksScopedList> o) {
|
| +checkUnnamed2008(core.Map<core.String, api.DisksScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDisksScopedList(o["x"]);
|
| checkDisksScopedList(o["y"]);
|
| @@ -1090,7 +1223,7 @@ buildDiskAggregatedList() {
|
| buildCounterDiskAggregatedList++;
|
| if (buildCounterDiskAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2232();
|
| + o.items = buildUnnamed2008();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -1103,7 +1236,7 @@ checkDiskAggregatedList(api.DiskAggregatedList o) {
|
| buildCounterDiskAggregatedList++;
|
| if (buildCounterDiskAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2232(o.items);
|
| + checkUnnamed2008(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -1111,14 +1244,14 @@ checkDiskAggregatedList(api.DiskAggregatedList o) {
|
| buildCounterDiskAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2233() {
|
| +buildUnnamed2009() {
|
| var o = new core.List<api.Disk>();
|
| o.add(buildDisk());
|
| o.add(buildDisk());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2233(core.List<api.Disk> o) {
|
| +checkUnnamed2009(core.List<api.Disk> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDisk(o[0]);
|
| checkDisk(o[1]);
|
| @@ -1130,7 +1263,7 @@ buildDiskList() {
|
| buildCounterDiskList++;
|
| if (buildCounterDiskList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2233();
|
| + o.items = buildUnnamed2009();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -1143,7 +1276,7 @@ checkDiskList(api.DiskList o) {
|
| buildCounterDiskList++;
|
| if (buildCounterDiskList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2233(o.items);
|
| + checkUnnamed2009(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -1209,14 +1342,14 @@ checkDiskType(api.DiskType o) {
|
| buildCounterDiskType--;
|
| }
|
|
|
| -buildUnnamed2234() {
|
| +buildUnnamed2010() {
|
| var o = new core.Map<core.String, api.DiskTypesScopedList>();
|
| o["x"] = buildDiskTypesScopedList();
|
| o["y"] = buildDiskTypesScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2234(core.Map<core.String, api.DiskTypesScopedList> o) {
|
| +checkUnnamed2010(core.Map<core.String, api.DiskTypesScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDiskTypesScopedList(o["x"]);
|
| checkDiskTypesScopedList(o["y"]);
|
| @@ -1228,7 +1361,7 @@ buildDiskTypeAggregatedList() {
|
| buildCounterDiskTypeAggregatedList++;
|
| if (buildCounterDiskTypeAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2234();
|
| + o.items = buildUnnamed2010();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -1241,7 +1374,7 @@ checkDiskTypeAggregatedList(api.DiskTypeAggregatedList o) {
|
| buildCounterDiskTypeAggregatedList++;
|
| if (buildCounterDiskTypeAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2234(o.items);
|
| + checkUnnamed2010(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -1249,14 +1382,14 @@ checkDiskTypeAggregatedList(api.DiskTypeAggregatedList o) {
|
| buildCounterDiskTypeAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2235() {
|
| +buildUnnamed2011() {
|
| var o = new core.List<api.DiskType>();
|
| o.add(buildDiskType());
|
| o.add(buildDiskType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2235(core.List<api.DiskType> o) {
|
| +checkUnnamed2011(core.List<api.DiskType> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDiskType(o[0]);
|
| checkDiskType(o[1]);
|
| @@ -1268,7 +1401,7 @@ buildDiskTypeList() {
|
| buildCounterDiskTypeList++;
|
| if (buildCounterDiskTypeList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2235();
|
| + o.items = buildUnnamed2011();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -1281,7 +1414,7 @@ checkDiskTypeList(api.DiskTypeList o) {
|
| buildCounterDiskTypeList++;
|
| if (buildCounterDiskTypeList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2235(o.items);
|
| + checkUnnamed2011(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -1289,14 +1422,14 @@ checkDiskTypeList(api.DiskTypeList o) {
|
| buildCounterDiskTypeList--;
|
| }
|
|
|
| -buildUnnamed2236() {
|
| +buildUnnamed2012() {
|
| var o = new core.List<api.DiskType>();
|
| o.add(buildDiskType());
|
| o.add(buildDiskType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2236(core.List<api.DiskType> o) {
|
| +checkUnnamed2012(core.List<api.DiskType> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDiskType(o[0]);
|
| checkDiskType(o[1]);
|
| @@ -1323,14 +1456,14 @@ checkDiskTypesScopedListWarningData(api.DiskTypesScopedListWarningData o) {
|
| buildCounterDiskTypesScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2237() {
|
| +buildUnnamed2013() {
|
| var o = new core.List<api.DiskTypesScopedListWarningData>();
|
| o.add(buildDiskTypesScopedListWarningData());
|
| o.add(buildDiskTypesScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2237(core.List<api.DiskTypesScopedListWarningData> o) {
|
| +checkUnnamed2013(core.List<api.DiskTypesScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDiskTypesScopedListWarningData(o[0]);
|
| checkDiskTypesScopedListWarningData(o[1]);
|
| @@ -1342,7 +1475,7 @@ buildDiskTypesScopedListWarning() {
|
| buildCounterDiskTypesScopedListWarning++;
|
| if (buildCounterDiskTypesScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2237();
|
| + o.data = buildUnnamed2013();
|
| o.message = "foo";
|
| }
|
| buildCounterDiskTypesScopedListWarning--;
|
| @@ -1353,7 +1486,7 @@ checkDiskTypesScopedListWarning(api.DiskTypesScopedListWarning o) {
|
| buildCounterDiskTypesScopedListWarning++;
|
| if (buildCounterDiskTypesScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2237(o.data);
|
| + checkUnnamed2013(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterDiskTypesScopedListWarning--;
|
| @@ -1364,7 +1497,7 @@ buildDiskTypesScopedList() {
|
| var o = new api.DiskTypesScopedList();
|
| buildCounterDiskTypesScopedList++;
|
| if (buildCounterDiskTypesScopedList < 3) {
|
| - o.diskTypes = buildUnnamed2236();
|
| + o.diskTypes = buildUnnamed2012();
|
| o.warning = buildDiskTypesScopedListWarning();
|
| }
|
| buildCounterDiskTypesScopedList--;
|
| @@ -1374,7 +1507,7 @@ buildDiskTypesScopedList() {
|
| checkDiskTypesScopedList(api.DiskTypesScopedList o) {
|
| buildCounterDiskTypesScopedList++;
|
| if (buildCounterDiskTypesScopedList < 3) {
|
| - checkUnnamed2236(o.diskTypes);
|
| + checkUnnamed2012(o.diskTypes);
|
| checkDiskTypesScopedListWarning(o.warning);
|
| }
|
| buildCounterDiskTypesScopedList--;
|
| @@ -1399,14 +1532,14 @@ checkDisksResizeRequest(api.DisksResizeRequest o) {
|
| buildCounterDisksResizeRequest--;
|
| }
|
|
|
| -buildUnnamed2238() {
|
| +buildUnnamed2014() {
|
| var o = new core.List<api.Disk>();
|
| o.add(buildDisk());
|
| o.add(buildDisk());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2238(core.List<api.Disk> o) {
|
| +checkUnnamed2014(core.List<api.Disk> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDisk(o[0]);
|
| checkDisk(o[1]);
|
| @@ -1433,14 +1566,14 @@ checkDisksScopedListWarningData(api.DisksScopedListWarningData o) {
|
| buildCounterDisksScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2239() {
|
| +buildUnnamed2015() {
|
| var o = new core.List<api.DisksScopedListWarningData>();
|
| o.add(buildDisksScopedListWarningData());
|
| o.add(buildDisksScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2239(core.List<api.DisksScopedListWarningData> o) {
|
| +checkUnnamed2015(core.List<api.DisksScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDisksScopedListWarningData(o[0]);
|
| checkDisksScopedListWarningData(o[1]);
|
| @@ -1452,7 +1585,7 @@ buildDisksScopedListWarning() {
|
| buildCounterDisksScopedListWarning++;
|
| if (buildCounterDisksScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2239();
|
| + o.data = buildUnnamed2015();
|
| o.message = "foo";
|
| }
|
| buildCounterDisksScopedListWarning--;
|
| @@ -1463,7 +1596,7 @@ checkDisksScopedListWarning(api.DisksScopedListWarning o) {
|
| buildCounterDisksScopedListWarning++;
|
| if (buildCounterDisksScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2239(o.data);
|
| + checkUnnamed2015(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterDisksScopedListWarning--;
|
| @@ -1474,7 +1607,7 @@ buildDisksScopedList() {
|
| var o = new api.DisksScopedList();
|
| buildCounterDisksScopedList++;
|
| if (buildCounterDisksScopedList < 3) {
|
| - o.disks = buildUnnamed2238();
|
| + o.disks = buildUnnamed2014();
|
| o.warning = buildDisksScopedListWarning();
|
| }
|
| buildCounterDisksScopedList--;
|
| @@ -1484,20 +1617,20 @@ buildDisksScopedList() {
|
| checkDisksScopedList(api.DisksScopedList o) {
|
| buildCounterDisksScopedList++;
|
| if (buildCounterDisksScopedList < 3) {
|
| - checkUnnamed2238(o.disks);
|
| + checkUnnamed2014(o.disks);
|
| checkDisksScopedListWarning(o.warning);
|
| }
|
| buildCounterDisksScopedList--;
|
| }
|
|
|
| -buildUnnamed2240() {
|
| +buildUnnamed2016() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2240(core.List<core.String> o) {
|
| +checkUnnamed2016(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'));
|
| @@ -1509,7 +1642,7 @@ buildFirewallAllowed() {
|
| buildCounterFirewallAllowed++;
|
| if (buildCounterFirewallAllowed < 3) {
|
| o.IPProtocol = "foo";
|
| - o.ports = buildUnnamed2240();
|
| + o.ports = buildUnnamed2016();
|
| }
|
| buildCounterFirewallAllowed--;
|
| return o;
|
| @@ -1519,58 +1652,58 @@ checkFirewallAllowed(api.FirewallAllowed o) {
|
| buildCounterFirewallAllowed++;
|
| if (buildCounterFirewallAllowed < 3) {
|
| unittest.expect(o.IPProtocol, unittest.equals('foo'));
|
| - checkUnnamed2240(o.ports);
|
| + checkUnnamed2016(o.ports);
|
| }
|
| buildCounterFirewallAllowed--;
|
| }
|
|
|
| -buildUnnamed2241() {
|
| +buildUnnamed2017() {
|
| var o = new core.List<api.FirewallAllowed>();
|
| o.add(buildFirewallAllowed());
|
| o.add(buildFirewallAllowed());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2241(core.List<api.FirewallAllowed> o) {
|
| +checkUnnamed2017(core.List<api.FirewallAllowed> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFirewallAllowed(o[0]);
|
| checkFirewallAllowed(o[1]);
|
| }
|
|
|
| -buildUnnamed2242() {
|
| +buildUnnamed2018() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2242(core.List<core.String> o) {
|
| +checkUnnamed2018(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'));
|
| }
|
|
|
| -buildUnnamed2243() {
|
| +buildUnnamed2019() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2243(core.List<core.String> o) {
|
| +checkUnnamed2019(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'));
|
| }
|
|
|
| -buildUnnamed2244() {
|
| +buildUnnamed2020() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2244(core.List<core.String> o) {
|
| +checkUnnamed2020(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'));
|
| @@ -1581,7 +1714,7 @@ buildFirewall() {
|
| var o = new api.Firewall();
|
| buildCounterFirewall++;
|
| if (buildCounterFirewall < 3) {
|
| - o.allowed = buildUnnamed2241();
|
| + o.allowed = buildUnnamed2017();
|
| o.creationTimestamp = "foo";
|
| o.description = "foo";
|
| o.id = "foo";
|
| @@ -1589,9 +1722,9 @@ buildFirewall() {
|
| o.name = "foo";
|
| o.network = "foo";
|
| o.selfLink = "foo";
|
| - o.sourceRanges = buildUnnamed2242();
|
| - o.sourceTags = buildUnnamed2243();
|
| - o.targetTags = buildUnnamed2244();
|
| + o.sourceRanges = buildUnnamed2018();
|
| + o.sourceTags = buildUnnamed2019();
|
| + o.targetTags = buildUnnamed2020();
|
| }
|
| buildCounterFirewall--;
|
| return o;
|
| @@ -1600,7 +1733,7 @@ buildFirewall() {
|
| checkFirewall(api.Firewall o) {
|
| buildCounterFirewall++;
|
| if (buildCounterFirewall < 3) {
|
| - checkUnnamed2241(o.allowed);
|
| + checkUnnamed2017(o.allowed);
|
| unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| @@ -1608,21 +1741,21 @@ checkFirewall(api.Firewall o) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.network, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - checkUnnamed2242(o.sourceRanges);
|
| - checkUnnamed2243(o.sourceTags);
|
| - checkUnnamed2244(o.targetTags);
|
| + checkUnnamed2018(o.sourceRanges);
|
| + checkUnnamed2019(o.sourceTags);
|
| + checkUnnamed2020(o.targetTags);
|
| }
|
| buildCounterFirewall--;
|
| }
|
|
|
| -buildUnnamed2245() {
|
| +buildUnnamed2021() {
|
| var o = new core.List<api.Firewall>();
|
| o.add(buildFirewall());
|
| o.add(buildFirewall());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2245(core.List<api.Firewall> o) {
|
| +checkUnnamed2021(core.List<api.Firewall> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFirewall(o[0]);
|
| checkFirewall(o[1]);
|
| @@ -1634,7 +1767,7 @@ buildFirewallList() {
|
| buildCounterFirewallList++;
|
| if (buildCounterFirewallList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2245();
|
| + o.items = buildUnnamed2021();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -1647,7 +1780,7 @@ checkFirewallList(api.FirewallList o) {
|
| buildCounterFirewallList++;
|
| if (buildCounterFirewallList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2245(o.items);
|
| + checkUnnamed2021(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -1655,6 +1788,19 @@ checkFirewallList(api.FirewallList o) {
|
| buildCounterFirewallList--;
|
| }
|
|
|
| +buildUnnamed2022() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2022(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 buildCounterForwardingRule = 0;
|
| buildForwardingRule() {
|
| var o = new api.ForwardingRule();
|
| @@ -1662,14 +1808,19 @@ buildForwardingRule() {
|
| if (buildCounterForwardingRule < 3) {
|
| o.IPAddress = "foo";
|
| o.IPProtocol = "foo";
|
| + o.backendService = "foo";
|
| o.creationTimestamp = "foo";
|
| o.description = "foo";
|
| o.id = "foo";
|
| o.kind = "foo";
|
| + o.loadBalancingScheme = "foo";
|
| o.name = "foo";
|
| + o.network = "foo";
|
| o.portRange = "foo";
|
| + o.ports = buildUnnamed2022();
|
| o.region = "foo";
|
| o.selfLink = "foo";
|
| + o.subnetwork = "foo";
|
| o.target = "foo";
|
| }
|
| buildCounterForwardingRule--;
|
| @@ -1681,27 +1832,32 @@ checkForwardingRule(api.ForwardingRule o) {
|
| if (buildCounterForwardingRule < 3) {
|
| unittest.expect(o.IPAddress, unittest.equals('foo'));
|
| unittest.expect(o.IPProtocol, unittest.equals('foo'));
|
| + unittest.expect(o.backendService, unittest.equals('foo'));
|
| unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.loadBalancingScheme, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.network, unittest.equals('foo'));
|
| unittest.expect(o.portRange, unittest.equals('foo'));
|
| + checkUnnamed2022(o.ports);
|
| unittest.expect(o.region, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + unittest.expect(o.subnetwork, unittest.equals('foo'));
|
| unittest.expect(o.target, unittest.equals('foo'));
|
| }
|
| buildCounterForwardingRule--;
|
| }
|
|
|
| -buildUnnamed2246() {
|
| +buildUnnamed2023() {
|
| var o = new core.Map<core.String, api.ForwardingRulesScopedList>();
|
| o["x"] = buildForwardingRulesScopedList();
|
| o["y"] = buildForwardingRulesScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2246(core.Map<core.String, api.ForwardingRulesScopedList> o) {
|
| +checkUnnamed2023(core.Map<core.String, api.ForwardingRulesScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkForwardingRulesScopedList(o["x"]);
|
| checkForwardingRulesScopedList(o["y"]);
|
| @@ -1713,7 +1869,7 @@ buildForwardingRuleAggregatedList() {
|
| buildCounterForwardingRuleAggregatedList++;
|
| if (buildCounterForwardingRuleAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2246();
|
| + o.items = buildUnnamed2023();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -1726,7 +1882,7 @@ checkForwardingRuleAggregatedList(api.ForwardingRuleAggregatedList o) {
|
| buildCounterForwardingRuleAggregatedList++;
|
| if (buildCounterForwardingRuleAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2246(o.items);
|
| + checkUnnamed2023(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -1734,14 +1890,14 @@ checkForwardingRuleAggregatedList(api.ForwardingRuleAggregatedList o) {
|
| buildCounterForwardingRuleAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2247() {
|
| +buildUnnamed2024() {
|
| var o = new core.List<api.ForwardingRule>();
|
| o.add(buildForwardingRule());
|
| o.add(buildForwardingRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2247(core.List<api.ForwardingRule> o) {
|
| +checkUnnamed2024(core.List<api.ForwardingRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkForwardingRule(o[0]);
|
| checkForwardingRule(o[1]);
|
| @@ -1753,7 +1909,7 @@ buildForwardingRuleList() {
|
| buildCounterForwardingRuleList++;
|
| if (buildCounterForwardingRuleList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2247();
|
| + o.items = buildUnnamed2024();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -1766,7 +1922,7 @@ checkForwardingRuleList(api.ForwardingRuleList o) {
|
| buildCounterForwardingRuleList++;
|
| if (buildCounterForwardingRuleList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2247(o.items);
|
| + checkUnnamed2024(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -1774,14 +1930,14 @@ checkForwardingRuleList(api.ForwardingRuleList o) {
|
| buildCounterForwardingRuleList--;
|
| }
|
|
|
| -buildUnnamed2248() {
|
| +buildUnnamed2025() {
|
| var o = new core.List<api.ForwardingRule>();
|
| o.add(buildForwardingRule());
|
| o.add(buildForwardingRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2248(core.List<api.ForwardingRule> o) {
|
| +checkUnnamed2025(core.List<api.ForwardingRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkForwardingRule(o[0]);
|
| checkForwardingRule(o[1]);
|
| @@ -1808,14 +1964,14 @@ checkForwardingRulesScopedListWarningData(api.ForwardingRulesScopedListWarningDa
|
| buildCounterForwardingRulesScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2249() {
|
| +buildUnnamed2026() {
|
| var o = new core.List<api.ForwardingRulesScopedListWarningData>();
|
| o.add(buildForwardingRulesScopedListWarningData());
|
| o.add(buildForwardingRulesScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2249(core.List<api.ForwardingRulesScopedListWarningData> o) {
|
| +checkUnnamed2026(core.List<api.ForwardingRulesScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkForwardingRulesScopedListWarningData(o[0]);
|
| checkForwardingRulesScopedListWarningData(o[1]);
|
| @@ -1827,7 +1983,7 @@ buildForwardingRulesScopedListWarning() {
|
| buildCounterForwardingRulesScopedListWarning++;
|
| if (buildCounterForwardingRulesScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2249();
|
| + o.data = buildUnnamed2026();
|
| o.message = "foo";
|
| }
|
| buildCounterForwardingRulesScopedListWarning--;
|
| @@ -1838,7 +1994,7 @@ checkForwardingRulesScopedListWarning(api.ForwardingRulesScopedListWarning o) {
|
| buildCounterForwardingRulesScopedListWarning++;
|
| if (buildCounterForwardingRulesScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2249(o.data);
|
| + checkUnnamed2026(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterForwardingRulesScopedListWarning--;
|
| @@ -1849,7 +2005,7 @@ buildForwardingRulesScopedList() {
|
| var o = new api.ForwardingRulesScopedList();
|
| buildCounterForwardingRulesScopedList++;
|
| if (buildCounterForwardingRulesScopedList < 3) {
|
| - o.forwardingRules = buildUnnamed2248();
|
| + o.forwardingRules = buildUnnamed2025();
|
| o.warning = buildForwardingRulesScopedListWarning();
|
| }
|
| buildCounterForwardingRulesScopedList--;
|
| @@ -1859,37 +2015,29 @@ buildForwardingRulesScopedList() {
|
| checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) {
|
| buildCounterForwardingRulesScopedList++;
|
| if (buildCounterForwardingRulesScopedList < 3) {
|
| - checkUnnamed2248(o.forwardingRules);
|
| + checkUnnamed2025(o.forwardingRules);
|
| checkForwardingRulesScopedListWarning(o.warning);
|
| }
|
| buildCounterForwardingRulesScopedList--;
|
| }
|
|
|
| -core.int buildCounterHTTP2HealthCheck = 0;
|
| -buildHTTP2HealthCheck() {
|
| - var o = new api.HTTP2HealthCheck();
|
| - buildCounterHTTP2HealthCheck++;
|
| - if (buildCounterHTTP2HealthCheck < 3) {
|
| - o.host = "foo";
|
| - o.port = 42;
|
| - o.portName = "foo";
|
| - o.proxyHeader = "foo";
|
| - o.requestPath = "foo";
|
| +core.int buildCounterGuestOsFeature = 0;
|
| +buildGuestOsFeature() {
|
| + var o = new api.GuestOsFeature();
|
| + buildCounterGuestOsFeature++;
|
| + if (buildCounterGuestOsFeature < 3) {
|
| + o.type = "foo";
|
| }
|
| - buildCounterHTTP2HealthCheck--;
|
| + buildCounterGuestOsFeature--;
|
| return o;
|
| }
|
|
|
| -checkHTTP2HealthCheck(api.HTTP2HealthCheck o) {
|
| - buildCounterHTTP2HealthCheck++;
|
| - if (buildCounterHTTP2HealthCheck < 3) {
|
| - unittest.expect(o.host, unittest.equals('foo'));
|
| - unittest.expect(o.port, unittest.equals(42));
|
| - unittest.expect(o.portName, unittest.equals('foo'));
|
| - unittest.expect(o.proxyHeader, unittest.equals('foo'));
|
| - unittest.expect(o.requestPath, unittest.equals('foo'));
|
| +checkGuestOsFeature(api.GuestOsFeature o) {
|
| + buildCounterGuestOsFeature++;
|
| + if (buildCounterGuestOsFeature < 3) {
|
| + unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| - buildCounterHTTP2HealthCheck--;
|
| + buildCounterGuestOsFeature--;
|
| }
|
|
|
| core.int buildCounterHTTPHealthCheck = 0;
|
| @@ -1955,7 +2103,6 @@ buildHealthCheck() {
|
| o.creationTimestamp = "foo";
|
| o.description = "foo";
|
| o.healthyThreshold = 42;
|
| - o.http2HealthCheck = buildHTTP2HealthCheck();
|
| o.httpHealthCheck = buildHTTPHealthCheck();
|
| o.httpsHealthCheck = buildHTTPSHealthCheck();
|
| o.id = "foo";
|
| @@ -1979,7 +2126,6 @@ checkHealthCheck(api.HealthCheck o) {
|
| unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.healthyThreshold, unittest.equals(42));
|
| - checkHTTP2HealthCheck(o.http2HealthCheck);
|
| checkHTTPHealthCheck(o.httpHealthCheck);
|
| checkHTTPSHealthCheck(o.httpsHealthCheck);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| @@ -1995,14 +2141,14 @@ checkHealthCheck(api.HealthCheck o) {
|
| buildCounterHealthCheck--;
|
| }
|
|
|
| -buildUnnamed2250() {
|
| +buildUnnamed2027() {
|
| var o = new core.List<api.HealthCheck>();
|
| o.add(buildHealthCheck());
|
| o.add(buildHealthCheck());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2250(core.List<api.HealthCheck> o) {
|
| +checkUnnamed2027(core.List<api.HealthCheck> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkHealthCheck(o[0]);
|
| checkHealthCheck(o[1]);
|
| @@ -2014,7 +2160,7 @@ buildHealthCheckList() {
|
| buildCounterHealthCheckList++;
|
| if (buildCounterHealthCheckList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2250();
|
| + o.items = buildUnnamed2027();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -2027,7 +2173,7 @@ checkHealthCheckList(api.HealthCheckList o) {
|
| buildCounterHealthCheckList++;
|
| if (buildCounterHealthCheckList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2250(o.items);
|
| + checkUnnamed2027(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -2079,14 +2225,14 @@ checkHealthStatus(api.HealthStatus o) {
|
| buildCounterHealthStatus--;
|
| }
|
|
|
| -buildUnnamed2251() {
|
| +buildUnnamed2028() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2251(core.List<core.String> o) {
|
| +checkUnnamed2028(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'));
|
| @@ -2098,7 +2244,7 @@ buildHostRule() {
|
| buildCounterHostRule++;
|
| if (buildCounterHostRule < 3) {
|
| o.description = "foo";
|
| - o.hosts = buildUnnamed2251();
|
| + o.hosts = buildUnnamed2028();
|
| o.pathMatcher = "foo";
|
| }
|
| buildCounterHostRule--;
|
| @@ -2109,7 +2255,7 @@ checkHostRule(api.HostRule o) {
|
| buildCounterHostRule++;
|
| if (buildCounterHostRule < 3) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - checkUnnamed2251(o.hosts);
|
| + checkUnnamed2028(o.hosts);
|
| unittest.expect(o.pathMatcher, unittest.equals('foo'));
|
| }
|
| buildCounterHostRule--;
|
| @@ -2158,14 +2304,14 @@ checkHttpHealthCheck(api.HttpHealthCheck o) {
|
| buildCounterHttpHealthCheck--;
|
| }
|
|
|
| -buildUnnamed2252() {
|
| +buildUnnamed2029() {
|
| var o = new core.List<api.HttpHealthCheck>();
|
| o.add(buildHttpHealthCheck());
|
| o.add(buildHttpHealthCheck());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2252(core.List<api.HttpHealthCheck> o) {
|
| +checkUnnamed2029(core.List<api.HttpHealthCheck> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkHttpHealthCheck(o[0]);
|
| checkHttpHealthCheck(o[1]);
|
| @@ -2177,7 +2323,7 @@ buildHttpHealthCheckList() {
|
| buildCounterHttpHealthCheckList++;
|
| if (buildCounterHttpHealthCheckList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2252();
|
| + o.items = buildUnnamed2029();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -2190,7 +2336,7 @@ checkHttpHealthCheckList(api.HttpHealthCheckList o) {
|
| buildCounterHttpHealthCheckList++;
|
| if (buildCounterHttpHealthCheckList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2252(o.items);
|
| + checkUnnamed2029(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -2241,14 +2387,14 @@ checkHttpsHealthCheck(api.HttpsHealthCheck o) {
|
| buildCounterHttpsHealthCheck--;
|
| }
|
|
|
| -buildUnnamed2253() {
|
| +buildUnnamed2030() {
|
| var o = new core.List<api.HttpsHealthCheck>();
|
| o.add(buildHttpsHealthCheck());
|
| o.add(buildHttpsHealthCheck());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2253(core.List<api.HttpsHealthCheck> o) {
|
| +checkUnnamed2030(core.List<api.HttpsHealthCheck> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkHttpsHealthCheck(o[0]);
|
| checkHttpsHealthCheck(o[1]);
|
| @@ -2260,7 +2406,7 @@ buildHttpsHealthCheckList() {
|
| buildCounterHttpsHealthCheckList++;
|
| if (buildCounterHttpsHealthCheckList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2253();
|
| + o.items = buildUnnamed2030();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -2273,7 +2419,7 @@ checkHttpsHealthCheckList(api.HttpsHealthCheckList o) {
|
| buildCounterHttpsHealthCheckList++;
|
| if (buildCounterHttpsHealthCheckList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2253(o.items);
|
| + checkUnnamed2030(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -2281,14 +2427,27 @@ checkHttpsHealthCheckList(api.HttpsHealthCheckList o) {
|
| buildCounterHttpsHealthCheckList--;
|
| }
|
|
|
| -buildUnnamed2254() {
|
| +buildUnnamed2031() {
|
| + var o = new core.List<api.GuestOsFeature>();
|
| + o.add(buildGuestOsFeature());
|
| + o.add(buildGuestOsFeature());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2031(core.List<api.GuestOsFeature> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkGuestOsFeature(o[0]);
|
| + checkGuestOsFeature(o[1]);
|
| +}
|
| +
|
| +buildUnnamed2032() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2254(core.List<core.String> o) {
|
| +checkUnnamed2032(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'));
|
| @@ -2328,10 +2487,11 @@ buildImage() {
|
| o.description = "foo";
|
| o.diskSizeGb = "foo";
|
| o.family = "foo";
|
| + o.guestOsFeatures = buildUnnamed2031();
|
| o.id = "foo";
|
| o.imageEncryptionKey = buildCustomerEncryptionKey();
|
| o.kind = "foo";
|
| - o.licenses = buildUnnamed2254();
|
| + o.licenses = buildUnnamed2032();
|
| o.name = "foo";
|
| o.rawDisk = buildImageRawDisk();
|
| o.selfLink = "foo";
|
| @@ -2354,10 +2514,11 @@ checkImage(api.Image o) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.diskSizeGb, unittest.equals('foo'));
|
| unittest.expect(o.family, unittest.equals('foo'));
|
| + checkUnnamed2031(o.guestOsFeatures);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| checkCustomerEncryptionKey(o.imageEncryptionKey);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed2254(o.licenses);
|
| + checkUnnamed2032(o.licenses);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| checkImageRawDisk(o.rawDisk);
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -2370,14 +2531,14 @@ checkImage(api.Image o) {
|
| buildCounterImage--;
|
| }
|
|
|
| -buildUnnamed2255() {
|
| +buildUnnamed2033() {
|
| var o = new core.List<api.Image>();
|
| o.add(buildImage());
|
| o.add(buildImage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2255(core.List<api.Image> o) {
|
| +checkUnnamed2033(core.List<api.Image> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkImage(o[0]);
|
| checkImage(o[1]);
|
| @@ -2389,7 +2550,7 @@ buildImageList() {
|
| buildCounterImageList++;
|
| if (buildCounterImageList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2255();
|
| + o.items = buildUnnamed2033();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -2402,7 +2563,7 @@ checkImageList(api.ImageList o) {
|
| buildCounterImageList++;
|
| if (buildCounterImageList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2255(o.items);
|
| + checkUnnamed2033(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -2410,40 +2571,40 @@ checkImageList(api.ImageList o) {
|
| buildCounterImageList--;
|
| }
|
|
|
| -buildUnnamed2256() {
|
| +buildUnnamed2034() {
|
| var o = new core.List<api.AttachedDisk>();
|
| o.add(buildAttachedDisk());
|
| o.add(buildAttachedDisk());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2256(core.List<api.AttachedDisk> o) {
|
| +checkUnnamed2034(core.List<api.AttachedDisk> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAttachedDisk(o[0]);
|
| checkAttachedDisk(o[1]);
|
| }
|
|
|
| -buildUnnamed2257() {
|
| +buildUnnamed2035() {
|
| var o = new core.List<api.NetworkInterface>();
|
| o.add(buildNetworkInterface());
|
| o.add(buildNetworkInterface());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2257(core.List<api.NetworkInterface> o) {
|
| +checkUnnamed2035(core.List<api.NetworkInterface> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkNetworkInterface(o[0]);
|
| checkNetworkInterface(o[1]);
|
| }
|
|
|
| -buildUnnamed2258() {
|
| +buildUnnamed2036() {
|
| var o = new core.List<api.ServiceAccount>();
|
| o.add(buildServiceAccount());
|
| o.add(buildServiceAccount());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2258(core.List<api.ServiceAccount> o) {
|
| +checkUnnamed2036(core.List<api.ServiceAccount> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkServiceAccount(o[0]);
|
| checkServiceAccount(o[1]);
|
| @@ -2458,16 +2619,16 @@ buildInstance() {
|
| o.cpuPlatform = "foo";
|
| o.creationTimestamp = "foo";
|
| o.description = "foo";
|
| - o.disks = buildUnnamed2256();
|
| + o.disks = buildUnnamed2034();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.machineType = "foo";
|
| o.metadata = buildMetadata();
|
| o.name = "foo";
|
| - o.networkInterfaces = buildUnnamed2257();
|
| + o.networkInterfaces = buildUnnamed2035();
|
| o.scheduling = buildScheduling();
|
| o.selfLink = "foo";
|
| - o.serviceAccounts = buildUnnamed2258();
|
| + o.serviceAccounts = buildUnnamed2036();
|
| o.status = "foo";
|
| o.statusMessage = "foo";
|
| o.tags = buildTags();
|
| @@ -2484,16 +2645,16 @@ checkInstance(api.Instance o) {
|
| unittest.expect(o.cpuPlatform, unittest.equals('foo'));
|
| unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - checkUnnamed2256(o.disks);
|
| + checkUnnamed2034(o.disks);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.machineType, unittest.equals('foo'));
|
| checkMetadata(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2257(o.networkInterfaces);
|
| + checkUnnamed2035(o.networkInterfaces);
|
| checkScheduling(o.scheduling);
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - checkUnnamed2258(o.serviceAccounts);
|
| + checkUnnamed2036(o.serviceAccounts);
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| unittest.expect(o.statusMessage, unittest.equals('foo'));
|
| checkTags(o.tags);
|
| @@ -2502,14 +2663,14 @@ checkInstance(api.Instance o) {
|
| buildCounterInstance--;
|
| }
|
|
|
| -buildUnnamed2259() {
|
| +buildUnnamed2037() {
|
| var o = new core.Map<core.String, api.InstancesScopedList>();
|
| o["x"] = buildInstancesScopedList();
|
| o["y"] = buildInstancesScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2259(core.Map<core.String, api.InstancesScopedList> o) {
|
| +checkUnnamed2037(core.Map<core.String, api.InstancesScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstancesScopedList(o["x"]);
|
| checkInstancesScopedList(o["y"]);
|
| @@ -2521,7 +2682,7 @@ buildInstanceAggregatedList() {
|
| buildCounterInstanceAggregatedList++;
|
| if (buildCounterInstanceAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2259();
|
| + o.items = buildUnnamed2037();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -2534,7 +2695,7 @@ checkInstanceAggregatedList(api.InstanceAggregatedList o) {
|
| buildCounterInstanceAggregatedList++;
|
| if (buildCounterInstanceAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2259(o.items);
|
| + checkUnnamed2037(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -2542,14 +2703,14 @@ checkInstanceAggregatedList(api.InstanceAggregatedList o) {
|
| buildCounterInstanceAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2260() {
|
| +buildUnnamed2038() {
|
| var o = new core.List<api.NamedPort>();
|
| o.add(buildNamedPort());
|
| o.add(buildNamedPort());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2260(core.List<api.NamedPort> o) {
|
| +checkUnnamed2038(core.List<api.NamedPort> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkNamedPort(o[0]);
|
| checkNamedPort(o[1]);
|
| @@ -2566,7 +2727,7 @@ buildInstanceGroup() {
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.namedPorts = buildUnnamed2260();
|
| + o.namedPorts = buildUnnamed2038();
|
| o.network = "foo";
|
| o.region = "foo";
|
| o.selfLink = "foo";
|
| @@ -2587,7 +2748,7 @@ checkInstanceGroup(api.InstanceGroup o) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2260(o.namedPorts);
|
| + checkUnnamed2038(o.namedPorts);
|
| unittest.expect(o.network, unittest.equals('foo'));
|
| unittest.expect(o.region, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -2598,14 +2759,14 @@ checkInstanceGroup(api.InstanceGroup o) {
|
| buildCounterInstanceGroup--;
|
| }
|
|
|
| -buildUnnamed2261() {
|
| +buildUnnamed2039() {
|
| var o = new core.Map<core.String, api.InstanceGroupsScopedList>();
|
| o["x"] = buildInstanceGroupsScopedList();
|
| o["y"] = buildInstanceGroupsScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2261(core.Map<core.String, api.InstanceGroupsScopedList> o) {
|
| +checkUnnamed2039(core.Map<core.String, api.InstanceGroupsScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstanceGroupsScopedList(o["x"]);
|
| checkInstanceGroupsScopedList(o["y"]);
|
| @@ -2617,7 +2778,7 @@ buildInstanceGroupAggregatedList() {
|
| buildCounterInstanceGroupAggregatedList++;
|
| if (buildCounterInstanceGroupAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2261();
|
| + o.items = buildUnnamed2039();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -2630,7 +2791,7 @@ checkInstanceGroupAggregatedList(api.InstanceGroupAggregatedList o) {
|
| buildCounterInstanceGroupAggregatedList++;
|
| if (buildCounterInstanceGroupAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2261(o.items);
|
| + checkUnnamed2039(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -2638,14 +2799,14 @@ checkInstanceGroupAggregatedList(api.InstanceGroupAggregatedList o) {
|
| buildCounterInstanceGroupAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2262() {
|
| +buildUnnamed2040() {
|
| var o = new core.List<api.InstanceGroup>();
|
| o.add(buildInstanceGroup());
|
| o.add(buildInstanceGroup());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2262(core.List<api.InstanceGroup> o) {
|
| +checkUnnamed2040(core.List<api.InstanceGroup> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstanceGroup(o[0]);
|
| checkInstanceGroup(o[1]);
|
| @@ -2657,7 +2818,7 @@ buildInstanceGroupList() {
|
| buildCounterInstanceGroupList++;
|
| if (buildCounterInstanceGroupList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2262();
|
| + o.items = buildUnnamed2040();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -2670,7 +2831,7 @@ checkInstanceGroupList(api.InstanceGroupList o) {
|
| buildCounterInstanceGroupList++;
|
| if (buildCounterInstanceGroupList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2262(o.items);
|
| + checkUnnamed2040(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -2678,27 +2839,27 @@ checkInstanceGroupList(api.InstanceGroupList o) {
|
| buildCounterInstanceGroupList--;
|
| }
|
|
|
| -buildUnnamed2263() {
|
| +buildUnnamed2041() {
|
| var o = new core.List<api.NamedPort>();
|
| o.add(buildNamedPort());
|
| o.add(buildNamedPort());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2263(core.List<api.NamedPort> o) {
|
| +checkUnnamed2041(core.List<api.NamedPort> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkNamedPort(o[0]);
|
| checkNamedPort(o[1]);
|
| }
|
|
|
| -buildUnnamed2264() {
|
| +buildUnnamed2042() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2264(core.List<core.String> o) {
|
| +checkUnnamed2042(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'));
|
| @@ -2719,10 +2880,10 @@ buildInstanceGroupManager() {
|
| o.instanceTemplate = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.namedPorts = buildUnnamed2263();
|
| + o.namedPorts = buildUnnamed2041();
|
| o.region = "foo";
|
| o.selfLink = "foo";
|
| - o.targetPools = buildUnnamed2264();
|
| + o.targetPools = buildUnnamed2042();
|
| o.targetSize = 42;
|
| o.zone = "foo";
|
| }
|
| @@ -2743,10 +2904,10 @@ checkInstanceGroupManager(api.InstanceGroupManager o) {
|
| unittest.expect(o.instanceTemplate, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2263(o.namedPorts);
|
| + checkUnnamed2041(o.namedPorts);
|
| unittest.expect(o.region, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - checkUnnamed2264(o.targetPools);
|
| + checkUnnamed2042(o.targetPools);
|
| unittest.expect(o.targetSize, unittest.equals(42));
|
| unittest.expect(o.zone, unittest.equals('foo'));
|
| }
|
| @@ -2786,14 +2947,14 @@ checkInstanceGroupManagerActionsSummary(api.InstanceGroupManagerActionsSummary o
|
| buildCounterInstanceGroupManagerActionsSummary--;
|
| }
|
|
|
| -buildUnnamed2265() {
|
| +buildUnnamed2043() {
|
| var o = new core.Map<core.String, api.InstanceGroupManagersScopedList>();
|
| o["x"] = buildInstanceGroupManagersScopedList();
|
| o["y"] = buildInstanceGroupManagersScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2265(core.Map<core.String, api.InstanceGroupManagersScopedList> o) {
|
| +checkUnnamed2043(core.Map<core.String, api.InstanceGroupManagersScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstanceGroupManagersScopedList(o["x"]);
|
| checkInstanceGroupManagersScopedList(o["y"]);
|
| @@ -2805,7 +2966,7 @@ buildInstanceGroupManagerAggregatedList() {
|
| buildCounterInstanceGroupManagerAggregatedList++;
|
| if (buildCounterInstanceGroupManagerAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2265();
|
| + o.items = buildUnnamed2043();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -2818,7 +2979,7 @@ checkInstanceGroupManagerAggregatedList(api.InstanceGroupManagerAggregatedList o
|
| buildCounterInstanceGroupManagerAggregatedList++;
|
| if (buildCounterInstanceGroupManagerAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2265(o.items);
|
| + checkUnnamed2043(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -2826,14 +2987,14 @@ checkInstanceGroupManagerAggregatedList(api.InstanceGroupManagerAggregatedList o
|
| buildCounterInstanceGroupManagerAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2266() {
|
| +buildUnnamed2044() {
|
| var o = new core.List<api.InstanceGroupManager>();
|
| o.add(buildInstanceGroupManager());
|
| o.add(buildInstanceGroupManager());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2266(core.List<api.InstanceGroupManager> o) {
|
| +checkUnnamed2044(core.List<api.InstanceGroupManager> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstanceGroupManager(o[0]);
|
| checkInstanceGroupManager(o[1]);
|
| @@ -2845,7 +3006,7 @@ buildInstanceGroupManagerList() {
|
| buildCounterInstanceGroupManagerList++;
|
| if (buildCounterInstanceGroupManagerList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2266();
|
| + o.items = buildUnnamed2044();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -2858,7 +3019,7 @@ checkInstanceGroupManagerList(api.InstanceGroupManagerList o) {
|
| buildCounterInstanceGroupManagerList++;
|
| if (buildCounterInstanceGroupManagerList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2266(o.items);
|
| + checkUnnamed2044(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -2866,14 +3027,14 @@ checkInstanceGroupManagerList(api.InstanceGroupManagerList o) {
|
| buildCounterInstanceGroupManagerList--;
|
| }
|
|
|
| -buildUnnamed2267() {
|
| +buildUnnamed2045() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2267(core.List<core.String> o) {
|
| +checkUnnamed2045(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'));
|
| @@ -2884,7 +3045,7 @@ buildInstanceGroupManagersAbandonInstancesRequest() {
|
| var o = new api.InstanceGroupManagersAbandonInstancesRequest();
|
| buildCounterInstanceGroupManagersAbandonInstancesRequest++;
|
| if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) {
|
| - o.instances = buildUnnamed2267();
|
| + o.instances = buildUnnamed2045();
|
| }
|
| buildCounterInstanceGroupManagersAbandonInstancesRequest--;
|
| return o;
|
| @@ -2893,19 +3054,19 @@ buildInstanceGroupManagersAbandonInstancesRequest() {
|
| checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAbandonInstancesRequest o) {
|
| buildCounterInstanceGroupManagersAbandonInstancesRequest++;
|
| if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) {
|
| - checkUnnamed2267(o.instances);
|
| + checkUnnamed2045(o.instances);
|
| }
|
| buildCounterInstanceGroupManagersAbandonInstancesRequest--;
|
| }
|
|
|
| -buildUnnamed2268() {
|
| +buildUnnamed2046() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2268(core.List<core.String> o) {
|
| +checkUnnamed2046(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'));
|
| @@ -2916,7 +3077,7 @@ buildInstanceGroupManagersDeleteInstancesRequest() {
|
| var o = new api.InstanceGroupManagersDeleteInstancesRequest();
|
| buildCounterInstanceGroupManagersDeleteInstancesRequest++;
|
| if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) {
|
| - o.instances = buildUnnamed2268();
|
| + o.instances = buildUnnamed2046();
|
| }
|
| buildCounterInstanceGroupManagersDeleteInstancesRequest--;
|
| return o;
|
| @@ -2925,19 +3086,19 @@ buildInstanceGroupManagersDeleteInstancesRequest() {
|
| checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDeleteInstancesRequest o) {
|
| buildCounterInstanceGroupManagersDeleteInstancesRequest++;
|
| if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) {
|
| - checkUnnamed2268(o.instances);
|
| + checkUnnamed2046(o.instances);
|
| }
|
| buildCounterInstanceGroupManagersDeleteInstancesRequest--;
|
| }
|
|
|
| -buildUnnamed2269() {
|
| +buildUnnamed2047() {
|
| var o = new core.List<api.ManagedInstance>();
|
| o.add(buildManagedInstance());
|
| o.add(buildManagedInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2269(core.List<api.ManagedInstance> o) {
|
| +checkUnnamed2047(core.List<api.ManagedInstance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkManagedInstance(o[0]);
|
| checkManagedInstance(o[1]);
|
| @@ -2948,7 +3109,7 @@ buildInstanceGroupManagersListManagedInstancesResponse() {
|
| var o = new api.InstanceGroupManagersListManagedInstancesResponse();
|
| buildCounterInstanceGroupManagersListManagedInstancesResponse++;
|
| if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) {
|
| - o.managedInstances = buildUnnamed2269();
|
| + o.managedInstances = buildUnnamed2047();
|
| }
|
| buildCounterInstanceGroupManagersListManagedInstancesResponse--;
|
| return o;
|
| @@ -2957,19 +3118,19 @@ buildInstanceGroupManagersListManagedInstancesResponse() {
|
| checkInstanceGroupManagersListManagedInstancesResponse(api.InstanceGroupManagersListManagedInstancesResponse o) {
|
| buildCounterInstanceGroupManagersListManagedInstancesResponse++;
|
| if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) {
|
| - checkUnnamed2269(o.managedInstances);
|
| + checkUnnamed2047(o.managedInstances);
|
| }
|
| buildCounterInstanceGroupManagersListManagedInstancesResponse--;
|
| }
|
|
|
| -buildUnnamed2270() {
|
| +buildUnnamed2048() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2270(core.List<core.String> o) {
|
| +checkUnnamed2048(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'));
|
| @@ -2980,7 +3141,7 @@ buildInstanceGroupManagersRecreateInstancesRequest() {
|
| var o = new api.InstanceGroupManagersRecreateInstancesRequest();
|
| buildCounterInstanceGroupManagersRecreateInstancesRequest++;
|
| if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) {
|
| - o.instances = buildUnnamed2270();
|
| + o.instances = buildUnnamed2048();
|
| }
|
| buildCounterInstanceGroupManagersRecreateInstancesRequest--;
|
| return o;
|
| @@ -2989,19 +3150,19 @@ buildInstanceGroupManagersRecreateInstancesRequest() {
|
| checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecreateInstancesRequest o) {
|
| buildCounterInstanceGroupManagersRecreateInstancesRequest++;
|
| if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) {
|
| - checkUnnamed2270(o.instances);
|
| + checkUnnamed2048(o.instances);
|
| }
|
| buildCounterInstanceGroupManagersRecreateInstancesRequest--;
|
| }
|
|
|
| -buildUnnamed2271() {
|
| +buildUnnamed2049() {
|
| var o = new core.List<api.InstanceGroupManager>();
|
| o.add(buildInstanceGroupManager());
|
| o.add(buildInstanceGroupManager());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2271(core.List<api.InstanceGroupManager> o) {
|
| +checkUnnamed2049(core.List<api.InstanceGroupManager> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstanceGroupManager(o[0]);
|
| checkInstanceGroupManager(o[1]);
|
| @@ -3028,14 +3189,14 @@ checkInstanceGroupManagersScopedListWarningData(api.InstanceGroupManagersScopedL
|
| buildCounterInstanceGroupManagersScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2272() {
|
| +buildUnnamed2050() {
|
| var o = new core.List<api.InstanceGroupManagersScopedListWarningData>();
|
| o.add(buildInstanceGroupManagersScopedListWarningData());
|
| o.add(buildInstanceGroupManagersScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2272(core.List<api.InstanceGroupManagersScopedListWarningData> o) {
|
| +checkUnnamed2050(core.List<api.InstanceGroupManagersScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstanceGroupManagersScopedListWarningData(o[0]);
|
| checkInstanceGroupManagersScopedListWarningData(o[1]);
|
| @@ -3047,7 +3208,7 @@ buildInstanceGroupManagersScopedListWarning() {
|
| buildCounterInstanceGroupManagersScopedListWarning++;
|
| if (buildCounterInstanceGroupManagersScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2272();
|
| + o.data = buildUnnamed2050();
|
| o.message = "foo";
|
| }
|
| buildCounterInstanceGroupManagersScopedListWarning--;
|
| @@ -3058,7 +3219,7 @@ checkInstanceGroupManagersScopedListWarning(api.InstanceGroupManagersScopedListW
|
| buildCounterInstanceGroupManagersScopedListWarning++;
|
| if (buildCounterInstanceGroupManagersScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2272(o.data);
|
| + checkUnnamed2050(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterInstanceGroupManagersScopedListWarning--;
|
| @@ -3069,7 +3230,7 @@ buildInstanceGroupManagersScopedList() {
|
| var o = new api.InstanceGroupManagersScopedList();
|
| buildCounterInstanceGroupManagersScopedList++;
|
| if (buildCounterInstanceGroupManagersScopedList < 3) {
|
| - o.instanceGroupManagers = buildUnnamed2271();
|
| + o.instanceGroupManagers = buildUnnamed2049();
|
| o.warning = buildInstanceGroupManagersScopedListWarning();
|
| }
|
| buildCounterInstanceGroupManagersScopedList--;
|
| @@ -3079,7 +3240,7 @@ buildInstanceGroupManagersScopedList() {
|
| checkInstanceGroupManagersScopedList(api.InstanceGroupManagersScopedList o) {
|
| buildCounterInstanceGroupManagersScopedList++;
|
| if (buildCounterInstanceGroupManagersScopedList < 3) {
|
| - checkUnnamed2271(o.instanceGroupManagers);
|
| + checkUnnamed2049(o.instanceGroupManagers);
|
| checkInstanceGroupManagersScopedListWarning(o.warning);
|
| }
|
| buildCounterInstanceGroupManagersScopedList--;
|
| @@ -3104,14 +3265,14 @@ checkInstanceGroupManagersSetInstanceTemplateRequest(api.InstanceGroupManagersSe
|
| buildCounterInstanceGroupManagersSetInstanceTemplateRequest--;
|
| }
|
|
|
| -buildUnnamed2273() {
|
| +buildUnnamed2051() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2273(core.List<core.String> o) {
|
| +checkUnnamed2051(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'));
|
| @@ -3123,7 +3284,7 @@ buildInstanceGroupManagersSetTargetPoolsRequest() {
|
| buildCounterInstanceGroupManagersSetTargetPoolsRequest++;
|
| if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) {
|
| o.fingerprint = "foo";
|
| - o.targetPools = buildUnnamed2273();
|
| + o.targetPools = buildUnnamed2051();
|
| }
|
| buildCounterInstanceGroupManagersSetTargetPoolsRequest--;
|
| return o;
|
| @@ -3133,19 +3294,19 @@ checkInstanceGroupManagersSetTargetPoolsRequest(api.InstanceGroupManagersSetTarg
|
| buildCounterInstanceGroupManagersSetTargetPoolsRequest++;
|
| if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) {
|
| unittest.expect(o.fingerprint, unittest.equals('foo'));
|
| - checkUnnamed2273(o.targetPools);
|
| + checkUnnamed2051(o.targetPools);
|
| }
|
| buildCounterInstanceGroupManagersSetTargetPoolsRequest--;
|
| }
|
|
|
| -buildUnnamed2274() {
|
| +buildUnnamed2052() {
|
| var o = new core.List<api.InstanceReference>();
|
| o.add(buildInstanceReference());
|
| o.add(buildInstanceReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2274(core.List<api.InstanceReference> o) {
|
| +checkUnnamed2052(core.List<api.InstanceReference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstanceReference(o[0]);
|
| checkInstanceReference(o[1]);
|
| @@ -3156,7 +3317,7 @@ buildInstanceGroupsAddInstancesRequest() {
|
| var o = new api.InstanceGroupsAddInstancesRequest();
|
| buildCounterInstanceGroupsAddInstancesRequest++;
|
| if (buildCounterInstanceGroupsAddInstancesRequest < 3) {
|
| - o.instances = buildUnnamed2274();
|
| + o.instances = buildUnnamed2052();
|
| }
|
| buildCounterInstanceGroupsAddInstancesRequest--;
|
| return o;
|
| @@ -3165,19 +3326,19 @@ buildInstanceGroupsAddInstancesRequest() {
|
| checkInstanceGroupsAddInstancesRequest(api.InstanceGroupsAddInstancesRequest o) {
|
| buildCounterInstanceGroupsAddInstancesRequest++;
|
| if (buildCounterInstanceGroupsAddInstancesRequest < 3) {
|
| - checkUnnamed2274(o.instances);
|
| + checkUnnamed2052(o.instances);
|
| }
|
| buildCounterInstanceGroupsAddInstancesRequest--;
|
| }
|
|
|
| -buildUnnamed2275() {
|
| +buildUnnamed2053() {
|
| var o = new core.List<api.InstanceWithNamedPorts>();
|
| o.add(buildInstanceWithNamedPorts());
|
| o.add(buildInstanceWithNamedPorts());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2275(core.List<api.InstanceWithNamedPorts> o) {
|
| +checkUnnamed2053(core.List<api.InstanceWithNamedPorts> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstanceWithNamedPorts(o[0]);
|
| checkInstanceWithNamedPorts(o[1]);
|
| @@ -3189,7 +3350,7 @@ buildInstanceGroupsListInstances() {
|
| buildCounterInstanceGroupsListInstances++;
|
| if (buildCounterInstanceGroupsListInstances < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2275();
|
| + o.items = buildUnnamed2053();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -3202,7 +3363,7 @@ checkInstanceGroupsListInstances(api.InstanceGroupsListInstances o) {
|
| buildCounterInstanceGroupsListInstances++;
|
| if (buildCounterInstanceGroupsListInstances < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2275(o.items);
|
| + checkUnnamed2053(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -3229,14 +3390,14 @@ checkInstanceGroupsListInstancesRequest(api.InstanceGroupsListInstancesRequest o
|
| buildCounterInstanceGroupsListInstancesRequest--;
|
| }
|
|
|
| -buildUnnamed2276() {
|
| +buildUnnamed2054() {
|
| var o = new core.List<api.InstanceReference>();
|
| o.add(buildInstanceReference());
|
| o.add(buildInstanceReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2276(core.List<api.InstanceReference> o) {
|
| +checkUnnamed2054(core.List<api.InstanceReference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstanceReference(o[0]);
|
| checkInstanceReference(o[1]);
|
| @@ -3247,7 +3408,7 @@ buildInstanceGroupsRemoveInstancesRequest() {
|
| var o = new api.InstanceGroupsRemoveInstancesRequest();
|
| buildCounterInstanceGroupsRemoveInstancesRequest++;
|
| if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) {
|
| - o.instances = buildUnnamed2276();
|
| + o.instances = buildUnnamed2054();
|
| }
|
| buildCounterInstanceGroupsRemoveInstancesRequest--;
|
| return o;
|
| @@ -3256,19 +3417,19 @@ buildInstanceGroupsRemoveInstancesRequest() {
|
| checkInstanceGroupsRemoveInstancesRequest(api.InstanceGroupsRemoveInstancesRequest o) {
|
| buildCounterInstanceGroupsRemoveInstancesRequest++;
|
| if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) {
|
| - checkUnnamed2276(o.instances);
|
| + checkUnnamed2054(o.instances);
|
| }
|
| buildCounterInstanceGroupsRemoveInstancesRequest--;
|
| }
|
|
|
| -buildUnnamed2277() {
|
| +buildUnnamed2055() {
|
| var o = new core.List<api.InstanceGroup>();
|
| o.add(buildInstanceGroup());
|
| o.add(buildInstanceGroup());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2277(core.List<api.InstanceGroup> o) {
|
| +checkUnnamed2055(core.List<api.InstanceGroup> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstanceGroup(o[0]);
|
| checkInstanceGroup(o[1]);
|
| @@ -3295,14 +3456,14 @@ checkInstanceGroupsScopedListWarningData(api.InstanceGroupsScopedListWarningData
|
| buildCounterInstanceGroupsScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2278() {
|
| +buildUnnamed2056() {
|
| var o = new core.List<api.InstanceGroupsScopedListWarningData>();
|
| o.add(buildInstanceGroupsScopedListWarningData());
|
| o.add(buildInstanceGroupsScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2278(core.List<api.InstanceGroupsScopedListWarningData> o) {
|
| +checkUnnamed2056(core.List<api.InstanceGroupsScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstanceGroupsScopedListWarningData(o[0]);
|
| checkInstanceGroupsScopedListWarningData(o[1]);
|
| @@ -3314,7 +3475,7 @@ buildInstanceGroupsScopedListWarning() {
|
| buildCounterInstanceGroupsScopedListWarning++;
|
| if (buildCounterInstanceGroupsScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2278();
|
| + o.data = buildUnnamed2056();
|
| o.message = "foo";
|
| }
|
| buildCounterInstanceGroupsScopedListWarning--;
|
| @@ -3325,7 +3486,7 @@ checkInstanceGroupsScopedListWarning(api.InstanceGroupsScopedListWarning o) {
|
| buildCounterInstanceGroupsScopedListWarning++;
|
| if (buildCounterInstanceGroupsScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2278(o.data);
|
| + checkUnnamed2056(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterInstanceGroupsScopedListWarning--;
|
| @@ -3336,7 +3497,7 @@ buildInstanceGroupsScopedList() {
|
| var o = new api.InstanceGroupsScopedList();
|
| buildCounterInstanceGroupsScopedList++;
|
| if (buildCounterInstanceGroupsScopedList < 3) {
|
| - o.instanceGroups = buildUnnamed2277();
|
| + o.instanceGroups = buildUnnamed2055();
|
| o.warning = buildInstanceGroupsScopedListWarning();
|
| }
|
| buildCounterInstanceGroupsScopedList--;
|
| @@ -3346,20 +3507,20 @@ buildInstanceGroupsScopedList() {
|
| checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) {
|
| buildCounterInstanceGroupsScopedList++;
|
| if (buildCounterInstanceGroupsScopedList < 3) {
|
| - checkUnnamed2277(o.instanceGroups);
|
| + checkUnnamed2055(o.instanceGroups);
|
| checkInstanceGroupsScopedListWarning(o.warning);
|
| }
|
| buildCounterInstanceGroupsScopedList--;
|
| }
|
|
|
| -buildUnnamed2279() {
|
| +buildUnnamed2057() {
|
| var o = new core.List<api.NamedPort>();
|
| o.add(buildNamedPort());
|
| o.add(buildNamedPort());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2279(core.List<api.NamedPort> o) {
|
| +checkUnnamed2057(core.List<api.NamedPort> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkNamedPort(o[0]);
|
| checkNamedPort(o[1]);
|
| @@ -3371,7 +3532,7 @@ buildInstanceGroupsSetNamedPortsRequest() {
|
| buildCounterInstanceGroupsSetNamedPortsRequest++;
|
| if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) {
|
| o.fingerprint = "foo";
|
| - o.namedPorts = buildUnnamed2279();
|
| + o.namedPorts = buildUnnamed2057();
|
| }
|
| buildCounterInstanceGroupsSetNamedPortsRequest--;
|
| return o;
|
| @@ -3381,19 +3542,19 @@ checkInstanceGroupsSetNamedPortsRequest(api.InstanceGroupsSetNamedPortsRequest o
|
| buildCounterInstanceGroupsSetNamedPortsRequest++;
|
| if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) {
|
| unittest.expect(o.fingerprint, unittest.equals('foo'));
|
| - checkUnnamed2279(o.namedPorts);
|
| + checkUnnamed2057(o.namedPorts);
|
| }
|
| buildCounterInstanceGroupsSetNamedPortsRequest--;
|
| }
|
|
|
| -buildUnnamed2280() {
|
| +buildUnnamed2058() {
|
| var o = new core.List<api.Instance>();
|
| o.add(buildInstance());
|
| o.add(buildInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2280(core.List<api.Instance> o) {
|
| +checkUnnamed2058(core.List<api.Instance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstance(o[0]);
|
| checkInstance(o[1]);
|
| @@ -3405,7 +3566,7 @@ buildInstanceList() {
|
| buildCounterInstanceList++;
|
| if (buildCounterInstanceList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2280();
|
| + o.items = buildUnnamed2058();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -3418,7 +3579,7 @@ checkInstanceList(api.InstanceList o) {
|
| buildCounterInstanceList++;
|
| if (buildCounterInstanceList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2280(o.items);
|
| + checkUnnamed2058(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -3447,40 +3608,40 @@ checkInstanceMoveRequest(api.InstanceMoveRequest o) {
|
| buildCounterInstanceMoveRequest--;
|
| }
|
|
|
| -buildUnnamed2281() {
|
| +buildUnnamed2059() {
|
| var o = new core.List<api.AttachedDisk>();
|
| o.add(buildAttachedDisk());
|
| o.add(buildAttachedDisk());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2281(core.List<api.AttachedDisk> o) {
|
| +checkUnnamed2059(core.List<api.AttachedDisk> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAttachedDisk(o[0]);
|
| checkAttachedDisk(o[1]);
|
| }
|
|
|
| -buildUnnamed2282() {
|
| +buildUnnamed2060() {
|
| var o = new core.List<api.NetworkInterface>();
|
| o.add(buildNetworkInterface());
|
| o.add(buildNetworkInterface());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2282(core.List<api.NetworkInterface> o) {
|
| +checkUnnamed2060(core.List<api.NetworkInterface> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkNetworkInterface(o[0]);
|
| checkNetworkInterface(o[1]);
|
| }
|
|
|
| -buildUnnamed2283() {
|
| +buildUnnamed2061() {
|
| var o = new core.List<api.ServiceAccount>();
|
| o.add(buildServiceAccount());
|
| o.add(buildServiceAccount());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2283(core.List<api.ServiceAccount> o) {
|
| +checkUnnamed2061(core.List<api.ServiceAccount> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkServiceAccount(o[0]);
|
| checkServiceAccount(o[1]);
|
| @@ -3493,12 +3654,12 @@ buildInstanceProperties() {
|
| if (buildCounterInstanceProperties < 3) {
|
| o.canIpForward = true;
|
| o.description = "foo";
|
| - o.disks = buildUnnamed2281();
|
| + o.disks = buildUnnamed2059();
|
| o.machineType = "foo";
|
| o.metadata = buildMetadata();
|
| - o.networkInterfaces = buildUnnamed2282();
|
| + o.networkInterfaces = buildUnnamed2060();
|
| o.scheduling = buildScheduling();
|
| - o.serviceAccounts = buildUnnamed2283();
|
| + o.serviceAccounts = buildUnnamed2061();
|
| o.tags = buildTags();
|
| }
|
| buildCounterInstanceProperties--;
|
| @@ -3510,12 +3671,12 @@ checkInstanceProperties(api.InstanceProperties o) {
|
| if (buildCounterInstanceProperties < 3) {
|
| unittest.expect(o.canIpForward, unittest.isTrue);
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - checkUnnamed2281(o.disks);
|
| + checkUnnamed2059(o.disks);
|
| unittest.expect(o.machineType, unittest.equals('foo'));
|
| checkMetadata(o.metadata);
|
| - checkUnnamed2282(o.networkInterfaces);
|
| + checkUnnamed2060(o.networkInterfaces);
|
| checkScheduling(o.scheduling);
|
| - checkUnnamed2283(o.serviceAccounts);
|
| + checkUnnamed2061(o.serviceAccounts);
|
| checkTags(o.tags);
|
| }
|
| buildCounterInstanceProperties--;
|
| @@ -3571,14 +3732,14 @@ checkInstanceTemplate(api.InstanceTemplate o) {
|
| buildCounterInstanceTemplate--;
|
| }
|
|
|
| -buildUnnamed2284() {
|
| +buildUnnamed2062() {
|
| var o = new core.List<api.InstanceTemplate>();
|
| o.add(buildInstanceTemplate());
|
| o.add(buildInstanceTemplate());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2284(core.List<api.InstanceTemplate> o) {
|
| +checkUnnamed2062(core.List<api.InstanceTemplate> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstanceTemplate(o[0]);
|
| checkInstanceTemplate(o[1]);
|
| @@ -3590,7 +3751,7 @@ buildInstanceTemplateList() {
|
| buildCounterInstanceTemplateList++;
|
| if (buildCounterInstanceTemplateList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2284();
|
| + o.items = buildUnnamed2062();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -3603,7 +3764,7 @@ checkInstanceTemplateList(api.InstanceTemplateList o) {
|
| buildCounterInstanceTemplateList++;
|
| if (buildCounterInstanceTemplateList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2284(o.items);
|
| + checkUnnamed2062(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -3611,14 +3772,14 @@ checkInstanceTemplateList(api.InstanceTemplateList o) {
|
| buildCounterInstanceTemplateList--;
|
| }
|
|
|
| -buildUnnamed2285() {
|
| +buildUnnamed2063() {
|
| var o = new core.List<api.NamedPort>();
|
| o.add(buildNamedPort());
|
| o.add(buildNamedPort());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2285(core.List<api.NamedPort> o) {
|
| +checkUnnamed2063(core.List<api.NamedPort> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkNamedPort(o[0]);
|
| checkNamedPort(o[1]);
|
| @@ -3630,7 +3791,7 @@ buildInstanceWithNamedPorts() {
|
| buildCounterInstanceWithNamedPorts++;
|
| if (buildCounterInstanceWithNamedPorts < 3) {
|
| o.instance = "foo";
|
| - o.namedPorts = buildUnnamed2285();
|
| + o.namedPorts = buildUnnamed2063();
|
| o.status = "foo";
|
| }
|
| buildCounterInstanceWithNamedPorts--;
|
| @@ -3641,20 +3802,20 @@ checkInstanceWithNamedPorts(api.InstanceWithNamedPorts o) {
|
| buildCounterInstanceWithNamedPorts++;
|
| if (buildCounterInstanceWithNamedPorts < 3) {
|
| unittest.expect(o.instance, unittest.equals('foo'));
|
| - checkUnnamed2285(o.namedPorts);
|
| + checkUnnamed2063(o.namedPorts);
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| }
|
| buildCounterInstanceWithNamedPorts--;
|
| }
|
|
|
| -buildUnnamed2286() {
|
| +buildUnnamed2064() {
|
| var o = new core.List<api.Instance>();
|
| o.add(buildInstance());
|
| o.add(buildInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2286(core.List<api.Instance> o) {
|
| +checkUnnamed2064(core.List<api.Instance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstance(o[0]);
|
| checkInstance(o[1]);
|
| @@ -3681,14 +3842,14 @@ checkInstancesScopedListWarningData(api.InstancesScopedListWarningData o) {
|
| buildCounterInstancesScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2287() {
|
| +buildUnnamed2065() {
|
| var o = new core.List<api.InstancesScopedListWarningData>();
|
| o.add(buildInstancesScopedListWarningData());
|
| o.add(buildInstancesScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2287(core.List<api.InstancesScopedListWarningData> o) {
|
| +checkUnnamed2065(core.List<api.InstancesScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstancesScopedListWarningData(o[0]);
|
| checkInstancesScopedListWarningData(o[1]);
|
| @@ -3700,7 +3861,7 @@ buildInstancesScopedListWarning() {
|
| buildCounterInstancesScopedListWarning++;
|
| if (buildCounterInstancesScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2287();
|
| + o.data = buildUnnamed2065();
|
| o.message = "foo";
|
| }
|
| buildCounterInstancesScopedListWarning--;
|
| @@ -3711,7 +3872,7 @@ checkInstancesScopedListWarning(api.InstancesScopedListWarning o) {
|
| buildCounterInstancesScopedListWarning++;
|
| if (buildCounterInstancesScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2287(o.data);
|
| + checkUnnamed2065(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterInstancesScopedListWarning--;
|
| @@ -3722,7 +3883,7 @@ buildInstancesScopedList() {
|
| var o = new api.InstancesScopedList();
|
| buildCounterInstancesScopedList++;
|
| if (buildCounterInstancesScopedList < 3) {
|
| - o.instances = buildUnnamed2286();
|
| + o.instances = buildUnnamed2064();
|
| o.warning = buildInstancesScopedListWarning();
|
| }
|
| buildCounterInstancesScopedList--;
|
| @@ -3732,7 +3893,7 @@ buildInstancesScopedList() {
|
| checkInstancesScopedList(api.InstancesScopedList o) {
|
| buildCounterInstancesScopedList++;
|
| if (buildCounterInstancesScopedList < 3) {
|
| - checkUnnamed2286(o.instances);
|
| + checkUnnamed2064(o.instances);
|
| checkInstancesScopedListWarning(o.warning);
|
| }
|
| buildCounterInstancesScopedList--;
|
| @@ -3757,14 +3918,14 @@ checkInstancesSetMachineTypeRequest(api.InstancesSetMachineTypeRequest o) {
|
| buildCounterInstancesSetMachineTypeRequest--;
|
| }
|
|
|
| -buildUnnamed2288() {
|
| +buildUnnamed2066() {
|
| var o = new core.List<api.CustomerEncryptionKeyProtectedDisk>();
|
| o.add(buildCustomerEncryptionKeyProtectedDisk());
|
| o.add(buildCustomerEncryptionKeyProtectedDisk());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2288(core.List<api.CustomerEncryptionKeyProtectedDisk> o) {
|
| +checkUnnamed2066(core.List<api.CustomerEncryptionKeyProtectedDisk> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCustomerEncryptionKeyProtectedDisk(o[0]);
|
| checkCustomerEncryptionKeyProtectedDisk(o[1]);
|
| @@ -3775,7 +3936,7 @@ buildInstancesStartWithEncryptionKeyRequest() {
|
| var o = new api.InstancesStartWithEncryptionKeyRequest();
|
| buildCounterInstancesStartWithEncryptionKeyRequest++;
|
| if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) {
|
| - o.disks = buildUnnamed2288();
|
| + o.disks = buildUnnamed2066();
|
| }
|
| buildCounterInstancesStartWithEncryptionKeyRequest--;
|
| return o;
|
| @@ -3784,7 +3945,7 @@ buildInstancesStartWithEncryptionKeyRequest() {
|
| checkInstancesStartWithEncryptionKeyRequest(api.InstancesStartWithEncryptionKeyRequest o) {
|
| buildCounterInstancesStartWithEncryptionKeyRequest++;
|
| if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) {
|
| - checkUnnamed2288(o.disks);
|
| + checkUnnamed2066(o.disks);
|
| }
|
| buildCounterInstancesStartWithEncryptionKeyRequest--;
|
| }
|
| @@ -3833,14 +3994,14 @@ checkMachineTypeScratchDisks(api.MachineTypeScratchDisks o) {
|
| buildCounterMachineTypeScratchDisks--;
|
| }
|
|
|
| -buildUnnamed2289() {
|
| +buildUnnamed2067() {
|
| var o = new core.List<api.MachineTypeScratchDisks>();
|
| o.add(buildMachineTypeScratchDisks());
|
| o.add(buildMachineTypeScratchDisks());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2289(core.List<api.MachineTypeScratchDisks> o) {
|
| +checkUnnamed2067(core.List<api.MachineTypeScratchDisks> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMachineTypeScratchDisks(o[0]);
|
| checkMachineTypeScratchDisks(o[1]);
|
| @@ -3863,7 +4024,7 @@ buildMachineType() {
|
| o.maximumPersistentDisksSizeGb = "foo";
|
| o.memoryMb = 42;
|
| o.name = "foo";
|
| - o.scratchDisks = buildUnnamed2289();
|
| + o.scratchDisks = buildUnnamed2067();
|
| o.selfLink = "foo";
|
| o.zone = "foo";
|
| }
|
| @@ -3886,21 +4047,21 @@ checkMachineType(api.MachineType o) {
|
| unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo'));
|
| unittest.expect(o.memoryMb, unittest.equals(42));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2289(o.scratchDisks);
|
| + checkUnnamed2067(o.scratchDisks);
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| unittest.expect(o.zone, unittest.equals('foo'));
|
| }
|
| buildCounterMachineType--;
|
| }
|
|
|
| -buildUnnamed2290() {
|
| +buildUnnamed2068() {
|
| var o = new core.Map<core.String, api.MachineTypesScopedList>();
|
| o["x"] = buildMachineTypesScopedList();
|
| o["y"] = buildMachineTypesScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2290(core.Map<core.String, api.MachineTypesScopedList> o) {
|
| +checkUnnamed2068(core.Map<core.String, api.MachineTypesScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMachineTypesScopedList(o["x"]);
|
| checkMachineTypesScopedList(o["y"]);
|
| @@ -3912,7 +4073,7 @@ buildMachineTypeAggregatedList() {
|
| buildCounterMachineTypeAggregatedList++;
|
| if (buildCounterMachineTypeAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2290();
|
| + o.items = buildUnnamed2068();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -3925,7 +4086,7 @@ checkMachineTypeAggregatedList(api.MachineTypeAggregatedList o) {
|
| buildCounterMachineTypeAggregatedList++;
|
| if (buildCounterMachineTypeAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2290(o.items);
|
| + checkUnnamed2068(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -3933,14 +4094,14 @@ checkMachineTypeAggregatedList(api.MachineTypeAggregatedList o) {
|
| buildCounterMachineTypeAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2291() {
|
| +buildUnnamed2069() {
|
| var o = new core.List<api.MachineType>();
|
| o.add(buildMachineType());
|
| o.add(buildMachineType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2291(core.List<api.MachineType> o) {
|
| +checkUnnamed2069(core.List<api.MachineType> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMachineType(o[0]);
|
| checkMachineType(o[1]);
|
| @@ -3952,7 +4113,7 @@ buildMachineTypeList() {
|
| buildCounterMachineTypeList++;
|
| if (buildCounterMachineTypeList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2291();
|
| + o.items = buildUnnamed2069();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -3965,7 +4126,7 @@ checkMachineTypeList(api.MachineTypeList o) {
|
| buildCounterMachineTypeList++;
|
| if (buildCounterMachineTypeList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2291(o.items);
|
| + checkUnnamed2069(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -3973,14 +4134,14 @@ checkMachineTypeList(api.MachineTypeList o) {
|
| buildCounterMachineTypeList--;
|
| }
|
|
|
| -buildUnnamed2292() {
|
| +buildUnnamed2070() {
|
| var o = new core.List<api.MachineType>();
|
| o.add(buildMachineType());
|
| o.add(buildMachineType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2292(core.List<api.MachineType> o) {
|
| +checkUnnamed2070(core.List<api.MachineType> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMachineType(o[0]);
|
| checkMachineType(o[1]);
|
| @@ -4007,14 +4168,14 @@ checkMachineTypesScopedListWarningData(api.MachineTypesScopedListWarningData o)
|
| buildCounterMachineTypesScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2293() {
|
| +buildUnnamed2071() {
|
| var o = new core.List<api.MachineTypesScopedListWarningData>();
|
| o.add(buildMachineTypesScopedListWarningData());
|
| o.add(buildMachineTypesScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2293(core.List<api.MachineTypesScopedListWarningData> o) {
|
| +checkUnnamed2071(core.List<api.MachineTypesScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMachineTypesScopedListWarningData(o[0]);
|
| checkMachineTypesScopedListWarningData(o[1]);
|
| @@ -4026,7 +4187,7 @@ buildMachineTypesScopedListWarning() {
|
| buildCounterMachineTypesScopedListWarning++;
|
| if (buildCounterMachineTypesScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2293();
|
| + o.data = buildUnnamed2071();
|
| o.message = "foo";
|
| }
|
| buildCounterMachineTypesScopedListWarning--;
|
| @@ -4037,7 +4198,7 @@ checkMachineTypesScopedListWarning(api.MachineTypesScopedListWarning o) {
|
| buildCounterMachineTypesScopedListWarning++;
|
| if (buildCounterMachineTypesScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2293(o.data);
|
| + checkUnnamed2071(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterMachineTypesScopedListWarning--;
|
| @@ -4048,7 +4209,7 @@ buildMachineTypesScopedList() {
|
| var o = new api.MachineTypesScopedList();
|
| buildCounterMachineTypesScopedList++;
|
| if (buildCounterMachineTypesScopedList < 3) {
|
| - o.machineTypes = buildUnnamed2292();
|
| + o.machineTypes = buildUnnamed2070();
|
| o.warning = buildMachineTypesScopedListWarning();
|
| }
|
| buildCounterMachineTypesScopedList--;
|
| @@ -4058,7 +4219,7 @@ buildMachineTypesScopedList() {
|
| checkMachineTypesScopedList(api.MachineTypesScopedList o) {
|
| buildCounterMachineTypesScopedList++;
|
| if (buildCounterMachineTypesScopedList < 3) {
|
| - checkUnnamed2292(o.machineTypes);
|
| + checkUnnamed2070(o.machineTypes);
|
| checkMachineTypesScopedListWarning(o.warning);
|
| }
|
| buildCounterMachineTypesScopedList--;
|
| @@ -4114,14 +4275,14 @@ checkManagedInstanceLastAttemptErrorsErrors(api.ManagedInstanceLastAttemptErrors
|
| buildCounterManagedInstanceLastAttemptErrorsErrors--;
|
| }
|
|
|
| -buildUnnamed2294() {
|
| +buildUnnamed2072() {
|
| var o = new core.List<api.ManagedInstanceLastAttemptErrorsErrors>();
|
| o.add(buildManagedInstanceLastAttemptErrorsErrors());
|
| o.add(buildManagedInstanceLastAttemptErrorsErrors());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2294(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) {
|
| +checkUnnamed2072(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkManagedInstanceLastAttemptErrorsErrors(o[0]);
|
| checkManagedInstanceLastAttemptErrorsErrors(o[1]);
|
| @@ -4132,7 +4293,7 @@ buildManagedInstanceLastAttemptErrors() {
|
| var o = new api.ManagedInstanceLastAttemptErrors();
|
| buildCounterManagedInstanceLastAttemptErrors++;
|
| if (buildCounterManagedInstanceLastAttemptErrors < 3) {
|
| - o.errors = buildUnnamed2294();
|
| + o.errors = buildUnnamed2072();
|
| }
|
| buildCounterManagedInstanceLastAttemptErrors--;
|
| return o;
|
| @@ -4141,7 +4302,7 @@ buildManagedInstanceLastAttemptErrors() {
|
| checkManagedInstanceLastAttemptErrors(api.ManagedInstanceLastAttemptErrors o) {
|
| buildCounterManagedInstanceLastAttemptErrors++;
|
| if (buildCounterManagedInstanceLastAttemptErrors < 3) {
|
| - checkUnnamed2294(o.errors);
|
| + checkUnnamed2072(o.errors);
|
| }
|
| buildCounterManagedInstanceLastAttemptErrors--;
|
| }
|
| @@ -4186,14 +4347,14 @@ checkMetadataItems(api.MetadataItems o) {
|
| buildCounterMetadataItems--;
|
| }
|
|
|
| -buildUnnamed2295() {
|
| +buildUnnamed2073() {
|
| var o = new core.List<api.MetadataItems>();
|
| o.add(buildMetadataItems());
|
| o.add(buildMetadataItems());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2295(core.List<api.MetadataItems> o) {
|
| +checkUnnamed2073(core.List<api.MetadataItems> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetadataItems(o[0]);
|
| checkMetadataItems(o[1]);
|
| @@ -4205,7 +4366,7 @@ buildMetadata() {
|
| buildCounterMetadata++;
|
| if (buildCounterMetadata < 3) {
|
| o.fingerprint = "foo";
|
| - o.items = buildUnnamed2295();
|
| + o.items = buildUnnamed2073();
|
| o.kind = "foo";
|
| }
|
| buildCounterMetadata--;
|
| @@ -4216,7 +4377,7 @@ checkMetadata(api.Metadata o) {
|
| buildCounterMetadata++;
|
| if (buildCounterMetadata < 3) {
|
| unittest.expect(o.fingerprint, unittest.equals('foo'));
|
| - checkUnnamed2295(o.items);
|
| + checkUnnamed2073(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterMetadata--;
|
| @@ -4243,14 +4404,14 @@ checkNamedPort(api.NamedPort o) {
|
| buildCounterNamedPort--;
|
| }
|
|
|
| -buildUnnamed2296() {
|
| +buildUnnamed2074() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2296(core.List<core.String> o) {
|
| +checkUnnamed2074(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'));
|
| @@ -4270,7 +4431,7 @@ buildNetwork() {
|
| o.kind = "foo";
|
| o.name = "foo";
|
| o.selfLink = "foo";
|
| - o.subnetworks = buildUnnamed2296();
|
| + o.subnetworks = buildUnnamed2074();
|
| }
|
| buildCounterNetwork--;
|
| return o;
|
| @@ -4288,19 +4449,19 @@ checkNetwork(api.Network o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - checkUnnamed2296(o.subnetworks);
|
| + checkUnnamed2074(o.subnetworks);
|
| }
|
| buildCounterNetwork--;
|
| }
|
|
|
| -buildUnnamed2297() {
|
| +buildUnnamed2075() {
|
| var o = new core.List<api.AccessConfig>();
|
| o.add(buildAccessConfig());
|
| o.add(buildAccessConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2297(core.List<api.AccessConfig> o) {
|
| +checkUnnamed2075(core.List<api.AccessConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAccessConfig(o[0]);
|
| checkAccessConfig(o[1]);
|
| @@ -4311,7 +4472,7 @@ buildNetworkInterface() {
|
| var o = new api.NetworkInterface();
|
| buildCounterNetworkInterface++;
|
| if (buildCounterNetworkInterface < 3) {
|
| - o.accessConfigs = buildUnnamed2297();
|
| + o.accessConfigs = buildUnnamed2075();
|
| o.name = "foo";
|
| o.network = "foo";
|
| o.networkIP = "foo";
|
| @@ -4324,7 +4485,7 @@ buildNetworkInterface() {
|
| checkNetworkInterface(api.NetworkInterface o) {
|
| buildCounterNetworkInterface++;
|
| if (buildCounterNetworkInterface < 3) {
|
| - checkUnnamed2297(o.accessConfigs);
|
| + checkUnnamed2075(o.accessConfigs);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.network, unittest.equals('foo'));
|
| unittest.expect(o.networkIP, unittest.equals('foo'));
|
| @@ -4333,14 +4494,14 @@ checkNetworkInterface(api.NetworkInterface o) {
|
| buildCounterNetworkInterface--;
|
| }
|
|
|
| -buildUnnamed2298() {
|
| +buildUnnamed2076() {
|
| var o = new core.List<api.Network>();
|
| o.add(buildNetwork());
|
| o.add(buildNetwork());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2298(core.List<api.Network> o) {
|
| +checkUnnamed2076(core.List<api.Network> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkNetwork(o[0]);
|
| checkNetwork(o[1]);
|
| @@ -4352,7 +4513,7 @@ buildNetworkList() {
|
| buildCounterNetworkList++;
|
| if (buildCounterNetworkList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2298();
|
| + o.items = buildUnnamed2076();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -4365,7 +4526,7 @@ checkNetworkList(api.NetworkList o) {
|
| buildCounterNetworkList++;
|
| if (buildCounterNetworkList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2298(o.items);
|
| + checkUnnamed2076(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -4396,14 +4557,14 @@ checkOperationErrorErrors(api.OperationErrorErrors o) {
|
| buildCounterOperationErrorErrors--;
|
| }
|
|
|
| -buildUnnamed2299() {
|
| +buildUnnamed2077() {
|
| var o = new core.List<api.OperationErrorErrors>();
|
| o.add(buildOperationErrorErrors());
|
| o.add(buildOperationErrorErrors());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2299(core.List<api.OperationErrorErrors> o) {
|
| +checkUnnamed2077(core.List<api.OperationErrorErrors> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperationErrorErrors(o[0]);
|
| checkOperationErrorErrors(o[1]);
|
| @@ -4414,7 +4575,7 @@ buildOperationError() {
|
| var o = new api.OperationError();
|
| buildCounterOperationError++;
|
| if (buildCounterOperationError < 3) {
|
| - o.errors = buildUnnamed2299();
|
| + o.errors = buildUnnamed2077();
|
| }
|
| buildCounterOperationError--;
|
| return o;
|
| @@ -4423,7 +4584,7 @@ buildOperationError() {
|
| checkOperationError(api.OperationError o) {
|
| buildCounterOperationError++;
|
| if (buildCounterOperationError < 3) {
|
| - checkUnnamed2299(o.errors);
|
| + checkUnnamed2077(o.errors);
|
| }
|
| buildCounterOperationError--;
|
| }
|
| @@ -4449,14 +4610,14 @@ checkOperationWarningsData(api.OperationWarningsData o) {
|
| buildCounterOperationWarningsData--;
|
| }
|
|
|
| -buildUnnamed2300() {
|
| +buildUnnamed2078() {
|
| var o = new core.List<api.OperationWarningsData>();
|
| o.add(buildOperationWarningsData());
|
| o.add(buildOperationWarningsData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2300(core.List<api.OperationWarningsData> o) {
|
| +checkUnnamed2078(core.List<api.OperationWarningsData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperationWarningsData(o[0]);
|
| checkOperationWarningsData(o[1]);
|
| @@ -4468,7 +4629,7 @@ buildOperationWarnings() {
|
| buildCounterOperationWarnings++;
|
| if (buildCounterOperationWarnings < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2300();
|
| + o.data = buildUnnamed2078();
|
| o.message = "foo";
|
| }
|
| buildCounterOperationWarnings--;
|
| @@ -4479,20 +4640,20 @@ checkOperationWarnings(api.OperationWarnings o) {
|
| buildCounterOperationWarnings++;
|
| if (buildCounterOperationWarnings < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2300(o.data);
|
| + checkUnnamed2078(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterOperationWarnings--;
|
| }
|
|
|
| -buildUnnamed2301() {
|
| +buildUnnamed2079() {
|
| var o = new core.List<api.OperationWarnings>();
|
| o.add(buildOperationWarnings());
|
| o.add(buildOperationWarnings());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2301(core.List<api.OperationWarnings> o) {
|
| +checkUnnamed2079(core.List<api.OperationWarnings> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperationWarnings(o[0]);
|
| checkOperationWarnings(o[1]);
|
| @@ -4524,7 +4685,7 @@ buildOperation() {
|
| o.targetId = "foo";
|
| o.targetLink = "foo";
|
| o.user = "foo";
|
| - o.warnings = buildUnnamed2301();
|
| + o.warnings = buildUnnamed2079();
|
| o.zone = "foo";
|
| }
|
| buildCounterOperation--;
|
| @@ -4555,20 +4716,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'));
|
| - checkUnnamed2301(o.warnings);
|
| + checkUnnamed2079(o.warnings);
|
| unittest.expect(o.zone, unittest.equals('foo'));
|
| }
|
| buildCounterOperation--;
|
| }
|
|
|
| -buildUnnamed2302() {
|
| +buildUnnamed2080() {
|
| var o = new core.Map<core.String, api.OperationsScopedList>();
|
| o["x"] = buildOperationsScopedList();
|
| o["y"] = buildOperationsScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2302(core.Map<core.String, api.OperationsScopedList> o) {
|
| +checkUnnamed2080(core.Map<core.String, api.OperationsScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperationsScopedList(o["x"]);
|
| checkOperationsScopedList(o["y"]);
|
| @@ -4580,7 +4741,7 @@ buildOperationAggregatedList() {
|
| buildCounterOperationAggregatedList++;
|
| if (buildCounterOperationAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2302();
|
| + o.items = buildUnnamed2080();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -4593,7 +4754,7 @@ checkOperationAggregatedList(api.OperationAggregatedList o) {
|
| buildCounterOperationAggregatedList++;
|
| if (buildCounterOperationAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2302(o.items);
|
| + checkUnnamed2080(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -4601,14 +4762,14 @@ checkOperationAggregatedList(api.OperationAggregatedList o) {
|
| buildCounterOperationAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2303() {
|
| +buildUnnamed2081() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2303(core.List<api.Operation> o) {
|
| +checkUnnamed2081(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -4620,7 +4781,7 @@ buildOperationList() {
|
| buildCounterOperationList++;
|
| if (buildCounterOperationList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2303();
|
| + o.items = buildUnnamed2081();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| @@ -4633,7 +4794,7 @@ checkOperationList(api.OperationList o) {
|
| buildCounterOperationList++;
|
| if (buildCounterOperationList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2303(o.items);
|
| + checkUnnamed2081(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| @@ -4641,14 +4802,14 @@ checkOperationList(api.OperationList o) {
|
| buildCounterOperationList--;
|
| }
|
|
|
| -buildUnnamed2304() {
|
| +buildUnnamed2082() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2304(core.List<api.Operation> o) {
|
| +checkUnnamed2082(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -4675,14 +4836,14 @@ checkOperationsScopedListWarningData(api.OperationsScopedListWarningData o) {
|
| buildCounterOperationsScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2305() {
|
| +buildUnnamed2083() {
|
| var o = new core.List<api.OperationsScopedListWarningData>();
|
| o.add(buildOperationsScopedListWarningData());
|
| o.add(buildOperationsScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2305(core.List<api.OperationsScopedListWarningData> o) {
|
| +checkUnnamed2083(core.List<api.OperationsScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperationsScopedListWarningData(o[0]);
|
| checkOperationsScopedListWarningData(o[1]);
|
| @@ -4694,7 +4855,7 @@ buildOperationsScopedListWarning() {
|
| buildCounterOperationsScopedListWarning++;
|
| if (buildCounterOperationsScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2305();
|
| + o.data = buildUnnamed2083();
|
| o.message = "foo";
|
| }
|
| buildCounterOperationsScopedListWarning--;
|
| @@ -4705,7 +4866,7 @@ checkOperationsScopedListWarning(api.OperationsScopedListWarning o) {
|
| buildCounterOperationsScopedListWarning++;
|
| if (buildCounterOperationsScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2305(o.data);
|
| + checkUnnamed2083(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterOperationsScopedListWarning--;
|
| @@ -4716,7 +4877,7 @@ buildOperationsScopedList() {
|
| var o = new api.OperationsScopedList();
|
| buildCounterOperationsScopedList++;
|
| if (buildCounterOperationsScopedList < 3) {
|
| - o.operations = buildUnnamed2304();
|
| + o.operations = buildUnnamed2082();
|
| o.warning = buildOperationsScopedListWarning();
|
| }
|
| buildCounterOperationsScopedList--;
|
| @@ -4726,20 +4887,20 @@ buildOperationsScopedList() {
|
| checkOperationsScopedList(api.OperationsScopedList o) {
|
| buildCounterOperationsScopedList++;
|
| if (buildCounterOperationsScopedList < 3) {
|
| - checkUnnamed2304(o.operations);
|
| + checkUnnamed2082(o.operations);
|
| checkOperationsScopedListWarning(o.warning);
|
| }
|
| buildCounterOperationsScopedList--;
|
| }
|
|
|
| -buildUnnamed2306() {
|
| +buildUnnamed2084() {
|
| var o = new core.List<api.PathRule>();
|
| o.add(buildPathRule());
|
| o.add(buildPathRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2306(core.List<api.PathRule> o) {
|
| +checkUnnamed2084(core.List<api.PathRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPathRule(o[0]);
|
| checkPathRule(o[1]);
|
| @@ -4753,7 +4914,7 @@ buildPathMatcher() {
|
| o.defaultService = "foo";
|
| o.description = "foo";
|
| o.name = "foo";
|
| - o.pathRules = buildUnnamed2306();
|
| + o.pathRules = buildUnnamed2084();
|
| }
|
| buildCounterPathMatcher--;
|
| return o;
|
| @@ -4765,19 +4926,19 @@ checkPathMatcher(api.PathMatcher o) {
|
| unittest.expect(o.defaultService, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2306(o.pathRules);
|
| + checkUnnamed2084(o.pathRules);
|
| }
|
| buildCounterPathMatcher--;
|
| }
|
|
|
| -buildUnnamed2307() {
|
| +buildUnnamed2085() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2307(core.List<core.String> o) {
|
| +checkUnnamed2085(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'));
|
| @@ -4788,7 +4949,7 @@ buildPathRule() {
|
| var o = new api.PathRule();
|
| buildCounterPathRule++;
|
| if (buildCounterPathRule < 3) {
|
| - o.paths = buildUnnamed2307();
|
| + o.paths = buildUnnamed2085();
|
| o.service = "foo";
|
| }
|
| buildCounterPathRule--;
|
| @@ -4798,33 +4959,33 @@ buildPathRule() {
|
| checkPathRule(api.PathRule o) {
|
| buildCounterPathRule++;
|
| if (buildCounterPathRule < 3) {
|
| - checkUnnamed2307(o.paths);
|
| + checkUnnamed2085(o.paths);
|
| unittest.expect(o.service, unittest.equals('foo'));
|
| }
|
| buildCounterPathRule--;
|
| }
|
|
|
| -buildUnnamed2308() {
|
| +buildUnnamed2086() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2308(core.List<core.String> o) {
|
| +checkUnnamed2086(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'));
|
| }
|
|
|
| -buildUnnamed2309() {
|
| +buildUnnamed2087() {
|
| var o = new core.List<api.Quota>();
|
| o.add(buildQuota());
|
| o.add(buildQuota());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2309(core.List<api.Quota> o) {
|
| +checkUnnamed2087(core.List<api.Quota> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkQuota(o[0]);
|
| checkQuota(o[1]);
|
| @@ -4839,11 +5000,11 @@ buildProject() {
|
| o.creationTimestamp = "foo";
|
| o.defaultServiceAccount = "foo";
|
| o.description = "foo";
|
| - o.enabledFeatures = buildUnnamed2308();
|
| + o.enabledFeatures = buildUnnamed2086();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.quotas = buildUnnamed2309();
|
| + o.quotas = buildUnnamed2087();
|
| o.selfLink = "foo";
|
| o.usageExportLocation = buildUsageExportLocation();
|
| }
|
| @@ -4858,11 +5019,11 @@ checkProject(api.Project o) {
|
| unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| unittest.expect(o.defaultServiceAccount, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - checkUnnamed2308(o.enabledFeatures);
|
| + checkUnnamed2086(o.enabledFeatures);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2309(o.quotas);
|
| + checkUnnamed2087(o.quotas);
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| checkUsageExportLocation(o.usageExportLocation);
|
| }
|
| @@ -4892,27 +5053,27 @@ checkQuota(api.Quota o) {
|
| buildCounterQuota--;
|
| }
|
|
|
| -buildUnnamed2310() {
|
| +buildUnnamed2088() {
|
| var o = new core.List<api.Quota>();
|
| o.add(buildQuota());
|
| o.add(buildQuota());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2310(core.List<api.Quota> o) {
|
| +checkUnnamed2088(core.List<api.Quota> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkQuota(o[0]);
|
| checkQuota(o[1]);
|
| }
|
|
|
| -buildUnnamed2311() {
|
| +buildUnnamed2089() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2311(core.List<core.String> o) {
|
| +checkUnnamed2089(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'));
|
| @@ -4929,10 +5090,10 @@ buildRegion() {
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.quotas = buildUnnamed2310();
|
| + o.quotas = buildUnnamed2088();
|
| o.selfLink = "foo";
|
| o.status = "foo";
|
| - o.zones = buildUnnamed2311();
|
| + o.zones = buildUnnamed2089();
|
| }
|
| buildCounterRegion--;
|
| return o;
|
| @@ -4947,5111 +5108,6995 @@ checkRegion(api.Region o) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2310(o.quotas);
|
| + checkUnnamed2088(o.quotas);
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| - checkUnnamed2311(o.zones);
|
| + checkUnnamed2089(o.zones);
|
| }
|
| buildCounterRegion--;
|
| }
|
|
|
| -buildUnnamed2312() {
|
| - var o = new core.List<api.Region>();
|
| - o.add(buildRegion());
|
| - o.add(buildRegion());
|
| +buildUnnamed2090() {
|
| + var o = new core.List<api.Autoscaler>();
|
| + o.add(buildAutoscaler());
|
| + o.add(buildAutoscaler());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2312(core.List<api.Region> o) {
|
| +checkUnnamed2090(core.List<api.Autoscaler> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkRegion(o[0]);
|
| - checkRegion(o[1]);
|
| + checkAutoscaler(o[0]);
|
| + checkAutoscaler(o[1]);
|
| }
|
|
|
| -core.int buildCounterRegionList = 0;
|
| -buildRegionList() {
|
| - var o = new api.RegionList();
|
| - buildCounterRegionList++;
|
| - if (buildCounterRegionList < 3) {
|
| +core.int buildCounterRegionAutoscalerList = 0;
|
| +buildRegionAutoscalerList() {
|
| + var o = new api.RegionAutoscalerList();
|
| + buildCounterRegionAutoscalerList++;
|
| + if (buildCounterRegionAutoscalerList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2312();
|
| + o.items = buildUnnamed2090();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterRegionList--;
|
| + buildCounterRegionAutoscalerList--;
|
| return o;
|
| }
|
|
|
| -checkRegionList(api.RegionList o) {
|
| - buildCounterRegionList++;
|
| - if (buildCounterRegionList < 3) {
|
| +checkRegionAutoscalerList(api.RegionAutoscalerList o) {
|
| + buildCounterRegionAutoscalerList++;
|
| + if (buildCounterRegionAutoscalerList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2312(o.items);
|
| + checkUnnamed2090(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterRegionList--;
|
| + buildCounterRegionAutoscalerList--;
|
| }
|
|
|
| -core.int buildCounterResourceGroupReference = 0;
|
| -buildResourceGroupReference() {
|
| - var o = new api.ResourceGroupReference();
|
| - buildCounterResourceGroupReference++;
|
| - if (buildCounterResourceGroupReference < 3) {
|
| - o.group = "foo";
|
| +buildUnnamed2091() {
|
| + var o = new core.List<api.InstanceGroup>();
|
| + o.add(buildInstanceGroup());
|
| + o.add(buildInstanceGroup());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2091(core.List<api.InstanceGroup> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkInstanceGroup(o[0]);
|
| + checkInstanceGroup(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterRegionInstanceGroupList = 0;
|
| +buildRegionInstanceGroupList() {
|
| + var o = new api.RegionInstanceGroupList();
|
| + buildCounterRegionInstanceGroupList++;
|
| + if (buildCounterRegionInstanceGroupList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2091();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.selfLink = "foo";
|
| }
|
| - buildCounterResourceGroupReference--;
|
| + buildCounterRegionInstanceGroupList--;
|
| return o;
|
| }
|
|
|
| -checkResourceGroupReference(api.ResourceGroupReference o) {
|
| - buildCounterResourceGroupReference++;
|
| - if (buildCounterResourceGroupReference < 3) {
|
| - unittest.expect(o.group, unittest.equals('foo'));
|
| +checkRegionInstanceGroupList(api.RegionInstanceGroupList o) {
|
| + buildCounterRegionInstanceGroupList++;
|
| + if (buildCounterRegionInstanceGroupList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2091(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterResourceGroupReference--;
|
| + buildCounterRegionInstanceGroupList--;
|
| +}
|
| +
|
| +buildUnnamed2092() {
|
| + var o = new core.List<api.InstanceGroupManager>();
|
| + o.add(buildInstanceGroupManager());
|
| + o.add(buildInstanceGroupManager());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2092(core.List<api.InstanceGroupManager> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkInstanceGroupManager(o[0]);
|
| + checkInstanceGroupManager(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterRegionInstanceGroupManagerList = 0;
|
| +buildRegionInstanceGroupManagerList() {
|
| + var o = new api.RegionInstanceGroupManagerList();
|
| + buildCounterRegionInstanceGroupManagerList++;
|
| + if (buildCounterRegionInstanceGroupManagerList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2092();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.selfLink = "foo";
|
| + }
|
| + buildCounterRegionInstanceGroupManagerList--;
|
| + return o;
|
| +}
|
| +
|
| +checkRegionInstanceGroupManagerList(api.RegionInstanceGroupManagerList o) {
|
| + buildCounterRegionInstanceGroupManagerList++;
|
| + if (buildCounterRegionInstanceGroupManagerList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2092(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + }
|
| + buildCounterRegionInstanceGroupManagerList--;
|
| }
|
|
|
| -buildUnnamed2313() {
|
| +buildUnnamed2093() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2313(core.List<core.String> o) {
|
| +checkUnnamed2093(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 buildCounterRouteWarningsData = 0;
|
| -buildRouteWarningsData() {
|
| - var o = new api.RouteWarningsData();
|
| - buildCounterRouteWarningsData++;
|
| - if (buildCounterRouteWarningsData < 3) {
|
| - o.key = "foo";
|
| - o.value = "foo";
|
| +core.int buildCounterRegionInstanceGroupManagersAbandonInstancesRequest = 0;
|
| +buildRegionInstanceGroupManagersAbandonInstancesRequest() {
|
| + var o = new api.RegionInstanceGroupManagersAbandonInstancesRequest();
|
| + buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++;
|
| + if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) {
|
| + o.instances = buildUnnamed2093();
|
| }
|
| - buildCounterRouteWarningsData--;
|
| + buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--;
|
| return o;
|
| }
|
|
|
| -checkRouteWarningsData(api.RouteWarningsData o) {
|
| - buildCounterRouteWarningsData++;
|
| - if (buildCounterRouteWarningsData < 3) {
|
| - unittest.expect(o.key, unittest.equals('foo'));
|
| - unittest.expect(o.value, unittest.equals('foo'));
|
| +checkRegionInstanceGroupManagersAbandonInstancesRequest(api.RegionInstanceGroupManagersAbandonInstancesRequest o) {
|
| + buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++;
|
| + if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) {
|
| + checkUnnamed2093(o.instances);
|
| }
|
| - buildCounterRouteWarningsData--;
|
| + buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--;
|
| }
|
|
|
| -buildUnnamed2314() {
|
| - var o = new core.List<api.RouteWarningsData>();
|
| - o.add(buildRouteWarningsData());
|
| - o.add(buildRouteWarningsData());
|
| +buildUnnamed2094() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2314(core.List<api.RouteWarningsData> o) {
|
| +checkUnnamed2094(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkRouteWarningsData(o[0]);
|
| - checkRouteWarningsData(o[1]);
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -core.int buildCounterRouteWarnings = 0;
|
| -buildRouteWarnings() {
|
| - var o = new api.RouteWarnings();
|
| - buildCounterRouteWarnings++;
|
| - if (buildCounterRouteWarnings < 3) {
|
| - o.code = "foo";
|
| - o.data = buildUnnamed2314();
|
| - o.message = "foo";
|
| +core.int buildCounterRegionInstanceGroupManagersDeleteInstancesRequest = 0;
|
| +buildRegionInstanceGroupManagersDeleteInstancesRequest() {
|
| + var o = new api.RegionInstanceGroupManagersDeleteInstancesRequest();
|
| + buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++;
|
| + if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) {
|
| + o.instances = buildUnnamed2094();
|
| }
|
| - buildCounterRouteWarnings--;
|
| + buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--;
|
| return o;
|
| }
|
|
|
| -checkRouteWarnings(api.RouteWarnings o) {
|
| - buildCounterRouteWarnings++;
|
| - if (buildCounterRouteWarnings < 3) {
|
| - unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2314(o.data);
|
| - unittest.expect(o.message, unittest.equals('foo'));
|
| +checkRegionInstanceGroupManagersDeleteInstancesRequest(api.RegionInstanceGroupManagersDeleteInstancesRequest o) {
|
| + buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++;
|
| + if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) {
|
| + checkUnnamed2094(o.instances);
|
| }
|
| - buildCounterRouteWarnings--;
|
| + buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--;
|
| }
|
|
|
| -buildUnnamed2315() {
|
| - var o = new core.List<api.RouteWarnings>();
|
| - o.add(buildRouteWarnings());
|
| - o.add(buildRouteWarnings());
|
| +buildUnnamed2095() {
|
| + var o = new core.List<api.ManagedInstance>();
|
| + o.add(buildManagedInstance());
|
| + o.add(buildManagedInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2315(core.List<api.RouteWarnings> o) {
|
| +checkUnnamed2095(core.List<api.ManagedInstance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkRouteWarnings(o[0]);
|
| - checkRouteWarnings(o[1]);
|
| + checkManagedInstance(o[0]);
|
| + checkManagedInstance(o[1]);
|
| }
|
|
|
| -core.int buildCounterRoute = 0;
|
| -buildRoute() {
|
| - var o = new api.Route();
|
| - buildCounterRoute++;
|
| - if (buildCounterRoute < 3) {
|
| - o.creationTimestamp = "foo";
|
| - o.description = "foo";
|
| - o.destRange = "foo";
|
| - o.id = "foo";
|
| - o.kind = "foo";
|
| - o.name = "foo";
|
| - o.network = "foo";
|
| - o.nextHopGateway = "foo";
|
| - o.nextHopInstance = "foo";
|
| - o.nextHopIp = "foo";
|
| - o.nextHopNetwork = "foo";
|
| - o.nextHopVpnTunnel = "foo";
|
| - o.priority = 42;
|
| - o.selfLink = "foo";
|
| - o.tags = buildUnnamed2313();
|
| - o.warnings = buildUnnamed2315();
|
| +core.int buildCounterRegionInstanceGroupManagersListInstancesResponse = 0;
|
| +buildRegionInstanceGroupManagersListInstancesResponse() {
|
| + var o = new api.RegionInstanceGroupManagersListInstancesResponse();
|
| + buildCounterRegionInstanceGroupManagersListInstancesResponse++;
|
| + if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) {
|
| + o.managedInstances = buildUnnamed2095();
|
| }
|
| - buildCounterRoute--;
|
| + buildCounterRegionInstanceGroupManagersListInstancesResponse--;
|
| return o;
|
| }
|
|
|
| -checkRoute(api.Route o) {
|
| - buildCounterRoute++;
|
| - if (buildCounterRoute < 3) {
|
| - unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.destRange, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.network, unittest.equals('foo'));
|
| - unittest.expect(o.nextHopGateway, unittest.equals('foo'));
|
| - unittest.expect(o.nextHopInstance, unittest.equals('foo'));
|
| - unittest.expect(o.nextHopIp, unittest.equals('foo'));
|
| - unittest.expect(o.nextHopNetwork, unittest.equals('foo'));
|
| - unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo'));
|
| - unittest.expect(o.priority, unittest.equals(42));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - checkUnnamed2313(o.tags);
|
| - checkUnnamed2315(o.warnings);
|
| +checkRegionInstanceGroupManagersListInstancesResponse(api.RegionInstanceGroupManagersListInstancesResponse o) {
|
| + buildCounterRegionInstanceGroupManagersListInstancesResponse++;
|
| + if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) {
|
| + checkUnnamed2095(o.managedInstances);
|
| }
|
| - buildCounterRoute--;
|
| + buildCounterRegionInstanceGroupManagersListInstancesResponse--;
|
| }
|
|
|
| -buildUnnamed2316() {
|
| - var o = new core.List<api.Route>();
|
| - o.add(buildRoute());
|
| - o.add(buildRoute());
|
| +buildUnnamed2096() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2316(core.List<api.Route> o) {
|
| +checkUnnamed2096(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkRoute(o[0]);
|
| - checkRoute(o[1]);
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -core.int buildCounterRouteList = 0;
|
| -buildRouteList() {
|
| - var o = new api.RouteList();
|
| - buildCounterRouteList++;
|
| - if (buildCounterRouteList < 3) {
|
| - o.id = "foo";
|
| - o.items = buildUnnamed2316();
|
| - o.kind = "foo";
|
| - o.nextPageToken = "foo";
|
| - o.selfLink = "foo";
|
| +core.int buildCounterRegionInstanceGroupManagersRecreateRequest = 0;
|
| +buildRegionInstanceGroupManagersRecreateRequest() {
|
| + var o = new api.RegionInstanceGroupManagersRecreateRequest();
|
| + buildCounterRegionInstanceGroupManagersRecreateRequest++;
|
| + if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) {
|
| + o.instances = buildUnnamed2096();
|
| }
|
| - buildCounterRouteList--;
|
| + buildCounterRegionInstanceGroupManagersRecreateRequest--;
|
| return o;
|
| }
|
|
|
| -checkRouteList(api.RouteList o) {
|
| - buildCounterRouteList++;
|
| - if (buildCounterRouteList < 3) {
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2316(o.items);
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| +checkRegionInstanceGroupManagersRecreateRequest(api.RegionInstanceGroupManagersRecreateRequest o) {
|
| + buildCounterRegionInstanceGroupManagersRecreateRequest++;
|
| + if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) {
|
| + checkUnnamed2096(o.instances);
|
| }
|
| - buildCounterRouteList--;
|
| + buildCounterRegionInstanceGroupManagersRecreateRequest--;
|
| }
|
|
|
| -buildUnnamed2317() {
|
| - var o = new core.List<api.RouterBgpPeer>();
|
| - o.add(buildRouterBgpPeer());
|
| - o.add(buildRouterBgpPeer());
|
| +buildUnnamed2097() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2317(core.List<api.RouterBgpPeer> o) {
|
| +checkUnnamed2097(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkRouterBgpPeer(o[0]);
|
| - checkRouterBgpPeer(o[1]);
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2318() {
|
| - var o = new core.List<api.RouterInterface>();
|
| - o.add(buildRouterInterface());
|
| - o.add(buildRouterInterface());
|
| +core.int buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest = 0;
|
| +buildRegionInstanceGroupManagersSetTargetPoolsRequest() {
|
| + var o = new api.RegionInstanceGroupManagersSetTargetPoolsRequest();
|
| + buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++;
|
| + if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) {
|
| + o.fingerprint = "foo";
|
| + o.targetPools = buildUnnamed2097();
|
| + }
|
| + buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--;
|
| return o;
|
| }
|
|
|
| -checkUnnamed2318(core.List<api.RouterInterface> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkRouterInterface(o[0]);
|
| - checkRouterInterface(o[1]);
|
| +checkRegionInstanceGroupManagersSetTargetPoolsRequest(api.RegionInstanceGroupManagersSetTargetPoolsRequest o) {
|
| + buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++;
|
| + if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) {
|
| + unittest.expect(o.fingerprint, unittest.equals('foo'));
|
| + checkUnnamed2097(o.targetPools);
|
| + }
|
| + buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--;
|
| }
|
|
|
| -core.int buildCounterRouter = 0;
|
| -buildRouter() {
|
| - var o = new api.Router();
|
| - buildCounterRouter++;
|
| - if (buildCounterRouter < 3) {
|
| - o.bgp = buildRouterBgp();
|
| - o.bgpPeers = buildUnnamed2317();
|
| - o.creationTimestamp = "foo";
|
| - o.description = "foo";
|
| - o.id = "foo";
|
| - o.interfaces = buildUnnamed2318();
|
| - o.kind = "foo";
|
| - o.name = "foo";
|
| - o.network = "foo";
|
| - o.region = "foo";
|
| - o.selfLink = "foo";
|
| +core.int buildCounterRegionInstanceGroupManagersSetTemplateRequest = 0;
|
| +buildRegionInstanceGroupManagersSetTemplateRequest() {
|
| + var o = new api.RegionInstanceGroupManagersSetTemplateRequest();
|
| + buildCounterRegionInstanceGroupManagersSetTemplateRequest++;
|
| + if (buildCounterRegionInstanceGroupManagersSetTemplateRequest < 3) {
|
| + o.instanceTemplate = "foo";
|
| }
|
| - buildCounterRouter--;
|
| + buildCounterRegionInstanceGroupManagersSetTemplateRequest--;
|
| return o;
|
| }
|
|
|
| -checkRouter(api.Router o) {
|
| - buildCounterRouter++;
|
| - if (buildCounterRouter < 3) {
|
| - checkRouterBgp(o.bgp);
|
| - checkUnnamed2317(o.bgpPeers);
|
| - unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2318(o.interfaces);
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.network, unittest.equals('foo'));
|
| - unittest.expect(o.region, unittest.equals('foo'));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| +checkRegionInstanceGroupManagersSetTemplateRequest(api.RegionInstanceGroupManagersSetTemplateRequest o) {
|
| + buildCounterRegionInstanceGroupManagersSetTemplateRequest++;
|
| + if (buildCounterRegionInstanceGroupManagersSetTemplateRequest < 3) {
|
| + unittest.expect(o.instanceTemplate, unittest.equals('foo'));
|
| }
|
| - buildCounterRouter--;
|
| + buildCounterRegionInstanceGroupManagersSetTemplateRequest--;
|
| }
|
|
|
| -buildUnnamed2319() {
|
| - var o = new core.Map<core.String, api.RoutersScopedList>();
|
| - o["x"] = buildRoutersScopedList();
|
| - o["y"] = buildRoutersScopedList();
|
| +buildUnnamed2098() {
|
| + var o = new core.List<api.InstanceWithNamedPorts>();
|
| + o.add(buildInstanceWithNamedPorts());
|
| + o.add(buildInstanceWithNamedPorts());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2319(core.Map<core.String, api.RoutersScopedList> o) {
|
| +checkUnnamed2098(core.List<api.InstanceWithNamedPorts> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkRoutersScopedList(o["x"]);
|
| - checkRoutersScopedList(o["y"]);
|
| + checkInstanceWithNamedPorts(o[0]);
|
| + checkInstanceWithNamedPorts(o[1]);
|
| }
|
|
|
| -core.int buildCounterRouterAggregatedList = 0;
|
| -buildRouterAggregatedList() {
|
| - var o = new api.RouterAggregatedList();
|
| - buildCounterRouterAggregatedList++;
|
| - if (buildCounterRouterAggregatedList < 3) {
|
| +core.int buildCounterRegionInstanceGroupsListInstances = 0;
|
| +buildRegionInstanceGroupsListInstances() {
|
| + var o = new api.RegionInstanceGroupsListInstances();
|
| + buildCounterRegionInstanceGroupsListInstances++;
|
| + if (buildCounterRegionInstanceGroupsListInstances < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2319();
|
| + o.items = buildUnnamed2098();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterRouterAggregatedList--;
|
| + buildCounterRegionInstanceGroupsListInstances--;
|
| return o;
|
| }
|
|
|
| -checkRouterAggregatedList(api.RouterAggregatedList o) {
|
| - buildCounterRouterAggregatedList++;
|
| - if (buildCounterRouterAggregatedList < 3) {
|
| +checkRegionInstanceGroupsListInstances(api.RegionInstanceGroupsListInstances o) {
|
| + buildCounterRegionInstanceGroupsListInstances++;
|
| + if (buildCounterRegionInstanceGroupsListInstances < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2319(o.items);
|
| + checkUnnamed2098(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterRouterAggregatedList--;
|
| + buildCounterRegionInstanceGroupsListInstances--;
|
| }
|
|
|
| -core.int buildCounterRouterBgp = 0;
|
| -buildRouterBgp() {
|
| - var o = new api.RouterBgp();
|
| - buildCounterRouterBgp++;
|
| - if (buildCounterRouterBgp < 3) {
|
| - o.asn = 42;
|
| +core.int buildCounterRegionInstanceGroupsListInstancesRequest = 0;
|
| +buildRegionInstanceGroupsListInstancesRequest() {
|
| + var o = new api.RegionInstanceGroupsListInstancesRequest();
|
| + buildCounterRegionInstanceGroupsListInstancesRequest++;
|
| + if (buildCounterRegionInstanceGroupsListInstancesRequest < 3) {
|
| + o.instanceState = "foo";
|
| + o.portName = "foo";
|
| }
|
| - buildCounterRouterBgp--;
|
| + buildCounterRegionInstanceGroupsListInstancesRequest--;
|
| return o;
|
| }
|
|
|
| -checkRouterBgp(api.RouterBgp o) {
|
| - buildCounterRouterBgp++;
|
| - if (buildCounterRouterBgp < 3) {
|
| - unittest.expect(o.asn, unittest.equals(42));
|
| +checkRegionInstanceGroupsListInstancesRequest(api.RegionInstanceGroupsListInstancesRequest o) {
|
| + buildCounterRegionInstanceGroupsListInstancesRequest++;
|
| + if (buildCounterRegionInstanceGroupsListInstancesRequest < 3) {
|
| + unittest.expect(o.instanceState, unittest.equals('foo'));
|
| + unittest.expect(o.portName, unittest.equals('foo'));
|
| }
|
| - buildCounterRouterBgp--;
|
| + buildCounterRegionInstanceGroupsListInstancesRequest--;
|
| }
|
|
|
| -core.int buildCounterRouterBgpPeer = 0;
|
| -buildRouterBgpPeer() {
|
| - var o = new api.RouterBgpPeer();
|
| - buildCounterRouterBgpPeer++;
|
| - if (buildCounterRouterBgpPeer < 3) {
|
| - o.advertisedRoutePriority = 42;
|
| - o.interfaceName = "foo";
|
| - o.ipAddress = "foo";
|
| - o.name = "foo";
|
| - o.peerAsn = 42;
|
| - o.peerIpAddress = "foo";
|
| - }
|
| - buildCounterRouterBgpPeer--;
|
| +buildUnnamed2099() {
|
| + var o = new core.List<api.NamedPort>();
|
| + o.add(buildNamedPort());
|
| + o.add(buildNamedPort());
|
| return o;
|
| }
|
|
|
| -checkRouterBgpPeer(api.RouterBgpPeer o) {
|
| - buildCounterRouterBgpPeer++;
|
| - if (buildCounterRouterBgpPeer < 3) {
|
| - unittest.expect(o.advertisedRoutePriority, unittest.equals(42));
|
| - unittest.expect(o.interfaceName, unittest.equals('foo'));
|
| - unittest.expect(o.ipAddress, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.peerAsn, unittest.equals(42));
|
| - unittest.expect(o.peerIpAddress, unittest.equals('foo'));
|
| - }
|
| - buildCounterRouterBgpPeer--;
|
| +checkUnnamed2099(core.List<api.NamedPort> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkNamedPort(o[0]);
|
| + checkNamedPort(o[1]);
|
| }
|
|
|
| -core.int buildCounterRouterInterface = 0;
|
| -buildRouterInterface() {
|
| - var o = new api.RouterInterface();
|
| - buildCounterRouterInterface++;
|
| - if (buildCounterRouterInterface < 3) {
|
| - o.ipRange = "foo";
|
| - o.linkedVpnTunnel = "foo";
|
| - o.name = "foo";
|
| +core.int buildCounterRegionInstanceGroupsSetNamedPortsRequest = 0;
|
| +buildRegionInstanceGroupsSetNamedPortsRequest() {
|
| + var o = new api.RegionInstanceGroupsSetNamedPortsRequest();
|
| + buildCounterRegionInstanceGroupsSetNamedPortsRequest++;
|
| + if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) {
|
| + o.fingerprint = "foo";
|
| + o.namedPorts = buildUnnamed2099();
|
| }
|
| - buildCounterRouterInterface--;
|
| + buildCounterRegionInstanceGroupsSetNamedPortsRequest--;
|
| return o;
|
| }
|
|
|
| -checkRouterInterface(api.RouterInterface o) {
|
| - buildCounterRouterInterface++;
|
| - if (buildCounterRouterInterface < 3) {
|
| - unittest.expect(o.ipRange, unittest.equals('foo'));
|
| - unittest.expect(o.linkedVpnTunnel, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| +checkRegionInstanceGroupsSetNamedPortsRequest(api.RegionInstanceGroupsSetNamedPortsRequest o) {
|
| + buildCounterRegionInstanceGroupsSetNamedPortsRequest++;
|
| + if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) {
|
| + unittest.expect(o.fingerprint, unittest.equals('foo'));
|
| + checkUnnamed2099(o.namedPorts);
|
| }
|
| - buildCounterRouterInterface--;
|
| + buildCounterRegionInstanceGroupsSetNamedPortsRequest--;
|
| }
|
|
|
| -buildUnnamed2320() {
|
| - var o = new core.List<api.Router>();
|
| - o.add(buildRouter());
|
| - o.add(buildRouter());
|
| +buildUnnamed2100() {
|
| + var o = new core.List<api.Region>();
|
| + o.add(buildRegion());
|
| + o.add(buildRegion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2320(core.List<api.Router> o) {
|
| +checkUnnamed2100(core.List<api.Region> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkRouter(o[0]);
|
| - checkRouter(o[1]);
|
| + checkRegion(o[0]);
|
| + checkRegion(o[1]);
|
| }
|
|
|
| -core.int buildCounterRouterList = 0;
|
| -buildRouterList() {
|
| - var o = new api.RouterList();
|
| - buildCounterRouterList++;
|
| - if (buildCounterRouterList < 3) {
|
| +core.int buildCounterRegionList = 0;
|
| +buildRegionList() {
|
| + var o = new api.RegionList();
|
| + buildCounterRegionList++;
|
| + if (buildCounterRegionList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2320();
|
| + o.items = buildUnnamed2100();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterRouterList--;
|
| + buildCounterRegionList--;
|
| return o;
|
| }
|
|
|
| -checkRouterList(api.RouterList o) {
|
| - buildCounterRouterList++;
|
| - if (buildCounterRouterList < 3) {
|
| +checkRegionList(api.RegionList o) {
|
| + buildCounterRegionList++;
|
| + if (buildCounterRegionList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2320(o.items);
|
| + checkUnnamed2100(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterRouterList--;
|
| + buildCounterRegionList--;
|
| }
|
|
|
| -buildUnnamed2321() {
|
| - var o = new core.List<api.Route>();
|
| - o.add(buildRoute());
|
| - o.add(buildRoute());
|
| +core.int buildCounterResourceGroupReference = 0;
|
| +buildResourceGroupReference() {
|
| + var o = new api.ResourceGroupReference();
|
| + buildCounterResourceGroupReference++;
|
| + if (buildCounterResourceGroupReference < 3) {
|
| + o.group = "foo";
|
| + }
|
| + buildCounterResourceGroupReference--;
|
| return o;
|
| }
|
|
|
| -checkUnnamed2321(core.List<api.Route> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkRoute(o[0]);
|
| - checkRoute(o[1]);
|
| +checkResourceGroupReference(api.ResourceGroupReference o) {
|
| + buildCounterResourceGroupReference++;
|
| + if (buildCounterResourceGroupReference < 3) {
|
| + unittest.expect(o.group, unittest.equals('foo'));
|
| + }
|
| + buildCounterResourceGroupReference--;
|
| }
|
|
|
| -buildUnnamed2322() {
|
| - var o = new core.List<api.RouterStatusBgpPeerStatus>();
|
| - o.add(buildRouterStatusBgpPeerStatus());
|
| - o.add(buildRouterStatusBgpPeerStatus());
|
| +buildUnnamed2101() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2322(core.List<api.RouterStatusBgpPeerStatus> o) {
|
| +checkUnnamed2101(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkRouterStatusBgpPeerStatus(o[0]);
|
| - checkRouterStatusBgpPeerStatus(o[1]);
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -core.int buildCounterRouterStatus = 0;
|
| -buildRouterStatus() {
|
| - var o = new api.RouterStatus();
|
| - buildCounterRouterStatus++;
|
| - if (buildCounterRouterStatus < 3) {
|
| - o.bestRoutes = buildUnnamed2321();
|
| - o.bgpPeerStatus = buildUnnamed2322();
|
| - o.network = "foo";
|
| +core.int buildCounterRouteWarningsData = 0;
|
| +buildRouteWarningsData() {
|
| + var o = new api.RouteWarningsData();
|
| + buildCounterRouteWarningsData++;
|
| + if (buildCounterRouteWarningsData < 3) {
|
| + o.key = "foo";
|
| + o.value = "foo";
|
| }
|
| - buildCounterRouterStatus--;
|
| + buildCounterRouteWarningsData--;
|
| return o;
|
| }
|
|
|
| -checkRouterStatus(api.RouterStatus o) {
|
| - buildCounterRouterStatus++;
|
| - if (buildCounterRouterStatus < 3) {
|
| - checkUnnamed2321(o.bestRoutes);
|
| - checkUnnamed2322(o.bgpPeerStatus);
|
| - unittest.expect(o.network, unittest.equals('foo'));
|
| +checkRouteWarningsData(api.RouteWarningsData o) {
|
| + buildCounterRouteWarningsData++;
|
| + if (buildCounterRouteWarningsData < 3) {
|
| + unittest.expect(o.key, unittest.equals('foo'));
|
| + unittest.expect(o.value, unittest.equals('foo'));
|
| }
|
| - buildCounterRouterStatus--;
|
| + buildCounterRouteWarningsData--;
|
| }
|
|
|
| -buildUnnamed2323() {
|
| - var o = new core.List<api.Route>();
|
| - o.add(buildRoute());
|
| - o.add(buildRoute());
|
| +buildUnnamed2102() {
|
| + var o = new core.List<api.RouteWarningsData>();
|
| + o.add(buildRouteWarningsData());
|
| + o.add(buildRouteWarningsData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2323(core.List<api.Route> o) {
|
| +checkUnnamed2102(core.List<api.RouteWarningsData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkRoute(o[0]);
|
| - checkRoute(o[1]);
|
| + checkRouteWarningsData(o[0]);
|
| + checkRouteWarningsData(o[1]);
|
| }
|
|
|
| -core.int buildCounterRouterStatusBgpPeerStatus = 0;
|
| -buildRouterStatusBgpPeerStatus() {
|
| - var o = new api.RouterStatusBgpPeerStatus();
|
| - buildCounterRouterStatusBgpPeerStatus++;
|
| - if (buildCounterRouterStatusBgpPeerStatus < 3) {
|
| - o.advertisedRoutes = buildUnnamed2323();
|
| - o.ipAddress = "foo";
|
| - o.linkedVpnTunnel = "foo";
|
| - o.name = "foo";
|
| - o.numLearnedRoutes = 42;
|
| - o.peerIpAddress = "foo";
|
| - o.state = "foo";
|
| - o.status = "foo";
|
| - o.uptime = "foo";
|
| - o.uptimeSeconds = "foo";
|
| +core.int buildCounterRouteWarnings = 0;
|
| +buildRouteWarnings() {
|
| + var o = new api.RouteWarnings();
|
| + buildCounterRouteWarnings++;
|
| + if (buildCounterRouteWarnings < 3) {
|
| + o.code = "foo";
|
| + o.data = buildUnnamed2102();
|
| + o.message = "foo";
|
| }
|
| - buildCounterRouterStatusBgpPeerStatus--;
|
| + buildCounterRouteWarnings--;
|
| return o;
|
| }
|
|
|
| -checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) {
|
| - buildCounterRouterStatusBgpPeerStatus++;
|
| - if (buildCounterRouterStatusBgpPeerStatus < 3) {
|
| - checkUnnamed2323(o.advertisedRoutes);
|
| - unittest.expect(o.ipAddress, unittest.equals('foo'));
|
| - unittest.expect(o.linkedVpnTunnel, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.numLearnedRoutes, unittest.equals(42));
|
| - unittest.expect(o.peerIpAddress, unittest.equals('foo'));
|
| - unittest.expect(o.state, unittest.equals('foo'));
|
| - unittest.expect(o.status, unittest.equals('foo'));
|
| - unittest.expect(o.uptime, unittest.equals('foo'));
|
| - unittest.expect(o.uptimeSeconds, unittest.equals('foo'));
|
| +checkRouteWarnings(api.RouteWarnings o) {
|
| + buildCounterRouteWarnings++;
|
| + if (buildCounterRouteWarnings < 3) {
|
| + unittest.expect(o.code, unittest.equals('foo'));
|
| + checkUnnamed2102(o.data);
|
| + unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| - buildCounterRouterStatusBgpPeerStatus--;
|
| + buildCounterRouteWarnings--;
|
| }
|
|
|
| -core.int buildCounterRouterStatusResponse = 0;
|
| -buildRouterStatusResponse() {
|
| - var o = new api.RouterStatusResponse();
|
| - buildCounterRouterStatusResponse++;
|
| - if (buildCounterRouterStatusResponse < 3) {
|
| - o.kind = "foo";
|
| - o.result = buildRouterStatus();
|
| - }
|
| - buildCounterRouterStatusResponse--;
|
| +buildUnnamed2103() {
|
| + var o = new core.List<api.RouteWarnings>();
|
| + o.add(buildRouteWarnings());
|
| + o.add(buildRouteWarnings());
|
| return o;
|
| }
|
|
|
| -checkRouterStatusResponse(api.RouterStatusResponse o) {
|
| - buildCounterRouterStatusResponse++;
|
| - if (buildCounterRouterStatusResponse < 3) {
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkRouterStatus(o.result);
|
| - }
|
| - buildCounterRouterStatusResponse--;
|
| +checkUnnamed2103(core.List<api.RouteWarnings> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkRouteWarnings(o[0]);
|
| + checkRouteWarnings(o[1]);
|
| }
|
|
|
| -core.int buildCounterRoutersPreviewResponse = 0;
|
| -buildRoutersPreviewResponse() {
|
| - var o = new api.RoutersPreviewResponse();
|
| - buildCounterRoutersPreviewResponse++;
|
| - if (buildCounterRoutersPreviewResponse < 3) {
|
| - o.resource = buildRouter();
|
| +core.int buildCounterRoute = 0;
|
| +buildRoute() {
|
| + var o = new api.Route();
|
| + buildCounterRoute++;
|
| + if (buildCounterRoute < 3) {
|
| + o.creationTimestamp = "foo";
|
| + o.description = "foo";
|
| + o.destRange = "foo";
|
| + o.id = "foo";
|
| + o.kind = "foo";
|
| + o.name = "foo";
|
| + o.network = "foo";
|
| + o.nextHopGateway = "foo";
|
| + o.nextHopInstance = "foo";
|
| + o.nextHopIp = "foo";
|
| + o.nextHopNetwork = "foo";
|
| + o.nextHopVpnTunnel = "foo";
|
| + o.priority = 42;
|
| + o.selfLink = "foo";
|
| + o.tags = buildUnnamed2101();
|
| + o.warnings = buildUnnamed2103();
|
| }
|
| - buildCounterRoutersPreviewResponse--;
|
| + buildCounterRoute--;
|
| return o;
|
| }
|
|
|
| -checkRoutersPreviewResponse(api.RoutersPreviewResponse o) {
|
| - buildCounterRoutersPreviewResponse++;
|
| - if (buildCounterRoutersPreviewResponse < 3) {
|
| - checkRouter(o.resource);
|
| +checkRoute(api.Route o) {
|
| + buildCounterRoute++;
|
| + if (buildCounterRoute < 3) {
|
| + unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.destRange, unittest.equals('foo'));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.network, unittest.equals('foo'));
|
| + unittest.expect(o.nextHopGateway, unittest.equals('foo'));
|
| + unittest.expect(o.nextHopInstance, unittest.equals('foo'));
|
| + unittest.expect(o.nextHopIp, unittest.equals('foo'));
|
| + unittest.expect(o.nextHopNetwork, unittest.equals('foo'));
|
| + unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo'));
|
| + unittest.expect(o.priority, unittest.equals(42));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + checkUnnamed2101(o.tags);
|
| + checkUnnamed2103(o.warnings);
|
| }
|
| - buildCounterRoutersPreviewResponse--;
|
| + buildCounterRoute--;
|
| }
|
|
|
| -buildUnnamed2324() {
|
| - var o = new core.List<api.Router>();
|
| - o.add(buildRouter());
|
| - o.add(buildRouter());
|
| +buildUnnamed2104() {
|
| + var o = new core.List<api.Route>();
|
| + o.add(buildRoute());
|
| + o.add(buildRoute());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2324(core.List<api.Router> o) {
|
| +checkUnnamed2104(core.List<api.Route> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkRouter(o[0]);
|
| - checkRouter(o[1]);
|
| + checkRoute(o[0]);
|
| + checkRoute(o[1]);
|
| }
|
|
|
| -core.int buildCounterRoutersScopedListWarningData = 0;
|
| -buildRoutersScopedListWarningData() {
|
| - var o = new api.RoutersScopedListWarningData();
|
| - buildCounterRoutersScopedListWarningData++;
|
| - if (buildCounterRoutersScopedListWarningData < 3) {
|
| - o.key = "foo";
|
| - o.value = "foo";
|
| +core.int buildCounterRouteList = 0;
|
| +buildRouteList() {
|
| + var o = new api.RouteList();
|
| + buildCounterRouteList++;
|
| + if (buildCounterRouteList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2104();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.selfLink = "foo";
|
| }
|
| - buildCounterRoutersScopedListWarningData--;
|
| + buildCounterRouteList--;
|
| return o;
|
| }
|
|
|
| -checkRoutersScopedListWarningData(api.RoutersScopedListWarningData o) {
|
| - buildCounterRoutersScopedListWarningData++;
|
| - if (buildCounterRoutersScopedListWarningData < 3) {
|
| - unittest.expect(o.key, unittest.equals('foo'));
|
| - unittest.expect(o.value, unittest.equals('foo'));
|
| +checkRouteList(api.RouteList o) {
|
| + buildCounterRouteList++;
|
| + if (buildCounterRouteList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2104(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterRoutersScopedListWarningData--;
|
| + buildCounterRouteList--;
|
| }
|
|
|
| -buildUnnamed2325() {
|
| - var o = new core.List<api.RoutersScopedListWarningData>();
|
| - o.add(buildRoutersScopedListWarningData());
|
| - o.add(buildRoutersScopedListWarningData());
|
| +buildUnnamed2105() {
|
| + var o = new core.List<api.RouterBgpPeer>();
|
| + o.add(buildRouterBgpPeer());
|
| + o.add(buildRouterBgpPeer());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2325(core.List<api.RoutersScopedListWarningData> o) {
|
| +checkUnnamed2105(core.List<api.RouterBgpPeer> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkRoutersScopedListWarningData(o[0]);
|
| - checkRoutersScopedListWarningData(o[1]);
|
| + checkRouterBgpPeer(o[0]);
|
| + checkRouterBgpPeer(o[1]);
|
| }
|
|
|
| -core.int buildCounterRoutersScopedListWarning = 0;
|
| -buildRoutersScopedListWarning() {
|
| - var o = new api.RoutersScopedListWarning();
|
| - buildCounterRoutersScopedListWarning++;
|
| - if (buildCounterRoutersScopedListWarning < 3) {
|
| - o.code = "foo";
|
| - o.data = buildUnnamed2325();
|
| - o.message = "foo";
|
| - }
|
| - buildCounterRoutersScopedListWarning--;
|
| +buildUnnamed2106() {
|
| + var o = new core.List<api.RouterInterface>();
|
| + o.add(buildRouterInterface());
|
| + o.add(buildRouterInterface());
|
| return o;
|
| }
|
|
|
| -checkRoutersScopedListWarning(api.RoutersScopedListWarning o) {
|
| - buildCounterRoutersScopedListWarning++;
|
| - if (buildCounterRoutersScopedListWarning < 3) {
|
| - unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2325(o.data);
|
| - unittest.expect(o.message, unittest.equals('foo'));
|
| - }
|
| - buildCounterRoutersScopedListWarning--;
|
| +checkUnnamed2106(core.List<api.RouterInterface> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkRouterInterface(o[0]);
|
| + checkRouterInterface(o[1]);
|
| }
|
|
|
| -core.int buildCounterRoutersScopedList = 0;
|
| -buildRoutersScopedList() {
|
| - var o = new api.RoutersScopedList();
|
| - buildCounterRoutersScopedList++;
|
| - if (buildCounterRoutersScopedList < 3) {
|
| - o.routers = buildUnnamed2324();
|
| - o.warning = buildRoutersScopedListWarning();
|
| +core.int buildCounterRouter = 0;
|
| +buildRouter() {
|
| + var o = new api.Router();
|
| + buildCounterRouter++;
|
| + if (buildCounterRouter < 3) {
|
| + o.bgp = buildRouterBgp();
|
| + o.bgpPeers = buildUnnamed2105();
|
| + o.creationTimestamp = "foo";
|
| + o.description = "foo";
|
| + o.id = "foo";
|
| + o.interfaces = buildUnnamed2106();
|
| + o.kind = "foo";
|
| + o.name = "foo";
|
| + o.network = "foo";
|
| + o.region = "foo";
|
| + o.selfLink = "foo";
|
| }
|
| - buildCounterRoutersScopedList--;
|
| + buildCounterRouter--;
|
| return o;
|
| }
|
|
|
| -checkRoutersScopedList(api.RoutersScopedList o) {
|
| - buildCounterRoutersScopedList++;
|
| - if (buildCounterRoutersScopedList < 3) {
|
| - checkUnnamed2324(o.routers);
|
| - checkRoutersScopedListWarning(o.warning);
|
| +checkRouter(api.Router o) {
|
| + buildCounterRouter++;
|
| + if (buildCounterRouter < 3) {
|
| + checkRouterBgp(o.bgp);
|
| + checkUnnamed2105(o.bgpPeers);
|
| + unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2106(o.interfaces);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.network, unittest.equals('foo'));
|
| + unittest.expect(o.region, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterRoutersScopedList--;
|
| + buildCounterRouter--;
|
| }
|
|
|
| -core.int buildCounterSSLHealthCheck = 0;
|
| -buildSSLHealthCheck() {
|
| - var o = new api.SSLHealthCheck();
|
| - buildCounterSSLHealthCheck++;
|
| - if (buildCounterSSLHealthCheck < 3) {
|
| - o.port = 42;
|
| - o.portName = "foo";
|
| - o.proxyHeader = "foo";
|
| - o.request = "foo";
|
| - o.response = "foo";
|
| - }
|
| - buildCounterSSLHealthCheck--;
|
| +buildUnnamed2107() {
|
| + var o = new core.Map<core.String, api.RoutersScopedList>();
|
| + o["x"] = buildRoutersScopedList();
|
| + o["y"] = buildRoutersScopedList();
|
| return o;
|
| }
|
|
|
| -checkSSLHealthCheck(api.SSLHealthCheck o) {
|
| - buildCounterSSLHealthCheck++;
|
| - if (buildCounterSSLHealthCheck < 3) {
|
| - unittest.expect(o.port, unittest.equals(42));
|
| - unittest.expect(o.portName, unittest.equals('foo'));
|
| - unittest.expect(o.proxyHeader, unittest.equals('foo'));
|
| - unittest.expect(o.request, unittest.equals('foo'));
|
| - unittest.expect(o.response, unittest.equals('foo'));
|
| - }
|
| - buildCounterSSLHealthCheck--;
|
| -}
|
| -
|
| -core.int buildCounterScheduling = 0;
|
| -buildScheduling() {
|
| - var o = new api.Scheduling();
|
| - buildCounterScheduling++;
|
| - if (buildCounterScheduling < 3) {
|
| - o.automaticRestart = true;
|
| - o.onHostMaintenance = "foo";
|
| - o.preemptible = true;
|
| - }
|
| - buildCounterScheduling--;
|
| - return o;
|
| -}
|
| -
|
| -checkScheduling(api.Scheduling o) {
|
| - buildCounterScheduling++;
|
| - if (buildCounterScheduling < 3) {
|
| - unittest.expect(o.automaticRestart, unittest.isTrue);
|
| - unittest.expect(o.onHostMaintenance, unittest.equals('foo'));
|
| - unittest.expect(o.preemptible, unittest.isTrue);
|
| - }
|
| - buildCounterScheduling--;
|
| +checkUnnamed2107(core.Map<core.String, api.RoutersScopedList> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkRoutersScopedList(o["x"]);
|
| + checkRoutersScopedList(o["y"]);
|
| }
|
|
|
| -core.int buildCounterSerialPortOutput = 0;
|
| -buildSerialPortOutput() {
|
| - var o = new api.SerialPortOutput();
|
| - buildCounterSerialPortOutput++;
|
| - if (buildCounterSerialPortOutput < 3) {
|
| - o.contents = "foo";
|
| +core.int buildCounterRouterAggregatedList = 0;
|
| +buildRouterAggregatedList() {
|
| + var o = new api.RouterAggregatedList();
|
| + buildCounterRouterAggregatedList++;
|
| + if (buildCounterRouterAggregatedList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2107();
|
| o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterSerialPortOutput--;
|
| + buildCounterRouterAggregatedList--;
|
| return o;
|
| }
|
|
|
| -checkSerialPortOutput(api.SerialPortOutput o) {
|
| - buildCounterSerialPortOutput++;
|
| - if (buildCounterSerialPortOutput < 3) {
|
| - unittest.expect(o.contents, unittest.equals('foo'));
|
| +checkRouterAggregatedList(api.RouterAggregatedList o) {
|
| + buildCounterRouterAggregatedList++;
|
| + if (buildCounterRouterAggregatedList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2107(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterSerialPortOutput--;
|
| -}
|
| -
|
| -buildUnnamed2326() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed2326(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'));
|
| + buildCounterRouterAggregatedList--;
|
| }
|
|
|
| -core.int buildCounterServiceAccount = 0;
|
| -buildServiceAccount() {
|
| - var o = new api.ServiceAccount();
|
| - buildCounterServiceAccount++;
|
| - if (buildCounterServiceAccount < 3) {
|
| - o.email = "foo";
|
| - o.scopes = buildUnnamed2326();
|
| +core.int buildCounterRouterBgp = 0;
|
| +buildRouterBgp() {
|
| + var o = new api.RouterBgp();
|
| + buildCounterRouterBgp++;
|
| + if (buildCounterRouterBgp < 3) {
|
| + o.asn = 42;
|
| }
|
| - buildCounterServiceAccount--;
|
| + buildCounterRouterBgp--;
|
| return o;
|
| }
|
|
|
| -checkServiceAccount(api.ServiceAccount o) {
|
| - buildCounterServiceAccount++;
|
| - if (buildCounterServiceAccount < 3) {
|
| - unittest.expect(o.email, unittest.equals('foo'));
|
| - checkUnnamed2326(o.scopes);
|
| +checkRouterBgp(api.RouterBgp o) {
|
| + buildCounterRouterBgp++;
|
| + if (buildCounterRouterBgp < 3) {
|
| + unittest.expect(o.asn, unittest.equals(42));
|
| }
|
| - buildCounterServiceAccount--;
|
| + buildCounterRouterBgp--;
|
| }
|
|
|
| -buildUnnamed2327() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| +core.int buildCounterRouterBgpPeer = 0;
|
| +buildRouterBgpPeer() {
|
| + var o = new api.RouterBgpPeer();
|
| + buildCounterRouterBgpPeer++;
|
| + if (buildCounterRouterBgpPeer < 3) {
|
| + o.advertisedRoutePriority = 42;
|
| + o.interfaceName = "foo";
|
| + o.ipAddress = "foo";
|
| + o.name = "foo";
|
| + o.peerAsn = 42;
|
| + o.peerIpAddress = "foo";
|
| + }
|
| + buildCounterRouterBgpPeer--;
|
| return o;
|
| }
|
|
|
| -checkUnnamed2327(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'));
|
| +checkRouterBgpPeer(api.RouterBgpPeer o) {
|
| + buildCounterRouterBgpPeer++;
|
| + if (buildCounterRouterBgpPeer < 3) {
|
| + unittest.expect(o.advertisedRoutePriority, unittest.equals(42));
|
| + unittest.expect(o.interfaceName, unittest.equals('foo'));
|
| + unittest.expect(o.ipAddress, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.peerAsn, unittest.equals(42));
|
| + unittest.expect(o.peerIpAddress, unittest.equals('foo'));
|
| + }
|
| + buildCounterRouterBgpPeer--;
|
| }
|
|
|
| -core.int buildCounterSnapshot = 0;
|
| -buildSnapshot() {
|
| - var o = new api.Snapshot();
|
| - buildCounterSnapshot++;
|
| - if (buildCounterSnapshot < 3) {
|
| - o.creationTimestamp = "foo";
|
| - o.description = "foo";
|
| - o.diskSizeGb = "foo";
|
| - o.id = "foo";
|
| - o.kind = "foo";
|
| - o.licenses = buildUnnamed2327();
|
| +core.int buildCounterRouterInterface = 0;
|
| +buildRouterInterface() {
|
| + var o = new api.RouterInterface();
|
| + buildCounterRouterInterface++;
|
| + if (buildCounterRouterInterface < 3) {
|
| + o.ipRange = "foo";
|
| + o.linkedVpnTunnel = "foo";
|
| o.name = "foo";
|
| - o.selfLink = "foo";
|
| - o.snapshotEncryptionKey = buildCustomerEncryptionKey();
|
| - o.sourceDisk = "foo";
|
| - o.sourceDiskEncryptionKey = buildCustomerEncryptionKey();
|
| - o.sourceDiskId = "foo";
|
| - o.status = "foo";
|
| - o.storageBytes = "foo";
|
| - o.storageBytesStatus = "foo";
|
| }
|
| - buildCounterSnapshot--;
|
| + buildCounterRouterInterface--;
|
| return o;
|
| }
|
|
|
| -checkSnapshot(api.Snapshot o) {
|
| - buildCounterSnapshot++;
|
| - if (buildCounterSnapshot < 3) {
|
| - unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.diskSizeGb, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed2327(o.licenses);
|
| +checkRouterInterface(api.RouterInterface o) {
|
| + buildCounterRouterInterface++;
|
| + if (buildCounterRouterInterface < 3) {
|
| + unittest.expect(o.ipRange, unittest.equals('foo'));
|
| + unittest.expect(o.linkedVpnTunnel, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - checkCustomerEncryptionKey(o.snapshotEncryptionKey);
|
| - unittest.expect(o.sourceDisk, unittest.equals('foo'));
|
| - checkCustomerEncryptionKey(o.sourceDiskEncryptionKey);
|
| - unittest.expect(o.sourceDiskId, unittest.equals('foo'));
|
| - unittest.expect(o.status, unittest.equals('foo'));
|
| - unittest.expect(o.storageBytes, unittest.equals('foo'));
|
| - unittest.expect(o.storageBytesStatus, unittest.equals('foo'));
|
| }
|
| - buildCounterSnapshot--;
|
| + buildCounterRouterInterface--;
|
| }
|
|
|
| -buildUnnamed2328() {
|
| - var o = new core.List<api.Snapshot>();
|
| - o.add(buildSnapshot());
|
| - o.add(buildSnapshot());
|
| +buildUnnamed2108() {
|
| + var o = new core.List<api.Router>();
|
| + o.add(buildRouter());
|
| + o.add(buildRouter());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2328(core.List<api.Snapshot> o) {
|
| +checkUnnamed2108(core.List<api.Router> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkSnapshot(o[0]);
|
| - checkSnapshot(o[1]);
|
| + checkRouter(o[0]);
|
| + checkRouter(o[1]);
|
| }
|
|
|
| -core.int buildCounterSnapshotList = 0;
|
| -buildSnapshotList() {
|
| - var o = new api.SnapshotList();
|
| - buildCounterSnapshotList++;
|
| - if (buildCounterSnapshotList < 3) {
|
| +core.int buildCounterRouterList = 0;
|
| +buildRouterList() {
|
| + var o = new api.RouterList();
|
| + buildCounterRouterList++;
|
| + if (buildCounterRouterList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2328();
|
| + o.items = buildUnnamed2108();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterSnapshotList--;
|
| + buildCounterRouterList--;
|
| return o;
|
| }
|
|
|
| -checkSnapshotList(api.SnapshotList o) {
|
| - buildCounterSnapshotList++;
|
| - if (buildCounterSnapshotList < 3) {
|
| +checkRouterList(api.RouterList o) {
|
| + buildCounterRouterList++;
|
| + if (buildCounterRouterList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2328(o.items);
|
| + checkUnnamed2108(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterSnapshotList--;
|
| + buildCounterRouterList--;
|
| }
|
|
|
| -core.int buildCounterSslCertificate = 0;
|
| -buildSslCertificate() {
|
| - var o = new api.SslCertificate();
|
| - buildCounterSslCertificate++;
|
| - if (buildCounterSslCertificate < 3) {
|
| - o.certificate = "foo";
|
| - o.creationTimestamp = "foo";
|
| - o.description = "foo";
|
| - o.id = "foo";
|
| - o.kind = "foo";
|
| - o.name = "foo";
|
| - o.privateKey = "foo";
|
| - o.selfLink = "foo";
|
| - }
|
| - buildCounterSslCertificate--;
|
| +buildUnnamed2109() {
|
| + var o = new core.List<api.Route>();
|
| + o.add(buildRoute());
|
| + o.add(buildRoute());
|
| return o;
|
| }
|
|
|
| -checkSslCertificate(api.SslCertificate o) {
|
| - buildCounterSslCertificate++;
|
| - if (buildCounterSslCertificate < 3) {
|
| - unittest.expect(o.certificate, unittest.equals('foo'));
|
| - unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.privateKey, unittest.equals('foo'));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - }
|
| - buildCounterSslCertificate--;
|
| +checkUnnamed2109(core.List<api.Route> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkRoute(o[0]);
|
| + checkRoute(o[1]);
|
| }
|
|
|
| -buildUnnamed2329() {
|
| - var o = new core.List<api.SslCertificate>();
|
| - o.add(buildSslCertificate());
|
| - o.add(buildSslCertificate());
|
| +buildUnnamed2110() {
|
| + var o = new core.List<api.RouterStatusBgpPeerStatus>();
|
| + o.add(buildRouterStatusBgpPeerStatus());
|
| + o.add(buildRouterStatusBgpPeerStatus());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2329(core.List<api.SslCertificate> o) {
|
| +checkUnnamed2110(core.List<api.RouterStatusBgpPeerStatus> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkSslCertificate(o[0]);
|
| - checkSslCertificate(o[1]);
|
| + checkRouterStatusBgpPeerStatus(o[0]);
|
| + checkRouterStatusBgpPeerStatus(o[1]);
|
| }
|
|
|
| -core.int buildCounterSslCertificateList = 0;
|
| -buildSslCertificateList() {
|
| - var o = new api.SslCertificateList();
|
| - buildCounterSslCertificateList++;
|
| - if (buildCounterSslCertificateList < 3) {
|
| - o.id = "foo";
|
| - o.items = buildUnnamed2329();
|
| - o.kind = "foo";
|
| - o.nextPageToken = "foo";
|
| - o.selfLink = "foo";
|
| - }
|
| - buildCounterSslCertificateList--;
|
| - return o;
|
| -}
|
| -
|
| -checkSslCertificateList(api.SslCertificateList o) {
|
| - buildCounterSslCertificateList++;
|
| - if (buildCounterSslCertificateList < 3) {
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2329(o.items);
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - }
|
| - buildCounterSslCertificateList--;
|
| -}
|
| -
|
| -core.int buildCounterSubnetwork = 0;
|
| -buildSubnetwork() {
|
| - var o = new api.Subnetwork();
|
| - buildCounterSubnetwork++;
|
| - if (buildCounterSubnetwork < 3) {
|
| - o.creationTimestamp = "foo";
|
| - o.description = "foo";
|
| - o.gatewayAddress = "foo";
|
| - o.id = "foo";
|
| - o.ipCidrRange = "foo";
|
| - o.kind = "foo";
|
| - o.name = "foo";
|
| +core.int buildCounterRouterStatus = 0;
|
| +buildRouterStatus() {
|
| + var o = new api.RouterStatus();
|
| + buildCounterRouterStatus++;
|
| + if (buildCounterRouterStatus < 3) {
|
| + o.bestRoutes = buildUnnamed2109();
|
| + o.bgpPeerStatus = buildUnnamed2110();
|
| o.network = "foo";
|
| - o.region = "foo";
|
| - o.selfLink = "foo";
|
| }
|
| - buildCounterSubnetwork--;
|
| + buildCounterRouterStatus--;
|
| return o;
|
| }
|
|
|
| -checkSubnetwork(api.Subnetwork o) {
|
| - buildCounterSubnetwork++;
|
| - if (buildCounterSubnetwork < 3) {
|
| - unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.gatewayAddress, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.ipCidrRange, unittest.equals('foo'));
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| +checkRouterStatus(api.RouterStatus o) {
|
| + buildCounterRouterStatus++;
|
| + if (buildCounterRouterStatus < 3) {
|
| + checkUnnamed2109(o.bestRoutes);
|
| + checkUnnamed2110(o.bgpPeerStatus);
|
| unittest.expect(o.network, unittest.equals('foo'));
|
| - unittest.expect(o.region, unittest.equals('foo'));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterSubnetwork--;
|
| + buildCounterRouterStatus--;
|
| }
|
|
|
| -buildUnnamed2330() {
|
| - var o = new core.Map<core.String, api.SubnetworksScopedList>();
|
| - o["x"] = buildSubnetworksScopedList();
|
| - o["y"] = buildSubnetworksScopedList();
|
| +buildUnnamed2111() {
|
| + var o = new core.List<api.Route>();
|
| + o.add(buildRoute());
|
| + o.add(buildRoute());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2330(core.Map<core.String, api.SubnetworksScopedList> o) {
|
| +checkUnnamed2111(core.List<api.Route> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkSubnetworksScopedList(o["x"]);
|
| - checkSubnetworksScopedList(o["y"]);
|
| + checkRoute(o[0]);
|
| + checkRoute(o[1]);
|
| }
|
|
|
| -core.int buildCounterSubnetworkAggregatedList = 0;
|
| -buildSubnetworkAggregatedList() {
|
| - var o = new api.SubnetworkAggregatedList();
|
| - buildCounterSubnetworkAggregatedList++;
|
| - if (buildCounterSubnetworkAggregatedList < 3) {
|
| - o.id = "foo";
|
| - o.items = buildUnnamed2330();
|
| - o.kind = "foo";
|
| - o.nextPageToken = "foo";
|
| - o.selfLink = "foo";
|
| +core.int buildCounterRouterStatusBgpPeerStatus = 0;
|
| +buildRouterStatusBgpPeerStatus() {
|
| + var o = new api.RouterStatusBgpPeerStatus();
|
| + buildCounterRouterStatusBgpPeerStatus++;
|
| + if (buildCounterRouterStatusBgpPeerStatus < 3) {
|
| + o.advertisedRoutes = buildUnnamed2111();
|
| + o.ipAddress = "foo";
|
| + o.linkedVpnTunnel = "foo";
|
| + o.name = "foo";
|
| + o.numLearnedRoutes = 42;
|
| + o.peerIpAddress = "foo";
|
| + o.state = "foo";
|
| + o.status = "foo";
|
| + o.uptime = "foo";
|
| + o.uptimeSeconds = "foo";
|
| }
|
| - buildCounterSubnetworkAggregatedList--;
|
| + buildCounterRouterStatusBgpPeerStatus--;
|
| return o;
|
| }
|
|
|
| -checkSubnetworkAggregatedList(api.SubnetworkAggregatedList o) {
|
| - buildCounterSubnetworkAggregatedList++;
|
| - if (buildCounterSubnetworkAggregatedList < 3) {
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2330(o.items);
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| +checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) {
|
| + buildCounterRouterStatusBgpPeerStatus++;
|
| + if (buildCounterRouterStatusBgpPeerStatus < 3) {
|
| + checkUnnamed2111(o.advertisedRoutes);
|
| + unittest.expect(o.ipAddress, unittest.equals('foo'));
|
| + unittest.expect(o.linkedVpnTunnel, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.numLearnedRoutes, unittest.equals(42));
|
| + unittest.expect(o.peerIpAddress, unittest.equals('foo'));
|
| + unittest.expect(o.state, unittest.equals('foo'));
|
| + unittest.expect(o.status, unittest.equals('foo'));
|
| + unittest.expect(o.uptime, unittest.equals('foo'));
|
| + unittest.expect(o.uptimeSeconds, unittest.equals('foo'));
|
| }
|
| - buildCounterSubnetworkAggregatedList--;
|
| -}
|
| -
|
| -buildUnnamed2331() {
|
| - var o = new core.List<api.Subnetwork>();
|
| - o.add(buildSubnetwork());
|
| - o.add(buildSubnetwork());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed2331(core.List<api.Subnetwork> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkSubnetwork(o[0]);
|
| - checkSubnetwork(o[1]);
|
| + buildCounterRouterStatusBgpPeerStatus--;
|
| }
|
|
|
| -core.int buildCounterSubnetworkList = 0;
|
| -buildSubnetworkList() {
|
| - var o = new api.SubnetworkList();
|
| - buildCounterSubnetworkList++;
|
| - if (buildCounterSubnetworkList < 3) {
|
| - o.id = "foo";
|
| - o.items = buildUnnamed2331();
|
| +core.int buildCounterRouterStatusResponse = 0;
|
| +buildRouterStatusResponse() {
|
| + var o = new api.RouterStatusResponse();
|
| + buildCounterRouterStatusResponse++;
|
| + if (buildCounterRouterStatusResponse < 3) {
|
| o.kind = "foo";
|
| - o.nextPageToken = "foo";
|
| - o.selfLink = "foo";
|
| + o.result = buildRouterStatus();
|
| }
|
| - buildCounterSubnetworkList--;
|
| + buildCounterRouterStatusResponse--;
|
| return o;
|
| }
|
|
|
| -checkSubnetworkList(api.SubnetworkList o) {
|
| - buildCounterSubnetworkList++;
|
| - if (buildCounterSubnetworkList < 3) {
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2331(o.items);
|
| +checkRouterStatusResponse(api.RouterStatusResponse o) {
|
| + buildCounterRouterStatusResponse++;
|
| + if (buildCounterRouterStatusResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + checkRouterStatus(o.result);
|
| }
|
| - buildCounterSubnetworkList--;
|
| + buildCounterRouterStatusResponse--;
|
| }
|
|
|
| -core.int buildCounterSubnetworksExpandIpCidrRangeRequest = 0;
|
| -buildSubnetworksExpandIpCidrRangeRequest() {
|
| - var o = new api.SubnetworksExpandIpCidrRangeRequest();
|
| - buildCounterSubnetworksExpandIpCidrRangeRequest++;
|
| - if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) {
|
| - o.ipCidrRange = "foo";
|
| +core.int buildCounterRoutersPreviewResponse = 0;
|
| +buildRoutersPreviewResponse() {
|
| + var o = new api.RoutersPreviewResponse();
|
| + buildCounterRoutersPreviewResponse++;
|
| + if (buildCounterRoutersPreviewResponse < 3) {
|
| + o.resource = buildRouter();
|
| }
|
| - buildCounterSubnetworksExpandIpCidrRangeRequest--;
|
| + buildCounterRoutersPreviewResponse--;
|
| return o;
|
| }
|
|
|
| -checkSubnetworksExpandIpCidrRangeRequest(api.SubnetworksExpandIpCidrRangeRequest o) {
|
| - buildCounterSubnetworksExpandIpCidrRangeRequest++;
|
| - if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) {
|
| - unittest.expect(o.ipCidrRange, unittest.equals('foo'));
|
| +checkRoutersPreviewResponse(api.RoutersPreviewResponse o) {
|
| + buildCounterRoutersPreviewResponse++;
|
| + if (buildCounterRoutersPreviewResponse < 3) {
|
| + checkRouter(o.resource);
|
| }
|
| - buildCounterSubnetworksExpandIpCidrRangeRequest--;
|
| + buildCounterRoutersPreviewResponse--;
|
| }
|
|
|
| -buildUnnamed2332() {
|
| - var o = new core.List<api.Subnetwork>();
|
| - o.add(buildSubnetwork());
|
| - o.add(buildSubnetwork());
|
| +buildUnnamed2112() {
|
| + var o = new core.List<api.Router>();
|
| + o.add(buildRouter());
|
| + o.add(buildRouter());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2332(core.List<api.Subnetwork> o) {
|
| +checkUnnamed2112(core.List<api.Router> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkSubnetwork(o[0]);
|
| - checkSubnetwork(o[1]);
|
| + checkRouter(o[0]);
|
| + checkRouter(o[1]);
|
| }
|
|
|
| -core.int buildCounterSubnetworksScopedListWarningData = 0;
|
| -buildSubnetworksScopedListWarningData() {
|
| - var o = new api.SubnetworksScopedListWarningData();
|
| - buildCounterSubnetworksScopedListWarningData++;
|
| - if (buildCounterSubnetworksScopedListWarningData < 3) {
|
| +core.int buildCounterRoutersScopedListWarningData = 0;
|
| +buildRoutersScopedListWarningData() {
|
| + var o = new api.RoutersScopedListWarningData();
|
| + buildCounterRoutersScopedListWarningData++;
|
| + if (buildCounterRoutersScopedListWarningData < 3) {
|
| o.key = "foo";
|
| o.value = "foo";
|
| }
|
| - buildCounterSubnetworksScopedListWarningData--;
|
| + buildCounterRoutersScopedListWarningData--;
|
| return o;
|
| }
|
|
|
| -checkSubnetworksScopedListWarningData(api.SubnetworksScopedListWarningData o) {
|
| - buildCounterSubnetworksScopedListWarningData++;
|
| - if (buildCounterSubnetworksScopedListWarningData < 3) {
|
| +checkRoutersScopedListWarningData(api.RoutersScopedListWarningData o) {
|
| + buildCounterRoutersScopedListWarningData++;
|
| + if (buildCounterRoutersScopedListWarningData < 3) {
|
| unittest.expect(o.key, unittest.equals('foo'));
|
| unittest.expect(o.value, unittest.equals('foo'));
|
| }
|
| - buildCounterSubnetworksScopedListWarningData--;
|
| + buildCounterRoutersScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2333() {
|
| - var o = new core.List<api.SubnetworksScopedListWarningData>();
|
| - o.add(buildSubnetworksScopedListWarningData());
|
| - o.add(buildSubnetworksScopedListWarningData());
|
| +buildUnnamed2113() {
|
| + var o = new core.List<api.RoutersScopedListWarningData>();
|
| + o.add(buildRoutersScopedListWarningData());
|
| + o.add(buildRoutersScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2333(core.List<api.SubnetworksScopedListWarningData> o) {
|
| +checkUnnamed2113(core.List<api.RoutersScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkSubnetworksScopedListWarningData(o[0]);
|
| - checkSubnetworksScopedListWarningData(o[1]);
|
| + checkRoutersScopedListWarningData(o[0]);
|
| + checkRoutersScopedListWarningData(o[1]);
|
| }
|
|
|
| -core.int buildCounterSubnetworksScopedListWarning = 0;
|
| -buildSubnetworksScopedListWarning() {
|
| - var o = new api.SubnetworksScopedListWarning();
|
| - buildCounterSubnetworksScopedListWarning++;
|
| - if (buildCounterSubnetworksScopedListWarning < 3) {
|
| +core.int buildCounterRoutersScopedListWarning = 0;
|
| +buildRoutersScopedListWarning() {
|
| + var o = new api.RoutersScopedListWarning();
|
| + buildCounterRoutersScopedListWarning++;
|
| + if (buildCounterRoutersScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2333();
|
| + o.data = buildUnnamed2113();
|
| o.message = "foo";
|
| }
|
| - buildCounterSubnetworksScopedListWarning--;
|
| + buildCounterRoutersScopedListWarning--;
|
| return o;
|
| }
|
|
|
| -checkSubnetworksScopedListWarning(api.SubnetworksScopedListWarning o) {
|
| - buildCounterSubnetworksScopedListWarning++;
|
| - if (buildCounterSubnetworksScopedListWarning < 3) {
|
| +checkRoutersScopedListWarning(api.RoutersScopedListWarning o) {
|
| + buildCounterRoutersScopedListWarning++;
|
| + if (buildCounterRoutersScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2333(o.data);
|
| + checkUnnamed2113(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| - buildCounterSubnetworksScopedListWarning--;
|
| + buildCounterRoutersScopedListWarning--;
|
| }
|
|
|
| -core.int buildCounterSubnetworksScopedList = 0;
|
| -buildSubnetworksScopedList() {
|
| - var o = new api.SubnetworksScopedList();
|
| - buildCounterSubnetworksScopedList++;
|
| - if (buildCounterSubnetworksScopedList < 3) {
|
| - o.subnetworks = buildUnnamed2332();
|
| - o.warning = buildSubnetworksScopedListWarning();
|
| +core.int buildCounterRoutersScopedList = 0;
|
| +buildRoutersScopedList() {
|
| + var o = new api.RoutersScopedList();
|
| + buildCounterRoutersScopedList++;
|
| + if (buildCounterRoutersScopedList < 3) {
|
| + o.routers = buildUnnamed2112();
|
| + o.warning = buildRoutersScopedListWarning();
|
| }
|
| - buildCounterSubnetworksScopedList--;
|
| + buildCounterRoutersScopedList--;
|
| return o;
|
| }
|
|
|
| -checkSubnetworksScopedList(api.SubnetworksScopedList o) {
|
| - buildCounterSubnetworksScopedList++;
|
| - if (buildCounterSubnetworksScopedList < 3) {
|
| - checkUnnamed2332(o.subnetworks);
|
| - checkSubnetworksScopedListWarning(o.warning);
|
| +checkRoutersScopedList(api.RoutersScopedList o) {
|
| + buildCounterRoutersScopedList++;
|
| + if (buildCounterRoutersScopedList < 3) {
|
| + checkUnnamed2112(o.routers);
|
| + checkRoutersScopedListWarning(o.warning);
|
| }
|
| - buildCounterSubnetworksScopedList--;
|
| + buildCounterRoutersScopedList--;
|
| }
|
|
|
| -core.int buildCounterTCPHealthCheck = 0;
|
| -buildTCPHealthCheck() {
|
| - var o = new api.TCPHealthCheck();
|
| - buildCounterTCPHealthCheck++;
|
| - if (buildCounterTCPHealthCheck < 3) {
|
| +core.int buildCounterSSLHealthCheck = 0;
|
| +buildSSLHealthCheck() {
|
| + var o = new api.SSLHealthCheck();
|
| + buildCounterSSLHealthCheck++;
|
| + if (buildCounterSSLHealthCheck < 3) {
|
| o.port = 42;
|
| o.portName = "foo";
|
| o.proxyHeader = "foo";
|
| o.request = "foo";
|
| o.response = "foo";
|
| }
|
| - buildCounterTCPHealthCheck--;
|
| + buildCounterSSLHealthCheck--;
|
| return o;
|
| }
|
|
|
| -checkTCPHealthCheck(api.TCPHealthCheck o) {
|
| - buildCounterTCPHealthCheck++;
|
| - if (buildCounterTCPHealthCheck < 3) {
|
| +checkSSLHealthCheck(api.SSLHealthCheck o) {
|
| + buildCounterSSLHealthCheck++;
|
| + if (buildCounterSSLHealthCheck < 3) {
|
| unittest.expect(o.port, unittest.equals(42));
|
| unittest.expect(o.portName, unittest.equals('foo'));
|
| unittest.expect(o.proxyHeader, unittest.equals('foo'));
|
| unittest.expect(o.request, unittest.equals('foo'));
|
| unittest.expect(o.response, unittest.equals('foo'));
|
| }
|
| - buildCounterTCPHealthCheck--;
|
| -}
|
| -
|
| -buildUnnamed2334() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed2334(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 buildCounterTags = 0;
|
| -buildTags() {
|
| - var o = new api.Tags();
|
| - buildCounterTags++;
|
| - if (buildCounterTags < 3) {
|
| - o.fingerprint = "foo";
|
| - o.items = buildUnnamed2334();
|
| - }
|
| - buildCounterTags--;
|
| - return o;
|
| -}
|
| -
|
| -checkTags(api.Tags o) {
|
| - buildCounterTags++;
|
| - if (buildCounterTags < 3) {
|
| - unittest.expect(o.fingerprint, unittest.equals('foo'));
|
| - checkUnnamed2334(o.items);
|
| - }
|
| - buildCounterTags--;
|
| + buildCounterSSLHealthCheck--;
|
| }
|
|
|
| -core.int buildCounterTargetHttpProxy = 0;
|
| -buildTargetHttpProxy() {
|
| - var o = new api.TargetHttpProxy();
|
| - buildCounterTargetHttpProxy++;
|
| - if (buildCounterTargetHttpProxy < 3) {
|
| - o.creationTimestamp = "foo";
|
| - o.description = "foo";
|
| - o.id = "foo";
|
| - o.kind = "foo";
|
| - o.name = "foo";
|
| - o.selfLink = "foo";
|
| - o.urlMap = "foo";
|
| +core.int buildCounterScheduling = 0;
|
| +buildScheduling() {
|
| + var o = new api.Scheduling();
|
| + buildCounterScheduling++;
|
| + if (buildCounterScheduling < 3) {
|
| + o.automaticRestart = true;
|
| + o.onHostMaintenance = "foo";
|
| + o.preemptible = true;
|
| }
|
| - buildCounterTargetHttpProxy--;
|
| + buildCounterScheduling--;
|
| return o;
|
| }
|
|
|
| -checkTargetHttpProxy(api.TargetHttpProxy o) {
|
| - buildCounterTargetHttpProxy++;
|
| - if (buildCounterTargetHttpProxy < 3) {
|
| - unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - unittest.expect(o.urlMap, unittest.equals('foo'));
|
| +checkScheduling(api.Scheduling o) {
|
| + buildCounterScheduling++;
|
| + if (buildCounterScheduling < 3) {
|
| + unittest.expect(o.automaticRestart, unittest.isTrue);
|
| + unittest.expect(o.onHostMaintenance, unittest.equals('foo'));
|
| + unittest.expect(o.preemptible, unittest.isTrue);
|
| }
|
| - buildCounterTargetHttpProxy--;
|
| -}
|
| -
|
| -buildUnnamed2335() {
|
| - var o = new core.List<api.TargetHttpProxy>();
|
| - o.add(buildTargetHttpProxy());
|
| - o.add(buildTargetHttpProxy());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed2335(core.List<api.TargetHttpProxy> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetHttpProxy(o[0]);
|
| - checkTargetHttpProxy(o[1]);
|
| + buildCounterScheduling--;
|
| }
|
|
|
| -core.int buildCounterTargetHttpProxyList = 0;
|
| -buildTargetHttpProxyList() {
|
| - var o = new api.TargetHttpProxyList();
|
| - buildCounterTargetHttpProxyList++;
|
| - if (buildCounterTargetHttpProxyList < 3) {
|
| - o.id = "foo";
|
| - o.items = buildUnnamed2335();
|
| +core.int buildCounterSerialPortOutput = 0;
|
| +buildSerialPortOutput() {
|
| + var o = new api.SerialPortOutput();
|
| + buildCounterSerialPortOutput++;
|
| + if (buildCounterSerialPortOutput < 3) {
|
| + o.contents = "foo";
|
| o.kind = "foo";
|
| - o.nextPageToken = "foo";
|
| + o.next = "foo";
|
| o.selfLink = "foo";
|
| + o.start = "foo";
|
| }
|
| - buildCounterTargetHttpProxyList--;
|
| + buildCounterSerialPortOutput--;
|
| return o;
|
| }
|
|
|
| -checkTargetHttpProxyList(api.TargetHttpProxyList o) {
|
| - buildCounterTargetHttpProxyList++;
|
| - if (buildCounterTargetHttpProxyList < 3) {
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2335(o.items);
|
| +checkSerialPortOutput(api.SerialPortOutput o) {
|
| + buildCounterSerialPortOutput++;
|
| + if (buildCounterSerialPortOutput < 3) {
|
| + unittest.expect(o.contents, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.next, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + unittest.expect(o.start, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetHttpProxyList--;
|
| + buildCounterSerialPortOutput--;
|
| }
|
|
|
| -buildUnnamed2336() {
|
| +buildUnnamed2114() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2336(core.List<core.String> o) {
|
| +checkUnnamed2114(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 buildCounterTargetHttpsProxiesSetSslCertificatesRequest = 0;
|
| -buildTargetHttpsProxiesSetSslCertificatesRequest() {
|
| - var o = new api.TargetHttpsProxiesSetSslCertificatesRequest();
|
| - buildCounterTargetHttpsProxiesSetSslCertificatesRequest++;
|
| - if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) {
|
| - o.sslCertificates = buildUnnamed2336();
|
| +core.int buildCounterServiceAccount = 0;
|
| +buildServiceAccount() {
|
| + var o = new api.ServiceAccount();
|
| + buildCounterServiceAccount++;
|
| + if (buildCounterServiceAccount < 3) {
|
| + o.email = "foo";
|
| + o.scopes = buildUnnamed2114();
|
| }
|
| - buildCounterTargetHttpsProxiesSetSslCertificatesRequest--;
|
| + buildCounterServiceAccount--;
|
| return o;
|
| }
|
|
|
| -checkTargetHttpsProxiesSetSslCertificatesRequest(api.TargetHttpsProxiesSetSslCertificatesRequest o) {
|
| - buildCounterTargetHttpsProxiesSetSslCertificatesRequest++;
|
| - if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) {
|
| - checkUnnamed2336(o.sslCertificates);
|
| +checkServiceAccount(api.ServiceAccount o) {
|
| + buildCounterServiceAccount++;
|
| + if (buildCounterServiceAccount < 3) {
|
| + unittest.expect(o.email, unittest.equals('foo'));
|
| + checkUnnamed2114(o.scopes);
|
| }
|
| - buildCounterTargetHttpsProxiesSetSslCertificatesRequest--;
|
| + buildCounterServiceAccount--;
|
| }
|
|
|
| -buildUnnamed2337() {
|
| +buildUnnamed2115() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2337(core.List<core.String> o) {
|
| +checkUnnamed2115(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 buildCounterTargetHttpsProxy = 0;
|
| -buildTargetHttpsProxy() {
|
| - var o = new api.TargetHttpsProxy();
|
| - buildCounterTargetHttpsProxy++;
|
| - if (buildCounterTargetHttpsProxy < 3) {
|
| +core.int buildCounterSnapshot = 0;
|
| +buildSnapshot() {
|
| + var o = new api.Snapshot();
|
| + buildCounterSnapshot++;
|
| + if (buildCounterSnapshot < 3) {
|
| o.creationTimestamp = "foo";
|
| o.description = "foo";
|
| + o.diskSizeGb = "foo";
|
| o.id = "foo";
|
| o.kind = "foo";
|
| + o.licenses = buildUnnamed2115();
|
| o.name = "foo";
|
| o.selfLink = "foo";
|
| - o.sslCertificates = buildUnnamed2337();
|
| - o.urlMap = "foo";
|
| + o.snapshotEncryptionKey = buildCustomerEncryptionKey();
|
| + o.sourceDisk = "foo";
|
| + o.sourceDiskEncryptionKey = buildCustomerEncryptionKey();
|
| + o.sourceDiskId = "foo";
|
| + o.status = "foo";
|
| + o.storageBytes = "foo";
|
| + o.storageBytesStatus = "foo";
|
| }
|
| - buildCounterTargetHttpsProxy--;
|
| + buildCounterSnapshot--;
|
| return o;
|
| }
|
|
|
| -checkTargetHttpsProxy(api.TargetHttpsProxy o) {
|
| - buildCounterTargetHttpsProxy++;
|
| - if (buildCounterTargetHttpsProxy < 3) {
|
| +checkSnapshot(api.Snapshot o) {
|
| + buildCounterSnapshot++;
|
| + if (buildCounterSnapshot < 3) {
|
| unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.diskSizeGb, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| + checkUnnamed2115(o.licenses);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - checkUnnamed2337(o.sslCertificates);
|
| - unittest.expect(o.urlMap, unittest.equals('foo'));
|
| + checkCustomerEncryptionKey(o.snapshotEncryptionKey);
|
| + unittest.expect(o.sourceDisk, unittest.equals('foo'));
|
| + checkCustomerEncryptionKey(o.sourceDiskEncryptionKey);
|
| + unittest.expect(o.sourceDiskId, unittest.equals('foo'));
|
| + unittest.expect(o.status, unittest.equals('foo'));
|
| + unittest.expect(o.storageBytes, unittest.equals('foo'));
|
| + unittest.expect(o.storageBytesStatus, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetHttpsProxy--;
|
| + buildCounterSnapshot--;
|
| }
|
|
|
| -buildUnnamed2338() {
|
| - var o = new core.List<api.TargetHttpsProxy>();
|
| - o.add(buildTargetHttpsProxy());
|
| - o.add(buildTargetHttpsProxy());
|
| +buildUnnamed2116() {
|
| + var o = new core.List<api.Snapshot>();
|
| + o.add(buildSnapshot());
|
| + o.add(buildSnapshot());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2338(core.List<api.TargetHttpsProxy> o) {
|
| +checkUnnamed2116(core.List<api.Snapshot> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetHttpsProxy(o[0]);
|
| - checkTargetHttpsProxy(o[1]);
|
| + checkSnapshot(o[0]);
|
| + checkSnapshot(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetHttpsProxyList = 0;
|
| -buildTargetHttpsProxyList() {
|
| - var o = new api.TargetHttpsProxyList();
|
| - buildCounterTargetHttpsProxyList++;
|
| - if (buildCounterTargetHttpsProxyList < 3) {
|
| +core.int buildCounterSnapshotList = 0;
|
| +buildSnapshotList() {
|
| + var o = new api.SnapshotList();
|
| + buildCounterSnapshotList++;
|
| + if (buildCounterSnapshotList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2338();
|
| + o.items = buildUnnamed2116();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterTargetHttpsProxyList--;
|
| + buildCounterSnapshotList--;
|
| return o;
|
| }
|
|
|
| -checkTargetHttpsProxyList(api.TargetHttpsProxyList o) {
|
| - buildCounterTargetHttpsProxyList++;
|
| - if (buildCounterTargetHttpsProxyList < 3) {
|
| +checkSnapshotList(api.SnapshotList o) {
|
| + buildCounterSnapshotList++;
|
| + if (buildCounterSnapshotList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2338(o.items);
|
| + checkUnnamed2116(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetHttpsProxyList--;
|
| + buildCounterSnapshotList--;
|
| }
|
|
|
| -core.int buildCounterTargetInstance = 0;
|
| -buildTargetInstance() {
|
| - var o = new api.TargetInstance();
|
| - buildCounterTargetInstance++;
|
| - if (buildCounterTargetInstance < 3) {
|
| +core.int buildCounterSslCertificate = 0;
|
| +buildSslCertificate() {
|
| + var o = new api.SslCertificate();
|
| + buildCounterSslCertificate++;
|
| + if (buildCounterSslCertificate < 3) {
|
| + o.certificate = "foo";
|
| o.creationTimestamp = "foo";
|
| o.description = "foo";
|
| o.id = "foo";
|
| - o.instance = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.natPolicy = "foo";
|
| + o.privateKey = "foo";
|
| o.selfLink = "foo";
|
| - o.zone = "foo";
|
| }
|
| - buildCounterTargetInstance--;
|
| + buildCounterSslCertificate--;
|
| return o;
|
| }
|
|
|
| -checkTargetInstance(api.TargetInstance o) {
|
| - buildCounterTargetInstance++;
|
| - if (buildCounterTargetInstance < 3) {
|
| +checkSslCertificate(api.SslCertificate o) {
|
| + buildCounterSslCertificate++;
|
| + if (buildCounterSslCertificate < 3) {
|
| + unittest.expect(o.certificate, unittest.equals('foo'));
|
| unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.instance, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.natPolicy, unittest.equals('foo'));
|
| + unittest.expect(o.privateKey, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - unittest.expect(o.zone, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetInstance--;
|
| + buildCounterSslCertificate--;
|
| }
|
|
|
| -buildUnnamed2339() {
|
| - var o = new core.Map<core.String, api.TargetInstancesScopedList>();
|
| - o["x"] = buildTargetInstancesScopedList();
|
| - o["y"] = buildTargetInstancesScopedList();
|
| +buildUnnamed2117() {
|
| + var o = new core.List<api.SslCertificate>();
|
| + o.add(buildSslCertificate());
|
| + o.add(buildSslCertificate());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2339(core.Map<core.String, api.TargetInstancesScopedList> o) {
|
| +checkUnnamed2117(core.List<api.SslCertificate> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetInstancesScopedList(o["x"]);
|
| - checkTargetInstancesScopedList(o["y"]);
|
| + checkSslCertificate(o[0]);
|
| + checkSslCertificate(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetInstanceAggregatedList = 0;
|
| -buildTargetInstanceAggregatedList() {
|
| - var o = new api.TargetInstanceAggregatedList();
|
| - buildCounterTargetInstanceAggregatedList++;
|
| - if (buildCounterTargetInstanceAggregatedList < 3) {
|
| +core.int buildCounterSslCertificateList = 0;
|
| +buildSslCertificateList() {
|
| + var o = new api.SslCertificateList();
|
| + buildCounterSslCertificateList++;
|
| + if (buildCounterSslCertificateList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2339();
|
| + o.items = buildUnnamed2117();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterTargetInstanceAggregatedList--;
|
| + buildCounterSslCertificateList--;
|
| return o;
|
| }
|
|
|
| -checkTargetInstanceAggregatedList(api.TargetInstanceAggregatedList o) {
|
| - buildCounterTargetInstanceAggregatedList++;
|
| - if (buildCounterTargetInstanceAggregatedList < 3) {
|
| +checkSslCertificateList(api.SslCertificateList o) {
|
| + buildCounterSslCertificateList++;
|
| + if (buildCounterSslCertificateList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2339(o.items);
|
| + checkUnnamed2117(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetInstanceAggregatedList--;
|
| + buildCounterSslCertificateList--;
|
| }
|
|
|
| -buildUnnamed2340() {
|
| - var o = new core.List<api.TargetInstance>();
|
| - o.add(buildTargetInstance());
|
| - o.add(buildTargetInstance());
|
| +core.int buildCounterSubnetwork = 0;
|
| +buildSubnetwork() {
|
| + var o = new api.Subnetwork();
|
| + buildCounterSubnetwork++;
|
| + if (buildCounterSubnetwork < 3) {
|
| + o.creationTimestamp = "foo";
|
| + o.description = "foo";
|
| + o.gatewayAddress = "foo";
|
| + o.id = "foo";
|
| + o.ipCidrRange = "foo";
|
| + o.kind = "foo";
|
| + o.name = "foo";
|
| + o.network = "foo";
|
| + o.region = "foo";
|
| + o.selfLink = "foo";
|
| + }
|
| + buildCounterSubnetwork--;
|
| + return o;
|
| +}
|
| +
|
| +checkSubnetwork(api.Subnetwork o) {
|
| + buildCounterSubnetwork++;
|
| + if (buildCounterSubnetwork < 3) {
|
| + unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.gatewayAddress, unittest.equals('foo'));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.ipCidrRange, unittest.equals('foo'));
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.network, unittest.equals('foo'));
|
| + unittest.expect(o.region, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + }
|
| + buildCounterSubnetwork--;
|
| +}
|
| +
|
| +buildUnnamed2118() {
|
| + var o = new core.Map<core.String, api.SubnetworksScopedList>();
|
| + o["x"] = buildSubnetworksScopedList();
|
| + o["y"] = buildSubnetworksScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2340(core.List<api.TargetInstance> o) {
|
| +checkUnnamed2118(core.Map<core.String, api.SubnetworksScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetInstance(o[0]);
|
| - checkTargetInstance(o[1]);
|
| + checkSubnetworksScopedList(o["x"]);
|
| + checkSubnetworksScopedList(o["y"]);
|
| }
|
|
|
| -core.int buildCounterTargetInstanceList = 0;
|
| -buildTargetInstanceList() {
|
| - var o = new api.TargetInstanceList();
|
| - buildCounterTargetInstanceList++;
|
| - if (buildCounterTargetInstanceList < 3) {
|
| +core.int buildCounterSubnetworkAggregatedList = 0;
|
| +buildSubnetworkAggregatedList() {
|
| + var o = new api.SubnetworkAggregatedList();
|
| + buildCounterSubnetworkAggregatedList++;
|
| + if (buildCounterSubnetworkAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2340();
|
| + o.items = buildUnnamed2118();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterTargetInstanceList--;
|
| + buildCounterSubnetworkAggregatedList--;
|
| return o;
|
| }
|
|
|
| -checkTargetInstanceList(api.TargetInstanceList o) {
|
| - buildCounterTargetInstanceList++;
|
| - if (buildCounterTargetInstanceList < 3) {
|
| +checkSubnetworkAggregatedList(api.SubnetworkAggregatedList o) {
|
| + buildCounterSubnetworkAggregatedList++;
|
| + if (buildCounterSubnetworkAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2340(o.items);
|
| + checkUnnamed2118(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetInstanceList--;
|
| + buildCounterSubnetworkAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2341() {
|
| - var o = new core.List<api.TargetInstance>();
|
| - o.add(buildTargetInstance());
|
| - o.add(buildTargetInstance());
|
| +buildUnnamed2119() {
|
| + var o = new core.List<api.Subnetwork>();
|
| + o.add(buildSubnetwork());
|
| + o.add(buildSubnetwork());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2341(core.List<api.TargetInstance> o) {
|
| +checkUnnamed2119(core.List<api.Subnetwork> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetInstance(o[0]);
|
| - checkTargetInstance(o[1]);
|
| + checkSubnetwork(o[0]);
|
| + checkSubnetwork(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetInstancesScopedListWarningData = 0;
|
| -buildTargetInstancesScopedListWarningData() {
|
| - var o = new api.TargetInstancesScopedListWarningData();
|
| - buildCounterTargetInstancesScopedListWarningData++;
|
| - if (buildCounterTargetInstancesScopedListWarningData < 3) {
|
| +core.int buildCounterSubnetworkList = 0;
|
| +buildSubnetworkList() {
|
| + var o = new api.SubnetworkList();
|
| + buildCounterSubnetworkList++;
|
| + if (buildCounterSubnetworkList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2119();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.selfLink = "foo";
|
| + }
|
| + buildCounterSubnetworkList--;
|
| + return o;
|
| +}
|
| +
|
| +checkSubnetworkList(api.SubnetworkList o) {
|
| + buildCounterSubnetworkList++;
|
| + if (buildCounterSubnetworkList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2119(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + }
|
| + buildCounterSubnetworkList--;
|
| +}
|
| +
|
| +core.int buildCounterSubnetworksExpandIpCidrRangeRequest = 0;
|
| +buildSubnetworksExpandIpCidrRangeRequest() {
|
| + var o = new api.SubnetworksExpandIpCidrRangeRequest();
|
| + buildCounterSubnetworksExpandIpCidrRangeRequest++;
|
| + if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) {
|
| + o.ipCidrRange = "foo";
|
| + }
|
| + buildCounterSubnetworksExpandIpCidrRangeRequest--;
|
| + return o;
|
| +}
|
| +
|
| +checkSubnetworksExpandIpCidrRangeRequest(api.SubnetworksExpandIpCidrRangeRequest o) {
|
| + buildCounterSubnetworksExpandIpCidrRangeRequest++;
|
| + if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) {
|
| + unittest.expect(o.ipCidrRange, unittest.equals('foo'));
|
| + }
|
| + buildCounterSubnetworksExpandIpCidrRangeRequest--;
|
| +}
|
| +
|
| +buildUnnamed2120() {
|
| + var o = new core.List<api.Subnetwork>();
|
| + o.add(buildSubnetwork());
|
| + o.add(buildSubnetwork());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2120(core.List<api.Subnetwork> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkSubnetwork(o[0]);
|
| + checkSubnetwork(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterSubnetworksScopedListWarningData = 0;
|
| +buildSubnetworksScopedListWarningData() {
|
| + var o = new api.SubnetworksScopedListWarningData();
|
| + buildCounterSubnetworksScopedListWarningData++;
|
| + if (buildCounterSubnetworksScopedListWarningData < 3) {
|
| o.key = "foo";
|
| o.value = "foo";
|
| }
|
| - buildCounterTargetInstancesScopedListWarningData--;
|
| + buildCounterSubnetworksScopedListWarningData--;
|
| return o;
|
| }
|
|
|
| -checkTargetInstancesScopedListWarningData(api.TargetInstancesScopedListWarningData o) {
|
| - buildCounterTargetInstancesScopedListWarningData++;
|
| - if (buildCounterTargetInstancesScopedListWarningData < 3) {
|
| +checkSubnetworksScopedListWarningData(api.SubnetworksScopedListWarningData o) {
|
| + buildCounterSubnetworksScopedListWarningData++;
|
| + if (buildCounterSubnetworksScopedListWarningData < 3) {
|
| unittest.expect(o.key, unittest.equals('foo'));
|
| unittest.expect(o.value, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetInstancesScopedListWarningData--;
|
| + buildCounterSubnetworksScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2342() {
|
| - var o = new core.List<api.TargetInstancesScopedListWarningData>();
|
| - o.add(buildTargetInstancesScopedListWarningData());
|
| - o.add(buildTargetInstancesScopedListWarningData());
|
| +buildUnnamed2121() {
|
| + var o = new core.List<api.SubnetworksScopedListWarningData>();
|
| + o.add(buildSubnetworksScopedListWarningData());
|
| + o.add(buildSubnetworksScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2342(core.List<api.TargetInstancesScopedListWarningData> o) {
|
| +checkUnnamed2121(core.List<api.SubnetworksScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetInstancesScopedListWarningData(o[0]);
|
| - checkTargetInstancesScopedListWarningData(o[1]);
|
| + checkSubnetworksScopedListWarningData(o[0]);
|
| + checkSubnetworksScopedListWarningData(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetInstancesScopedListWarning = 0;
|
| -buildTargetInstancesScopedListWarning() {
|
| - var o = new api.TargetInstancesScopedListWarning();
|
| - buildCounterTargetInstancesScopedListWarning++;
|
| - if (buildCounterTargetInstancesScopedListWarning < 3) {
|
| +core.int buildCounterSubnetworksScopedListWarning = 0;
|
| +buildSubnetworksScopedListWarning() {
|
| + var o = new api.SubnetworksScopedListWarning();
|
| + buildCounterSubnetworksScopedListWarning++;
|
| + if (buildCounterSubnetworksScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2342();
|
| + o.data = buildUnnamed2121();
|
| o.message = "foo";
|
| }
|
| - buildCounterTargetInstancesScopedListWarning--;
|
| + buildCounterSubnetworksScopedListWarning--;
|
| return o;
|
| }
|
|
|
| -checkTargetInstancesScopedListWarning(api.TargetInstancesScopedListWarning o) {
|
| - buildCounterTargetInstancesScopedListWarning++;
|
| - if (buildCounterTargetInstancesScopedListWarning < 3) {
|
| +checkSubnetworksScopedListWarning(api.SubnetworksScopedListWarning o) {
|
| + buildCounterSubnetworksScopedListWarning++;
|
| + if (buildCounterSubnetworksScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2342(o.data);
|
| + checkUnnamed2121(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetInstancesScopedListWarning--;
|
| + buildCounterSubnetworksScopedListWarning--;
|
| }
|
|
|
| -core.int buildCounterTargetInstancesScopedList = 0;
|
| -buildTargetInstancesScopedList() {
|
| - var o = new api.TargetInstancesScopedList();
|
| - buildCounterTargetInstancesScopedList++;
|
| - if (buildCounterTargetInstancesScopedList < 3) {
|
| - o.targetInstances = buildUnnamed2341();
|
| - o.warning = buildTargetInstancesScopedListWarning();
|
| +core.int buildCounterSubnetworksScopedList = 0;
|
| +buildSubnetworksScopedList() {
|
| + var o = new api.SubnetworksScopedList();
|
| + buildCounterSubnetworksScopedList++;
|
| + if (buildCounterSubnetworksScopedList < 3) {
|
| + o.subnetworks = buildUnnamed2120();
|
| + o.warning = buildSubnetworksScopedListWarning();
|
| }
|
| - buildCounterTargetInstancesScopedList--;
|
| + buildCounterSubnetworksScopedList--;
|
| return o;
|
| }
|
|
|
| -checkTargetInstancesScopedList(api.TargetInstancesScopedList o) {
|
| - buildCounterTargetInstancesScopedList++;
|
| - if (buildCounterTargetInstancesScopedList < 3) {
|
| - checkUnnamed2341(o.targetInstances);
|
| - checkTargetInstancesScopedListWarning(o.warning);
|
| +checkSubnetworksScopedList(api.SubnetworksScopedList o) {
|
| + buildCounterSubnetworksScopedList++;
|
| + if (buildCounterSubnetworksScopedList < 3) {
|
| + checkUnnamed2120(o.subnetworks);
|
| + checkSubnetworksScopedListWarning(o.warning);
|
| }
|
| - buildCounterTargetInstancesScopedList--;
|
| + buildCounterSubnetworksScopedList--;
|
| }
|
|
|
| -buildUnnamed2343() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| +core.int buildCounterTCPHealthCheck = 0;
|
| +buildTCPHealthCheck() {
|
| + var o = new api.TCPHealthCheck();
|
| + buildCounterTCPHealthCheck++;
|
| + if (buildCounterTCPHealthCheck < 3) {
|
| + o.port = 42;
|
| + o.portName = "foo";
|
| + o.proxyHeader = "foo";
|
| + o.request = "foo";
|
| + o.response = "foo";
|
| + }
|
| + buildCounterTCPHealthCheck--;
|
| return o;
|
| }
|
|
|
| -checkUnnamed2343(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'));
|
| +checkTCPHealthCheck(api.TCPHealthCheck o) {
|
| + buildCounterTCPHealthCheck++;
|
| + if (buildCounterTCPHealthCheck < 3) {
|
| + unittest.expect(o.port, unittest.equals(42));
|
| + unittest.expect(o.portName, unittest.equals('foo'));
|
| + unittest.expect(o.proxyHeader, unittest.equals('foo'));
|
| + unittest.expect(o.request, unittest.equals('foo'));
|
| + unittest.expect(o.response, unittest.equals('foo'));
|
| + }
|
| + buildCounterTCPHealthCheck--;
|
| }
|
|
|
| -buildUnnamed2344() {
|
| +buildUnnamed2122() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2344(core.List<core.String> o) {
|
| +checkUnnamed2122(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 buildCounterTargetPool = 0;
|
| -buildTargetPool() {
|
| - var o = new api.TargetPool();
|
| - buildCounterTargetPool++;
|
| - if (buildCounterTargetPool < 3) {
|
| - o.backupPool = "foo";
|
| +core.int buildCounterTags = 0;
|
| +buildTags() {
|
| + var o = new api.Tags();
|
| + buildCounterTags++;
|
| + if (buildCounterTags < 3) {
|
| + o.fingerprint = "foo";
|
| + o.items = buildUnnamed2122();
|
| + }
|
| + buildCounterTags--;
|
| + return o;
|
| +}
|
| +
|
| +checkTags(api.Tags o) {
|
| + buildCounterTags++;
|
| + if (buildCounterTags < 3) {
|
| + unittest.expect(o.fingerprint, unittest.equals('foo'));
|
| + checkUnnamed2122(o.items);
|
| + }
|
| + buildCounterTags--;
|
| +}
|
| +
|
| +core.int buildCounterTargetHttpProxy = 0;
|
| +buildTargetHttpProxy() {
|
| + var o = new api.TargetHttpProxy();
|
| + buildCounterTargetHttpProxy++;
|
| + if (buildCounterTargetHttpProxy < 3) {
|
| o.creationTimestamp = "foo";
|
| o.description = "foo";
|
| - o.failoverRatio = 42.0;
|
| - o.healthChecks = buildUnnamed2343();
|
| o.id = "foo";
|
| - o.instances = buildUnnamed2344();
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.region = "foo";
|
| o.selfLink = "foo";
|
| - o.sessionAffinity = "foo";
|
| + o.urlMap = "foo";
|
| }
|
| - buildCounterTargetPool--;
|
| + buildCounterTargetHttpProxy--;
|
| return o;
|
| }
|
|
|
| -checkTargetPool(api.TargetPool o) {
|
| - buildCounterTargetPool++;
|
| - if (buildCounterTargetPool < 3) {
|
| - unittest.expect(o.backupPool, unittest.equals('foo'));
|
| +checkTargetHttpProxy(api.TargetHttpProxy o) {
|
| + buildCounterTargetHttpProxy++;
|
| + if (buildCounterTargetHttpProxy < 3) {
|
| unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.failoverRatio, unittest.equals(42.0));
|
| - checkUnnamed2343(o.healthChecks);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2344(o.instances);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.region, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - unittest.expect(o.sessionAffinity, unittest.equals('foo'));
|
| + unittest.expect(o.urlMap, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetPool--;
|
| + buildCounterTargetHttpProxy--;
|
| }
|
|
|
| -buildUnnamed2345() {
|
| - var o = new core.Map<core.String, api.TargetPoolsScopedList>();
|
| - o["x"] = buildTargetPoolsScopedList();
|
| - o["y"] = buildTargetPoolsScopedList();
|
| +buildUnnamed2123() {
|
| + var o = new core.List<api.TargetHttpProxy>();
|
| + o.add(buildTargetHttpProxy());
|
| + o.add(buildTargetHttpProxy());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2345(core.Map<core.String, api.TargetPoolsScopedList> o) {
|
| +checkUnnamed2123(core.List<api.TargetHttpProxy> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetPoolsScopedList(o["x"]);
|
| - checkTargetPoolsScopedList(o["y"]);
|
| + checkTargetHttpProxy(o[0]);
|
| + checkTargetHttpProxy(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetPoolAggregatedList = 0;
|
| -buildTargetPoolAggregatedList() {
|
| - var o = new api.TargetPoolAggregatedList();
|
| - buildCounterTargetPoolAggregatedList++;
|
| - if (buildCounterTargetPoolAggregatedList < 3) {
|
| +core.int buildCounterTargetHttpProxyList = 0;
|
| +buildTargetHttpProxyList() {
|
| + var o = new api.TargetHttpProxyList();
|
| + buildCounterTargetHttpProxyList++;
|
| + if (buildCounterTargetHttpProxyList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2345();
|
| + o.items = buildUnnamed2123();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterTargetPoolAggregatedList--;
|
| + buildCounterTargetHttpProxyList--;
|
| return o;
|
| }
|
|
|
| -checkTargetPoolAggregatedList(api.TargetPoolAggregatedList o) {
|
| - buildCounterTargetPoolAggregatedList++;
|
| - if (buildCounterTargetPoolAggregatedList < 3) {
|
| +checkTargetHttpProxyList(api.TargetHttpProxyList o) {
|
| + buildCounterTargetHttpProxyList++;
|
| + if (buildCounterTargetHttpProxyList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2345(o.items);
|
| + checkUnnamed2123(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetPoolAggregatedList--;
|
| + buildCounterTargetHttpProxyList--;
|
| }
|
|
|
| -buildUnnamed2346() {
|
| - var o = new core.List<api.HealthStatus>();
|
| - o.add(buildHealthStatus());
|
| - o.add(buildHealthStatus());
|
| +buildUnnamed2124() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2346(core.List<api.HealthStatus> o) {
|
| +checkUnnamed2124(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkHealthStatus(o[0]);
|
| - checkHealthStatus(o[1]);
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -core.int buildCounterTargetPoolInstanceHealth = 0;
|
| -buildTargetPoolInstanceHealth() {
|
| - var o = new api.TargetPoolInstanceHealth();
|
| - buildCounterTargetPoolInstanceHealth++;
|
| - if (buildCounterTargetPoolInstanceHealth < 3) {
|
| - o.healthStatus = buildUnnamed2346();
|
| - o.kind = "foo";
|
| +core.int buildCounterTargetHttpsProxiesSetSslCertificatesRequest = 0;
|
| +buildTargetHttpsProxiesSetSslCertificatesRequest() {
|
| + var o = new api.TargetHttpsProxiesSetSslCertificatesRequest();
|
| + buildCounterTargetHttpsProxiesSetSslCertificatesRequest++;
|
| + if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) {
|
| + o.sslCertificates = buildUnnamed2124();
|
| }
|
| - buildCounterTargetPoolInstanceHealth--;
|
| + buildCounterTargetHttpsProxiesSetSslCertificatesRequest--;
|
| return o;
|
| }
|
|
|
| -checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) {
|
| - buildCounterTargetPoolInstanceHealth++;
|
| - if (buildCounterTargetPoolInstanceHealth < 3) {
|
| - checkUnnamed2346(o.healthStatus);
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| +checkTargetHttpsProxiesSetSslCertificatesRequest(api.TargetHttpsProxiesSetSslCertificatesRequest o) {
|
| + buildCounterTargetHttpsProxiesSetSslCertificatesRequest++;
|
| + if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) {
|
| + checkUnnamed2124(o.sslCertificates);
|
| }
|
| - buildCounterTargetPoolInstanceHealth--;
|
| + buildCounterTargetHttpsProxiesSetSslCertificatesRequest--;
|
| }
|
|
|
| -buildUnnamed2347() {
|
| - var o = new core.List<api.TargetPool>();
|
| - o.add(buildTargetPool());
|
| - o.add(buildTargetPool());
|
| +buildUnnamed2125() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2347(core.List<api.TargetPool> o) {
|
| +checkUnnamed2125(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetPool(o[0]);
|
| - checkTargetPool(o[1]);
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -core.int buildCounterTargetPoolList = 0;
|
| -buildTargetPoolList() {
|
| - var o = new api.TargetPoolList();
|
| - buildCounterTargetPoolList++;
|
| - if (buildCounterTargetPoolList < 3) {
|
| +core.int buildCounterTargetHttpsProxy = 0;
|
| +buildTargetHttpsProxy() {
|
| + var o = new api.TargetHttpsProxy();
|
| + buildCounterTargetHttpsProxy++;
|
| + if (buildCounterTargetHttpsProxy < 3) {
|
| + o.creationTimestamp = "foo";
|
| + o.description = "foo";
|
| o.id = "foo";
|
| - o.items = buildUnnamed2347();
|
| o.kind = "foo";
|
| - o.nextPageToken = "foo";
|
| + o.name = "foo";
|
| o.selfLink = "foo";
|
| + o.sslCertificates = buildUnnamed2125();
|
| + o.urlMap = "foo";
|
| }
|
| - buildCounterTargetPoolList--;
|
| + buildCounterTargetHttpsProxy--;
|
| return o;
|
| }
|
|
|
| -checkTargetPoolList(api.TargetPoolList o) {
|
| - buildCounterTargetPoolList++;
|
| - if (buildCounterTargetPoolList < 3) {
|
| +checkTargetHttpsProxy(api.TargetHttpsProxy o) {
|
| + buildCounterTargetHttpsProxy++;
|
| + if (buildCounterTargetHttpsProxy < 3) {
|
| + unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2347(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + checkUnnamed2125(o.sslCertificates);
|
| + unittest.expect(o.urlMap, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetPoolList--;
|
| + buildCounterTargetHttpsProxy--;
|
| }
|
|
|
| -buildUnnamed2348() {
|
| - var o = new core.List<api.HealthCheckReference>();
|
| - o.add(buildHealthCheckReference());
|
| - o.add(buildHealthCheckReference());
|
| +buildUnnamed2126() {
|
| + var o = new core.List<api.TargetHttpsProxy>();
|
| + o.add(buildTargetHttpsProxy());
|
| + o.add(buildTargetHttpsProxy());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2348(core.List<api.HealthCheckReference> o) {
|
| +checkUnnamed2126(core.List<api.TargetHttpsProxy> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkHealthCheckReference(o[0]);
|
| - checkHealthCheckReference(o[1]);
|
| + checkTargetHttpsProxy(o[0]);
|
| + checkTargetHttpsProxy(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetPoolsAddHealthCheckRequest = 0;
|
| -buildTargetPoolsAddHealthCheckRequest() {
|
| - var o = new api.TargetPoolsAddHealthCheckRequest();
|
| - buildCounterTargetPoolsAddHealthCheckRequest++;
|
| - if (buildCounterTargetPoolsAddHealthCheckRequest < 3) {
|
| - o.healthChecks = buildUnnamed2348();
|
| +core.int buildCounterTargetHttpsProxyList = 0;
|
| +buildTargetHttpsProxyList() {
|
| + var o = new api.TargetHttpsProxyList();
|
| + buildCounterTargetHttpsProxyList++;
|
| + if (buildCounterTargetHttpsProxyList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2126();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.selfLink = "foo";
|
| }
|
| - buildCounterTargetPoolsAddHealthCheckRequest--;
|
| + buildCounterTargetHttpsProxyList--;
|
| return o;
|
| }
|
|
|
| -checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) {
|
| - buildCounterTargetPoolsAddHealthCheckRequest++;
|
| - if (buildCounterTargetPoolsAddHealthCheckRequest < 3) {
|
| - checkUnnamed2348(o.healthChecks);
|
| +checkTargetHttpsProxyList(api.TargetHttpsProxyList o) {
|
| + buildCounterTargetHttpsProxyList++;
|
| + if (buildCounterTargetHttpsProxyList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2126(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetPoolsAddHealthCheckRequest--;
|
| -}
|
| -
|
| -buildUnnamed2349() {
|
| - var o = new core.List<api.InstanceReference>();
|
| - o.add(buildInstanceReference());
|
| - o.add(buildInstanceReference());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed2349(core.List<api.InstanceReference> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkInstanceReference(o[0]);
|
| - checkInstanceReference(o[1]);
|
| + buildCounterTargetHttpsProxyList--;
|
| }
|
|
|
| -core.int buildCounterTargetPoolsAddInstanceRequest = 0;
|
| -buildTargetPoolsAddInstanceRequest() {
|
| - var o = new api.TargetPoolsAddInstanceRequest();
|
| - buildCounterTargetPoolsAddInstanceRequest++;
|
| - if (buildCounterTargetPoolsAddInstanceRequest < 3) {
|
| - o.instances = buildUnnamed2349();
|
| +core.int buildCounterTargetInstance = 0;
|
| +buildTargetInstance() {
|
| + var o = new api.TargetInstance();
|
| + buildCounterTargetInstance++;
|
| + if (buildCounterTargetInstance < 3) {
|
| + o.creationTimestamp = "foo";
|
| + o.description = "foo";
|
| + o.id = "foo";
|
| + o.instance = "foo";
|
| + o.kind = "foo";
|
| + o.name = "foo";
|
| + o.natPolicy = "foo";
|
| + o.selfLink = "foo";
|
| + o.zone = "foo";
|
| }
|
| - buildCounterTargetPoolsAddInstanceRequest--;
|
| + buildCounterTargetInstance--;
|
| return o;
|
| }
|
|
|
| -checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) {
|
| - buildCounterTargetPoolsAddInstanceRequest++;
|
| - if (buildCounterTargetPoolsAddInstanceRequest < 3) {
|
| - checkUnnamed2349(o.instances);
|
| +checkTargetInstance(api.TargetInstance o) {
|
| + buildCounterTargetInstance++;
|
| + if (buildCounterTargetInstance < 3) {
|
| + unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.instance, unittest.equals('foo'));
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.natPolicy, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + unittest.expect(o.zone, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetPoolsAddInstanceRequest--;
|
| + buildCounterTargetInstance--;
|
| }
|
|
|
| -buildUnnamed2350() {
|
| - var o = new core.List<api.HealthCheckReference>();
|
| - o.add(buildHealthCheckReference());
|
| - o.add(buildHealthCheckReference());
|
| +buildUnnamed2127() {
|
| + var o = new core.Map<core.String, api.TargetInstancesScopedList>();
|
| + o["x"] = buildTargetInstancesScopedList();
|
| + o["y"] = buildTargetInstancesScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2350(core.List<api.HealthCheckReference> o) {
|
| +checkUnnamed2127(core.Map<core.String, api.TargetInstancesScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkHealthCheckReference(o[0]);
|
| - checkHealthCheckReference(o[1]);
|
| + checkTargetInstancesScopedList(o["x"]);
|
| + checkTargetInstancesScopedList(o["y"]);
|
| }
|
|
|
| -core.int buildCounterTargetPoolsRemoveHealthCheckRequest = 0;
|
| -buildTargetPoolsRemoveHealthCheckRequest() {
|
| - var o = new api.TargetPoolsRemoveHealthCheckRequest();
|
| - buildCounterTargetPoolsRemoveHealthCheckRequest++;
|
| - if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) {
|
| - o.healthChecks = buildUnnamed2350();
|
| - }
|
| - buildCounterTargetPoolsRemoveHealthCheckRequest--;
|
| - return o;
|
| +core.int buildCounterTargetInstanceAggregatedList = 0;
|
| +buildTargetInstanceAggregatedList() {
|
| + var o = new api.TargetInstanceAggregatedList();
|
| + buildCounterTargetInstanceAggregatedList++;
|
| + if (buildCounterTargetInstanceAggregatedList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2127();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.selfLink = "foo";
|
| + }
|
| + buildCounterTargetInstanceAggregatedList--;
|
| + return o;
|
| }
|
|
|
| -checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest o) {
|
| - buildCounterTargetPoolsRemoveHealthCheckRequest++;
|
| - if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) {
|
| - checkUnnamed2350(o.healthChecks);
|
| +checkTargetInstanceAggregatedList(api.TargetInstanceAggregatedList o) {
|
| + buildCounterTargetInstanceAggregatedList++;
|
| + if (buildCounterTargetInstanceAggregatedList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2127(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetPoolsRemoveHealthCheckRequest--;
|
| + buildCounterTargetInstanceAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2351() {
|
| - var o = new core.List<api.InstanceReference>();
|
| - o.add(buildInstanceReference());
|
| - o.add(buildInstanceReference());
|
| +buildUnnamed2128() {
|
| + var o = new core.List<api.TargetInstance>();
|
| + o.add(buildTargetInstance());
|
| + o.add(buildTargetInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2351(core.List<api.InstanceReference> o) {
|
| +checkUnnamed2128(core.List<api.TargetInstance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkInstanceReference(o[0]);
|
| - checkInstanceReference(o[1]);
|
| + checkTargetInstance(o[0]);
|
| + checkTargetInstance(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetPoolsRemoveInstanceRequest = 0;
|
| -buildTargetPoolsRemoveInstanceRequest() {
|
| - var o = new api.TargetPoolsRemoveInstanceRequest();
|
| - buildCounterTargetPoolsRemoveInstanceRequest++;
|
| - if (buildCounterTargetPoolsRemoveInstanceRequest < 3) {
|
| - o.instances = buildUnnamed2351();
|
| +core.int buildCounterTargetInstanceList = 0;
|
| +buildTargetInstanceList() {
|
| + var o = new api.TargetInstanceList();
|
| + buildCounterTargetInstanceList++;
|
| + if (buildCounterTargetInstanceList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2128();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.selfLink = "foo";
|
| }
|
| - buildCounterTargetPoolsRemoveInstanceRequest--;
|
| + buildCounterTargetInstanceList--;
|
| return o;
|
| }
|
|
|
| -checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) {
|
| - buildCounterTargetPoolsRemoveInstanceRequest++;
|
| - if (buildCounterTargetPoolsRemoveInstanceRequest < 3) {
|
| - checkUnnamed2351(o.instances);
|
| +checkTargetInstanceList(api.TargetInstanceList o) {
|
| + buildCounterTargetInstanceList++;
|
| + if (buildCounterTargetInstanceList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2128(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetPoolsRemoveInstanceRequest--;
|
| + buildCounterTargetInstanceList--;
|
| }
|
|
|
| -buildUnnamed2352() {
|
| - var o = new core.List<api.TargetPool>();
|
| - o.add(buildTargetPool());
|
| - o.add(buildTargetPool());
|
| +buildUnnamed2129() {
|
| + var o = new core.List<api.TargetInstance>();
|
| + o.add(buildTargetInstance());
|
| + o.add(buildTargetInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2352(core.List<api.TargetPool> o) {
|
| +checkUnnamed2129(core.List<api.TargetInstance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetPool(o[0]);
|
| - checkTargetPool(o[1]);
|
| + checkTargetInstance(o[0]);
|
| + checkTargetInstance(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetPoolsScopedListWarningData = 0;
|
| -buildTargetPoolsScopedListWarningData() {
|
| - var o = new api.TargetPoolsScopedListWarningData();
|
| - buildCounterTargetPoolsScopedListWarningData++;
|
| - if (buildCounterTargetPoolsScopedListWarningData < 3) {
|
| +core.int buildCounterTargetInstancesScopedListWarningData = 0;
|
| +buildTargetInstancesScopedListWarningData() {
|
| + var o = new api.TargetInstancesScopedListWarningData();
|
| + buildCounterTargetInstancesScopedListWarningData++;
|
| + if (buildCounterTargetInstancesScopedListWarningData < 3) {
|
| o.key = "foo";
|
| o.value = "foo";
|
| }
|
| - buildCounterTargetPoolsScopedListWarningData--;
|
| + buildCounterTargetInstancesScopedListWarningData--;
|
| return o;
|
| }
|
|
|
| -checkTargetPoolsScopedListWarningData(api.TargetPoolsScopedListWarningData o) {
|
| - buildCounterTargetPoolsScopedListWarningData++;
|
| - if (buildCounterTargetPoolsScopedListWarningData < 3) {
|
| +checkTargetInstancesScopedListWarningData(api.TargetInstancesScopedListWarningData o) {
|
| + buildCounterTargetInstancesScopedListWarningData++;
|
| + if (buildCounterTargetInstancesScopedListWarningData < 3) {
|
| unittest.expect(o.key, unittest.equals('foo'));
|
| unittest.expect(o.value, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetPoolsScopedListWarningData--;
|
| + buildCounterTargetInstancesScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2353() {
|
| - var o = new core.List<api.TargetPoolsScopedListWarningData>();
|
| - o.add(buildTargetPoolsScopedListWarningData());
|
| - o.add(buildTargetPoolsScopedListWarningData());
|
| +buildUnnamed2130() {
|
| + var o = new core.List<api.TargetInstancesScopedListWarningData>();
|
| + o.add(buildTargetInstancesScopedListWarningData());
|
| + o.add(buildTargetInstancesScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2353(core.List<api.TargetPoolsScopedListWarningData> o) {
|
| +checkUnnamed2130(core.List<api.TargetInstancesScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetPoolsScopedListWarningData(o[0]);
|
| - checkTargetPoolsScopedListWarningData(o[1]);
|
| + checkTargetInstancesScopedListWarningData(o[0]);
|
| + checkTargetInstancesScopedListWarningData(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetPoolsScopedListWarning = 0;
|
| -buildTargetPoolsScopedListWarning() {
|
| - var o = new api.TargetPoolsScopedListWarning();
|
| - buildCounterTargetPoolsScopedListWarning++;
|
| - if (buildCounterTargetPoolsScopedListWarning < 3) {
|
| +core.int buildCounterTargetInstancesScopedListWarning = 0;
|
| +buildTargetInstancesScopedListWarning() {
|
| + var o = new api.TargetInstancesScopedListWarning();
|
| + buildCounterTargetInstancesScopedListWarning++;
|
| + if (buildCounterTargetInstancesScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2353();
|
| + o.data = buildUnnamed2130();
|
| o.message = "foo";
|
| }
|
| - buildCounterTargetPoolsScopedListWarning--;
|
| + buildCounterTargetInstancesScopedListWarning--;
|
| return o;
|
| }
|
|
|
| -checkTargetPoolsScopedListWarning(api.TargetPoolsScopedListWarning o) {
|
| - buildCounterTargetPoolsScopedListWarning++;
|
| - if (buildCounterTargetPoolsScopedListWarning < 3) {
|
| +checkTargetInstancesScopedListWarning(api.TargetInstancesScopedListWarning o) {
|
| + buildCounterTargetInstancesScopedListWarning++;
|
| + if (buildCounterTargetInstancesScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2353(o.data);
|
| + checkUnnamed2130(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetPoolsScopedListWarning--;
|
| -}
|
| -
|
| -core.int buildCounterTargetPoolsScopedList = 0;
|
| -buildTargetPoolsScopedList() {
|
| - var o = new api.TargetPoolsScopedList();
|
| - buildCounterTargetPoolsScopedList++;
|
| - if (buildCounterTargetPoolsScopedList < 3) {
|
| - o.targetPools = buildUnnamed2352();
|
| - o.warning = buildTargetPoolsScopedListWarning();
|
| - }
|
| - buildCounterTargetPoolsScopedList--;
|
| - return o;
|
| -}
|
| -
|
| -checkTargetPoolsScopedList(api.TargetPoolsScopedList o) {
|
| - buildCounterTargetPoolsScopedList++;
|
| - if (buildCounterTargetPoolsScopedList < 3) {
|
| - checkUnnamed2352(o.targetPools);
|
| - checkTargetPoolsScopedListWarning(o.warning);
|
| - }
|
| - buildCounterTargetPoolsScopedList--;
|
| -}
|
| -
|
| -core.int buildCounterTargetReference = 0;
|
| -buildTargetReference() {
|
| - var o = new api.TargetReference();
|
| - buildCounterTargetReference++;
|
| - if (buildCounterTargetReference < 3) {
|
| - o.target = "foo";
|
| - }
|
| - buildCounterTargetReference--;
|
| - return o;
|
| -}
|
| -
|
| -checkTargetReference(api.TargetReference o) {
|
| - buildCounterTargetReference++;
|
| - if (buildCounterTargetReference < 3) {
|
| - unittest.expect(o.target, unittest.equals('foo'));
|
| - }
|
| - buildCounterTargetReference--;
|
| -}
|
| -
|
| -core.int buildCounterTargetSslProxiesSetBackendServiceRequest = 0;
|
| -buildTargetSslProxiesSetBackendServiceRequest() {
|
| - var o = new api.TargetSslProxiesSetBackendServiceRequest();
|
| - buildCounterTargetSslProxiesSetBackendServiceRequest++;
|
| - if (buildCounterTargetSslProxiesSetBackendServiceRequest < 3) {
|
| - o.service = "foo";
|
| - }
|
| - buildCounterTargetSslProxiesSetBackendServiceRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkTargetSslProxiesSetBackendServiceRequest(api.TargetSslProxiesSetBackendServiceRequest o) {
|
| - buildCounterTargetSslProxiesSetBackendServiceRequest++;
|
| - if (buildCounterTargetSslProxiesSetBackendServiceRequest < 3) {
|
| - unittest.expect(o.service, unittest.equals('foo'));
|
| - }
|
| - buildCounterTargetSslProxiesSetBackendServiceRequest--;
|
| + buildCounterTargetInstancesScopedListWarning--;
|
| }
|
|
|
| -core.int buildCounterTargetSslProxiesSetProxyHeaderRequest = 0;
|
| -buildTargetSslProxiesSetProxyHeaderRequest() {
|
| - var o = new api.TargetSslProxiesSetProxyHeaderRequest();
|
| - buildCounterTargetSslProxiesSetProxyHeaderRequest++;
|
| - if (buildCounterTargetSslProxiesSetProxyHeaderRequest < 3) {
|
| - o.proxyHeader = "foo";
|
| +core.int buildCounterTargetInstancesScopedList = 0;
|
| +buildTargetInstancesScopedList() {
|
| + var o = new api.TargetInstancesScopedList();
|
| + buildCounterTargetInstancesScopedList++;
|
| + if (buildCounterTargetInstancesScopedList < 3) {
|
| + o.targetInstances = buildUnnamed2129();
|
| + o.warning = buildTargetInstancesScopedListWarning();
|
| }
|
| - buildCounterTargetSslProxiesSetProxyHeaderRequest--;
|
| + buildCounterTargetInstancesScopedList--;
|
| return o;
|
| }
|
|
|
| -checkTargetSslProxiesSetProxyHeaderRequest(api.TargetSslProxiesSetProxyHeaderRequest o) {
|
| - buildCounterTargetSslProxiesSetProxyHeaderRequest++;
|
| - if (buildCounterTargetSslProxiesSetProxyHeaderRequest < 3) {
|
| - unittest.expect(o.proxyHeader, unittest.equals('foo'));
|
| +checkTargetInstancesScopedList(api.TargetInstancesScopedList o) {
|
| + buildCounterTargetInstancesScopedList++;
|
| + if (buildCounterTargetInstancesScopedList < 3) {
|
| + checkUnnamed2129(o.targetInstances);
|
| + checkTargetInstancesScopedListWarning(o.warning);
|
| }
|
| - buildCounterTargetSslProxiesSetProxyHeaderRequest--;
|
| + buildCounterTargetInstancesScopedList--;
|
| }
|
|
|
| -buildUnnamed2354() {
|
| +buildUnnamed2131() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2354(core.List<core.String> o) {
|
| +checkUnnamed2131(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 buildCounterTargetSslProxiesSetSslCertificatesRequest = 0;
|
| -buildTargetSslProxiesSetSslCertificatesRequest() {
|
| - var o = new api.TargetSslProxiesSetSslCertificatesRequest();
|
| - buildCounterTargetSslProxiesSetSslCertificatesRequest++;
|
| - if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) {
|
| - o.sslCertificates = buildUnnamed2354();
|
| - }
|
| - buildCounterTargetSslProxiesSetSslCertificatesRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkTargetSslProxiesSetSslCertificatesRequest(api.TargetSslProxiesSetSslCertificatesRequest o) {
|
| - buildCounterTargetSslProxiesSetSslCertificatesRequest++;
|
| - if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) {
|
| - checkUnnamed2354(o.sslCertificates);
|
| - }
|
| - buildCounterTargetSslProxiesSetSslCertificatesRequest--;
|
| -}
|
| -
|
| -buildUnnamed2355() {
|
| +buildUnnamed2132() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2355(core.List<core.String> o) {
|
| +checkUnnamed2132(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 buildCounterTargetSslProxy = 0;
|
| -buildTargetSslProxy() {
|
| - var o = new api.TargetSslProxy();
|
| - buildCounterTargetSslProxy++;
|
| - if (buildCounterTargetSslProxy < 3) {
|
| +core.int buildCounterTargetPool = 0;
|
| +buildTargetPool() {
|
| + var o = new api.TargetPool();
|
| + buildCounterTargetPool++;
|
| + if (buildCounterTargetPool < 3) {
|
| + o.backupPool = "foo";
|
| o.creationTimestamp = "foo";
|
| o.description = "foo";
|
| + o.failoverRatio = 42.0;
|
| + o.healthChecks = buildUnnamed2131();
|
| o.id = "foo";
|
| + o.instances = buildUnnamed2132();
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.proxyHeader = "foo";
|
| + o.region = "foo";
|
| o.selfLink = "foo";
|
| - o.service = "foo";
|
| - o.sslCertificates = buildUnnamed2355();
|
| + o.sessionAffinity = "foo";
|
| }
|
| - buildCounterTargetSslProxy--;
|
| + buildCounterTargetPool--;
|
| return o;
|
| }
|
|
|
| -checkTargetSslProxy(api.TargetSslProxy o) {
|
| - buildCounterTargetSslProxy++;
|
| - if (buildCounterTargetSslProxy < 3) {
|
| +checkTargetPool(api.TargetPool o) {
|
| + buildCounterTargetPool++;
|
| + if (buildCounterTargetPool < 3) {
|
| + unittest.expect(o.backupPool, unittest.equals('foo'));
|
| unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.failoverRatio, unittest.equals(42.0));
|
| + checkUnnamed2131(o.healthChecks);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2132(o.instances);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.proxyHeader, unittest.equals('foo'));
|
| + unittest.expect(o.region, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - unittest.expect(o.service, unittest.equals('foo'));
|
| - checkUnnamed2355(o.sslCertificates);
|
| + unittest.expect(o.sessionAffinity, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetSslProxy--;
|
| + buildCounterTargetPool--;
|
| }
|
|
|
| -buildUnnamed2356() {
|
| - var o = new core.List<api.TargetSslProxy>();
|
| - o.add(buildTargetSslProxy());
|
| - o.add(buildTargetSslProxy());
|
| - return o;
|
| +buildUnnamed2133() {
|
| + var o = new core.Map<core.String, api.TargetPoolsScopedList>();
|
| + o["x"] = buildTargetPoolsScopedList();
|
| + o["y"] = buildTargetPoolsScopedList();
|
| + return o;
|
| }
|
|
|
| -checkUnnamed2356(core.List<api.TargetSslProxy> o) {
|
| +checkUnnamed2133(core.Map<core.String, api.TargetPoolsScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetSslProxy(o[0]);
|
| - checkTargetSslProxy(o[1]);
|
| + checkTargetPoolsScopedList(o["x"]);
|
| + checkTargetPoolsScopedList(o["y"]);
|
| }
|
|
|
| -core.int buildCounterTargetSslProxyList = 0;
|
| -buildTargetSslProxyList() {
|
| - var o = new api.TargetSslProxyList();
|
| - buildCounterTargetSslProxyList++;
|
| - if (buildCounterTargetSslProxyList < 3) {
|
| +core.int buildCounterTargetPoolAggregatedList = 0;
|
| +buildTargetPoolAggregatedList() {
|
| + var o = new api.TargetPoolAggregatedList();
|
| + buildCounterTargetPoolAggregatedList++;
|
| + if (buildCounterTargetPoolAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2356();
|
| + o.items = buildUnnamed2133();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterTargetSslProxyList--;
|
| + buildCounterTargetPoolAggregatedList--;
|
| return o;
|
| }
|
|
|
| -checkTargetSslProxyList(api.TargetSslProxyList o) {
|
| - buildCounterTargetSslProxyList++;
|
| - if (buildCounterTargetSslProxyList < 3) {
|
| +checkTargetPoolAggregatedList(api.TargetPoolAggregatedList o) {
|
| + buildCounterTargetPoolAggregatedList++;
|
| + if (buildCounterTargetPoolAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2356(o.items);
|
| + checkUnnamed2133(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetSslProxyList--;
|
| -}
|
| -
|
| -buildUnnamed2357() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed2357(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'));
|
| + buildCounterTargetPoolAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2358() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| +buildUnnamed2134() {
|
| + var o = new core.List<api.HealthStatus>();
|
| + o.add(buildHealthStatus());
|
| + o.add(buildHealthStatus());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2358(core.List<core.String> o) {
|
| +checkUnnamed2134(core.List<api.HealthStatus> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| + checkHealthStatus(o[0]);
|
| + checkHealthStatus(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetVpnGateway = 0;
|
| -buildTargetVpnGateway() {
|
| - var o = new api.TargetVpnGateway();
|
| - buildCounterTargetVpnGateway++;
|
| - if (buildCounterTargetVpnGateway < 3) {
|
| - o.creationTimestamp = "foo";
|
| - o.description = "foo";
|
| - o.forwardingRules = buildUnnamed2357();
|
| - o.id = "foo";
|
| +core.int buildCounterTargetPoolInstanceHealth = 0;
|
| +buildTargetPoolInstanceHealth() {
|
| + var o = new api.TargetPoolInstanceHealth();
|
| + buildCounterTargetPoolInstanceHealth++;
|
| + if (buildCounterTargetPoolInstanceHealth < 3) {
|
| + o.healthStatus = buildUnnamed2134();
|
| o.kind = "foo";
|
| - o.name = "foo";
|
| - o.network = "foo";
|
| - o.region = "foo";
|
| - o.selfLink = "foo";
|
| - o.status = "foo";
|
| - o.tunnels = buildUnnamed2358();
|
| }
|
| - buildCounterTargetVpnGateway--;
|
| + buildCounterTargetPoolInstanceHealth--;
|
| return o;
|
| }
|
|
|
| -checkTargetVpnGateway(api.TargetVpnGateway o) {
|
| - buildCounterTargetVpnGateway++;
|
| - if (buildCounterTargetVpnGateway < 3) {
|
| - unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - checkUnnamed2357(o.forwardingRules);
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| +checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) {
|
| + buildCounterTargetPoolInstanceHealth++;
|
| + if (buildCounterTargetPoolInstanceHealth < 3) {
|
| + checkUnnamed2134(o.healthStatus);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.network, unittest.equals('foo'));
|
| - unittest.expect(o.region, unittest.equals('foo'));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - unittest.expect(o.status, unittest.equals('foo'));
|
| - checkUnnamed2358(o.tunnels);
|
| }
|
| - buildCounterTargetVpnGateway--;
|
| + buildCounterTargetPoolInstanceHealth--;
|
| }
|
|
|
| -buildUnnamed2359() {
|
| - var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>();
|
| - o["x"] = buildTargetVpnGatewaysScopedList();
|
| - o["y"] = buildTargetVpnGatewaysScopedList();
|
| +buildUnnamed2135() {
|
| + var o = new core.List<api.TargetPool>();
|
| + o.add(buildTargetPool());
|
| + o.add(buildTargetPool());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2359(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) {
|
| +checkUnnamed2135(core.List<api.TargetPool> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetVpnGatewaysScopedList(o["x"]);
|
| - checkTargetVpnGatewaysScopedList(o["y"]);
|
| + checkTargetPool(o[0]);
|
| + checkTargetPool(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetVpnGatewayAggregatedList = 0;
|
| -buildTargetVpnGatewayAggregatedList() {
|
| - var o = new api.TargetVpnGatewayAggregatedList();
|
| - buildCounterTargetVpnGatewayAggregatedList++;
|
| - if (buildCounterTargetVpnGatewayAggregatedList < 3) {
|
| +core.int buildCounterTargetPoolList = 0;
|
| +buildTargetPoolList() {
|
| + var o = new api.TargetPoolList();
|
| + buildCounterTargetPoolList++;
|
| + if (buildCounterTargetPoolList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2359();
|
| + o.items = buildUnnamed2135();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterTargetVpnGatewayAggregatedList--;
|
| + buildCounterTargetPoolList--;
|
| return o;
|
| }
|
|
|
| -checkTargetVpnGatewayAggregatedList(api.TargetVpnGatewayAggregatedList o) {
|
| - buildCounterTargetVpnGatewayAggregatedList++;
|
| - if (buildCounterTargetVpnGatewayAggregatedList < 3) {
|
| +checkTargetPoolList(api.TargetPoolList o) {
|
| + buildCounterTargetPoolList++;
|
| + if (buildCounterTargetPoolList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2359(o.items);
|
| + checkUnnamed2135(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterTargetVpnGatewayAggregatedList--;
|
| + buildCounterTargetPoolList--;
|
| }
|
|
|
| -buildUnnamed2360() {
|
| - var o = new core.List<api.TargetVpnGateway>();
|
| - o.add(buildTargetVpnGateway());
|
| - o.add(buildTargetVpnGateway());
|
| +buildUnnamed2136() {
|
| + var o = new core.List<api.HealthCheckReference>();
|
| + o.add(buildHealthCheckReference());
|
| + o.add(buildHealthCheckReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2360(core.List<api.TargetVpnGateway> o) {
|
| +checkUnnamed2136(core.List<api.HealthCheckReference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetVpnGateway(o[0]);
|
| - checkTargetVpnGateway(o[1]);
|
| + checkHealthCheckReference(o[0]);
|
| + checkHealthCheckReference(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetVpnGatewayList = 0;
|
| -buildTargetVpnGatewayList() {
|
| - var o = new api.TargetVpnGatewayList();
|
| - buildCounterTargetVpnGatewayList++;
|
| - if (buildCounterTargetVpnGatewayList < 3) {
|
| - o.id = "foo";
|
| - o.items = buildUnnamed2360();
|
| - o.kind = "foo";
|
| - o.nextPageToken = "foo";
|
| - o.selfLink = "foo";
|
| +core.int buildCounterTargetPoolsAddHealthCheckRequest = 0;
|
| +buildTargetPoolsAddHealthCheckRequest() {
|
| + var o = new api.TargetPoolsAddHealthCheckRequest();
|
| + buildCounterTargetPoolsAddHealthCheckRequest++;
|
| + if (buildCounterTargetPoolsAddHealthCheckRequest < 3) {
|
| + o.healthChecks = buildUnnamed2136();
|
| }
|
| - buildCounterTargetVpnGatewayList--;
|
| + buildCounterTargetPoolsAddHealthCheckRequest--;
|
| return o;
|
| }
|
|
|
| -checkTargetVpnGatewayList(api.TargetVpnGatewayList o) {
|
| - buildCounterTargetVpnGatewayList++;
|
| - if (buildCounterTargetVpnGatewayList < 3) {
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2360(o.items);
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| +checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) {
|
| + buildCounterTargetPoolsAddHealthCheckRequest++;
|
| + if (buildCounterTargetPoolsAddHealthCheckRequest < 3) {
|
| + checkUnnamed2136(o.healthChecks);
|
| }
|
| - buildCounterTargetVpnGatewayList--;
|
| + buildCounterTargetPoolsAddHealthCheckRequest--;
|
| }
|
|
|
| -buildUnnamed2361() {
|
| - var o = new core.List<api.TargetVpnGateway>();
|
| - o.add(buildTargetVpnGateway());
|
| - o.add(buildTargetVpnGateway());
|
| +buildUnnamed2137() {
|
| + var o = new core.List<api.InstanceReference>();
|
| + o.add(buildInstanceReference());
|
| + o.add(buildInstanceReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2361(core.List<api.TargetVpnGateway> o) {
|
| +checkUnnamed2137(core.List<api.InstanceReference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetVpnGateway(o[0]);
|
| - checkTargetVpnGateway(o[1]);
|
| + checkInstanceReference(o[0]);
|
| + checkInstanceReference(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetVpnGatewaysScopedListWarningData = 0;
|
| -buildTargetVpnGatewaysScopedListWarningData() {
|
| - var o = new api.TargetVpnGatewaysScopedListWarningData();
|
| - buildCounterTargetVpnGatewaysScopedListWarningData++;
|
| - if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) {
|
| - o.key = "foo";
|
| - o.value = "foo";
|
| +core.int buildCounterTargetPoolsAddInstanceRequest = 0;
|
| +buildTargetPoolsAddInstanceRequest() {
|
| + var o = new api.TargetPoolsAddInstanceRequest();
|
| + buildCounterTargetPoolsAddInstanceRequest++;
|
| + if (buildCounterTargetPoolsAddInstanceRequest < 3) {
|
| + o.instances = buildUnnamed2137();
|
| }
|
| - buildCounterTargetVpnGatewaysScopedListWarningData--;
|
| + buildCounterTargetPoolsAddInstanceRequest--;
|
| return o;
|
| }
|
|
|
| -checkTargetVpnGatewaysScopedListWarningData(api.TargetVpnGatewaysScopedListWarningData o) {
|
| - buildCounterTargetVpnGatewaysScopedListWarningData++;
|
| - if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) {
|
| - unittest.expect(o.key, unittest.equals('foo'));
|
| - unittest.expect(o.value, unittest.equals('foo'));
|
| +checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) {
|
| + buildCounterTargetPoolsAddInstanceRequest++;
|
| + if (buildCounterTargetPoolsAddInstanceRequest < 3) {
|
| + checkUnnamed2137(o.instances);
|
| }
|
| - buildCounterTargetVpnGatewaysScopedListWarningData--;
|
| + buildCounterTargetPoolsAddInstanceRequest--;
|
| }
|
|
|
| -buildUnnamed2362() {
|
| - var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>();
|
| - o.add(buildTargetVpnGatewaysScopedListWarningData());
|
| - o.add(buildTargetVpnGatewaysScopedListWarningData());
|
| +buildUnnamed2138() {
|
| + var o = new core.List<api.HealthCheckReference>();
|
| + o.add(buildHealthCheckReference());
|
| + o.add(buildHealthCheckReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2362(core.List<api.TargetVpnGatewaysScopedListWarningData> o) {
|
| +checkUnnamed2138(core.List<api.HealthCheckReference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkTargetVpnGatewaysScopedListWarningData(o[0]);
|
| - checkTargetVpnGatewaysScopedListWarningData(o[1]);
|
| + checkHealthCheckReference(o[0]);
|
| + checkHealthCheckReference(o[1]);
|
| }
|
|
|
| -core.int buildCounterTargetVpnGatewaysScopedListWarning = 0;
|
| -buildTargetVpnGatewaysScopedListWarning() {
|
| - var o = new api.TargetVpnGatewaysScopedListWarning();
|
| - buildCounterTargetVpnGatewaysScopedListWarning++;
|
| - if (buildCounterTargetVpnGatewaysScopedListWarning < 3) {
|
| - o.code = "foo";
|
| - o.data = buildUnnamed2362();
|
| - o.message = "foo";
|
| +core.int buildCounterTargetPoolsRemoveHealthCheckRequest = 0;
|
| +buildTargetPoolsRemoveHealthCheckRequest() {
|
| + var o = new api.TargetPoolsRemoveHealthCheckRequest();
|
| + buildCounterTargetPoolsRemoveHealthCheckRequest++;
|
| + if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) {
|
| + o.healthChecks = buildUnnamed2138();
|
| }
|
| - buildCounterTargetVpnGatewaysScopedListWarning--;
|
| + buildCounterTargetPoolsRemoveHealthCheckRequest--;
|
| return o;
|
| }
|
|
|
| -checkTargetVpnGatewaysScopedListWarning(api.TargetVpnGatewaysScopedListWarning o) {
|
| - buildCounterTargetVpnGatewaysScopedListWarning++;
|
| - if (buildCounterTargetVpnGatewaysScopedListWarning < 3) {
|
| - unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2362(o.data);
|
| - unittest.expect(o.message, unittest.equals('foo'));
|
| +checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest o) {
|
| + buildCounterTargetPoolsRemoveHealthCheckRequest++;
|
| + if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) {
|
| + checkUnnamed2138(o.healthChecks);
|
| }
|
| - buildCounterTargetVpnGatewaysScopedListWarning--;
|
| + buildCounterTargetPoolsRemoveHealthCheckRequest--;
|
| }
|
|
|
| -core.int buildCounterTargetVpnGatewaysScopedList = 0;
|
| -buildTargetVpnGatewaysScopedList() {
|
| - var o = new api.TargetVpnGatewaysScopedList();
|
| - buildCounterTargetVpnGatewaysScopedList++;
|
| - if (buildCounterTargetVpnGatewaysScopedList < 3) {
|
| - o.targetVpnGateways = buildUnnamed2361();
|
| - o.warning = buildTargetVpnGatewaysScopedListWarning();
|
| +buildUnnamed2139() {
|
| + var o = new core.List<api.InstanceReference>();
|
| + o.add(buildInstanceReference());
|
| + o.add(buildInstanceReference());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2139(core.List<api.InstanceReference> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkInstanceReference(o[0]);
|
| + checkInstanceReference(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterTargetPoolsRemoveInstanceRequest = 0;
|
| +buildTargetPoolsRemoveInstanceRequest() {
|
| + var o = new api.TargetPoolsRemoveInstanceRequest();
|
| + buildCounterTargetPoolsRemoveInstanceRequest++;
|
| + if (buildCounterTargetPoolsRemoveInstanceRequest < 3) {
|
| + o.instances = buildUnnamed2139();
|
| }
|
| - buildCounterTargetVpnGatewaysScopedList--;
|
| + buildCounterTargetPoolsRemoveInstanceRequest--;
|
| return o;
|
| }
|
|
|
| -checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) {
|
| - buildCounterTargetVpnGatewaysScopedList++;
|
| - if (buildCounterTargetVpnGatewaysScopedList < 3) {
|
| - checkUnnamed2361(o.targetVpnGateways);
|
| - checkTargetVpnGatewaysScopedListWarning(o.warning);
|
| +checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) {
|
| + buildCounterTargetPoolsRemoveInstanceRequest++;
|
| + if (buildCounterTargetPoolsRemoveInstanceRequest < 3) {
|
| + checkUnnamed2139(o.instances);
|
| }
|
| - buildCounterTargetVpnGatewaysScopedList--;
|
| + buildCounterTargetPoolsRemoveInstanceRequest--;
|
| }
|
|
|
| -core.int buildCounterTestFailure = 0;
|
| -buildTestFailure() {
|
| - var o = new api.TestFailure();
|
| - buildCounterTestFailure++;
|
| - if (buildCounterTestFailure < 3) {
|
| - o.actualService = "foo";
|
| - o.expectedService = "foo";
|
| - o.host = "foo";
|
| - o.path = "foo";
|
| - }
|
| - buildCounterTestFailure--;
|
| - return o;
|
| -}
|
| -
|
| -checkTestFailure(api.TestFailure o) {
|
| - buildCounterTestFailure++;
|
| - if (buildCounterTestFailure < 3) {
|
| - unittest.expect(o.actualService, unittest.equals('foo'));
|
| - unittest.expect(o.expectedService, unittest.equals('foo'));
|
| - unittest.expect(o.host, unittest.equals('foo'));
|
| - unittest.expect(o.path, unittest.equals('foo'));
|
| - }
|
| - buildCounterTestFailure--;
|
| -}
|
| -
|
| -buildUnnamed2363() {
|
| - var o = new core.List<api.HostRule>();
|
| - o.add(buildHostRule());
|
| - o.add(buildHostRule());
|
| +buildUnnamed2140() {
|
| + var o = new core.List<api.TargetPool>();
|
| + o.add(buildTargetPool());
|
| + o.add(buildTargetPool());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2363(core.List<api.HostRule> o) {
|
| +checkUnnamed2140(core.List<api.TargetPool> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkHostRule(o[0]);
|
| - checkHostRule(o[1]);
|
| + checkTargetPool(o[0]);
|
| + checkTargetPool(o[1]);
|
| }
|
|
|
| -buildUnnamed2364() {
|
| - var o = new core.List<api.PathMatcher>();
|
| - o.add(buildPathMatcher());
|
| - o.add(buildPathMatcher());
|
| +core.int buildCounterTargetPoolsScopedListWarningData = 0;
|
| +buildTargetPoolsScopedListWarningData() {
|
| + var o = new api.TargetPoolsScopedListWarningData();
|
| + buildCounterTargetPoolsScopedListWarningData++;
|
| + if (buildCounterTargetPoolsScopedListWarningData < 3) {
|
| + o.key = "foo";
|
| + o.value = "foo";
|
| + }
|
| + buildCounterTargetPoolsScopedListWarningData--;
|
| return o;
|
| }
|
|
|
| -checkUnnamed2364(core.List<api.PathMatcher> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkPathMatcher(o[0]);
|
| - checkPathMatcher(o[1]);
|
| +checkTargetPoolsScopedListWarningData(api.TargetPoolsScopedListWarningData o) {
|
| + buildCounterTargetPoolsScopedListWarningData++;
|
| + if (buildCounterTargetPoolsScopedListWarningData < 3) {
|
| + unittest.expect(o.key, unittest.equals('foo'));
|
| + unittest.expect(o.value, unittest.equals('foo'));
|
| + }
|
| + buildCounterTargetPoolsScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2365() {
|
| - var o = new core.List<api.UrlMapTest>();
|
| - o.add(buildUrlMapTest());
|
| - o.add(buildUrlMapTest());
|
| +buildUnnamed2141() {
|
| + var o = new core.List<api.TargetPoolsScopedListWarningData>();
|
| + o.add(buildTargetPoolsScopedListWarningData());
|
| + o.add(buildTargetPoolsScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2365(core.List<api.UrlMapTest> o) {
|
| +checkUnnamed2141(core.List<api.TargetPoolsScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUrlMapTest(o[0]);
|
| - checkUrlMapTest(o[1]);
|
| + checkTargetPoolsScopedListWarningData(o[0]);
|
| + checkTargetPoolsScopedListWarningData(o[1]);
|
| }
|
|
|
| -core.int buildCounterUrlMap = 0;
|
| -buildUrlMap() {
|
| - var o = new api.UrlMap();
|
| - buildCounterUrlMap++;
|
| - if (buildCounterUrlMap < 3) {
|
| - o.creationTimestamp = "foo";
|
| - o.defaultService = "foo";
|
| - o.description = "foo";
|
| - o.fingerprint = "foo";
|
| - o.hostRules = buildUnnamed2363();
|
| - o.id = "foo";
|
| - o.kind = "foo";
|
| - o.name = "foo";
|
| - o.pathMatchers = buildUnnamed2364();
|
| - o.selfLink = "foo";
|
| - o.tests = buildUnnamed2365();
|
| +core.int buildCounterTargetPoolsScopedListWarning = 0;
|
| +buildTargetPoolsScopedListWarning() {
|
| + var o = new api.TargetPoolsScopedListWarning();
|
| + buildCounterTargetPoolsScopedListWarning++;
|
| + if (buildCounterTargetPoolsScopedListWarning < 3) {
|
| + o.code = "foo";
|
| + o.data = buildUnnamed2141();
|
| + o.message = "foo";
|
| }
|
| - buildCounterUrlMap--;
|
| + buildCounterTargetPoolsScopedListWarning--;
|
| return o;
|
| }
|
|
|
| -checkUrlMap(api.UrlMap o) {
|
| - buildCounterUrlMap++;
|
| - if (buildCounterUrlMap < 3) {
|
| - unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| - unittest.expect(o.defaultService, unittest.equals('foo'));
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.fingerprint, unittest.equals('foo'));
|
| - checkUnnamed2363(o.hostRules);
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2364(o.pathMatchers);
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - checkUnnamed2365(o.tests);
|
| +checkTargetPoolsScopedListWarning(api.TargetPoolsScopedListWarning o) {
|
| + buildCounterTargetPoolsScopedListWarning++;
|
| + if (buildCounterTargetPoolsScopedListWarning < 3) {
|
| + unittest.expect(o.code, unittest.equals('foo'));
|
| + checkUnnamed2141(o.data);
|
| + unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| - buildCounterUrlMap--;
|
| + buildCounterTargetPoolsScopedListWarning--;
|
| }
|
|
|
| -buildUnnamed2366() {
|
| - var o = new core.List<api.UrlMap>();
|
| - o.add(buildUrlMap());
|
| - o.add(buildUrlMap());
|
| +core.int buildCounterTargetPoolsScopedList = 0;
|
| +buildTargetPoolsScopedList() {
|
| + var o = new api.TargetPoolsScopedList();
|
| + buildCounterTargetPoolsScopedList++;
|
| + if (buildCounterTargetPoolsScopedList < 3) {
|
| + o.targetPools = buildUnnamed2140();
|
| + o.warning = buildTargetPoolsScopedListWarning();
|
| + }
|
| + buildCounterTargetPoolsScopedList--;
|
| return o;
|
| }
|
|
|
| -checkUnnamed2366(core.List<api.UrlMap> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkUrlMap(o[0]);
|
| - checkUrlMap(o[1]);
|
| +checkTargetPoolsScopedList(api.TargetPoolsScopedList o) {
|
| + buildCounterTargetPoolsScopedList++;
|
| + if (buildCounterTargetPoolsScopedList < 3) {
|
| + checkUnnamed2140(o.targetPools);
|
| + checkTargetPoolsScopedListWarning(o.warning);
|
| + }
|
| + buildCounterTargetPoolsScopedList--;
|
| }
|
|
|
| -core.int buildCounterUrlMapList = 0;
|
| -buildUrlMapList() {
|
| - var o = new api.UrlMapList();
|
| - buildCounterUrlMapList++;
|
| - if (buildCounterUrlMapList < 3) {
|
| - o.id = "foo";
|
| - o.items = buildUnnamed2366();
|
| - o.kind = "foo";
|
| - o.nextPageToken = "foo";
|
| - o.selfLink = "foo";
|
| +core.int buildCounterTargetReference = 0;
|
| +buildTargetReference() {
|
| + var o = new api.TargetReference();
|
| + buildCounterTargetReference++;
|
| + if (buildCounterTargetReference < 3) {
|
| + o.target = "foo";
|
| }
|
| - buildCounterUrlMapList--;
|
| + buildCounterTargetReference--;
|
| return o;
|
| }
|
|
|
| -checkUrlMapList(api.UrlMapList o) {
|
| - buildCounterUrlMapList++;
|
| - if (buildCounterUrlMapList < 3) {
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2366(o.items);
|
| - unittest.expect(o.kind, unittest.equals('foo'));
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - unittest.expect(o.selfLink, unittest.equals('foo'));
|
| +checkTargetReference(api.TargetReference o) {
|
| + buildCounterTargetReference++;
|
| + if (buildCounterTargetReference < 3) {
|
| + unittest.expect(o.target, unittest.equals('foo'));
|
| }
|
| - buildCounterUrlMapList--;
|
| + buildCounterTargetReference--;
|
| }
|
|
|
| -core.int buildCounterUrlMapReference = 0;
|
| -buildUrlMapReference() {
|
| - var o = new api.UrlMapReference();
|
| - buildCounterUrlMapReference++;
|
| - if (buildCounterUrlMapReference < 3) {
|
| - o.urlMap = "foo";
|
| +core.int buildCounterTargetSslProxiesSetBackendServiceRequest = 0;
|
| +buildTargetSslProxiesSetBackendServiceRequest() {
|
| + var o = new api.TargetSslProxiesSetBackendServiceRequest();
|
| + buildCounterTargetSslProxiesSetBackendServiceRequest++;
|
| + if (buildCounterTargetSslProxiesSetBackendServiceRequest < 3) {
|
| + o.service = "foo";
|
| }
|
| - buildCounterUrlMapReference--;
|
| + buildCounterTargetSslProxiesSetBackendServiceRequest--;
|
| return o;
|
| }
|
|
|
| -checkUrlMapReference(api.UrlMapReference o) {
|
| - buildCounterUrlMapReference++;
|
| - if (buildCounterUrlMapReference < 3) {
|
| - unittest.expect(o.urlMap, unittest.equals('foo'));
|
| +checkTargetSslProxiesSetBackendServiceRequest(api.TargetSslProxiesSetBackendServiceRequest o) {
|
| + buildCounterTargetSslProxiesSetBackendServiceRequest++;
|
| + if (buildCounterTargetSslProxiesSetBackendServiceRequest < 3) {
|
| + unittest.expect(o.service, unittest.equals('foo'));
|
| }
|
| - buildCounterUrlMapReference--;
|
| + buildCounterTargetSslProxiesSetBackendServiceRequest--;
|
| }
|
|
|
| -core.int buildCounterUrlMapTest = 0;
|
| -buildUrlMapTest() {
|
| - var o = new api.UrlMapTest();
|
| - buildCounterUrlMapTest++;
|
| - if (buildCounterUrlMapTest < 3) {
|
| - o.description = "foo";
|
| - o.host = "foo";
|
| - o.path = "foo";
|
| - o.service = "foo";
|
| +core.int buildCounterTargetSslProxiesSetProxyHeaderRequest = 0;
|
| +buildTargetSslProxiesSetProxyHeaderRequest() {
|
| + var o = new api.TargetSslProxiesSetProxyHeaderRequest();
|
| + buildCounterTargetSslProxiesSetProxyHeaderRequest++;
|
| + if (buildCounterTargetSslProxiesSetProxyHeaderRequest < 3) {
|
| + o.proxyHeader = "foo";
|
| }
|
| - buildCounterUrlMapTest--;
|
| + buildCounterTargetSslProxiesSetProxyHeaderRequest--;
|
| return o;
|
| }
|
|
|
| -checkUrlMapTest(api.UrlMapTest o) {
|
| - buildCounterUrlMapTest++;
|
| - if (buildCounterUrlMapTest < 3) {
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.host, unittest.equals('foo'));
|
| - unittest.expect(o.path, unittest.equals('foo'));
|
| - unittest.expect(o.service, unittest.equals('foo'));
|
| +checkTargetSslProxiesSetProxyHeaderRequest(api.TargetSslProxiesSetProxyHeaderRequest o) {
|
| + buildCounterTargetSslProxiesSetProxyHeaderRequest++;
|
| + if (buildCounterTargetSslProxiesSetProxyHeaderRequest < 3) {
|
| + unittest.expect(o.proxyHeader, unittest.equals('foo'));
|
| }
|
| - buildCounterUrlMapTest--;
|
| + buildCounterTargetSslProxiesSetProxyHeaderRequest--;
|
| }
|
|
|
| -buildUnnamed2367() {
|
| +buildUnnamed2142() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2367(core.List<core.String> o) {
|
| +checkUnnamed2142(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'));
|
| }
|
|
|
| -buildUnnamed2368() {
|
| - var o = new core.List<api.TestFailure>();
|
| - o.add(buildTestFailure());
|
| - o.add(buildTestFailure());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed2368(core.List<api.TestFailure> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkTestFailure(o[0]);
|
| - checkTestFailure(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterUrlMapValidationResult = 0;
|
| -buildUrlMapValidationResult() {
|
| - var o = new api.UrlMapValidationResult();
|
| - buildCounterUrlMapValidationResult++;
|
| - if (buildCounterUrlMapValidationResult < 3) {
|
| - o.loadErrors = buildUnnamed2367();
|
| - o.loadSucceeded = true;
|
| - o.testFailures = buildUnnamed2368();
|
| - o.testPassed = true;
|
| +core.int buildCounterTargetSslProxiesSetSslCertificatesRequest = 0;
|
| +buildTargetSslProxiesSetSslCertificatesRequest() {
|
| + var o = new api.TargetSslProxiesSetSslCertificatesRequest();
|
| + buildCounterTargetSslProxiesSetSslCertificatesRequest++;
|
| + if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) {
|
| + o.sslCertificates = buildUnnamed2142();
|
| }
|
| - buildCounterUrlMapValidationResult--;
|
| + buildCounterTargetSslProxiesSetSslCertificatesRequest--;
|
| return o;
|
| }
|
|
|
| -checkUrlMapValidationResult(api.UrlMapValidationResult o) {
|
| - buildCounterUrlMapValidationResult++;
|
| - if (buildCounterUrlMapValidationResult < 3) {
|
| - checkUnnamed2367(o.loadErrors);
|
| - unittest.expect(o.loadSucceeded, unittest.isTrue);
|
| - checkUnnamed2368(o.testFailures);
|
| - unittest.expect(o.testPassed, unittest.isTrue);
|
| +checkTargetSslProxiesSetSslCertificatesRequest(api.TargetSslProxiesSetSslCertificatesRequest o) {
|
| + buildCounterTargetSslProxiesSetSslCertificatesRequest++;
|
| + if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) {
|
| + checkUnnamed2142(o.sslCertificates);
|
| }
|
| - buildCounterUrlMapValidationResult--;
|
| + buildCounterTargetSslProxiesSetSslCertificatesRequest--;
|
| }
|
|
|
| -core.int buildCounterUrlMapsValidateRequest = 0;
|
| -buildUrlMapsValidateRequest() {
|
| - var o = new api.UrlMapsValidateRequest();
|
| - buildCounterUrlMapsValidateRequest++;
|
| - if (buildCounterUrlMapsValidateRequest < 3) {
|
| - o.resource = buildUrlMap();
|
| - }
|
| - buildCounterUrlMapsValidateRequest--;
|
| +buildUnnamed2143() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUrlMapsValidateRequest(api.UrlMapsValidateRequest o) {
|
| - buildCounterUrlMapsValidateRequest++;
|
| - if (buildCounterUrlMapsValidateRequest < 3) {
|
| - checkUrlMap(o.resource);
|
| - }
|
| - buildCounterUrlMapsValidateRequest--;
|
| +checkUnnamed2143(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 buildCounterUrlMapsValidateResponse = 0;
|
| -buildUrlMapsValidateResponse() {
|
| - var o = new api.UrlMapsValidateResponse();
|
| - buildCounterUrlMapsValidateResponse++;
|
| - if (buildCounterUrlMapsValidateResponse < 3) {
|
| - o.result = buildUrlMapValidationResult();
|
| +core.int buildCounterTargetSslProxy = 0;
|
| +buildTargetSslProxy() {
|
| + var o = new api.TargetSslProxy();
|
| + buildCounterTargetSslProxy++;
|
| + if (buildCounterTargetSslProxy < 3) {
|
| + o.creationTimestamp = "foo";
|
| + o.description = "foo";
|
| + o.id = "foo";
|
| + o.kind = "foo";
|
| + o.name = "foo";
|
| + o.proxyHeader = "foo";
|
| + o.selfLink = "foo";
|
| + o.service = "foo";
|
| + o.sslCertificates = buildUnnamed2143();
|
| }
|
| - buildCounterUrlMapsValidateResponse--;
|
| + buildCounterTargetSslProxy--;
|
| return o;
|
| }
|
|
|
| -checkUrlMapsValidateResponse(api.UrlMapsValidateResponse o) {
|
| - buildCounterUrlMapsValidateResponse++;
|
| - if (buildCounterUrlMapsValidateResponse < 3) {
|
| - checkUrlMapValidationResult(o.result);
|
| +checkTargetSslProxy(api.TargetSslProxy o) {
|
| + buildCounterTargetSslProxy++;
|
| + if (buildCounterTargetSslProxy < 3) {
|
| + unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.proxyHeader, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + unittest.expect(o.service, unittest.equals('foo'));
|
| + checkUnnamed2143(o.sslCertificates);
|
| }
|
| - buildCounterUrlMapsValidateResponse--;
|
| + buildCounterTargetSslProxy--;
|
| }
|
|
|
| -core.int buildCounterUsageExportLocation = 0;
|
| -buildUsageExportLocation() {
|
| - var o = new api.UsageExportLocation();
|
| - buildCounterUsageExportLocation++;
|
| - if (buildCounterUsageExportLocation < 3) {
|
| - o.bucketName = "foo";
|
| - o.reportNamePrefix = "foo";
|
| +buildUnnamed2144() {
|
| + var o = new core.List<api.TargetSslProxy>();
|
| + o.add(buildTargetSslProxy());
|
| + o.add(buildTargetSslProxy());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2144(core.List<api.TargetSslProxy> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkTargetSslProxy(o[0]);
|
| + checkTargetSslProxy(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterTargetSslProxyList = 0;
|
| +buildTargetSslProxyList() {
|
| + var o = new api.TargetSslProxyList();
|
| + buildCounterTargetSslProxyList++;
|
| + if (buildCounterTargetSslProxyList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2144();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.selfLink = "foo";
|
| }
|
| - buildCounterUsageExportLocation--;
|
| + buildCounterTargetSslProxyList--;
|
| return o;
|
| }
|
|
|
| -checkUsageExportLocation(api.UsageExportLocation o) {
|
| - buildCounterUsageExportLocation++;
|
| - if (buildCounterUsageExportLocation < 3) {
|
| - unittest.expect(o.bucketName, unittest.equals('foo'));
|
| - unittest.expect(o.reportNamePrefix, unittest.equals('foo'));
|
| +checkTargetSslProxyList(api.TargetSslProxyList o) {
|
| + buildCounterTargetSslProxyList++;
|
| + if (buildCounterTargetSslProxyList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2144(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterUsageExportLocation--;
|
| + buildCounterTargetSslProxyList--;
|
| }
|
|
|
| -buildUnnamed2369() {
|
| +buildUnnamed2145() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2369(core.List<core.String> o) {
|
| +checkUnnamed2145(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'));
|
| }
|
|
|
| -buildUnnamed2370() {
|
| +buildUnnamed2146() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2370(core.List<core.String> o) {
|
| +checkUnnamed2146(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 buildCounterVpnTunnel = 0;
|
| -buildVpnTunnel() {
|
| - var o = new api.VpnTunnel();
|
| - buildCounterVpnTunnel++;
|
| - if (buildCounterVpnTunnel < 3) {
|
| +core.int buildCounterTargetVpnGateway = 0;
|
| +buildTargetVpnGateway() {
|
| + var o = new api.TargetVpnGateway();
|
| + buildCounterTargetVpnGateway++;
|
| + if (buildCounterTargetVpnGateway < 3) {
|
| o.creationTimestamp = "foo";
|
| o.description = "foo";
|
| - o.detailedStatus = "foo";
|
| + o.forwardingRules = buildUnnamed2145();
|
| o.id = "foo";
|
| - o.ikeVersion = 42;
|
| o.kind = "foo";
|
| - o.localTrafficSelector = buildUnnamed2369();
|
| o.name = "foo";
|
| - o.peerIp = "foo";
|
| + o.network = "foo";
|
| o.region = "foo";
|
| - o.remoteTrafficSelector = buildUnnamed2370();
|
| - o.router = "foo";
|
| o.selfLink = "foo";
|
| - o.sharedSecret = "foo";
|
| - o.sharedSecretHash = "foo";
|
| o.status = "foo";
|
| - o.targetVpnGateway = "foo";
|
| + o.tunnels = buildUnnamed2146();
|
| }
|
| - buildCounterVpnTunnel--;
|
| + buildCounterTargetVpnGateway--;
|
| return o;
|
| }
|
|
|
| -checkVpnTunnel(api.VpnTunnel o) {
|
| - buildCounterVpnTunnel++;
|
| - if (buildCounterVpnTunnel < 3) {
|
| +checkTargetVpnGateway(api.TargetVpnGateway o) {
|
| + buildCounterTargetVpnGateway++;
|
| + if (buildCounterTargetVpnGateway < 3) {
|
| unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.detailedStatus, unittest.equals('foo'));
|
| + checkUnnamed2145(o.forwardingRules);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.ikeVersion, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed2369(o.localTrafficSelector);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.peerIp, unittest.equals('foo'));
|
| + unittest.expect(o.network, unittest.equals('foo'));
|
| unittest.expect(o.region, unittest.equals('foo'));
|
| - checkUnnamed2370(o.remoteTrafficSelector);
|
| - unittest.expect(o.router, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - unittest.expect(o.sharedSecret, unittest.equals('foo'));
|
| - unittest.expect(o.sharedSecretHash, unittest.equals('foo'));
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| - unittest.expect(o.targetVpnGateway, unittest.equals('foo'));
|
| + checkUnnamed2146(o.tunnels);
|
| }
|
| - buildCounterVpnTunnel--;
|
| + buildCounterTargetVpnGateway--;
|
| }
|
|
|
| -buildUnnamed2371() {
|
| - var o = new core.Map<core.String, api.VpnTunnelsScopedList>();
|
| - o["x"] = buildVpnTunnelsScopedList();
|
| - o["y"] = buildVpnTunnelsScopedList();
|
| +buildUnnamed2147() {
|
| + var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>();
|
| + o["x"] = buildTargetVpnGatewaysScopedList();
|
| + o["y"] = buildTargetVpnGatewaysScopedList();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2371(core.Map<core.String, api.VpnTunnelsScopedList> o) {
|
| +checkUnnamed2147(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkVpnTunnelsScopedList(o["x"]);
|
| - checkVpnTunnelsScopedList(o["y"]);
|
| + checkTargetVpnGatewaysScopedList(o["x"]);
|
| + checkTargetVpnGatewaysScopedList(o["y"]);
|
| }
|
|
|
| -core.int buildCounterVpnTunnelAggregatedList = 0;
|
| -buildVpnTunnelAggregatedList() {
|
| - var o = new api.VpnTunnelAggregatedList();
|
| - buildCounterVpnTunnelAggregatedList++;
|
| - if (buildCounterVpnTunnelAggregatedList < 3) {
|
| +core.int buildCounterTargetVpnGatewayAggregatedList = 0;
|
| +buildTargetVpnGatewayAggregatedList() {
|
| + var o = new api.TargetVpnGatewayAggregatedList();
|
| + buildCounterTargetVpnGatewayAggregatedList++;
|
| + if (buildCounterTargetVpnGatewayAggregatedList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2371();
|
| + o.items = buildUnnamed2147();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterVpnTunnelAggregatedList--;
|
| + buildCounterTargetVpnGatewayAggregatedList--;
|
| return o;
|
| }
|
|
|
| -checkVpnTunnelAggregatedList(api.VpnTunnelAggregatedList o) {
|
| - buildCounterVpnTunnelAggregatedList++;
|
| - if (buildCounterVpnTunnelAggregatedList < 3) {
|
| +checkTargetVpnGatewayAggregatedList(api.TargetVpnGatewayAggregatedList o) {
|
| + buildCounterTargetVpnGatewayAggregatedList++;
|
| + if (buildCounterTargetVpnGatewayAggregatedList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2371(o.items);
|
| + checkUnnamed2147(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterVpnTunnelAggregatedList--;
|
| + buildCounterTargetVpnGatewayAggregatedList--;
|
| }
|
|
|
| -buildUnnamed2372() {
|
| - var o = new core.List<api.VpnTunnel>();
|
| - o.add(buildVpnTunnel());
|
| - o.add(buildVpnTunnel());
|
| +buildUnnamed2148() {
|
| + var o = new core.List<api.TargetVpnGateway>();
|
| + o.add(buildTargetVpnGateway());
|
| + o.add(buildTargetVpnGateway());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2372(core.List<api.VpnTunnel> o) {
|
| +checkUnnamed2148(core.List<api.TargetVpnGateway> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkVpnTunnel(o[0]);
|
| - checkVpnTunnel(o[1]);
|
| + checkTargetVpnGateway(o[0]);
|
| + checkTargetVpnGateway(o[1]);
|
| }
|
|
|
| -core.int buildCounterVpnTunnelList = 0;
|
| -buildVpnTunnelList() {
|
| - var o = new api.VpnTunnelList();
|
| - buildCounterVpnTunnelList++;
|
| - if (buildCounterVpnTunnelList < 3) {
|
| +core.int buildCounterTargetVpnGatewayList = 0;
|
| +buildTargetVpnGatewayList() {
|
| + var o = new api.TargetVpnGatewayList();
|
| + buildCounterTargetVpnGatewayList++;
|
| + if (buildCounterTargetVpnGatewayList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2372();
|
| + o.items = buildUnnamed2148();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterVpnTunnelList--;
|
| + buildCounterTargetVpnGatewayList--;
|
| return o;
|
| }
|
|
|
| -checkVpnTunnelList(api.VpnTunnelList o) {
|
| - buildCounterVpnTunnelList++;
|
| - if (buildCounterVpnTunnelList < 3) {
|
| +checkTargetVpnGatewayList(api.TargetVpnGatewayList o) {
|
| + buildCounterTargetVpnGatewayList++;
|
| + if (buildCounterTargetVpnGatewayList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2372(o.items);
|
| + checkUnnamed2148(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterVpnTunnelList--;
|
| + buildCounterTargetVpnGatewayList--;
|
| }
|
|
|
| -buildUnnamed2373() {
|
| - var o = new core.List<api.VpnTunnel>();
|
| - o.add(buildVpnTunnel());
|
| - o.add(buildVpnTunnel());
|
| +buildUnnamed2149() {
|
| + var o = new core.List<api.TargetVpnGateway>();
|
| + o.add(buildTargetVpnGateway());
|
| + o.add(buildTargetVpnGateway());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2373(core.List<api.VpnTunnel> o) {
|
| +checkUnnamed2149(core.List<api.TargetVpnGateway> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkVpnTunnel(o[0]);
|
| - checkVpnTunnel(o[1]);
|
| + checkTargetVpnGateway(o[0]);
|
| + checkTargetVpnGateway(o[1]);
|
| }
|
|
|
| -core.int buildCounterVpnTunnelsScopedListWarningData = 0;
|
| -buildVpnTunnelsScopedListWarningData() {
|
| - var o = new api.VpnTunnelsScopedListWarningData();
|
| - buildCounterVpnTunnelsScopedListWarningData++;
|
| - if (buildCounterVpnTunnelsScopedListWarningData < 3) {
|
| +core.int buildCounterTargetVpnGatewaysScopedListWarningData = 0;
|
| +buildTargetVpnGatewaysScopedListWarningData() {
|
| + var o = new api.TargetVpnGatewaysScopedListWarningData();
|
| + buildCounterTargetVpnGatewaysScopedListWarningData++;
|
| + if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) {
|
| o.key = "foo";
|
| o.value = "foo";
|
| }
|
| - buildCounterVpnTunnelsScopedListWarningData--;
|
| + buildCounterTargetVpnGatewaysScopedListWarningData--;
|
| return o;
|
| }
|
|
|
| -checkVpnTunnelsScopedListWarningData(api.VpnTunnelsScopedListWarningData o) {
|
| - buildCounterVpnTunnelsScopedListWarningData++;
|
| - if (buildCounterVpnTunnelsScopedListWarningData < 3) {
|
| +checkTargetVpnGatewaysScopedListWarningData(api.TargetVpnGatewaysScopedListWarningData o) {
|
| + buildCounterTargetVpnGatewaysScopedListWarningData++;
|
| + if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) {
|
| unittest.expect(o.key, unittest.equals('foo'));
|
| unittest.expect(o.value, unittest.equals('foo'));
|
| }
|
| - buildCounterVpnTunnelsScopedListWarningData--;
|
| + buildCounterTargetVpnGatewaysScopedListWarningData--;
|
| }
|
|
|
| -buildUnnamed2374() {
|
| - var o = new core.List<api.VpnTunnelsScopedListWarningData>();
|
| - o.add(buildVpnTunnelsScopedListWarningData());
|
| - o.add(buildVpnTunnelsScopedListWarningData());
|
| +buildUnnamed2150() {
|
| + var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>();
|
| + o.add(buildTargetVpnGatewaysScopedListWarningData());
|
| + o.add(buildTargetVpnGatewaysScopedListWarningData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2374(core.List<api.VpnTunnelsScopedListWarningData> o) {
|
| +checkUnnamed2150(core.List<api.TargetVpnGatewaysScopedListWarningData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkVpnTunnelsScopedListWarningData(o[0]);
|
| - checkVpnTunnelsScopedListWarningData(o[1]);
|
| + checkTargetVpnGatewaysScopedListWarningData(o[0]);
|
| + checkTargetVpnGatewaysScopedListWarningData(o[1]);
|
| }
|
|
|
| -core.int buildCounterVpnTunnelsScopedListWarning = 0;
|
| -buildVpnTunnelsScopedListWarning() {
|
| - var o = new api.VpnTunnelsScopedListWarning();
|
| - buildCounterVpnTunnelsScopedListWarning++;
|
| - if (buildCounterVpnTunnelsScopedListWarning < 3) {
|
| +core.int buildCounterTargetVpnGatewaysScopedListWarning = 0;
|
| +buildTargetVpnGatewaysScopedListWarning() {
|
| + var o = new api.TargetVpnGatewaysScopedListWarning();
|
| + buildCounterTargetVpnGatewaysScopedListWarning++;
|
| + if (buildCounterTargetVpnGatewaysScopedListWarning < 3) {
|
| o.code = "foo";
|
| - o.data = buildUnnamed2374();
|
| + o.data = buildUnnamed2150();
|
| o.message = "foo";
|
| }
|
| - buildCounterVpnTunnelsScopedListWarning--;
|
| + buildCounterTargetVpnGatewaysScopedListWarning--;
|
| return o;
|
| }
|
|
|
| -checkVpnTunnelsScopedListWarning(api.VpnTunnelsScopedListWarning o) {
|
| - buildCounterVpnTunnelsScopedListWarning++;
|
| - if (buildCounterVpnTunnelsScopedListWarning < 3) {
|
| +checkTargetVpnGatewaysScopedListWarning(api.TargetVpnGatewaysScopedListWarning o) {
|
| + buildCounterTargetVpnGatewaysScopedListWarning++;
|
| + if (buildCounterTargetVpnGatewaysScopedListWarning < 3) {
|
| unittest.expect(o.code, unittest.equals('foo'));
|
| - checkUnnamed2374(o.data);
|
| + checkUnnamed2150(o.data);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| - buildCounterVpnTunnelsScopedListWarning--;
|
| -}
|
| -
|
| -core.int buildCounterVpnTunnelsScopedList = 0;
|
| -buildVpnTunnelsScopedList() {
|
| - var o = new api.VpnTunnelsScopedList();
|
| - buildCounterVpnTunnelsScopedList++;
|
| - if (buildCounterVpnTunnelsScopedList < 3) {
|
| - o.vpnTunnels = buildUnnamed2373();
|
| - o.warning = buildVpnTunnelsScopedListWarning();
|
| - }
|
| - buildCounterVpnTunnelsScopedList--;
|
| - return o;
|
| + buildCounterTargetVpnGatewaysScopedListWarning--;
|
| }
|
|
|
| -checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) {
|
| - buildCounterVpnTunnelsScopedList++;
|
| - if (buildCounterVpnTunnelsScopedList < 3) {
|
| - checkUnnamed2373(o.vpnTunnels);
|
| - checkVpnTunnelsScopedListWarning(o.warning);
|
| +core.int buildCounterTargetVpnGatewaysScopedList = 0;
|
| +buildTargetVpnGatewaysScopedList() {
|
| + var o = new api.TargetVpnGatewaysScopedList();
|
| + buildCounterTargetVpnGatewaysScopedList++;
|
| + if (buildCounterTargetVpnGatewaysScopedList < 3) {
|
| + o.targetVpnGateways = buildUnnamed2149();
|
| + o.warning = buildTargetVpnGatewaysScopedListWarning();
|
| }
|
| - buildCounterVpnTunnelsScopedList--;
|
| + buildCounterTargetVpnGatewaysScopedList--;
|
| + return o;
|
| }
|
|
|
| -core.int buildCounterZone = 0;
|
| -buildZone() {
|
| - var o = new api.Zone();
|
| - buildCounterZone++;
|
| - if (buildCounterZone < 3) {
|
| +checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) {
|
| + buildCounterTargetVpnGatewaysScopedList++;
|
| + if (buildCounterTargetVpnGatewaysScopedList < 3) {
|
| + checkUnnamed2149(o.targetVpnGateways);
|
| + checkTargetVpnGatewaysScopedListWarning(o.warning);
|
| + }
|
| + buildCounterTargetVpnGatewaysScopedList--;
|
| +}
|
| +
|
| +core.int buildCounterTestFailure = 0;
|
| +buildTestFailure() {
|
| + var o = new api.TestFailure();
|
| + buildCounterTestFailure++;
|
| + if (buildCounterTestFailure < 3) {
|
| + o.actualService = "foo";
|
| + o.expectedService = "foo";
|
| + o.host = "foo";
|
| + o.path = "foo";
|
| + }
|
| + buildCounterTestFailure--;
|
| + return o;
|
| +}
|
| +
|
| +checkTestFailure(api.TestFailure o) {
|
| + buildCounterTestFailure++;
|
| + if (buildCounterTestFailure < 3) {
|
| + unittest.expect(o.actualService, unittest.equals('foo'));
|
| + unittest.expect(o.expectedService, unittest.equals('foo'));
|
| + unittest.expect(o.host, unittest.equals('foo'));
|
| + unittest.expect(o.path, unittest.equals('foo'));
|
| + }
|
| + buildCounterTestFailure--;
|
| +}
|
| +
|
| +buildUnnamed2151() {
|
| + var o = new core.List<api.HostRule>();
|
| + o.add(buildHostRule());
|
| + o.add(buildHostRule());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2151(core.List<api.HostRule> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkHostRule(o[0]);
|
| + checkHostRule(o[1]);
|
| +}
|
| +
|
| +buildUnnamed2152() {
|
| + var o = new core.List<api.PathMatcher>();
|
| + o.add(buildPathMatcher());
|
| + o.add(buildPathMatcher());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2152(core.List<api.PathMatcher> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkPathMatcher(o[0]);
|
| + checkPathMatcher(o[1]);
|
| +}
|
| +
|
| +buildUnnamed2153() {
|
| + var o = new core.List<api.UrlMapTest>();
|
| + o.add(buildUrlMapTest());
|
| + o.add(buildUrlMapTest());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2153(core.List<api.UrlMapTest> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkUrlMapTest(o[0]);
|
| + checkUrlMapTest(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterUrlMap = 0;
|
| +buildUrlMap() {
|
| + var o = new api.UrlMap();
|
| + buildCounterUrlMap++;
|
| + if (buildCounterUrlMap < 3) {
|
| o.creationTimestamp = "foo";
|
| - o.deprecated = buildDeprecationStatus();
|
| + o.defaultService = "foo";
|
| o.description = "foo";
|
| + o.fingerprint = "foo";
|
| + o.hostRules = buildUnnamed2151();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| - o.region = "foo";
|
| + o.pathMatchers = buildUnnamed2152();
|
| o.selfLink = "foo";
|
| - o.status = "foo";
|
| + o.tests = buildUnnamed2153();
|
| }
|
| - buildCounterZone--;
|
| + buildCounterUrlMap--;
|
| return o;
|
| }
|
|
|
| -checkZone(api.Zone o) {
|
| - buildCounterZone++;
|
| - if (buildCounterZone < 3) {
|
| +checkUrlMap(api.UrlMap o) {
|
| + buildCounterUrlMap++;
|
| + if (buildCounterUrlMap < 3) {
|
| unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| - checkDeprecationStatus(o.deprecated);
|
| + unittest.expect(o.defaultService, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.fingerprint, unittest.equals('foo'));
|
| + checkUnnamed2151(o.hostRules);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.region, unittest.equals('foo'));
|
| + checkUnnamed2152(o.pathMatchers);
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| - unittest.expect(o.status, unittest.equals('foo'));
|
| + checkUnnamed2153(o.tests);
|
| }
|
| - buildCounterZone--;
|
| + buildCounterUrlMap--;
|
| }
|
|
|
| -buildUnnamed2375() {
|
| - var o = new core.List<api.Zone>();
|
| - o.add(buildZone());
|
| - o.add(buildZone());
|
| +buildUnnamed2154() {
|
| + var o = new core.List<api.UrlMap>();
|
| + o.add(buildUrlMap());
|
| + o.add(buildUrlMap());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2375(core.List<api.Zone> o) {
|
| +checkUnnamed2154(core.List<api.UrlMap> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkZone(o[0]);
|
| - checkZone(o[1]);
|
| + checkUrlMap(o[0]);
|
| + checkUrlMap(o[1]);
|
| }
|
|
|
| -core.int buildCounterZoneList = 0;
|
| -buildZoneList() {
|
| - var o = new api.ZoneList();
|
| - buildCounterZoneList++;
|
| - if (buildCounterZoneList < 3) {
|
| +core.int buildCounterUrlMapList = 0;
|
| +buildUrlMapList() {
|
| + var o = new api.UrlMapList();
|
| + buildCounterUrlMapList++;
|
| + if (buildCounterUrlMapList < 3) {
|
| o.id = "foo";
|
| - o.items = buildUnnamed2375();
|
| + o.items = buildUnnamed2154();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.selfLink = "foo";
|
| }
|
| - buildCounterZoneList--;
|
| + buildCounterUrlMapList--;
|
| return o;
|
| }
|
|
|
| -checkZoneList(api.ZoneList o) {
|
| - buildCounterZoneList++;
|
| - if (buildCounterZoneList < 3) {
|
| +checkUrlMapList(api.UrlMapList o) {
|
| + buildCounterUrlMapList++;
|
| + if (buildCounterUrlMapList < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2375(o.items);
|
| + checkUnnamed2154(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| }
|
| - buildCounterZoneList--;
|
| + buildCounterUrlMapList--;
|
| }
|
|
|
| +core.int buildCounterUrlMapReference = 0;
|
| +buildUrlMapReference() {
|
| + var o = new api.UrlMapReference();
|
| + buildCounterUrlMapReference++;
|
| + if (buildCounterUrlMapReference < 3) {
|
| + o.urlMap = "foo";
|
| + }
|
| + buildCounterUrlMapReference--;
|
| + return o;
|
| +}
|
|
|
| -main() {
|
| - unittest.group("obj-schema-AccessConfig", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildAccessConfig();
|
| - var od = new api.AccessConfig.fromJson(o.toJson());
|
| - checkAccessConfig(od);
|
| - });
|
| - });
|
| -
|
| +checkUrlMapReference(api.UrlMapReference o) {
|
| + buildCounterUrlMapReference++;
|
| + if (buildCounterUrlMapReference < 3) {
|
| + unittest.expect(o.urlMap, unittest.equals('foo'));
|
| + }
|
| + buildCounterUrlMapReference--;
|
| +}
|
|
|
| - unittest.group("obj-schema-Address", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildAddress();
|
| - var od = new api.Address.fromJson(o.toJson());
|
| - checkAddress(od);
|
| - });
|
| - });
|
| +core.int buildCounterUrlMapTest = 0;
|
| +buildUrlMapTest() {
|
| + var o = new api.UrlMapTest();
|
| + buildCounterUrlMapTest++;
|
| + if (buildCounterUrlMapTest < 3) {
|
| + o.description = "foo";
|
| + o.host = "foo";
|
| + o.path = "foo";
|
| + o.service = "foo";
|
| + }
|
| + buildCounterUrlMapTest--;
|
| + return o;
|
| +}
|
|
|
| +checkUrlMapTest(api.UrlMapTest o) {
|
| + buildCounterUrlMapTest++;
|
| + if (buildCounterUrlMapTest < 3) {
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.host, unittest.equals('foo'));
|
| + unittest.expect(o.path, unittest.equals('foo'));
|
| + unittest.expect(o.service, unittest.equals('foo'));
|
| + }
|
| + buildCounterUrlMapTest--;
|
| +}
|
|
|
| - unittest.group("obj-schema-AddressAggregatedList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildAddressAggregatedList();
|
| - var od = new api.AddressAggregatedList.fromJson(o.toJson());
|
| - checkAddressAggregatedList(od);
|
| - });
|
| - });
|
| +buildUnnamed2155() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
|
|
| +checkUnnamed2155(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'));
|
| +}
|
|
|
| - unittest.group("obj-schema-AddressList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildAddressList();
|
| - var od = new api.AddressList.fromJson(o.toJson());
|
| - checkAddressList(od);
|
| - });
|
| - });
|
| +buildUnnamed2156() {
|
| + var o = new core.List<api.TestFailure>();
|
| + o.add(buildTestFailure());
|
| + o.add(buildTestFailure());
|
| + return o;
|
| +}
|
|
|
| +checkUnnamed2156(core.List<api.TestFailure> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkTestFailure(o[0]);
|
| + checkTestFailure(o[1]);
|
| +}
|
|
|
| - unittest.group("obj-schema-AddressesScopedListWarningData", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildAddressesScopedListWarningData();
|
| - var od = new api.AddressesScopedListWarningData.fromJson(o.toJson());
|
| - checkAddressesScopedListWarningData(od);
|
| - });
|
| - });
|
| +core.int buildCounterUrlMapValidationResult = 0;
|
| +buildUrlMapValidationResult() {
|
| + var o = new api.UrlMapValidationResult();
|
| + buildCounterUrlMapValidationResult++;
|
| + if (buildCounterUrlMapValidationResult < 3) {
|
| + o.loadErrors = buildUnnamed2155();
|
| + o.loadSucceeded = true;
|
| + o.testFailures = buildUnnamed2156();
|
| + o.testPassed = true;
|
| + }
|
| + buildCounterUrlMapValidationResult--;
|
| + return o;
|
| +}
|
|
|
| +checkUrlMapValidationResult(api.UrlMapValidationResult o) {
|
| + buildCounterUrlMapValidationResult++;
|
| + if (buildCounterUrlMapValidationResult < 3) {
|
| + checkUnnamed2155(o.loadErrors);
|
| + unittest.expect(o.loadSucceeded, unittest.isTrue);
|
| + checkUnnamed2156(o.testFailures);
|
| + unittest.expect(o.testPassed, unittest.isTrue);
|
| + }
|
| + buildCounterUrlMapValidationResult--;
|
| +}
|
|
|
| - unittest.group("obj-schema-AddressesScopedListWarning", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildAddressesScopedListWarning();
|
| +core.int buildCounterUrlMapsValidateRequest = 0;
|
| +buildUrlMapsValidateRequest() {
|
| + var o = new api.UrlMapsValidateRequest();
|
| + buildCounterUrlMapsValidateRequest++;
|
| + if (buildCounterUrlMapsValidateRequest < 3) {
|
| + o.resource = buildUrlMap();
|
| + }
|
| + buildCounterUrlMapsValidateRequest--;
|
| + return o;
|
| +}
|
| +
|
| +checkUrlMapsValidateRequest(api.UrlMapsValidateRequest o) {
|
| + buildCounterUrlMapsValidateRequest++;
|
| + if (buildCounterUrlMapsValidateRequest < 3) {
|
| + checkUrlMap(o.resource);
|
| + }
|
| + buildCounterUrlMapsValidateRequest--;
|
| +}
|
| +
|
| +core.int buildCounterUrlMapsValidateResponse = 0;
|
| +buildUrlMapsValidateResponse() {
|
| + var o = new api.UrlMapsValidateResponse();
|
| + buildCounterUrlMapsValidateResponse++;
|
| + if (buildCounterUrlMapsValidateResponse < 3) {
|
| + o.result = buildUrlMapValidationResult();
|
| + }
|
| + buildCounterUrlMapsValidateResponse--;
|
| + return o;
|
| +}
|
| +
|
| +checkUrlMapsValidateResponse(api.UrlMapsValidateResponse o) {
|
| + buildCounterUrlMapsValidateResponse++;
|
| + if (buildCounterUrlMapsValidateResponse < 3) {
|
| + checkUrlMapValidationResult(o.result);
|
| + }
|
| + buildCounterUrlMapsValidateResponse--;
|
| +}
|
| +
|
| +core.int buildCounterUsageExportLocation = 0;
|
| +buildUsageExportLocation() {
|
| + var o = new api.UsageExportLocation();
|
| + buildCounterUsageExportLocation++;
|
| + if (buildCounterUsageExportLocation < 3) {
|
| + o.bucketName = "foo";
|
| + o.reportNamePrefix = "foo";
|
| + }
|
| + buildCounterUsageExportLocation--;
|
| + return o;
|
| +}
|
| +
|
| +checkUsageExportLocation(api.UsageExportLocation o) {
|
| + buildCounterUsageExportLocation++;
|
| + if (buildCounterUsageExportLocation < 3) {
|
| + unittest.expect(o.bucketName, unittest.equals('foo'));
|
| + unittest.expect(o.reportNamePrefix, unittest.equals('foo'));
|
| + }
|
| + buildCounterUsageExportLocation--;
|
| +}
|
| +
|
| +buildUnnamed2157() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2157(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'));
|
| +}
|
| +
|
| +buildUnnamed2158() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2158(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 buildCounterVpnTunnel = 0;
|
| +buildVpnTunnel() {
|
| + var o = new api.VpnTunnel();
|
| + buildCounterVpnTunnel++;
|
| + if (buildCounterVpnTunnel < 3) {
|
| + o.creationTimestamp = "foo";
|
| + o.description = "foo";
|
| + o.detailedStatus = "foo";
|
| + o.id = "foo";
|
| + o.ikeVersion = 42;
|
| + o.kind = "foo";
|
| + o.localTrafficSelector = buildUnnamed2157();
|
| + o.name = "foo";
|
| + o.peerIp = "foo";
|
| + o.region = "foo";
|
| + o.remoteTrafficSelector = buildUnnamed2158();
|
| + o.router = "foo";
|
| + o.selfLink = "foo";
|
| + o.sharedSecret = "foo";
|
| + o.sharedSecretHash = "foo";
|
| + o.status = "foo";
|
| + o.targetVpnGateway = "foo";
|
| + }
|
| + buildCounterVpnTunnel--;
|
| + return o;
|
| +}
|
| +
|
| +checkVpnTunnel(api.VpnTunnel o) {
|
| + buildCounterVpnTunnel++;
|
| + if (buildCounterVpnTunnel < 3) {
|
| + unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.detailedStatus, unittest.equals('foo'));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.ikeVersion, unittest.equals(42));
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + checkUnnamed2157(o.localTrafficSelector);
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.peerIp, unittest.equals('foo'));
|
| + unittest.expect(o.region, unittest.equals('foo'));
|
| + checkUnnamed2158(o.remoteTrafficSelector);
|
| + unittest.expect(o.router, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + unittest.expect(o.sharedSecret, unittest.equals('foo'));
|
| + unittest.expect(o.sharedSecretHash, unittest.equals('foo'));
|
| + unittest.expect(o.status, unittest.equals('foo'));
|
| + unittest.expect(o.targetVpnGateway, unittest.equals('foo'));
|
| + }
|
| + buildCounterVpnTunnel--;
|
| +}
|
| +
|
| +buildUnnamed2159() {
|
| + var o = new core.Map<core.String, api.VpnTunnelsScopedList>();
|
| + o["x"] = buildVpnTunnelsScopedList();
|
| + o["y"] = buildVpnTunnelsScopedList();
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2159(core.Map<core.String, api.VpnTunnelsScopedList> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkVpnTunnelsScopedList(o["x"]);
|
| + checkVpnTunnelsScopedList(o["y"]);
|
| +}
|
| +
|
| +core.int buildCounterVpnTunnelAggregatedList = 0;
|
| +buildVpnTunnelAggregatedList() {
|
| + var o = new api.VpnTunnelAggregatedList();
|
| + buildCounterVpnTunnelAggregatedList++;
|
| + if (buildCounterVpnTunnelAggregatedList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2159();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.selfLink = "foo";
|
| + }
|
| + buildCounterVpnTunnelAggregatedList--;
|
| + return o;
|
| +}
|
| +
|
| +checkVpnTunnelAggregatedList(api.VpnTunnelAggregatedList o) {
|
| + buildCounterVpnTunnelAggregatedList++;
|
| + if (buildCounterVpnTunnelAggregatedList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2159(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + }
|
| + buildCounterVpnTunnelAggregatedList--;
|
| +}
|
| +
|
| +buildUnnamed2160() {
|
| + var o = new core.List<api.VpnTunnel>();
|
| + o.add(buildVpnTunnel());
|
| + o.add(buildVpnTunnel());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2160(core.List<api.VpnTunnel> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkVpnTunnel(o[0]);
|
| + checkVpnTunnel(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterVpnTunnelList = 0;
|
| +buildVpnTunnelList() {
|
| + var o = new api.VpnTunnelList();
|
| + buildCounterVpnTunnelList++;
|
| + if (buildCounterVpnTunnelList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2160();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.selfLink = "foo";
|
| + }
|
| + buildCounterVpnTunnelList--;
|
| + return o;
|
| +}
|
| +
|
| +checkVpnTunnelList(api.VpnTunnelList o) {
|
| + buildCounterVpnTunnelList++;
|
| + if (buildCounterVpnTunnelList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2160(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + }
|
| + buildCounterVpnTunnelList--;
|
| +}
|
| +
|
| +buildUnnamed2161() {
|
| + var o = new core.List<api.VpnTunnel>();
|
| + o.add(buildVpnTunnel());
|
| + o.add(buildVpnTunnel());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2161(core.List<api.VpnTunnel> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkVpnTunnel(o[0]);
|
| + checkVpnTunnel(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterVpnTunnelsScopedListWarningData = 0;
|
| +buildVpnTunnelsScopedListWarningData() {
|
| + var o = new api.VpnTunnelsScopedListWarningData();
|
| + buildCounterVpnTunnelsScopedListWarningData++;
|
| + if (buildCounterVpnTunnelsScopedListWarningData < 3) {
|
| + o.key = "foo";
|
| + o.value = "foo";
|
| + }
|
| + buildCounterVpnTunnelsScopedListWarningData--;
|
| + return o;
|
| +}
|
| +
|
| +checkVpnTunnelsScopedListWarningData(api.VpnTunnelsScopedListWarningData o) {
|
| + buildCounterVpnTunnelsScopedListWarningData++;
|
| + if (buildCounterVpnTunnelsScopedListWarningData < 3) {
|
| + unittest.expect(o.key, unittest.equals('foo'));
|
| + unittest.expect(o.value, unittest.equals('foo'));
|
| + }
|
| + buildCounterVpnTunnelsScopedListWarningData--;
|
| +}
|
| +
|
| +buildUnnamed2162() {
|
| + var o = new core.List<api.VpnTunnelsScopedListWarningData>();
|
| + o.add(buildVpnTunnelsScopedListWarningData());
|
| + o.add(buildVpnTunnelsScopedListWarningData());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2162(core.List<api.VpnTunnelsScopedListWarningData> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkVpnTunnelsScopedListWarningData(o[0]);
|
| + checkVpnTunnelsScopedListWarningData(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterVpnTunnelsScopedListWarning = 0;
|
| +buildVpnTunnelsScopedListWarning() {
|
| + var o = new api.VpnTunnelsScopedListWarning();
|
| + buildCounterVpnTunnelsScopedListWarning++;
|
| + if (buildCounterVpnTunnelsScopedListWarning < 3) {
|
| + o.code = "foo";
|
| + o.data = buildUnnamed2162();
|
| + o.message = "foo";
|
| + }
|
| + buildCounterVpnTunnelsScopedListWarning--;
|
| + return o;
|
| +}
|
| +
|
| +checkVpnTunnelsScopedListWarning(api.VpnTunnelsScopedListWarning o) {
|
| + buildCounterVpnTunnelsScopedListWarning++;
|
| + if (buildCounterVpnTunnelsScopedListWarning < 3) {
|
| + unittest.expect(o.code, unittest.equals('foo'));
|
| + checkUnnamed2162(o.data);
|
| + unittest.expect(o.message, unittest.equals('foo'));
|
| + }
|
| + buildCounterVpnTunnelsScopedListWarning--;
|
| +}
|
| +
|
| +core.int buildCounterVpnTunnelsScopedList = 0;
|
| +buildVpnTunnelsScopedList() {
|
| + var o = new api.VpnTunnelsScopedList();
|
| + buildCounterVpnTunnelsScopedList++;
|
| + if (buildCounterVpnTunnelsScopedList < 3) {
|
| + o.vpnTunnels = buildUnnamed2161();
|
| + o.warning = buildVpnTunnelsScopedListWarning();
|
| + }
|
| + buildCounterVpnTunnelsScopedList--;
|
| + return o;
|
| +}
|
| +
|
| +checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) {
|
| + buildCounterVpnTunnelsScopedList++;
|
| + if (buildCounterVpnTunnelsScopedList < 3) {
|
| + checkUnnamed2161(o.vpnTunnels);
|
| + checkVpnTunnelsScopedListWarning(o.warning);
|
| + }
|
| + buildCounterVpnTunnelsScopedList--;
|
| +}
|
| +
|
| +core.int buildCounterZone = 0;
|
| +buildZone() {
|
| + var o = new api.Zone();
|
| + buildCounterZone++;
|
| + if (buildCounterZone < 3) {
|
| + o.creationTimestamp = "foo";
|
| + o.deprecated = buildDeprecationStatus();
|
| + o.description = "foo";
|
| + o.id = "foo";
|
| + o.kind = "foo";
|
| + o.name = "foo";
|
| + o.region = "foo";
|
| + o.selfLink = "foo";
|
| + o.status = "foo";
|
| + }
|
| + buildCounterZone--;
|
| + return o;
|
| +}
|
| +
|
| +checkZone(api.Zone o) {
|
| + buildCounterZone++;
|
| + if (buildCounterZone < 3) {
|
| + unittest.expect(o.creationTimestamp, unittest.equals('foo'));
|
| + checkDeprecationStatus(o.deprecated);
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.region, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + unittest.expect(o.status, unittest.equals('foo'));
|
| + }
|
| + buildCounterZone--;
|
| +}
|
| +
|
| +buildUnnamed2163() {
|
| + var o = new core.List<api.Zone>();
|
| + o.add(buildZone());
|
| + o.add(buildZone());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2163(core.List<api.Zone> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkZone(o[0]);
|
| + checkZone(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterZoneList = 0;
|
| +buildZoneList() {
|
| + var o = new api.ZoneList();
|
| + buildCounterZoneList++;
|
| + if (buildCounterZoneList < 3) {
|
| + o.id = "foo";
|
| + o.items = buildUnnamed2163();
|
| + o.kind = "foo";
|
| + o.nextPageToken = "foo";
|
| + o.selfLink = "foo";
|
| + }
|
| + buildCounterZoneList--;
|
| + return o;
|
| +}
|
| +
|
| +checkZoneList(api.ZoneList o) {
|
| + buildCounterZoneList++;
|
| + if (buildCounterZoneList < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + checkUnnamed2163(o.items);
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + unittest.expect(o.selfLink, unittest.equals('foo'));
|
| + }
|
| + buildCounterZoneList--;
|
| +}
|
| +
|
| +
|
| +main() {
|
| + unittest.group("obj-schema-AccessConfig", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAccessConfig();
|
| + var od = new api.AccessConfig.fromJson(o.toJson());
|
| + checkAccessConfig(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-Address", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAddress();
|
| + var od = new api.Address.fromJson(o.toJson());
|
| + checkAddress(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AddressAggregatedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAddressAggregatedList();
|
| + var od = new api.AddressAggregatedList.fromJson(o.toJson());
|
| + checkAddressAggregatedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AddressList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAddressList();
|
| + var od = new api.AddressList.fromJson(o.toJson());
|
| + checkAddressList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AddressesScopedListWarningData", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAddressesScopedListWarningData();
|
| + var od = new api.AddressesScopedListWarningData.fromJson(o.toJson());
|
| + checkAddressesScopedListWarningData(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AddressesScopedListWarning", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAddressesScopedListWarning();
|
| var od = new api.AddressesScopedListWarning.fromJson(o.toJson());
|
| checkAddressesScopedListWarning(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AddressesScopedList", () {
|
| + unittest.group("obj-schema-AddressesScopedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAddressesScopedList();
|
| + var od = new api.AddressesScopedList.fromJson(o.toJson());
|
| + checkAddressesScopedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AttachedDisk", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAttachedDisk();
|
| + var od = new api.AttachedDisk.fromJson(o.toJson());
|
| + checkAttachedDisk(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AttachedDiskInitializeParams", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAttachedDiskInitializeParams();
|
| + var od = new api.AttachedDiskInitializeParams.fromJson(o.toJson());
|
| + checkAttachedDiskInitializeParams(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-Autoscaler", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAutoscaler();
|
| + var od = new api.Autoscaler.fromJson(o.toJson());
|
| + checkAutoscaler(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AutoscalerAggregatedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAutoscalerAggregatedList();
|
| + var od = new api.AutoscalerAggregatedList.fromJson(o.toJson());
|
| + checkAutoscalerAggregatedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AutoscalerList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAutoscalerList();
|
| + var od = new api.AutoscalerList.fromJson(o.toJson());
|
| + checkAutoscalerList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AutoscalersScopedListWarningData", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAutoscalersScopedListWarningData();
|
| + var od = new api.AutoscalersScopedListWarningData.fromJson(o.toJson());
|
| + checkAutoscalersScopedListWarningData(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AutoscalersScopedListWarning", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAutoscalersScopedListWarning();
|
| + var od = new api.AutoscalersScopedListWarning.fromJson(o.toJson());
|
| + checkAutoscalersScopedListWarning(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AutoscalersScopedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAutoscalersScopedList();
|
| + var od = new api.AutoscalersScopedList.fromJson(o.toJson());
|
| + checkAutoscalersScopedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AutoscalingPolicy", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAutoscalingPolicy();
|
| + var od = new api.AutoscalingPolicy.fromJson(o.toJson());
|
| + checkAutoscalingPolicy(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AutoscalingPolicyCpuUtilization", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAutoscalingPolicyCpuUtilization();
|
| + var od = new api.AutoscalingPolicyCpuUtilization.fromJson(o.toJson());
|
| + checkAutoscalingPolicyCpuUtilization(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AutoscalingPolicyCustomMetricUtilization", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAutoscalingPolicyCustomMetricUtilization();
|
| + var od = new api.AutoscalingPolicyCustomMetricUtilization.fromJson(o.toJson());
|
| + checkAutoscalingPolicyCustomMetricUtilization(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-AutoscalingPolicyLoadBalancingUtilization", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAutoscalingPolicyLoadBalancingUtilization();
|
| + var od = new api.AutoscalingPolicyLoadBalancingUtilization.fromJson(o.toJson());
|
| + checkAutoscalingPolicyLoadBalancingUtilization(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-Backend", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildBackend();
|
| + var od = new api.Backend.fromJson(o.toJson());
|
| + checkBackend(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-BackendService", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildBackendService();
|
| + var od = new api.BackendService.fromJson(o.toJson());
|
| + checkBackendService(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-BackendServiceAggregatedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildBackendServiceAggregatedList();
|
| + var od = new api.BackendServiceAggregatedList.fromJson(o.toJson());
|
| + checkBackendServiceAggregatedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-BackendServiceGroupHealth", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildBackendServiceGroupHealth();
|
| + var od = new api.BackendServiceGroupHealth.fromJson(o.toJson());
|
| + checkBackendServiceGroupHealth(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-BackendServiceList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildBackendServiceList();
|
| + var od = new api.BackendServiceList.fromJson(o.toJson());
|
| + checkBackendServiceList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-BackendServicesScopedListWarningData", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildBackendServicesScopedListWarningData();
|
| + var od = new api.BackendServicesScopedListWarningData.fromJson(o.toJson());
|
| + checkBackendServicesScopedListWarningData(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-BackendServicesScopedListWarning", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildBackendServicesScopedListWarning();
|
| + var od = new api.BackendServicesScopedListWarning.fromJson(o.toJson());
|
| + checkBackendServicesScopedListWarning(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-BackendServicesScopedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildBackendServicesScopedList();
|
| + var od = new api.BackendServicesScopedList.fromJson(o.toJson());
|
| + checkBackendServicesScopedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-CacheInvalidationRule", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildCacheInvalidationRule();
|
| + var od = new api.CacheInvalidationRule.fromJson(o.toJson());
|
| + checkCacheInvalidationRule(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ConnectionDraining", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildConnectionDraining();
|
| + var od = new api.ConnectionDraining.fromJson(o.toJson());
|
| + checkConnectionDraining(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-CustomerEncryptionKey", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildCustomerEncryptionKey();
|
| + var od = new api.CustomerEncryptionKey.fromJson(o.toJson());
|
| + checkCustomerEncryptionKey(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-CustomerEncryptionKeyProtectedDisk", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildCustomerEncryptionKeyProtectedDisk();
|
| + var od = new api.CustomerEncryptionKeyProtectedDisk.fromJson(o.toJson());
|
| + checkCustomerEncryptionKeyProtectedDisk(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DeprecationStatus", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDeprecationStatus();
|
| + var od = new api.DeprecationStatus.fromJson(o.toJson());
|
| + checkDeprecationStatus(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-Disk", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDisk();
|
| + var od = new api.Disk.fromJson(o.toJson());
|
| + checkDisk(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DiskAggregatedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDiskAggregatedList();
|
| + var od = new api.DiskAggregatedList.fromJson(o.toJson());
|
| + checkDiskAggregatedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DiskList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDiskList();
|
| + var od = new api.DiskList.fromJson(o.toJson());
|
| + checkDiskList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DiskMoveRequest", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDiskMoveRequest();
|
| + var od = new api.DiskMoveRequest.fromJson(o.toJson());
|
| + checkDiskMoveRequest(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DiskType", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDiskType();
|
| + var od = new api.DiskType.fromJson(o.toJson());
|
| + checkDiskType(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DiskTypeAggregatedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDiskTypeAggregatedList();
|
| + var od = new api.DiskTypeAggregatedList.fromJson(o.toJson());
|
| + checkDiskTypeAggregatedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DiskTypeList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDiskTypeList();
|
| + var od = new api.DiskTypeList.fromJson(o.toJson());
|
| + checkDiskTypeList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DiskTypesScopedListWarningData", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDiskTypesScopedListWarningData();
|
| + var od = new api.DiskTypesScopedListWarningData.fromJson(o.toJson());
|
| + checkDiskTypesScopedListWarningData(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DiskTypesScopedListWarning", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDiskTypesScopedListWarning();
|
| + var od = new api.DiskTypesScopedListWarning.fromJson(o.toJson());
|
| + checkDiskTypesScopedListWarning(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DiskTypesScopedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDiskTypesScopedList();
|
| + var od = new api.DiskTypesScopedList.fromJson(o.toJson());
|
| + checkDiskTypesScopedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DisksResizeRequest", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDisksResizeRequest();
|
| + var od = new api.DisksResizeRequest.fromJson(o.toJson());
|
| + checkDisksResizeRequest(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DisksScopedListWarningData", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDisksScopedListWarningData();
|
| + var od = new api.DisksScopedListWarningData.fromJson(o.toJson());
|
| + checkDisksScopedListWarningData(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DisksScopedListWarning", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDisksScopedListWarning();
|
| + var od = new api.DisksScopedListWarning.fromJson(o.toJson());
|
| + checkDisksScopedListWarning(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-DisksScopedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDisksScopedList();
|
| + var od = new api.DisksScopedList.fromJson(o.toJson());
|
| + checkDisksScopedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-FirewallAllowed", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildFirewallAllowed();
|
| + var od = new api.FirewallAllowed.fromJson(o.toJson());
|
| + checkFirewallAllowed(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-Firewall", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildFirewall();
|
| + var od = new api.Firewall.fromJson(o.toJson());
|
| + checkFirewall(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-FirewallList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildFirewallList();
|
| + var od = new api.FirewallList.fromJson(o.toJson());
|
| + checkFirewallList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ForwardingRule", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildForwardingRule();
|
| + var od = new api.ForwardingRule.fromJson(o.toJson());
|
| + checkForwardingRule(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ForwardingRuleAggregatedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildForwardingRuleAggregatedList();
|
| + var od = new api.ForwardingRuleAggregatedList.fromJson(o.toJson());
|
| + checkForwardingRuleAggregatedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ForwardingRuleList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildForwardingRuleList();
|
| + var od = new api.ForwardingRuleList.fromJson(o.toJson());
|
| + checkForwardingRuleList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ForwardingRulesScopedListWarningData", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildForwardingRulesScopedListWarningData();
|
| + var od = new api.ForwardingRulesScopedListWarningData.fromJson(o.toJson());
|
| + checkForwardingRulesScopedListWarningData(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ForwardingRulesScopedListWarning", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildForwardingRulesScopedListWarning();
|
| + var od = new api.ForwardingRulesScopedListWarning.fromJson(o.toJson());
|
| + checkForwardingRulesScopedListWarning(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ForwardingRulesScopedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildForwardingRulesScopedList();
|
| + var od = new api.ForwardingRulesScopedList.fromJson(o.toJson());
|
| + checkForwardingRulesScopedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-GuestOsFeature", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildGuestOsFeature();
|
| + var od = new api.GuestOsFeature.fromJson(o.toJson());
|
| + checkGuestOsFeature(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-HTTPHealthCheck", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildHTTPHealthCheck();
|
| + var od = new api.HTTPHealthCheck.fromJson(o.toJson());
|
| + checkHTTPHealthCheck(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-HTTPSHealthCheck", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildHTTPSHealthCheck();
|
| + var od = new api.HTTPSHealthCheck.fromJson(o.toJson());
|
| + checkHTTPSHealthCheck(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-HealthCheck", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildHealthCheck();
|
| + var od = new api.HealthCheck.fromJson(o.toJson());
|
| + checkHealthCheck(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-HealthCheckList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildHealthCheckList();
|
| + var od = new api.HealthCheckList.fromJson(o.toJson());
|
| + checkHealthCheckList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-HealthCheckReference", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildHealthCheckReference();
|
| + var od = new api.HealthCheckReference.fromJson(o.toJson());
|
| + checkHealthCheckReference(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-HealthStatus", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildHealthStatus();
|
| + var od = new api.HealthStatus.fromJson(o.toJson());
|
| + checkHealthStatus(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-HostRule", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildHostRule();
|
| + var od = new api.HostRule.fromJson(o.toJson());
|
| + checkHostRule(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-HttpHealthCheck", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildHttpHealthCheck();
|
| + var od = new api.HttpHealthCheck.fromJson(o.toJson());
|
| + checkHttpHealthCheck(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-HttpHealthCheckList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildHttpHealthCheckList();
|
| + var od = new api.HttpHealthCheckList.fromJson(o.toJson());
|
| + checkHttpHealthCheckList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-HttpsHealthCheck", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildHttpsHealthCheck();
|
| + var od = new api.HttpsHealthCheck.fromJson(o.toJson());
|
| + checkHttpsHealthCheck(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-HttpsHealthCheckList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildHttpsHealthCheckList();
|
| + var od = new api.HttpsHealthCheckList.fromJson(o.toJson());
|
| + checkHttpsHealthCheckList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ImageRawDisk", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildImageRawDisk();
|
| + var od = new api.ImageRawDisk.fromJson(o.toJson());
|
| + checkImageRawDisk(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-Image", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildImage();
|
| + var od = new api.Image.fromJson(o.toJson());
|
| + checkImage(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ImageList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildImageList();
|
| + var od = new api.ImageList.fromJson(o.toJson());
|
| + checkImageList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-Instance", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstance();
|
| + var od = new api.Instance.fromJson(o.toJson());
|
| + checkInstance(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceAggregatedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceAggregatedList();
|
| + var od = new api.InstanceAggregatedList.fromJson(o.toJson());
|
| + checkInstanceAggregatedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroup", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroup();
|
| + var od = new api.InstanceGroup.fromJson(o.toJson());
|
| + checkInstanceGroup(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupAggregatedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupAggregatedList();
|
| + var od = new api.InstanceGroupAggregatedList.fromJson(o.toJson());
|
| + checkInstanceGroupAggregatedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupList();
|
| + var od = new api.InstanceGroupList.fromJson(o.toJson());
|
| + checkInstanceGroupList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManager", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManager();
|
| + var od = new api.InstanceGroupManager.fromJson(o.toJson());
|
| + checkInstanceGroupManager(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManagerActionsSummary", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManagerActionsSummary();
|
| + var od = new api.InstanceGroupManagerActionsSummary.fromJson(o.toJson());
|
| + checkInstanceGroupManagerActionsSummary(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManagerAggregatedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManagerAggregatedList();
|
| + var od = new api.InstanceGroupManagerAggregatedList.fromJson(o.toJson());
|
| + checkInstanceGroupManagerAggregatedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManagerList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManagerList();
|
| + var od = new api.InstanceGroupManagerList.fromJson(o.toJson());
|
| + checkInstanceGroupManagerList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManagersAbandonInstancesRequest", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManagersAbandonInstancesRequest();
|
| + var od = new api.InstanceGroupManagersAbandonInstancesRequest.fromJson(o.toJson());
|
| + checkInstanceGroupManagersAbandonInstancesRequest(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManagersDeleteInstancesRequest", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManagersDeleteInstancesRequest();
|
| + var od = new api.InstanceGroupManagersDeleteInstancesRequest.fromJson(o.toJson());
|
| + checkInstanceGroupManagersDeleteInstancesRequest(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManagersListManagedInstancesResponse", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManagersListManagedInstancesResponse();
|
| + var od = new api.InstanceGroupManagersListManagedInstancesResponse.fromJson(o.toJson());
|
| + checkInstanceGroupManagersListManagedInstancesResponse(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManagersRecreateInstancesRequest", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManagersRecreateInstancesRequest();
|
| + var od = new api.InstanceGroupManagersRecreateInstancesRequest.fromJson(o.toJson());
|
| + checkInstanceGroupManagersRecreateInstancesRequest(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManagersScopedListWarningData", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManagersScopedListWarningData();
|
| + var od = new api.InstanceGroupManagersScopedListWarningData.fromJson(o.toJson());
|
| + checkInstanceGroupManagersScopedListWarningData(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManagersScopedListWarning", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManagersScopedListWarning();
|
| + var od = new api.InstanceGroupManagersScopedListWarning.fromJson(o.toJson());
|
| + checkInstanceGroupManagersScopedListWarning(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManagersScopedList", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManagersScopedList();
|
| + var od = new api.InstanceGroupManagersScopedList.fromJson(o.toJson());
|
| + checkInstanceGroupManagersScopedList(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManagersSetInstanceTemplateRequest", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManagersSetInstanceTemplateRequest();
|
| + var od = new api.InstanceGroupManagersSetInstanceTemplateRequest.fromJson(o.toJson());
|
| + checkInstanceGroupManagersSetInstanceTemplateRequest(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupManagersSetTargetPoolsRequest", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupManagersSetTargetPoolsRequest();
|
| + var od = new api.InstanceGroupManagersSetTargetPoolsRequest.fromJson(o.toJson());
|
| + checkInstanceGroupManagersSetTargetPoolsRequest(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupsAddInstancesRequest", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupsAddInstancesRequest();
|
| + var od = new api.InstanceGroupsAddInstancesRequest.fromJson(o.toJson());
|
| + checkInstanceGroupsAddInstancesRequest(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupsListInstances", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupsListInstances();
|
| + var od = new api.InstanceGroupsListInstances.fromJson(o.toJson());
|
| + checkInstanceGroupsListInstances(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupsListInstancesRequest", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstanceGroupsListInstancesRequest();
|
| + var od = new api.InstanceGroupsListInstancesRequest.fromJson(o.toJson());
|
| + checkInstanceGroupsListInstancesRequest(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-InstanceGroupsRemoveInstancesRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAddressesScopedList();
|
| - var od = new api.AddressesScopedList.fromJson(o.toJson());
|
| - checkAddressesScopedList(od);
|
| + var o = buildInstanceGroupsRemoveInstancesRequest();
|
| + var od = new api.InstanceGroupsRemoveInstancesRequest.fromJson(o.toJson());
|
| + checkInstanceGroupsRemoveInstancesRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AttachedDisk", () {
|
| + unittest.group("obj-schema-InstanceGroupsScopedListWarningData", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAttachedDisk();
|
| - var od = new api.AttachedDisk.fromJson(o.toJson());
|
| - checkAttachedDisk(od);
|
| + var o = buildInstanceGroupsScopedListWarningData();
|
| + var od = new api.InstanceGroupsScopedListWarningData.fromJson(o.toJson());
|
| + checkInstanceGroupsScopedListWarningData(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AttachedDiskInitializeParams", () {
|
| + unittest.group("obj-schema-InstanceGroupsScopedListWarning", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAttachedDiskInitializeParams();
|
| - var od = new api.AttachedDiskInitializeParams.fromJson(o.toJson());
|
| - checkAttachedDiskInitializeParams(od);
|
| + var o = buildInstanceGroupsScopedListWarning();
|
| + var od = new api.InstanceGroupsScopedListWarning.fromJson(o.toJson());
|
| + checkInstanceGroupsScopedListWarning(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Autoscaler", () {
|
| + unittest.group("obj-schema-InstanceGroupsScopedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAutoscaler();
|
| - var od = new api.Autoscaler.fromJson(o.toJson());
|
| - checkAutoscaler(od);
|
| + var o = buildInstanceGroupsScopedList();
|
| + var od = new api.InstanceGroupsScopedList.fromJson(o.toJson());
|
| + checkInstanceGroupsScopedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AutoscalerAggregatedList", () {
|
| + unittest.group("obj-schema-InstanceGroupsSetNamedPortsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAutoscalerAggregatedList();
|
| - var od = new api.AutoscalerAggregatedList.fromJson(o.toJson());
|
| - checkAutoscalerAggregatedList(od);
|
| + var o = buildInstanceGroupsSetNamedPortsRequest();
|
| + var od = new api.InstanceGroupsSetNamedPortsRequest.fromJson(o.toJson());
|
| + checkInstanceGroupsSetNamedPortsRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AutoscalerList", () {
|
| + unittest.group("obj-schema-InstanceList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAutoscalerList();
|
| - var od = new api.AutoscalerList.fromJson(o.toJson());
|
| - checkAutoscalerList(od);
|
| + var o = buildInstanceList();
|
| + var od = new api.InstanceList.fromJson(o.toJson());
|
| + checkInstanceList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AutoscalersScopedListWarningData", () {
|
| + unittest.group("obj-schema-InstanceMoveRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAutoscalersScopedListWarningData();
|
| - var od = new api.AutoscalersScopedListWarningData.fromJson(o.toJson());
|
| - checkAutoscalersScopedListWarningData(od);
|
| + var o = buildInstanceMoveRequest();
|
| + var od = new api.InstanceMoveRequest.fromJson(o.toJson());
|
| + checkInstanceMoveRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AutoscalersScopedListWarning", () {
|
| + unittest.group("obj-schema-InstanceProperties", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAutoscalersScopedListWarning();
|
| - var od = new api.AutoscalersScopedListWarning.fromJson(o.toJson());
|
| - checkAutoscalersScopedListWarning(od);
|
| + var o = buildInstanceProperties();
|
| + var od = new api.InstanceProperties.fromJson(o.toJson());
|
| + checkInstanceProperties(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AutoscalersScopedList", () {
|
| + unittest.group("obj-schema-InstanceReference", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAutoscalersScopedList();
|
| - var od = new api.AutoscalersScopedList.fromJson(o.toJson());
|
| - checkAutoscalersScopedList(od);
|
| + var o = buildInstanceReference();
|
| + var od = new api.InstanceReference.fromJson(o.toJson());
|
| + checkInstanceReference(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AutoscalingPolicy", () {
|
| + unittest.group("obj-schema-InstanceTemplate", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAutoscalingPolicy();
|
| - var od = new api.AutoscalingPolicy.fromJson(o.toJson());
|
| - checkAutoscalingPolicy(od);
|
| + var o = buildInstanceTemplate();
|
| + var od = new api.InstanceTemplate.fromJson(o.toJson());
|
| + checkInstanceTemplate(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AutoscalingPolicyCpuUtilization", () {
|
| + unittest.group("obj-schema-InstanceTemplateList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAutoscalingPolicyCpuUtilization();
|
| - var od = new api.AutoscalingPolicyCpuUtilization.fromJson(o.toJson());
|
| - checkAutoscalingPolicyCpuUtilization(od);
|
| + var o = buildInstanceTemplateList();
|
| + var od = new api.InstanceTemplateList.fromJson(o.toJson());
|
| + checkInstanceTemplateList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AutoscalingPolicyCustomMetricUtilization", () {
|
| + unittest.group("obj-schema-InstanceWithNamedPorts", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAutoscalingPolicyCustomMetricUtilization();
|
| - var od = new api.AutoscalingPolicyCustomMetricUtilization.fromJson(o.toJson());
|
| - checkAutoscalingPolicyCustomMetricUtilization(od);
|
| + var o = buildInstanceWithNamedPorts();
|
| + var od = new api.InstanceWithNamedPorts.fromJson(o.toJson());
|
| + checkInstanceWithNamedPorts(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-AutoscalingPolicyLoadBalancingUtilization", () {
|
| + unittest.group("obj-schema-InstancesScopedListWarningData", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildAutoscalingPolicyLoadBalancingUtilization();
|
| - var od = new api.AutoscalingPolicyLoadBalancingUtilization.fromJson(o.toJson());
|
| - checkAutoscalingPolicyLoadBalancingUtilization(od);
|
| + var o = buildInstancesScopedListWarningData();
|
| + var od = new api.InstancesScopedListWarningData.fromJson(o.toJson());
|
| + checkInstancesScopedListWarningData(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Backend", () {
|
| + unittest.group("obj-schema-InstancesScopedListWarning", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildBackend();
|
| - var od = new api.Backend.fromJson(o.toJson());
|
| - checkBackend(od);
|
| + var o = buildInstancesScopedListWarning();
|
| + var od = new api.InstancesScopedListWarning.fromJson(o.toJson());
|
| + checkInstancesScopedListWarning(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-BackendService", () {
|
| + unittest.group("obj-schema-InstancesScopedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildBackendService();
|
| - var od = new api.BackendService.fromJson(o.toJson());
|
| - checkBackendService(od);
|
| + var o = buildInstancesScopedList();
|
| + var od = new api.InstancesScopedList.fromJson(o.toJson());
|
| + checkInstancesScopedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-BackendServiceGroupHealth", () {
|
| + unittest.group("obj-schema-InstancesSetMachineTypeRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildBackendServiceGroupHealth();
|
| - var od = new api.BackendServiceGroupHealth.fromJson(o.toJson());
|
| - checkBackendServiceGroupHealth(od);
|
| + var o = buildInstancesSetMachineTypeRequest();
|
| + var od = new api.InstancesSetMachineTypeRequest.fromJson(o.toJson());
|
| + checkInstancesSetMachineTypeRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-BackendServiceList", () {
|
| + unittest.group("obj-schema-InstancesStartWithEncryptionKeyRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildBackendServiceList();
|
| - var od = new api.BackendServiceList.fromJson(o.toJson());
|
| - checkBackendServiceList(od);
|
| + var o = buildInstancesStartWithEncryptionKeyRequest();
|
| + var od = new api.InstancesStartWithEncryptionKeyRequest.fromJson(o.toJson());
|
| + checkInstancesStartWithEncryptionKeyRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-CacheInvalidationRule", () {
|
| + unittest.group("obj-schema-License", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildCacheInvalidationRule();
|
| - var od = new api.CacheInvalidationRule.fromJson(o.toJson());
|
| - checkCacheInvalidationRule(od);
|
| + var o = buildLicense();
|
| + var od = new api.License.fromJson(o.toJson());
|
| + checkLicense(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ConnectionDraining", () {
|
| + unittest.group("obj-schema-MachineTypeScratchDisks", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildConnectionDraining();
|
| - var od = new api.ConnectionDraining.fromJson(o.toJson());
|
| - checkConnectionDraining(od);
|
| + var o = buildMachineTypeScratchDisks();
|
| + var od = new api.MachineTypeScratchDisks.fromJson(o.toJson());
|
| + checkMachineTypeScratchDisks(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-CustomerEncryptionKey", () {
|
| + unittest.group("obj-schema-MachineType", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildCustomerEncryptionKey();
|
| - var od = new api.CustomerEncryptionKey.fromJson(o.toJson());
|
| - checkCustomerEncryptionKey(od);
|
| + var o = buildMachineType();
|
| + var od = new api.MachineType.fromJson(o.toJson());
|
| + checkMachineType(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-CustomerEncryptionKeyProtectedDisk", () {
|
| + unittest.group("obj-schema-MachineTypeAggregatedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildCustomerEncryptionKeyProtectedDisk();
|
| - var od = new api.CustomerEncryptionKeyProtectedDisk.fromJson(o.toJson());
|
| - checkCustomerEncryptionKeyProtectedDisk(od);
|
| + var o = buildMachineTypeAggregatedList();
|
| + var od = new api.MachineTypeAggregatedList.fromJson(o.toJson());
|
| + checkMachineTypeAggregatedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DeprecationStatus", () {
|
| + unittest.group("obj-schema-MachineTypeList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDeprecationStatus();
|
| - var od = new api.DeprecationStatus.fromJson(o.toJson());
|
| - checkDeprecationStatus(od);
|
| + var o = buildMachineTypeList();
|
| + var od = new api.MachineTypeList.fromJson(o.toJson());
|
| + checkMachineTypeList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Disk", () {
|
| + unittest.group("obj-schema-MachineTypesScopedListWarningData", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDisk();
|
| - var od = new api.Disk.fromJson(o.toJson());
|
| - checkDisk(od);
|
| + var o = buildMachineTypesScopedListWarningData();
|
| + var od = new api.MachineTypesScopedListWarningData.fromJson(o.toJson());
|
| + checkMachineTypesScopedListWarningData(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DiskAggregatedList", () {
|
| + unittest.group("obj-schema-MachineTypesScopedListWarning", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDiskAggregatedList();
|
| - var od = new api.DiskAggregatedList.fromJson(o.toJson());
|
| - checkDiskAggregatedList(od);
|
| + var o = buildMachineTypesScopedListWarning();
|
| + var od = new api.MachineTypesScopedListWarning.fromJson(o.toJson());
|
| + checkMachineTypesScopedListWarning(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DiskList", () {
|
| + unittest.group("obj-schema-MachineTypesScopedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDiskList();
|
| - var od = new api.DiskList.fromJson(o.toJson());
|
| - checkDiskList(od);
|
| + var o = buildMachineTypesScopedList();
|
| + var od = new api.MachineTypesScopedList.fromJson(o.toJson());
|
| + checkMachineTypesScopedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DiskMoveRequest", () {
|
| + unittest.group("obj-schema-ManagedInstance", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildManagedInstance();
|
| + var od = new api.ManagedInstance.fromJson(o.toJson());
|
| + checkManagedInstance(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ManagedInstanceLastAttemptErrorsErrors", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildManagedInstanceLastAttemptErrorsErrors();
|
| + var od = new api.ManagedInstanceLastAttemptErrorsErrors.fromJson(o.toJson());
|
| + checkManagedInstanceLastAttemptErrorsErrors(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ManagedInstanceLastAttemptErrors", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildManagedInstanceLastAttemptErrors();
|
| + var od = new api.ManagedInstanceLastAttemptErrors.fromJson(o.toJson());
|
| + checkManagedInstanceLastAttemptErrors(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-ManagedInstanceLastAttempt", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildManagedInstanceLastAttempt();
|
| + var od = new api.ManagedInstanceLastAttempt.fromJson(o.toJson());
|
| + checkManagedInstanceLastAttempt(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-MetadataItems", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildMetadataItems();
|
| + var od = new api.MetadataItems.fromJson(o.toJson());
|
| + checkMetadataItems(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-Metadata", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildMetadata();
|
| + var od = new api.Metadata.fromJson(o.toJson());
|
| + checkMetadata(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-NamedPort", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDiskMoveRequest();
|
| - var od = new api.DiskMoveRequest.fromJson(o.toJson());
|
| - checkDiskMoveRequest(od);
|
| + var o = buildNamedPort();
|
| + var od = new api.NamedPort.fromJson(o.toJson());
|
| + checkNamedPort(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DiskType", () {
|
| + unittest.group("obj-schema-Network", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDiskType();
|
| - var od = new api.DiskType.fromJson(o.toJson());
|
| - checkDiskType(od);
|
| + var o = buildNetwork();
|
| + var od = new api.Network.fromJson(o.toJson());
|
| + checkNetwork(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DiskTypeAggregatedList", () {
|
| + unittest.group("obj-schema-NetworkInterface", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDiskTypeAggregatedList();
|
| - var od = new api.DiskTypeAggregatedList.fromJson(o.toJson());
|
| - checkDiskTypeAggregatedList(od);
|
| + var o = buildNetworkInterface();
|
| + var od = new api.NetworkInterface.fromJson(o.toJson());
|
| + checkNetworkInterface(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DiskTypeList", () {
|
| + unittest.group("obj-schema-NetworkList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDiskTypeList();
|
| - var od = new api.DiskTypeList.fromJson(o.toJson());
|
| - checkDiskTypeList(od);
|
| + var o = buildNetworkList();
|
| + var od = new api.NetworkList.fromJson(o.toJson());
|
| + checkNetworkList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DiskTypesScopedListWarningData", () {
|
| + unittest.group("obj-schema-OperationErrorErrors", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDiskTypesScopedListWarningData();
|
| - var od = new api.DiskTypesScopedListWarningData.fromJson(o.toJson());
|
| - checkDiskTypesScopedListWarningData(od);
|
| + var o = buildOperationErrorErrors();
|
| + var od = new api.OperationErrorErrors.fromJson(o.toJson());
|
| + checkOperationErrorErrors(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DiskTypesScopedListWarning", () {
|
| + unittest.group("obj-schema-OperationError", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDiskTypesScopedListWarning();
|
| - var od = new api.DiskTypesScopedListWarning.fromJson(o.toJson());
|
| - checkDiskTypesScopedListWarning(od);
|
| + var o = buildOperationError();
|
| + var od = new api.OperationError.fromJson(o.toJson());
|
| + checkOperationError(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DiskTypesScopedList", () {
|
| + unittest.group("obj-schema-OperationWarningsData", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDiskTypesScopedList();
|
| - var od = new api.DiskTypesScopedList.fromJson(o.toJson());
|
| - checkDiskTypesScopedList(od);
|
| + var o = buildOperationWarningsData();
|
| + var od = new api.OperationWarningsData.fromJson(o.toJson());
|
| + checkOperationWarningsData(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DisksResizeRequest", () {
|
| + unittest.group("obj-schema-OperationWarnings", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDisksResizeRequest();
|
| - var od = new api.DisksResizeRequest.fromJson(o.toJson());
|
| - checkDisksResizeRequest(od);
|
| + var o = buildOperationWarnings();
|
| + var od = new api.OperationWarnings.fromJson(o.toJson());
|
| + checkOperationWarnings(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DisksScopedListWarningData", () {
|
| + unittest.group("obj-schema-Operation", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDisksScopedListWarningData();
|
| - var od = new api.DisksScopedListWarningData.fromJson(o.toJson());
|
| - checkDisksScopedListWarningData(od);
|
| + var o = buildOperation();
|
| + var od = new api.Operation.fromJson(o.toJson());
|
| + checkOperation(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DisksScopedListWarning", () {
|
| + unittest.group("obj-schema-OperationAggregatedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDisksScopedListWarning();
|
| - var od = new api.DisksScopedListWarning.fromJson(o.toJson());
|
| - checkDisksScopedListWarning(od);
|
| + var o = buildOperationAggregatedList();
|
| + var od = new api.OperationAggregatedList.fromJson(o.toJson());
|
| + checkOperationAggregatedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-DisksScopedList", () {
|
| + unittest.group("obj-schema-OperationList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildDisksScopedList();
|
| - var od = new api.DisksScopedList.fromJson(o.toJson());
|
| - checkDisksScopedList(od);
|
| + var o = buildOperationList();
|
| + var od = new api.OperationList.fromJson(o.toJson());
|
| + checkOperationList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-FirewallAllowed", () {
|
| + unittest.group("obj-schema-OperationsScopedListWarningData", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildFirewallAllowed();
|
| - var od = new api.FirewallAllowed.fromJson(o.toJson());
|
| - checkFirewallAllowed(od);
|
| + var o = buildOperationsScopedListWarningData();
|
| + var od = new api.OperationsScopedListWarningData.fromJson(o.toJson());
|
| + checkOperationsScopedListWarningData(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Firewall", () {
|
| + unittest.group("obj-schema-OperationsScopedListWarning", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildFirewall();
|
| - var od = new api.Firewall.fromJson(o.toJson());
|
| - checkFirewall(od);
|
| + var o = buildOperationsScopedListWarning();
|
| + var od = new api.OperationsScopedListWarning.fromJson(o.toJson());
|
| + checkOperationsScopedListWarning(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-FirewallList", () {
|
| + unittest.group("obj-schema-OperationsScopedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildFirewallList();
|
| - var od = new api.FirewallList.fromJson(o.toJson());
|
| - checkFirewallList(od);
|
| + var o = buildOperationsScopedList();
|
| + var od = new api.OperationsScopedList.fromJson(o.toJson());
|
| + checkOperationsScopedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ForwardingRule", () {
|
| + unittest.group("obj-schema-PathMatcher", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildForwardingRule();
|
| - var od = new api.ForwardingRule.fromJson(o.toJson());
|
| - checkForwardingRule(od);
|
| + var o = buildPathMatcher();
|
| + var od = new api.PathMatcher.fromJson(o.toJson());
|
| + checkPathMatcher(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ForwardingRuleAggregatedList", () {
|
| + unittest.group("obj-schema-PathRule", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildForwardingRuleAggregatedList();
|
| - var od = new api.ForwardingRuleAggregatedList.fromJson(o.toJson());
|
| - checkForwardingRuleAggregatedList(od);
|
| + var o = buildPathRule();
|
| + var od = new api.PathRule.fromJson(o.toJson());
|
| + checkPathRule(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ForwardingRuleList", () {
|
| + unittest.group("obj-schema-Project", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildForwardingRuleList();
|
| - var od = new api.ForwardingRuleList.fromJson(o.toJson());
|
| - checkForwardingRuleList(od);
|
| + var o = buildProject();
|
| + var od = new api.Project.fromJson(o.toJson());
|
| + checkProject(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ForwardingRulesScopedListWarningData", () {
|
| + unittest.group("obj-schema-Quota", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildForwardingRulesScopedListWarningData();
|
| - var od = new api.ForwardingRulesScopedListWarningData.fromJson(o.toJson());
|
| - checkForwardingRulesScopedListWarningData(od);
|
| + var o = buildQuota();
|
| + var od = new api.Quota.fromJson(o.toJson());
|
| + checkQuota(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ForwardingRulesScopedListWarning", () {
|
| + unittest.group("obj-schema-Region", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildForwardingRulesScopedListWarning();
|
| - var od = new api.ForwardingRulesScopedListWarning.fromJson(o.toJson());
|
| - checkForwardingRulesScopedListWarning(od);
|
| + var o = buildRegion();
|
| + var od = new api.Region.fromJson(o.toJson());
|
| + checkRegion(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ForwardingRulesScopedList", () {
|
| + unittest.group("obj-schema-RegionAutoscalerList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildForwardingRulesScopedList();
|
| - var od = new api.ForwardingRulesScopedList.fromJson(o.toJson());
|
| - checkForwardingRulesScopedList(od);
|
| + var o = buildRegionAutoscalerList();
|
| + var od = new api.RegionAutoscalerList.fromJson(o.toJson());
|
| + checkRegionAutoscalerList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-HTTP2HealthCheck", () {
|
| + unittest.group("obj-schema-RegionInstanceGroupList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildHTTP2HealthCheck();
|
| - var od = new api.HTTP2HealthCheck.fromJson(o.toJson());
|
| - checkHTTP2HealthCheck(od);
|
| + var o = buildRegionInstanceGroupList();
|
| + var od = new api.RegionInstanceGroupList.fromJson(o.toJson());
|
| + checkRegionInstanceGroupList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-HTTPHealthCheck", () {
|
| + unittest.group("obj-schema-RegionInstanceGroupManagerList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildHTTPHealthCheck();
|
| - var od = new api.HTTPHealthCheck.fromJson(o.toJson());
|
| - checkHTTPHealthCheck(od);
|
| + var o = buildRegionInstanceGroupManagerList();
|
| + var od = new api.RegionInstanceGroupManagerList.fromJson(o.toJson());
|
| + checkRegionInstanceGroupManagerList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-HTTPSHealthCheck", () {
|
| + unittest.group("obj-schema-RegionInstanceGroupManagersAbandonInstancesRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildHTTPSHealthCheck();
|
| - var od = new api.HTTPSHealthCheck.fromJson(o.toJson());
|
| - checkHTTPSHealthCheck(od);
|
| + var o = buildRegionInstanceGroupManagersAbandonInstancesRequest();
|
| + var od = new api.RegionInstanceGroupManagersAbandonInstancesRequest.fromJson(o.toJson());
|
| + checkRegionInstanceGroupManagersAbandonInstancesRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-HealthCheck", () {
|
| + unittest.group("obj-schema-RegionInstanceGroupManagersDeleteInstancesRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildHealthCheck();
|
| - var od = new api.HealthCheck.fromJson(o.toJson());
|
| - checkHealthCheck(od);
|
| + var o = buildRegionInstanceGroupManagersDeleteInstancesRequest();
|
| + var od = new api.RegionInstanceGroupManagersDeleteInstancesRequest.fromJson(o.toJson());
|
| + checkRegionInstanceGroupManagersDeleteInstancesRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-HealthCheckList", () {
|
| + unittest.group("obj-schema-RegionInstanceGroupManagersListInstancesResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildHealthCheckList();
|
| - var od = new api.HealthCheckList.fromJson(o.toJson());
|
| - checkHealthCheckList(od);
|
| + var o = buildRegionInstanceGroupManagersListInstancesResponse();
|
| + var od = new api.RegionInstanceGroupManagersListInstancesResponse.fromJson(o.toJson());
|
| + checkRegionInstanceGroupManagersListInstancesResponse(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-HealthCheckReference", () {
|
| + unittest.group("obj-schema-RegionInstanceGroupManagersRecreateRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildHealthCheckReference();
|
| - var od = new api.HealthCheckReference.fromJson(o.toJson());
|
| - checkHealthCheckReference(od);
|
| + var o = buildRegionInstanceGroupManagersRecreateRequest();
|
| + var od = new api.RegionInstanceGroupManagersRecreateRequest.fromJson(o.toJson());
|
| + checkRegionInstanceGroupManagersRecreateRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-HealthStatus", () {
|
| + unittest.group("obj-schema-RegionInstanceGroupManagersSetTargetPoolsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildHealthStatus();
|
| - var od = new api.HealthStatus.fromJson(o.toJson());
|
| - checkHealthStatus(od);
|
| + var o = buildRegionInstanceGroupManagersSetTargetPoolsRequest();
|
| + var od = new api.RegionInstanceGroupManagersSetTargetPoolsRequest.fromJson(o.toJson());
|
| + checkRegionInstanceGroupManagersSetTargetPoolsRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-HostRule", () {
|
| + unittest.group("obj-schema-RegionInstanceGroupManagersSetTemplateRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildHostRule();
|
| - var od = new api.HostRule.fromJson(o.toJson());
|
| - checkHostRule(od);
|
| + var o = buildRegionInstanceGroupManagersSetTemplateRequest();
|
| + var od = new api.RegionInstanceGroupManagersSetTemplateRequest.fromJson(o.toJson());
|
| + checkRegionInstanceGroupManagersSetTemplateRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-HttpHealthCheck", () {
|
| + unittest.group("obj-schema-RegionInstanceGroupsListInstances", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildHttpHealthCheck();
|
| - var od = new api.HttpHealthCheck.fromJson(o.toJson());
|
| - checkHttpHealthCheck(od);
|
| + var o = buildRegionInstanceGroupsListInstances();
|
| + var od = new api.RegionInstanceGroupsListInstances.fromJson(o.toJson());
|
| + checkRegionInstanceGroupsListInstances(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-HttpHealthCheckList", () {
|
| + unittest.group("obj-schema-RegionInstanceGroupsListInstancesRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildHttpHealthCheckList();
|
| - var od = new api.HttpHealthCheckList.fromJson(o.toJson());
|
| - checkHttpHealthCheckList(od);
|
| + var o = buildRegionInstanceGroupsListInstancesRequest();
|
| + var od = new api.RegionInstanceGroupsListInstancesRequest.fromJson(o.toJson());
|
| + checkRegionInstanceGroupsListInstancesRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-HttpsHealthCheck", () {
|
| + unittest.group("obj-schema-RegionInstanceGroupsSetNamedPortsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildHttpsHealthCheck();
|
| - var od = new api.HttpsHealthCheck.fromJson(o.toJson());
|
| - checkHttpsHealthCheck(od);
|
| + var o = buildRegionInstanceGroupsSetNamedPortsRequest();
|
| + var od = new api.RegionInstanceGroupsSetNamedPortsRequest.fromJson(o.toJson());
|
| + checkRegionInstanceGroupsSetNamedPortsRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-HttpsHealthCheckList", () {
|
| + unittest.group("obj-schema-RegionList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildHttpsHealthCheckList();
|
| - var od = new api.HttpsHealthCheckList.fromJson(o.toJson());
|
| - checkHttpsHealthCheckList(od);
|
| + var o = buildRegionList();
|
| + var od = new api.RegionList.fromJson(o.toJson());
|
| + checkRegionList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ImageRawDisk", () {
|
| + unittest.group("obj-schema-ResourceGroupReference", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildImageRawDisk();
|
| - var od = new api.ImageRawDisk.fromJson(o.toJson());
|
| - checkImageRawDisk(od);
|
| + var o = buildResourceGroupReference();
|
| + var od = new api.ResourceGroupReference.fromJson(o.toJson());
|
| + checkResourceGroupReference(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Image", () {
|
| + unittest.group("obj-schema-RouteWarningsData", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildImage();
|
| - var od = new api.Image.fromJson(o.toJson());
|
| - checkImage(od);
|
| + var o = buildRouteWarningsData();
|
| + var od = new api.RouteWarningsData.fromJson(o.toJson());
|
| + checkRouteWarningsData(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ImageList", () {
|
| + unittest.group("obj-schema-RouteWarnings", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildImageList();
|
| - var od = new api.ImageList.fromJson(o.toJson());
|
| - checkImageList(od);
|
| + var o = buildRouteWarnings();
|
| + var od = new api.RouteWarnings.fromJson(o.toJson());
|
| + checkRouteWarnings(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Instance", () {
|
| + unittest.group("obj-schema-Route", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstance();
|
| - var od = new api.Instance.fromJson(o.toJson());
|
| - checkInstance(od);
|
| + var o = buildRoute();
|
| + var od = new api.Route.fromJson(o.toJson());
|
| + checkRoute(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceAggregatedList", () {
|
| + unittest.group("obj-schema-RouteList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceAggregatedList();
|
| - var od = new api.InstanceAggregatedList.fromJson(o.toJson());
|
| - checkInstanceAggregatedList(od);
|
| + var o = buildRouteList();
|
| + var od = new api.RouteList.fromJson(o.toJson());
|
| + checkRouteList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroup", () {
|
| + unittest.group("obj-schema-Router", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroup();
|
| - var od = new api.InstanceGroup.fromJson(o.toJson());
|
| - checkInstanceGroup(od);
|
| + var o = buildRouter();
|
| + var od = new api.Router.fromJson(o.toJson());
|
| + checkRouter(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupAggregatedList", () {
|
| + unittest.group("obj-schema-RouterAggregatedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupAggregatedList();
|
| - var od = new api.InstanceGroupAggregatedList.fromJson(o.toJson());
|
| - checkInstanceGroupAggregatedList(od);
|
| + var o = buildRouterAggregatedList();
|
| + var od = new api.RouterAggregatedList.fromJson(o.toJson());
|
| + checkRouterAggregatedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupList", () {
|
| + unittest.group("obj-schema-RouterBgp", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupList();
|
| - var od = new api.InstanceGroupList.fromJson(o.toJson());
|
| - checkInstanceGroupList(od);
|
| + var o = buildRouterBgp();
|
| + var od = new api.RouterBgp.fromJson(o.toJson());
|
| + checkRouterBgp(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManager", () {
|
| + unittest.group("obj-schema-RouterBgpPeer", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManager();
|
| - var od = new api.InstanceGroupManager.fromJson(o.toJson());
|
| - checkInstanceGroupManager(od);
|
| + var o = buildRouterBgpPeer();
|
| + var od = new api.RouterBgpPeer.fromJson(o.toJson());
|
| + checkRouterBgpPeer(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManagerActionsSummary", () {
|
| + unittest.group("obj-schema-RouterInterface", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManagerActionsSummary();
|
| - var od = new api.InstanceGroupManagerActionsSummary.fromJson(o.toJson());
|
| - checkInstanceGroupManagerActionsSummary(od);
|
| + var o = buildRouterInterface();
|
| + var od = new api.RouterInterface.fromJson(o.toJson());
|
| + checkRouterInterface(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManagerAggregatedList", () {
|
| + unittest.group("obj-schema-RouterList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManagerAggregatedList();
|
| - var od = new api.InstanceGroupManagerAggregatedList.fromJson(o.toJson());
|
| - checkInstanceGroupManagerAggregatedList(od);
|
| + var o = buildRouterList();
|
| + var od = new api.RouterList.fromJson(o.toJson());
|
| + checkRouterList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManagerList", () {
|
| + unittest.group("obj-schema-RouterStatus", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManagerList();
|
| - var od = new api.InstanceGroupManagerList.fromJson(o.toJson());
|
| - checkInstanceGroupManagerList(od);
|
| + var o = buildRouterStatus();
|
| + var od = new api.RouterStatus.fromJson(o.toJson());
|
| + checkRouterStatus(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManagersAbandonInstancesRequest", () {
|
| + unittest.group("obj-schema-RouterStatusBgpPeerStatus", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManagersAbandonInstancesRequest();
|
| - var od = new api.InstanceGroupManagersAbandonInstancesRequest.fromJson(o.toJson());
|
| - checkInstanceGroupManagersAbandonInstancesRequest(od);
|
| + var o = buildRouterStatusBgpPeerStatus();
|
| + var od = new api.RouterStatusBgpPeerStatus.fromJson(o.toJson());
|
| + checkRouterStatusBgpPeerStatus(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManagersDeleteInstancesRequest", () {
|
| + unittest.group("obj-schema-RouterStatusResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManagersDeleteInstancesRequest();
|
| - var od = new api.InstanceGroupManagersDeleteInstancesRequest.fromJson(o.toJson());
|
| - checkInstanceGroupManagersDeleteInstancesRequest(od);
|
| + var o = buildRouterStatusResponse();
|
| + var od = new api.RouterStatusResponse.fromJson(o.toJson());
|
| + checkRouterStatusResponse(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManagersListManagedInstancesResponse", () {
|
| + unittest.group("obj-schema-RoutersPreviewResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManagersListManagedInstancesResponse();
|
| - var od = new api.InstanceGroupManagersListManagedInstancesResponse.fromJson(o.toJson());
|
| - checkInstanceGroupManagersListManagedInstancesResponse(od);
|
| + var o = buildRoutersPreviewResponse();
|
| + var od = new api.RoutersPreviewResponse.fromJson(o.toJson());
|
| + checkRoutersPreviewResponse(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManagersRecreateInstancesRequest", () {
|
| + unittest.group("obj-schema-RoutersScopedListWarningData", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManagersRecreateInstancesRequest();
|
| - var od = new api.InstanceGroupManagersRecreateInstancesRequest.fromJson(o.toJson());
|
| - checkInstanceGroupManagersRecreateInstancesRequest(od);
|
| + var o = buildRoutersScopedListWarningData();
|
| + var od = new api.RoutersScopedListWarningData.fromJson(o.toJson());
|
| + checkRoutersScopedListWarningData(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManagersScopedListWarningData", () {
|
| + unittest.group("obj-schema-RoutersScopedListWarning", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManagersScopedListWarningData();
|
| - var od = new api.InstanceGroupManagersScopedListWarningData.fromJson(o.toJson());
|
| - checkInstanceGroupManagersScopedListWarningData(od);
|
| + var o = buildRoutersScopedListWarning();
|
| + var od = new api.RoutersScopedListWarning.fromJson(o.toJson());
|
| + checkRoutersScopedListWarning(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManagersScopedListWarning", () {
|
| + unittest.group("obj-schema-RoutersScopedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManagersScopedListWarning();
|
| - var od = new api.InstanceGroupManagersScopedListWarning.fromJson(o.toJson());
|
| - checkInstanceGroupManagersScopedListWarning(od);
|
| + var o = buildRoutersScopedList();
|
| + var od = new api.RoutersScopedList.fromJson(o.toJson());
|
| + checkRoutersScopedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManagersScopedList", () {
|
| + unittest.group("obj-schema-SSLHealthCheck", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManagersScopedList();
|
| - var od = new api.InstanceGroupManagersScopedList.fromJson(o.toJson());
|
| - checkInstanceGroupManagersScopedList(od);
|
| + var o = buildSSLHealthCheck();
|
| + var od = new api.SSLHealthCheck.fromJson(o.toJson());
|
| + checkSSLHealthCheck(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManagersSetInstanceTemplateRequest", () {
|
| + unittest.group("obj-schema-Scheduling", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManagersSetInstanceTemplateRequest();
|
| - var od = new api.InstanceGroupManagersSetInstanceTemplateRequest.fromJson(o.toJson());
|
| - checkInstanceGroupManagersSetInstanceTemplateRequest(od);
|
| + var o = buildScheduling();
|
| + var od = new api.Scheduling.fromJson(o.toJson());
|
| + checkScheduling(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupManagersSetTargetPoolsRequest", () {
|
| + unittest.group("obj-schema-SerialPortOutput", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupManagersSetTargetPoolsRequest();
|
| - var od = new api.InstanceGroupManagersSetTargetPoolsRequest.fromJson(o.toJson());
|
| - checkInstanceGroupManagersSetTargetPoolsRequest(od);
|
| + var o = buildSerialPortOutput();
|
| + var od = new api.SerialPortOutput.fromJson(o.toJson());
|
| + checkSerialPortOutput(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupsAddInstancesRequest", () {
|
| + unittest.group("obj-schema-ServiceAccount", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupsAddInstancesRequest();
|
| - var od = new api.InstanceGroupsAddInstancesRequest.fromJson(o.toJson());
|
| - checkInstanceGroupsAddInstancesRequest(od);
|
| + var o = buildServiceAccount();
|
| + var od = new api.ServiceAccount.fromJson(o.toJson());
|
| + checkServiceAccount(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupsListInstances", () {
|
| + unittest.group("obj-schema-Snapshot", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupsListInstances();
|
| - var od = new api.InstanceGroupsListInstances.fromJson(o.toJson());
|
| - checkInstanceGroupsListInstances(od);
|
| + var o = buildSnapshot();
|
| + var od = new api.Snapshot.fromJson(o.toJson());
|
| + checkSnapshot(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupsListInstancesRequest", () {
|
| + unittest.group("obj-schema-SnapshotList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupsListInstancesRequest();
|
| - var od = new api.InstanceGroupsListInstancesRequest.fromJson(o.toJson());
|
| - checkInstanceGroupsListInstancesRequest(od);
|
| + var o = buildSnapshotList();
|
| + var od = new api.SnapshotList.fromJson(o.toJson());
|
| + checkSnapshotList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupsRemoveInstancesRequest", () {
|
| + unittest.group("obj-schema-SslCertificate", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupsRemoveInstancesRequest();
|
| - var od = new api.InstanceGroupsRemoveInstancesRequest.fromJson(o.toJson());
|
| - checkInstanceGroupsRemoveInstancesRequest(od);
|
| + var o = buildSslCertificate();
|
| + var od = new api.SslCertificate.fromJson(o.toJson());
|
| + checkSslCertificate(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupsScopedListWarningData", () {
|
| + unittest.group("obj-schema-SslCertificateList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupsScopedListWarningData();
|
| - var od = new api.InstanceGroupsScopedListWarningData.fromJson(o.toJson());
|
| - checkInstanceGroupsScopedListWarningData(od);
|
| + var o = buildSslCertificateList();
|
| + var od = new api.SslCertificateList.fromJson(o.toJson());
|
| + checkSslCertificateList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupsScopedListWarning", () {
|
| + unittest.group("obj-schema-Subnetwork", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupsScopedListWarning();
|
| - var od = new api.InstanceGroupsScopedListWarning.fromJson(o.toJson());
|
| - checkInstanceGroupsScopedListWarning(od);
|
| + var o = buildSubnetwork();
|
| + var od = new api.Subnetwork.fromJson(o.toJson());
|
| + checkSubnetwork(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupsScopedList", () {
|
| + unittest.group("obj-schema-SubnetworkAggregatedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupsScopedList();
|
| - var od = new api.InstanceGroupsScopedList.fromJson(o.toJson());
|
| - checkInstanceGroupsScopedList(od);
|
| + var o = buildSubnetworkAggregatedList();
|
| + var od = new api.SubnetworkAggregatedList.fromJson(o.toJson());
|
| + checkSubnetworkAggregatedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceGroupsSetNamedPortsRequest", () {
|
| + unittest.group("obj-schema-SubnetworkList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceGroupsSetNamedPortsRequest();
|
| - var od = new api.InstanceGroupsSetNamedPortsRequest.fromJson(o.toJson());
|
| - checkInstanceGroupsSetNamedPortsRequest(od);
|
| + var o = buildSubnetworkList();
|
| + var od = new api.SubnetworkList.fromJson(o.toJson());
|
| + checkSubnetworkList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceList", () {
|
| + unittest.group("obj-schema-SubnetworksExpandIpCidrRangeRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceList();
|
| - var od = new api.InstanceList.fromJson(o.toJson());
|
| - checkInstanceList(od);
|
| + var o = buildSubnetworksExpandIpCidrRangeRequest();
|
| + var od = new api.SubnetworksExpandIpCidrRangeRequest.fromJson(o.toJson());
|
| + checkSubnetworksExpandIpCidrRangeRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceMoveRequest", () {
|
| + unittest.group("obj-schema-SubnetworksScopedListWarningData", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceMoveRequest();
|
| - var od = new api.InstanceMoveRequest.fromJson(o.toJson());
|
| - checkInstanceMoveRequest(od);
|
| + var o = buildSubnetworksScopedListWarningData();
|
| + var od = new api.SubnetworksScopedListWarningData.fromJson(o.toJson());
|
| + checkSubnetworksScopedListWarningData(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceProperties", () {
|
| + unittest.group("obj-schema-SubnetworksScopedListWarning", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceProperties();
|
| - var od = new api.InstanceProperties.fromJson(o.toJson());
|
| - checkInstanceProperties(od);
|
| + var o = buildSubnetworksScopedListWarning();
|
| + var od = new api.SubnetworksScopedListWarning.fromJson(o.toJson());
|
| + checkSubnetworksScopedListWarning(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceReference", () {
|
| + unittest.group("obj-schema-SubnetworksScopedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceReference();
|
| - var od = new api.InstanceReference.fromJson(o.toJson());
|
| - checkInstanceReference(od);
|
| + var o = buildSubnetworksScopedList();
|
| + var od = new api.SubnetworksScopedList.fromJson(o.toJson());
|
| + checkSubnetworksScopedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceTemplate", () {
|
| + unittest.group("obj-schema-TCPHealthCheck", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceTemplate();
|
| - var od = new api.InstanceTemplate.fromJson(o.toJson());
|
| - checkInstanceTemplate(od);
|
| + var o = buildTCPHealthCheck();
|
| + var od = new api.TCPHealthCheck.fromJson(o.toJson());
|
| + checkTCPHealthCheck(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceTemplateList", () {
|
| + unittest.group("obj-schema-Tags", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceTemplateList();
|
| - var od = new api.InstanceTemplateList.fromJson(o.toJson());
|
| - checkInstanceTemplateList(od);
|
| + var o = buildTags();
|
| + var od = new api.Tags.fromJson(o.toJson());
|
| + checkTags(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstanceWithNamedPorts", () {
|
| + unittest.group("obj-schema-TargetHttpProxy", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstanceWithNamedPorts();
|
| - var od = new api.InstanceWithNamedPorts.fromJson(o.toJson());
|
| - checkInstanceWithNamedPorts(od);
|
| + var o = buildTargetHttpProxy();
|
| + var od = new api.TargetHttpProxy.fromJson(o.toJson());
|
| + checkTargetHttpProxy(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstancesScopedListWarningData", () {
|
| + unittest.group("obj-schema-TargetHttpProxyList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstancesScopedListWarningData();
|
| - var od = new api.InstancesScopedListWarningData.fromJson(o.toJson());
|
| - checkInstancesScopedListWarningData(od);
|
| + var o = buildTargetHttpProxyList();
|
| + var od = new api.TargetHttpProxyList.fromJson(o.toJson());
|
| + checkTargetHttpProxyList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstancesScopedListWarning", () {
|
| + unittest.group("obj-schema-TargetHttpsProxiesSetSslCertificatesRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstancesScopedListWarning();
|
| - var od = new api.InstancesScopedListWarning.fromJson(o.toJson());
|
| - checkInstancesScopedListWarning(od);
|
| + var o = buildTargetHttpsProxiesSetSslCertificatesRequest();
|
| + var od = new api.TargetHttpsProxiesSetSslCertificatesRequest.fromJson(o.toJson());
|
| + checkTargetHttpsProxiesSetSslCertificatesRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstancesScopedList", () {
|
| + unittest.group("obj-schema-TargetHttpsProxy", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstancesScopedList();
|
| - var od = new api.InstancesScopedList.fromJson(o.toJson());
|
| - checkInstancesScopedList(od);
|
| + var o = buildTargetHttpsProxy();
|
| + var od = new api.TargetHttpsProxy.fromJson(o.toJson());
|
| + checkTargetHttpsProxy(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstancesSetMachineTypeRequest", () {
|
| + unittest.group("obj-schema-TargetHttpsProxyList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstancesSetMachineTypeRequest();
|
| - var od = new api.InstancesSetMachineTypeRequest.fromJson(o.toJson());
|
| - checkInstancesSetMachineTypeRequest(od);
|
| + var o = buildTargetHttpsProxyList();
|
| + var od = new api.TargetHttpsProxyList.fromJson(o.toJson());
|
| + checkTargetHttpsProxyList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-InstancesStartWithEncryptionKeyRequest", () {
|
| + unittest.group("obj-schema-TargetInstance", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildInstancesStartWithEncryptionKeyRequest();
|
| - var od = new api.InstancesStartWithEncryptionKeyRequest.fromJson(o.toJson());
|
| - checkInstancesStartWithEncryptionKeyRequest(od);
|
| + var o = buildTargetInstance();
|
| + var od = new api.TargetInstance.fromJson(o.toJson());
|
| + checkTargetInstance(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-License", () {
|
| + unittest.group("obj-schema-TargetInstanceAggregatedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildLicense();
|
| - var od = new api.License.fromJson(o.toJson());
|
| - checkLicense(od);
|
| + var o = buildTargetInstanceAggregatedList();
|
| + var od = new api.TargetInstanceAggregatedList.fromJson(o.toJson());
|
| + checkTargetInstanceAggregatedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-MachineTypeScratchDisks", () {
|
| + unittest.group("obj-schema-TargetInstanceList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildMachineTypeScratchDisks();
|
| - var od = new api.MachineTypeScratchDisks.fromJson(o.toJson());
|
| - checkMachineTypeScratchDisks(od);
|
| + var o = buildTargetInstanceList();
|
| + var od = new api.TargetInstanceList.fromJson(o.toJson());
|
| + checkTargetInstanceList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-MachineType", () {
|
| + unittest.group("obj-schema-TargetInstancesScopedListWarningData", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildMachineType();
|
| - var od = new api.MachineType.fromJson(o.toJson());
|
| - checkMachineType(od);
|
| + var o = buildTargetInstancesScopedListWarningData();
|
| + var od = new api.TargetInstancesScopedListWarningData.fromJson(o.toJson());
|
| + checkTargetInstancesScopedListWarningData(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-MachineTypeAggregatedList", () {
|
| + unittest.group("obj-schema-TargetInstancesScopedListWarning", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildMachineTypeAggregatedList();
|
| - var od = new api.MachineTypeAggregatedList.fromJson(o.toJson());
|
| - checkMachineTypeAggregatedList(od);
|
| + var o = buildTargetInstancesScopedListWarning();
|
| + var od = new api.TargetInstancesScopedListWarning.fromJson(o.toJson());
|
| + checkTargetInstancesScopedListWarning(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-MachineTypeList", () {
|
| + unittest.group("obj-schema-TargetInstancesScopedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildMachineTypeList();
|
| - var od = new api.MachineTypeList.fromJson(o.toJson());
|
| - checkMachineTypeList(od);
|
| + var o = buildTargetInstancesScopedList();
|
| + var od = new api.TargetInstancesScopedList.fromJson(o.toJson());
|
| + checkTargetInstancesScopedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-MachineTypesScopedListWarningData", () {
|
| + unittest.group("obj-schema-TargetPool", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildMachineTypesScopedListWarningData();
|
| - var od = new api.MachineTypesScopedListWarningData.fromJson(o.toJson());
|
| - checkMachineTypesScopedListWarningData(od);
|
| + var o = buildTargetPool();
|
| + var od = new api.TargetPool.fromJson(o.toJson());
|
| + checkTargetPool(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-MachineTypesScopedListWarning", () {
|
| + unittest.group("obj-schema-TargetPoolAggregatedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildMachineTypesScopedListWarning();
|
| - var od = new api.MachineTypesScopedListWarning.fromJson(o.toJson());
|
| - checkMachineTypesScopedListWarning(od);
|
| + var o = buildTargetPoolAggregatedList();
|
| + var od = new api.TargetPoolAggregatedList.fromJson(o.toJson());
|
| + checkTargetPoolAggregatedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-MachineTypesScopedList", () {
|
| + unittest.group("obj-schema-TargetPoolInstanceHealth", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildMachineTypesScopedList();
|
| - var od = new api.MachineTypesScopedList.fromJson(o.toJson());
|
| - checkMachineTypesScopedList(od);
|
| + var o = buildTargetPoolInstanceHealth();
|
| + var od = new api.TargetPoolInstanceHealth.fromJson(o.toJson());
|
| + checkTargetPoolInstanceHealth(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ManagedInstance", () {
|
| + unittest.group("obj-schema-TargetPoolList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildManagedInstance();
|
| - var od = new api.ManagedInstance.fromJson(o.toJson());
|
| - checkManagedInstance(od);
|
| + var o = buildTargetPoolList();
|
| + var od = new api.TargetPoolList.fromJson(o.toJson());
|
| + checkTargetPoolList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ManagedInstanceLastAttemptErrorsErrors", () {
|
| + unittest.group("obj-schema-TargetPoolsAddHealthCheckRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildManagedInstanceLastAttemptErrorsErrors();
|
| - var od = new api.ManagedInstanceLastAttemptErrorsErrors.fromJson(o.toJson());
|
| - checkManagedInstanceLastAttemptErrorsErrors(od);
|
| + var o = buildTargetPoolsAddHealthCheckRequest();
|
| + var od = new api.TargetPoolsAddHealthCheckRequest.fromJson(o.toJson());
|
| + checkTargetPoolsAddHealthCheckRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ManagedInstanceLastAttemptErrors", () {
|
| + unittest.group("obj-schema-TargetPoolsAddInstanceRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildManagedInstanceLastAttemptErrors();
|
| - var od = new api.ManagedInstanceLastAttemptErrors.fromJson(o.toJson());
|
| - checkManagedInstanceLastAttemptErrors(od);
|
| + var o = buildTargetPoolsAddInstanceRequest();
|
| + var od = new api.TargetPoolsAddInstanceRequest.fromJson(o.toJson());
|
| + checkTargetPoolsAddInstanceRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ManagedInstanceLastAttempt", () {
|
| + unittest.group("obj-schema-TargetPoolsRemoveHealthCheckRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildManagedInstanceLastAttempt();
|
| - var od = new api.ManagedInstanceLastAttempt.fromJson(o.toJson());
|
| - checkManagedInstanceLastAttempt(od);
|
| + var o = buildTargetPoolsRemoveHealthCheckRequest();
|
| + var od = new api.TargetPoolsRemoveHealthCheckRequest.fromJson(o.toJson());
|
| + checkTargetPoolsRemoveHealthCheckRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-MetadataItems", () {
|
| + unittest.group("obj-schema-TargetPoolsRemoveInstanceRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildMetadataItems();
|
| - var od = new api.MetadataItems.fromJson(o.toJson());
|
| - checkMetadataItems(od);
|
| + var o = buildTargetPoolsRemoveInstanceRequest();
|
| + var od = new api.TargetPoolsRemoveInstanceRequest.fromJson(o.toJson());
|
| + checkTargetPoolsRemoveInstanceRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Metadata", () {
|
| + unittest.group("obj-schema-TargetPoolsScopedListWarningData", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildMetadata();
|
| - var od = new api.Metadata.fromJson(o.toJson());
|
| - checkMetadata(od);
|
| + var o = buildTargetPoolsScopedListWarningData();
|
| + var od = new api.TargetPoolsScopedListWarningData.fromJson(o.toJson());
|
| + checkTargetPoolsScopedListWarningData(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-NamedPort", () {
|
| + unittest.group("obj-schema-TargetPoolsScopedListWarning", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildNamedPort();
|
| - var od = new api.NamedPort.fromJson(o.toJson());
|
| - checkNamedPort(od);
|
| + var o = buildTargetPoolsScopedListWarning();
|
| + var od = new api.TargetPoolsScopedListWarning.fromJson(o.toJson());
|
| + checkTargetPoolsScopedListWarning(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Network", () {
|
| + unittest.group("obj-schema-TargetPoolsScopedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildNetwork();
|
| - var od = new api.Network.fromJson(o.toJson());
|
| - checkNetwork(od);
|
| + var o = buildTargetPoolsScopedList();
|
| + var od = new api.TargetPoolsScopedList.fromJson(o.toJson());
|
| + checkTargetPoolsScopedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-NetworkInterface", () {
|
| + unittest.group("obj-schema-TargetReference", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildNetworkInterface();
|
| - var od = new api.NetworkInterface.fromJson(o.toJson());
|
| - checkNetworkInterface(od);
|
| + var o = buildTargetReference();
|
| + var od = new api.TargetReference.fromJson(o.toJson());
|
| + checkTargetReference(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-NetworkList", () {
|
| + unittest.group("obj-schema-TargetSslProxiesSetBackendServiceRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildNetworkList();
|
| - var od = new api.NetworkList.fromJson(o.toJson());
|
| - checkNetworkList(od);
|
| + var o = buildTargetSslProxiesSetBackendServiceRequest();
|
| + var od = new api.TargetSslProxiesSetBackendServiceRequest.fromJson(o.toJson());
|
| + checkTargetSslProxiesSetBackendServiceRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-OperationErrorErrors", () {
|
| + unittest.group("obj-schema-TargetSslProxiesSetProxyHeaderRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildOperationErrorErrors();
|
| - var od = new api.OperationErrorErrors.fromJson(o.toJson());
|
| - checkOperationErrorErrors(od);
|
| + var o = buildTargetSslProxiesSetProxyHeaderRequest();
|
| + var od = new api.TargetSslProxiesSetProxyHeaderRequest.fromJson(o.toJson());
|
| + checkTargetSslProxiesSetProxyHeaderRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-OperationError", () {
|
| + unittest.group("obj-schema-TargetSslProxiesSetSslCertificatesRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildOperationError();
|
| - var od = new api.OperationError.fromJson(o.toJson());
|
| - checkOperationError(od);
|
| + var o = buildTargetSslProxiesSetSslCertificatesRequest();
|
| + var od = new api.TargetSslProxiesSetSslCertificatesRequest.fromJson(o.toJson());
|
| + checkTargetSslProxiesSetSslCertificatesRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-OperationWarningsData", () {
|
| + unittest.group("obj-schema-TargetSslProxy", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildOperationWarningsData();
|
| - var od = new api.OperationWarningsData.fromJson(o.toJson());
|
| - checkOperationWarningsData(od);
|
| + var o = buildTargetSslProxy();
|
| + var od = new api.TargetSslProxy.fromJson(o.toJson());
|
| + checkTargetSslProxy(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-OperationWarnings", () {
|
| + unittest.group("obj-schema-TargetSslProxyList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildOperationWarnings();
|
| - var od = new api.OperationWarnings.fromJson(o.toJson());
|
| - checkOperationWarnings(od);
|
| + var o = buildTargetSslProxyList();
|
| + var od = new api.TargetSslProxyList.fromJson(o.toJson());
|
| + checkTargetSslProxyList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Operation", () {
|
| + unittest.group("obj-schema-TargetVpnGateway", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildOperation();
|
| - var od = new api.Operation.fromJson(o.toJson());
|
| - checkOperation(od);
|
| + var o = buildTargetVpnGateway();
|
| + var od = new api.TargetVpnGateway.fromJson(o.toJson());
|
| + checkTargetVpnGateway(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-OperationAggregatedList", () {
|
| + unittest.group("obj-schema-TargetVpnGatewayAggregatedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildOperationAggregatedList();
|
| - var od = new api.OperationAggregatedList.fromJson(o.toJson());
|
| - checkOperationAggregatedList(od);
|
| + var o = buildTargetVpnGatewayAggregatedList();
|
| + var od = new api.TargetVpnGatewayAggregatedList.fromJson(o.toJson());
|
| + checkTargetVpnGatewayAggregatedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-OperationList", () {
|
| + unittest.group("obj-schema-TargetVpnGatewayList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildOperationList();
|
| - var od = new api.OperationList.fromJson(o.toJson());
|
| - checkOperationList(od);
|
| + var o = buildTargetVpnGatewayList();
|
| + var od = new api.TargetVpnGatewayList.fromJson(o.toJson());
|
| + checkTargetVpnGatewayList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-OperationsScopedListWarningData", () {
|
| + unittest.group("obj-schema-TargetVpnGatewaysScopedListWarningData", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildOperationsScopedListWarningData();
|
| - var od = new api.OperationsScopedListWarningData.fromJson(o.toJson());
|
| - checkOperationsScopedListWarningData(od);
|
| + var o = buildTargetVpnGatewaysScopedListWarningData();
|
| + var od = new api.TargetVpnGatewaysScopedListWarningData.fromJson(o.toJson());
|
| + checkTargetVpnGatewaysScopedListWarningData(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-OperationsScopedListWarning", () {
|
| + unittest.group("obj-schema-TargetVpnGatewaysScopedListWarning", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildOperationsScopedListWarning();
|
| - var od = new api.OperationsScopedListWarning.fromJson(o.toJson());
|
| - checkOperationsScopedListWarning(od);
|
| + var o = buildTargetVpnGatewaysScopedListWarning();
|
| + var od = new api.TargetVpnGatewaysScopedListWarning.fromJson(o.toJson());
|
| + checkTargetVpnGatewaysScopedListWarning(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-OperationsScopedList", () {
|
| + unittest.group("obj-schema-TargetVpnGatewaysScopedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildOperationsScopedList();
|
| - var od = new api.OperationsScopedList.fromJson(o.toJson());
|
| - checkOperationsScopedList(od);
|
| + var o = buildTargetVpnGatewaysScopedList();
|
| + var od = new api.TargetVpnGatewaysScopedList.fromJson(o.toJson());
|
| + checkTargetVpnGatewaysScopedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-PathMatcher", () {
|
| + unittest.group("obj-schema-TestFailure", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildPathMatcher();
|
| - var od = new api.PathMatcher.fromJson(o.toJson());
|
| - checkPathMatcher(od);
|
| + var o = buildTestFailure();
|
| + var od = new api.TestFailure.fromJson(o.toJson());
|
| + checkTestFailure(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-PathRule", () {
|
| + unittest.group("obj-schema-UrlMap", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildPathRule();
|
| - var od = new api.PathRule.fromJson(o.toJson());
|
| - checkPathRule(od);
|
| + var o = buildUrlMap();
|
| + var od = new api.UrlMap.fromJson(o.toJson());
|
| + checkUrlMap(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Project", () {
|
| + unittest.group("obj-schema-UrlMapList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildProject();
|
| - var od = new api.Project.fromJson(o.toJson());
|
| - checkProject(od);
|
| + var o = buildUrlMapList();
|
| + var od = new api.UrlMapList.fromJson(o.toJson());
|
| + checkUrlMapList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Quota", () {
|
| + unittest.group("obj-schema-UrlMapReference", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildQuota();
|
| - var od = new api.Quota.fromJson(o.toJson());
|
| - checkQuota(od);
|
| + var o = buildUrlMapReference();
|
| + var od = new api.UrlMapReference.fromJson(o.toJson());
|
| + checkUrlMapReference(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Region", () {
|
| + unittest.group("obj-schema-UrlMapTest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildRegion();
|
| - var od = new api.Region.fromJson(o.toJson());
|
| - checkRegion(od);
|
| + var o = buildUrlMapTest();
|
| + var od = new api.UrlMapTest.fromJson(o.toJson());
|
| + checkUrlMapTest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-RegionList", () {
|
| + unittest.group("obj-schema-UrlMapValidationResult", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildRegionList();
|
| - var od = new api.RegionList.fromJson(o.toJson());
|
| - checkRegionList(od);
|
| + var o = buildUrlMapValidationResult();
|
| + var od = new api.UrlMapValidationResult.fromJson(o.toJson());
|
| + checkUrlMapValidationResult(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ResourceGroupReference", () {
|
| + unittest.group("obj-schema-UrlMapsValidateRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildResourceGroupReference();
|
| - var od = new api.ResourceGroupReference.fromJson(o.toJson());
|
| - checkResourceGroupReference(od);
|
| + var o = buildUrlMapsValidateRequest();
|
| + var od = new api.UrlMapsValidateRequest.fromJson(o.toJson());
|
| + checkUrlMapsValidateRequest(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-RouteWarningsData", () {
|
| + unittest.group("obj-schema-UrlMapsValidateResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildRouteWarningsData();
|
| - var od = new api.RouteWarningsData.fromJson(o.toJson());
|
| - checkRouteWarningsData(od);
|
| + var o = buildUrlMapsValidateResponse();
|
| + var od = new api.UrlMapsValidateResponse.fromJson(o.toJson());
|
| + checkUrlMapsValidateResponse(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-RouteWarnings", () {
|
| + unittest.group("obj-schema-UsageExportLocation", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildRouteWarnings();
|
| - var od = new api.RouteWarnings.fromJson(o.toJson());
|
| - checkRouteWarnings(od);
|
| + var o = buildUsageExportLocation();
|
| + var od = new api.UsageExportLocation.fromJson(o.toJson());
|
| + checkUsageExportLocation(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Route", () {
|
| + unittest.group("obj-schema-VpnTunnel", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildRoute();
|
| - var od = new api.Route.fromJson(o.toJson());
|
| - checkRoute(od);
|
| + var o = buildVpnTunnel();
|
| + var od = new api.VpnTunnel.fromJson(o.toJson());
|
| + checkVpnTunnel(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-RouteList", () {
|
| + unittest.group("obj-schema-VpnTunnelAggregatedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildRouteList();
|
| - var od = new api.RouteList.fromJson(o.toJson());
|
| - checkRouteList(od);
|
| + var o = buildVpnTunnelAggregatedList();
|
| + var od = new api.VpnTunnelAggregatedList.fromJson(o.toJson());
|
| + checkVpnTunnelAggregatedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-Router", () {
|
| + unittest.group("obj-schema-VpnTunnelList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildRouter();
|
| - var od = new api.Router.fromJson(o.toJson());
|
| - checkRouter(od);
|
| + var o = buildVpnTunnelList();
|
| + var od = new api.VpnTunnelList.fromJson(o.toJson());
|
| + checkVpnTunnelList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-RouterAggregatedList", () {
|
| + unittest.group("obj-schema-VpnTunnelsScopedListWarningData", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildRouterAggregatedList();
|
| - var od = new api.RouterAggregatedList.fromJson(o.toJson());
|
| - checkRouterAggregatedList(od);
|
| + var o = buildVpnTunnelsScopedListWarningData();
|
| + var od = new api.VpnTunnelsScopedListWarningData.fromJson(o.toJson());
|
| + checkVpnTunnelsScopedListWarningData(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-RouterBgp", () {
|
| + unittest.group("obj-schema-VpnTunnelsScopedListWarning", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildRouterBgp();
|
| - var od = new api.RouterBgp.fromJson(o.toJson());
|
| - checkRouterBgp(od);
|
| + var o = buildVpnTunnelsScopedListWarning();
|
| + var od = new api.VpnTunnelsScopedListWarning.fromJson(o.toJson());
|
| + checkVpnTunnelsScopedListWarning(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-RouterBgpPeer", () {
|
| + unittest.group("obj-schema-VpnTunnelsScopedList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildRouterBgpPeer();
|
| - var od = new api.RouterBgpPeer.fromJson(o.toJson());
|
| - checkRouterBgpPeer(od);
|
| + var o = buildVpnTunnelsScopedList();
|
| + var od = new api.VpnTunnelsScopedList.fromJson(o.toJson());
|
| + checkVpnTunnelsScopedList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-RouterInterface", () {
|
| + unittest.group("obj-schema-Zone", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildRouterInterface();
|
| - var od = new api.RouterInterface.fromJson(o.toJson());
|
| - checkRouterInterface(od);
|
| + var o = buildZone();
|
| + var od = new api.Zone.fromJson(o.toJson());
|
| + checkZone(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-RouterList", () {
|
| + unittest.group("obj-schema-ZoneList", () {
|
| unittest.test("to-json--from-json", () {
|
| - var o = buildRouterList();
|
| - var od = new api.RouterList.fromJson(o.toJson());
|
| - checkRouterList(od);
|
| + var o = buildZoneList();
|
| + var od = new api.ZoneList.fromJson(o.toJson());
|
| + checkZoneList(od);
|
| });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-RouterStatus", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildRouterStatus();
|
| - var od = new api.RouterStatus.fromJson(o.toJson());
|
| - checkRouterStatus(od);
|
| + unittest.group("resource-AddressesResourceApi", () {
|
| + unittest.test("method--aggregatedList", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.AddressesResourceApi res = new api.ComputeApi(mock).addresses;
|
| + var arg_project = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildAddressAggregatedList());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressAggregatedList response) {
|
| + checkAddressAggregatedList(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--delete", () {
|
|
|
| - unittest.group("obj-schema-RouterStatusBgpPeerStatus", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildRouterStatusBgpPeerStatus();
|
| - var od = new api.RouterStatusBgpPeerStatus.fromJson(o.toJson());
|
| - checkRouterStatusBgpPeerStatus(od);
|
| + var mock = new HttpServerMock();
|
| + api.AddressesResourceApi res = new api.ComputeApi(mock).addresses;
|
| + var arg_project = "foo";
|
| + var arg_region = "foo";
|
| + var arg_address = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.delete(arg_project, arg_region, arg_address).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
| +
|
| + unittest.test("method--get", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.AddressesResourceApi res = new api.ComputeApi(mock).addresses;
|
| + var arg_project = "foo";
|
| + var arg_region = "foo";
|
| + var arg_address = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-RouterStatusResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildRouterStatusResponse();
|
| - var od = new api.RouterStatusResponse.fromJson(o.toJson());
|
| - checkRouterStatusResponse(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildAddress());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_project, arg_region, arg_address).then(unittest.expectAsync(((api.Address response) {
|
| + checkAddress(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--insert", () {
|
|
|
| - unittest.group("obj-schema-RoutersPreviewResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildRoutersPreviewResponse();
|
| - var od = new api.RoutersPreviewResponse.fromJson(o.toJson());
|
| - checkRoutersPreviewResponse(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.AddressesResourceApi res = new api.ComputeApi(mock).addresses;
|
| + var arg_request = buildAddress();
|
| + var arg_project = "foo";
|
| + var arg_region = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Address.fromJson(json);
|
| + checkAddress(obj);
|
|
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-RoutersScopedListWarningData", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildRoutersScopedListWarningData();
|
| - var od = new api.RoutersScopedListWarningData.fromJson(o.toJson());
|
| - checkRoutersScopedListWarningData(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-RoutersScopedListWarning", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildRoutersScopedListWarning();
|
| - var od = new api.RoutersScopedListWarning.fromJson(o.toJson());
|
| - checkRoutersScopedListWarning(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--list", () {
|
|
|
| - unittest.group("obj-schema-RoutersScopedList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildRoutersScopedList();
|
| - var od = new api.RoutersScopedList.fromJson(o.toJson());
|
| - checkRoutersScopedList(od);
|
| - });
|
| - });
|
| -
|
| + var mock = new HttpServerMock();
|
| + api.AddressesResourceApi res = new api.ComputeApi(mock).addresses;
|
| + var arg_project = "foo";
|
| + var arg_region = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-SSLHealthCheck", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSSLHealthCheck();
|
| - var od = new api.SSLHealthCheck.fromJson(o.toJson());
|
| - checkSSLHealthCheck(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| - unittest.group("obj-schema-Scheduling", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildScheduling();
|
| - var od = new api.Scheduling.fromJson(o.toJson());
|
| - checkScheduling(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildAddressList());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) {
|
| + checkAddressList(response);
|
| + })));
|
| });
|
| - });
|
|
|
| -
|
| - unittest.group("obj-schema-SerialPortOutput", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSerialPortOutput();
|
| - var od = new api.SerialPortOutput.fromJson(o.toJson());
|
| - checkSerialPortOutput(od);
|
| - });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-ServiceAccount", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildServiceAccount();
|
| - var od = new api.ServiceAccount.fromJson(o.toJson());
|
| - checkServiceAccount(od);
|
| - });
|
| - });
|
| + unittest.group("resource-AutoscalersResourceApi", () {
|
| + unittest.test("method--aggregatedList", () {
|
|
|
| + var mock = new HttpServerMock();
|
| + api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| + var arg_project = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-Snapshot", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSnapshot();
|
| - var od = new api.Snapshot.fromJson(o.toJson());
|
| - checkSnapshot(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| - unittest.group("obj-schema-SnapshotList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSnapshotList();
|
| - var od = new api.SnapshotList.fromJson(o.toJson());
|
| - checkSnapshotList(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildAutoscalerAggregatedList());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerAggregatedList response) {
|
| + checkAutoscalerAggregatedList(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--delete", () {
|
|
|
| - unittest.group("obj-schema-SslCertificate", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSslCertificate();
|
| - var od = new api.SslCertificate.fromJson(o.toJson());
|
| - checkSslCertificate(od);
|
| - });
|
| - });
|
| -
|
| + var mock = new HttpServerMock();
|
| + api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_autoscaler = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-SslCertificateList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSslCertificateList();
|
| - var od = new api.SslCertificateList.fromJson(o.toJson());
|
| - checkSslCertificateList(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-Subnetwork", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSubnetwork();
|
| - var od = new api.Subnetwork.fromJson(o.toJson());
|
| - checkSubnetwork(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.delete(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
| -
|
|
|
| - unittest.group("obj-schema-SubnetworkAggregatedList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSubnetworkAggregatedList();
|
| - var od = new api.SubnetworkAggregatedList.fromJson(o.toJson());
|
| - checkSubnetworkAggregatedList(od);
|
| - });
|
| - });
|
| + unittest.test("method--get", () {
|
|
|
| + var mock = new HttpServerMock();
|
| + api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_autoscaler = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-SubnetworkList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSubnetworkList();
|
| - var od = new api.SubnetworkList.fromJson(o.toJson());
|
| - checkSubnetworkList(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-SubnetworksExpandIpCidrRangeRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSubnetworksExpandIpCidrRangeRequest();
|
| - var od = new api.SubnetworksExpandIpCidrRangeRequest.fromJson(o.toJson());
|
| - checkSubnetworksExpandIpCidrRangeRequest(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildAutoscaler());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsync(((api.Autoscaler response) {
|
| + checkAutoscaler(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--insert", () {
|
|
|
| - unittest.group("obj-schema-SubnetworksScopedListWarningData", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSubnetworksScopedListWarningData();
|
| - var od = new api.SubnetworksScopedListWarningData.fromJson(o.toJson());
|
| - checkSubnetworksScopedListWarningData(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| + var arg_request = buildAutoscaler();
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Autoscaler.fromJson(json);
|
| + checkAutoscaler(obj);
|
|
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-SubnetworksScopedListWarning", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSubnetworksScopedListWarning();
|
| - var od = new api.SubnetworksScopedListWarning.fromJson(o.toJson());
|
| - checkSubnetworksScopedListWarning(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-SubnetworksScopedList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSubnetworksScopedList();
|
| - var od = new api.SubnetworksScopedList.fromJson(o.toJson());
|
| - checkSubnetworksScopedList(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--list", () {
|
|
|
| - unittest.group("obj-schema-TCPHealthCheck", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTCPHealthCheck();
|
| - var od = new api.TCPHealthCheck.fromJson(o.toJson());
|
| - checkTCPHealthCheck(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| - unittest.group("obj-schema-Tags", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTags();
|
| - var od = new api.Tags.fromJson(o.toJson());
|
| - checkTags(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildAutoscalerList());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerList response) {
|
| + checkAutoscalerList(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--patch", () {
|
|
|
| - unittest.group("obj-schema-TargetHttpProxy", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetHttpProxy();
|
| - var od = new api.TargetHttpProxy.fromJson(o.toJson());
|
| - checkTargetHttpProxy(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| + var arg_request = buildAutoscaler();
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_autoscaler = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Autoscaler.fromJson(json);
|
| + checkAutoscaler(obj);
|
|
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-TargetHttpProxyList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetHttpProxyList();
|
| - var od = new api.TargetHttpProxyList.fromJson(o.toJson());
|
| - checkTargetHttpProxyList(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autoscaler));
|
|
|
|
|
| - unittest.group("obj-schema-TargetHttpsProxiesSetSslCertificatesRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetHttpsProxiesSetSslCertificatesRequest();
|
| - var od = new api.TargetHttpsProxiesSetSslCertificatesRequest.fromJson(o.toJson());
|
| - checkTargetHttpsProxiesSetSslCertificatesRequest(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.patch(arg_request, arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--update", () {
|
|
|
| - unittest.group("obj-schema-TargetHttpsProxy", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetHttpsProxy();
|
| - var od = new api.TargetHttpsProxy.fromJson(o.toJson());
|
| - checkTargetHttpsProxy(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| + var arg_request = buildAutoscaler();
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_autoscaler = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Autoscaler.fromJson(json);
|
| + checkAutoscaler(obj);
|
|
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-TargetHttpsProxyList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetHttpsProxyList();
|
| - var od = new api.TargetHttpsProxyList.fromJson(o.toJson());
|
| - checkTargetHttpsProxyList(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autoscaler));
|
|
|
|
|
| - unittest.group("obj-schema-TargetInstance", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetInstance();
|
| - var od = new api.TargetInstance.fromJson(o.toJson());
|
| - checkTargetInstance(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.update(arg_request, arg_project, arg_zone, autoscaler: arg_autoscaler).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
| -
|
|
|
| - unittest.group("obj-schema-TargetInstanceAggregatedList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetInstanceAggregatedList();
|
| - var od = new api.TargetInstanceAggregatedList.fromJson(o.toJson());
|
| - checkTargetInstanceAggregatedList(od);
|
| - });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-TargetInstanceList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetInstanceList();
|
| - var od = new api.TargetInstanceList.fromJson(o.toJson());
|
| - checkTargetInstanceList(od);
|
| - });
|
| - });
|
| + unittest.group("resource-BackendServicesResourceApi", () {
|
| + unittest.test("method--aggregatedList", () {
|
|
|
| + var mock = new HttpServerMock();
|
| + api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| + var arg_project = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-TargetInstancesScopedListWarningData", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetInstancesScopedListWarningData();
|
| - var od = new api.TargetInstancesScopedListWarningData.fromJson(o.toJson());
|
| - checkTargetInstancesScopedListWarningData(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| - unittest.group("obj-schema-TargetInstancesScopedListWarning", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetInstancesScopedListWarning();
|
| - var od = new api.TargetInstancesScopedListWarning.fromJson(o.toJson());
|
| - checkTargetInstancesScopedListWarning(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildBackendServiceAggregatedList());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceAggregatedList response) {
|
| + checkBackendServiceAggregatedList(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--delete", () {
|
|
|
| - unittest.group("obj-schema-TargetInstancesScopedList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetInstancesScopedList();
|
| - var od = new api.TargetInstancesScopedList.fromJson(o.toJson());
|
| - checkTargetInstancesScopedList(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| + var arg_project = "foo";
|
| + var arg_backendService = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-TargetPool", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetPool();
|
| - var od = new api.TargetPool.fromJson(o.toJson());
|
| - checkTargetPool(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.delete(arg_project, arg_backendService).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--get", () {
|
|
|
| - unittest.group("obj-schema-TargetPoolAggregatedList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetPoolAggregatedList();
|
| - var od = new api.TargetPoolAggregatedList.fromJson(o.toJson());
|
| - checkTargetPoolAggregatedList(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| + var arg_project = "foo";
|
| + var arg_backendService = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-TargetPoolInstanceHealth", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetPoolInstanceHealth();
|
| - var od = new api.TargetPoolInstanceHealth.fromJson(o.toJson());
|
| - checkTargetPoolInstanceHealth(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildBackendService());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_project, arg_backendService).then(unittest.expectAsync(((api.BackendService response) {
|
| + checkBackendService(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--getHealth", () {
|
|
|
| - unittest.group("obj-schema-TargetPoolList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetPoolList();
|
| - var od = new api.TargetPoolList.fromJson(o.toJson());
|
| - checkTargetPoolList(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| + var arg_request = buildResourceGroupReference();
|
| + var arg_project = "foo";
|
| + var arg_backendService = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.ResourceGroupReference.fromJson(json);
|
| + checkResourceGroupReference(obj);
|
|
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-TargetPoolsAddHealthCheckRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetPoolsAddHealthCheckRequest();
|
| - var od = new api.TargetPoolsAddHealthCheckRequest.fromJson(o.toJson());
|
| - checkTargetPoolsAddHealthCheckRequest(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-TargetPoolsAddInstanceRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetPoolsAddInstanceRequest();
|
| - var od = new api.TargetPoolsAddInstanceRequest.fromJson(o.toJson());
|
| - checkTargetPoolsAddInstanceRequest(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildBackendServiceGroupHealth());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.getHealth(arg_request, arg_project, arg_backendService).then(unittest.expectAsync(((api.BackendServiceGroupHealth response) {
|
| + checkBackendServiceGroupHealth(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--insert", () {
|
|
|
| - unittest.group("obj-schema-TargetPoolsRemoveHealthCheckRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetPoolsRemoveHealthCheckRequest();
|
| - var od = new api.TargetPoolsRemoveHealthCheckRequest.fromJson(o.toJson());
|
| - checkTargetPoolsRemoveHealthCheckRequest(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| + var arg_request = buildBackendService();
|
| + var arg_project = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.BackendService.fromJson(json);
|
| + checkBackendService(obj);
|
|
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-TargetPoolsRemoveInstanceRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetPoolsRemoveInstanceRequest();
|
| - var od = new api.TargetPoolsRemoveInstanceRequest.fromJson(o.toJson());
|
| - checkTargetPoolsRemoveInstanceRequest(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-TargetPoolsScopedListWarningData", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetPoolsScopedListWarningData();
|
| - var od = new api.TargetPoolsScopedListWarningData.fromJson(o.toJson());
|
| - checkTargetPoolsScopedListWarningData(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--list", () {
|
|
|
| - unittest.group("obj-schema-TargetPoolsScopedListWarning", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetPoolsScopedListWarning();
|
| - var od = new api.TargetPoolsScopedListWarning.fromJson(o.toJson());
|
| - checkTargetPoolsScopedListWarning(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| + var arg_project = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| - unittest.group("obj-schema-TargetPoolsScopedList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetPoolsScopedList();
|
| - var od = new api.TargetPoolsScopedList.fromJson(o.toJson());
|
| - checkTargetPoolsScopedList(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildBackendServiceList());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceList response) {
|
| + checkBackendServiceList(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--patch", () {
|
|
|
| - unittest.group("obj-schema-TargetReference", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetReference();
|
| - var od = new api.TargetReference.fromJson(o.toJson());
|
| - checkTargetReference(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| + var arg_request = buildBackendService();
|
| + var arg_project = "foo";
|
| + var arg_backendService = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.BackendService.fromJson(json);
|
| + checkBackendService(obj);
|
|
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-TargetSslProxiesSetBackendServiceRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetSslProxiesSetBackendServiceRequest();
|
| - var od = new api.TargetSslProxiesSetBackendServiceRequest.fromJson(o.toJson());
|
| - checkTargetSslProxiesSetBackendServiceRequest(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-TargetSslProxiesSetProxyHeaderRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetSslProxiesSetProxyHeaderRequest();
|
| - var od = new api.TargetSslProxiesSetProxyHeaderRequest.fromJson(o.toJson());
|
| - checkTargetSslProxiesSetProxyHeaderRequest(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.patch(arg_request, arg_project, arg_backendService).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--update", () {
|
|
|
| - unittest.group("obj-schema-TargetSslProxiesSetSslCertificatesRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetSslProxiesSetSslCertificatesRequest();
|
| - var od = new api.TargetSslProxiesSetSslCertificatesRequest.fromJson(o.toJson());
|
| - checkTargetSslProxiesSetSslCertificatesRequest(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| + var arg_request = buildBackendService();
|
| + var arg_project = "foo";
|
| + var arg_backendService = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.BackendService.fromJson(json);
|
| + checkBackendService(obj);
|
|
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-TargetSslProxy", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetSslProxy();
|
| - var od = new api.TargetSslProxy.fromJson(o.toJson());
|
| - checkTargetSslProxy(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-TargetSslProxyList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetSslProxyList();
|
| - var od = new api.TargetSslProxyList.fromJson(o.toJson());
|
| - checkTargetSslProxyList(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.update(arg_request, arg_project, arg_backendService).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
| -
|
|
|
| - unittest.group("obj-schema-TargetVpnGateway", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetVpnGateway();
|
| - var od = new api.TargetVpnGateway.fromJson(o.toJson());
|
| - checkTargetVpnGateway(od);
|
| - });
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-TargetVpnGatewayAggregatedList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetVpnGatewayAggregatedList();
|
| - var od = new api.TargetVpnGatewayAggregatedList.fromJson(o.toJson());
|
| - checkTargetVpnGatewayAggregatedList(od);
|
| - });
|
| - });
|
| + unittest.group("resource-DiskTypesResourceApi", () {
|
| + unittest.test("method--aggregatedList", () {
|
|
|
| + var mock = new HttpServerMock();
|
| + api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes;
|
| + var arg_project = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-TargetVpnGatewayList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetVpnGatewayList();
|
| - var od = new api.TargetVpnGatewayList.fromJson(o.toJson());
|
| - checkTargetVpnGatewayList(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| - unittest.group("obj-schema-TargetVpnGatewaysScopedListWarningData", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetVpnGatewaysScopedListWarningData();
|
| - var od = new api.TargetVpnGatewaysScopedListWarningData.fromJson(o.toJson());
|
| - checkTargetVpnGatewaysScopedListWarningData(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildDiskTypeAggregatedList());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeAggregatedList response) {
|
| + checkDiskTypeAggregatedList(response);
|
| + })));
|
| });
|
| - });
|
| -
|
|
|
| - unittest.group("obj-schema-TargetVpnGatewaysScopedListWarning", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetVpnGatewaysScopedListWarning();
|
| - var od = new api.TargetVpnGatewaysScopedListWarning.fromJson(o.toJson());
|
| - checkTargetVpnGatewaysScopedListWarning(od);
|
| - });
|
| - });
|
| + unittest.test("method--get", () {
|
|
|
| + var mock = new HttpServerMock();
|
| + api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes;
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_diskType = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-TargetVpnGatewaysScopedList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTargetVpnGatewaysScopedList();
|
| - var od = new api.TargetVpnGatewaysScopedList.fromJson(o.toJson());
|
| - checkTargetVpnGatewaysScopedList(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-TestFailure", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTestFailure();
|
| - var od = new api.TestFailure.fromJson(o.toJson());
|
| - checkTestFailure(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildDiskType());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_project, arg_zone, arg_diskType).then(unittest.expectAsync(((api.DiskType response) {
|
| + checkDiskType(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--list", () {
|
|
|
| - unittest.group("obj-schema-UrlMap", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildUrlMap();
|
| - var od = new api.UrlMap.fromJson(o.toJson());
|
| - checkUrlMap(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes;
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| - unittest.group("obj-schema-UrlMapList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildUrlMapList();
|
| - var od = new api.UrlMapList.fromJson(o.toJson());
|
| - checkUrlMapList(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildDiskTypeList());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeList response) {
|
| + checkDiskTypeList(response);
|
| + })));
|
| });
|
| +
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-UrlMapReference", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildUrlMapReference();
|
| - var od = new api.UrlMapReference.fromJson(o.toJson());
|
| - checkUrlMapReference(od);
|
| - });
|
| - });
|
| + unittest.group("resource-DisksResourceApi", () {
|
| + unittest.test("method--aggregatedList", () {
|
|
|
| + var mock = new HttpServerMock();
|
| + api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| + var arg_project = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-UrlMapTest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildUrlMapTest();
|
| - var od = new api.UrlMapTest.fromJson(o.toJson());
|
| - checkUrlMapTest(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| - unittest.group("obj-schema-UrlMapValidationResult", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildUrlMapValidationResult();
|
| - var od = new api.UrlMapValidationResult.fromJson(o.toJson());
|
| - checkUrlMapValidationResult(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildDiskAggregatedList());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskAggregatedList response) {
|
| + checkDiskAggregatedList(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--createSnapshot", () {
|
|
|
| - unittest.group("obj-schema-UrlMapsValidateRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildUrlMapsValidateRequest();
|
| - var od = new api.UrlMapsValidateRequest.fromJson(o.toJson());
|
| - checkUrlMapsValidateRequest(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| + var arg_request = buildSnapshot();
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_disk = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Snapshot.fromJson(json);
|
| + checkSnapshot(obj);
|
|
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-UrlMapsValidateResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildUrlMapsValidateResponse();
|
| - var od = new api.UrlMapsValidateResponse.fromJson(o.toJson());
|
| - checkUrlMapsValidateResponse(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-UsageExportLocation", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildUsageExportLocation();
|
| - var od = new api.UsageExportLocation.fromJson(o.toJson());
|
| - checkUsageExportLocation(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.createSnapshot(arg_request, arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
| -
|
|
|
| - unittest.group("obj-schema-VpnTunnel", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildVpnTunnel();
|
| - var od = new api.VpnTunnel.fromJson(o.toJson());
|
| - checkVpnTunnel(od);
|
| - });
|
| - });
|
| + unittest.test("method--delete", () {
|
|
|
| + var mock = new HttpServerMock();
|
| + api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_disk = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-VpnTunnelAggregatedList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildVpnTunnelAggregatedList();
|
| - var od = new api.VpnTunnelAggregatedList.fromJson(o.toJson());
|
| - checkVpnTunnelAggregatedList(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-VpnTunnelList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildVpnTunnelList();
|
| - var od = new api.VpnTunnelList.fromJson(o.toJson());
|
| - checkVpnTunnelList(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.delete(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--get", () {
|
|
|
| - unittest.group("obj-schema-VpnTunnelsScopedListWarningData", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildVpnTunnelsScopedListWarningData();
|
| - var od = new api.VpnTunnelsScopedListWarningData.fromJson(o.toJson());
|
| - checkVpnTunnelsScopedListWarningData(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_disk = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
|
|
|
|
| - unittest.group("obj-schema-VpnTunnelsScopedListWarning", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildVpnTunnelsScopedListWarning();
|
| - var od = new api.VpnTunnelsScopedListWarning.fromJson(o.toJson());
|
| - checkVpnTunnelsScopedListWarning(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildDisk());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.Disk response) {
|
| + checkDisk(response);
|
| + })));
|
| });
|
| - });
|
|
|
| + unittest.test("method--insert", () {
|
|
|
| - unittest.group("obj-schema-VpnTunnelsScopedList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildVpnTunnelsScopedList();
|
| - var od = new api.VpnTunnelsScopedList.fromJson(o.toJson());
|
| - checkVpnTunnelsScopedList(od);
|
| - });
|
| - });
|
| + var mock = new HttpServerMock();
|
| + api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| + var arg_request = buildDisk();
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_sourceImage = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Disk.fromJson(json);
|
| + checkDisk(obj);
|
|
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| - unittest.group("obj-schema-Zone", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildZone();
|
| - var od = new api.Zone.fromJson(o.toJson());
|
| - checkZone(od);
|
| - });
|
| - });
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["sourceImage"].first, unittest.equals(arg_sourceImage));
|
|
|
|
|
| - unittest.group("obj-schema-ZoneList", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildZoneList();
|
| - var od = new api.ZoneList.fromJson(o.toJson());
|
| - checkZoneList(od);
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.insert(arg_request, arg_project, arg_zone, sourceImage: arg_sourceImage).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
| - });
|
|
|
| -
|
| - unittest.group("resource-AddressesResourceApi", () {
|
| - unittest.test("method--aggregatedList", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.AddressesResourceApi res = new api.ComputeApi(mock).addresses;
|
| + api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| var arg_filter = "foo";
|
| var arg_maxResults = 42;
|
| var arg_orderBy = "foo";
|
| @@ -10089,21 +12134,72 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildAddressAggregatedList());
|
| + var resp = convert.JSON.encode(buildDiskList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressAggregatedList response) {
|
| - checkAddressAggregatedList(response);
|
| + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskList response) {
|
| + checkDiskList(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--resize", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| + var arg_request = buildDisksResizeRequest();
|
| + var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_disk = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.DisksResizeRequest.fromJson(json);
|
| + checkDisksResizeRequest(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.resize(arg_request, arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-FirewallsResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.AddressesResourceApi res = new api.ComputeApi(mock).addresses;
|
| + api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls;
|
| var arg_project = "foo";
|
| - var arg_region = "foo";
|
| - var arg_address = "foo";
|
| + var arg_firewall = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -10136,7 +12232,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_region, arg_address).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_project, arg_firewall).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -10144,10 +12240,9 @@ main() {
|
| unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.AddressesResourceApi res = new api.ComputeApi(mock).addresses;
|
| + api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls;
|
| var arg_project = "foo";
|
| - var arg_region = "foo";
|
| - var arg_address = "foo";
|
| + var arg_firewall = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -10177,24 +12272,23 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildAddress());
|
| + var resp = convert.JSON.encode(buildFirewall());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_region, arg_address).then(unittest.expectAsync(((api.Address response) {
|
| - checkAddress(response);
|
| + res.get(arg_project, arg_firewall).then(unittest.expectAsync(((api.Firewall response) {
|
| + checkFirewall(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.AddressesResourceApi res = new api.ComputeApi(mock).addresses;
|
| - var arg_request = buildAddress();
|
| + api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls;
|
| + var arg_request = buildFirewall();
|
| var arg_project = "foo";
|
| - var arg_region = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Address.fromJson(json);
|
| - checkAddress(obj);
|
| + var obj = new api.Firewall.fromJson(json);
|
| + checkFirewall(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -10227,7 +12321,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) {
|
| + res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -10235,9 +12329,8 @@ main() {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.AddressesResourceApi res = new api.ComputeApi(mock).addresses;
|
| + api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls;
|
| var arg_project = "foo";
|
| - var arg_region = "foo";
|
| var arg_filter = "foo";
|
| var arg_maxResults = 42;
|
| var arg_orderBy = "foo";
|
| @@ -10275,28 +12368,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildAddressList());
|
| + var resp = convert.JSON.encode(buildFirewallList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) {
|
| - checkAddressList(response);
|
| + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.FirewallList response) {
|
| + checkFirewallList(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-AutoscalersResourceApi", () {
|
| - unittest.test("method--aggregatedList", () {
|
| + unittest.test("method--patch", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| + api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls;
|
| + var arg_request = buildFirewall();
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_firewall = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Firewall.fromJson(json);
|
| + checkFirewall(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -10320,31 +12410,30 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildAutoscalerAggregatedList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerAggregatedList response) {
|
| - checkAutoscalerAggregatedList(response);
|
| + res.patch(arg_request, arg_project, arg_firewall).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| + api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls;
|
| + var arg_request = buildFirewall();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_autoscaler = "foo";
|
| + var arg_firewall = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Firewall.fromJson(json);
|
| + checkFirewall(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -10376,18 +12465,24 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsync(((api.Operation response) {
|
| + res.update(arg_request, arg_project, arg_firewall).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-ForwardingRulesResourceApi", () {
|
| + unittest.test("method--aggregatedList", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| + api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRules;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_autoscaler = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -10412,30 +12507,31 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildAutoscaler());
|
| + var resp = convert.JSON.encode(buildForwardingRuleAggregatedList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsync(((api.Autoscaler response) {
|
| - checkAutoscaler(response);
|
| + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleAggregatedList response) {
|
| + checkForwardingRuleAggregatedList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| - var arg_request = buildAutoscaler();
|
| + api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRules;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| + var arg_region = "foo";
|
| + var arg_forwardingRule = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Autoscaler.fromJson(json);
|
| - checkAutoscaler(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -10467,21 +12563,18 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_project, arg_region, arg_forwardingRule).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| + api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRules;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_region = "foo";
|
| + var arg_forwardingRule = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -10506,34 +12599,29 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildAutoscalerList());
|
| + var resp = convert.JSON.encode(buildForwardingRule());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerList response) {
|
| - checkAutoscalerList(response);
|
| + res.get(arg_project, arg_region, arg_forwardingRule).then(unittest.expectAsync(((api.ForwardingRule response) {
|
| + checkForwardingRule(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--patch", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| - var arg_request = buildAutoscaler();
|
| + api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRules;
|
| + var arg_request = buildForwardingRule();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_autoscaler = "foo";
|
| + var arg_region = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Autoscaler.fromJson(json);
|
| - checkAutoscaler(obj);
|
| + var obj = new api.ForwardingRule.fromJson(json);
|
| + checkForwardingRule(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -10558,7 +12646,6 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autoscaler));
|
|
|
|
|
| var h = {
|
| @@ -10567,23 +12654,22 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsync(((api.Operation response) {
|
| + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--update", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers;
|
| - var arg_request = buildAutoscaler();
|
| + api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRules;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_autoscaler = "foo";
|
| + var arg_region = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Autoscaler.fromJson(json);
|
| - checkAutoscaler(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -10607,31 +12693,35 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autoscaler));
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildForwardingRuleList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_project, arg_zone, autoscaler: arg_autoscaler).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) {
|
| + checkForwardingRuleList(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-BackendServicesResourceApi", () {
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--setTarget", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| + api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRules;
|
| + var arg_request = buildTargetReference();
|
| var arg_project = "foo";
|
| - var arg_backendService = "foo";
|
| + var arg_region = "foo";
|
| + var arg_forwardingRule = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.TargetReference.fromJson(json);
|
| + checkTargetReference(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -10663,17 +12753,21 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_backendService).then(unittest.expectAsync(((api.Operation response) {
|
| + res.setTarget(arg_request, arg_project, arg_region, arg_forwardingRule).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-GlobalAddressesResourceApi", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| + api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddresses;
|
| var arg_project = "foo";
|
| - var arg_backendService = "foo";
|
| + var arg_address = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -10703,25 +12797,21 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildBackendService());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_backendService).then(unittest.expectAsync(((api.BackendService response) {
|
| - checkBackendService(response);
|
| + res.delete(arg_project, arg_address).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--getHealth", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| - var arg_request = buildResourceGroupReference();
|
| + api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddresses;
|
| var arg_project = "foo";
|
| - var arg_backendService = "foo";
|
| + var arg_address = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.ResourceGroupReference.fromJson(json);
|
| - checkResourceGroupReference(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -10750,23 +12840,23 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildBackendServiceGroupHealth());
|
| + var resp = convert.JSON.encode(buildAddress());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.getHealth(arg_request, arg_project, arg_backendService).then(unittest.expectAsync(((api.BackendServiceGroupHealth response) {
|
| - checkBackendServiceGroupHealth(response);
|
| + res.get(arg_project, arg_address).then(unittest.expectAsync(((api.Address response) {
|
| + checkAddress(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| - var arg_request = buildBackendService();
|
| + api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddresses;
|
| + var arg_request = buildAddress();
|
| var arg_project = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.BackendService.fromJson(json);
|
| - checkBackendService(obj);
|
| + var obj = new api.Address.fromJson(json);
|
| + checkAddress(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -10807,7 +12897,7 @@ main() {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| + api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddresses;
|
| var arg_project = "foo";
|
| var arg_filter = "foo";
|
| var arg_maxResults = 42;
|
| @@ -10846,25 +12936,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildBackendServiceList());
|
| + var resp = convert.JSON.encode(buildAddressList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceList response) {
|
| - checkBackendServiceList(response);
|
| + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) {
|
| + checkAddressList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--patch", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-GlobalForwardingRulesResourceApi", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| - var arg_request = buildBackendService();
|
| + api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules;
|
| var arg_project = "foo";
|
| - var arg_backendService = "foo";
|
| + var arg_forwardingRule = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.BackendService.fromJson(json);
|
| - checkBackendService(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -10896,22 +12986,18 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_project, arg_backendService).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--update", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices;
|
| - var arg_request = buildBackendService();
|
| + api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules;
|
| var arg_project = "foo";
|
| - var arg_backendService = "foo";
|
| + var arg_forwardingRule = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.BackendService.fromJson(json);
|
| - checkBackendService(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -10940,28 +13026,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildForwardingRule());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_project, arg_backendService).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.get(arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.ForwardingRule response) {
|
| + checkForwardingRule(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-DiskTypesResourceApi", () {
|
| - unittest.test("method--aggregatedList", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes;
|
| + api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules;
|
| + var arg_request = buildForwardingRule();
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.ForwardingRule.fromJson(json);
|
| + checkForwardingRule(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -10985,30 +13067,28 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildDiskTypeAggregatedList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeAggregatedList response) {
|
| - checkDiskTypeAggregatedList(response);
|
| + res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes;
|
| + api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_diskType = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -11033,30 +13113,34 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildDiskType());
|
| + var resp = convert.JSON.encode(buildForwardingRuleList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_zone, arg_diskType).then(unittest.expectAsync(((api.DiskType response) {
|
| - checkDiskType(response);
|
| + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) {
|
| + checkForwardingRuleList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--setTarget", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes;
|
| + api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules;
|
| + var arg_request = buildTargetReference();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_forwardingRule = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.TargetReference.fromJson(json);
|
| + checkTargetReference(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -11080,31 +13164,27 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildDiskTypeList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeList response) {
|
| - checkDiskTypeList(response);
|
| + res.setTarget(arg_request, arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| });
|
|
|
|
|
| - unittest.group("resource-DisksResourceApi", () {
|
| + unittest.group("resource-GlobalOperationsResourceApi", () {
|
| unittest.test("method--aggregatedList", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| + api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOperations;
|
| var arg_project = "foo";
|
| var arg_filter = "foo";
|
| var arg_maxResults = 42;
|
| @@ -11143,26 +13223,21 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildDiskAggregatedList());
|
| + var resp = convert.JSON.encode(buildOperationAggregatedList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskAggregatedList response) {
|
| - checkDiskAggregatedList(response);
|
| + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationAggregatedList response) {
|
| + checkOperationAggregatedList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--createSnapshot", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| - var arg_request = buildSnapshot();
|
| + api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOperations;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_disk = "foo";
|
| + var arg_operation = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Snapshot.fromJson(json);
|
| - checkSnapshot(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -11191,21 +13266,18 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = "";
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.createSnapshot(arg_request, arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| - })));
|
| + res.delete(arg_project, arg_operation).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| + api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOperations;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_disk = "foo";
|
| + var arg_operation = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -11238,18 +13310,20 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.Operation response) {
|
| + res.get(arg_project, arg_operation).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| + api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOperations;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_disk = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -11274,78 +13348,33 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildDisk());
|
| + var resp = convert.JSON.encode(buildOperationList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.Disk response) {
|
| - checkDisk(response);
|
| + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) {
|
| + checkOperationList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| - var arg_request = buildDisk();
|
| - var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_sourceImage = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Disk.fromJson(json);
|
| - checkDisk(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| - unittest.expect(queryMap["sourceImage"].first, unittest.equals(arg_sourceImage));
|
| -
|
| + });
|
|
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.insert(arg_request, arg_project, arg_zone, sourceImage: arg_sourceImage).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| - })));
|
| - });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.group("resource-HealthChecksResourceApi", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_healthCheck = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -11370,35 +13399,26 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildDiskList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskList response) {
|
| - checkDiskList(response);
|
| + res.delete(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--resize", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.DisksResourceApi res = new api.ComputeApi(mock).disks;
|
| - var arg_request = buildDisksResizeRequest();
|
| + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_disk = "foo";
|
| + var arg_healthCheck = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.DisksResizeRequest.fromJson(json);
|
| - checkDisksResizeRequest(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -11427,25 +13447,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildHealthCheck());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.resize(arg_request, arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.get(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.HealthCheck response) {
|
| + checkHealthCheck(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-FirewallsResourceApi", () {
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls;
|
| + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks;
|
| + var arg_request = buildHealthCheck();
|
| var arg_project = "foo";
|
| - var arg_firewall = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.HealthCheck.fromJson(json);
|
| + checkHealthCheck(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -11477,17 +13496,20 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_firewall).then(unittest.expectAsync(((api.Operation response) {
|
| + res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls;
|
| + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks;
|
| var arg_project = "foo";
|
| - var arg_firewall = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -11512,28 +13534,33 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildFirewall());
|
| + var resp = convert.JSON.encode(buildHealthCheckList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_firewall).then(unittest.expectAsync(((api.Firewall response) {
|
| - checkFirewall(response);
|
| + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HealthCheckList response) {
|
| + checkHealthCheckList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + unittest.test("method--patch", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls;
|
| - var arg_request = buildFirewall();
|
| + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks;
|
| + var arg_request = buildHealthCheck();
|
| var arg_project = "foo";
|
| + var arg_healthCheck = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Firewall.fromJson(json);
|
| - checkFirewall(obj);
|
| + var obj = new api.HealthCheck.fromJson(json);
|
| + checkHealthCheck(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -11566,21 +13593,22 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| + res.patch(arg_request, arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls;
|
| + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks;
|
| + var arg_request = buildHealthCheck();
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_healthCheck = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.HealthCheck.fromJson(json);
|
| + checkHealthCheck(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -11604,34 +13632,30 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildFirewallList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.FirewallList response) {
|
| - checkFirewallList(response);
|
| + res.update(arg_request, arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--patch", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-HttpHealthChecksResourceApi", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls;
|
| - var arg_request = buildFirewall();
|
| + api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks;
|
| var arg_project = "foo";
|
| - var arg_firewall = "foo";
|
| + var arg_httpHealthCheck = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Firewall.fromJson(json);
|
| - checkFirewall(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -11663,22 +13687,18 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_project, arg_firewall).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--update", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls;
|
| - var arg_request = buildFirewall();
|
| + api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks;
|
| var arg_project = "foo";
|
| - var arg_firewall = "foo";
|
| + var arg_httpHealthCheck = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Firewall.fromJson(json);
|
| - checkFirewall(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -11707,28 +13727,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildHttpHealthCheck());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_project, arg_firewall).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.get(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.HttpHealthCheck response) {
|
| + checkHttpHealthCheck(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-ForwardingRulesResourceApi", () {
|
| - unittest.test("method--aggregatedList", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRules;
|
| + api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks;
|
| + var arg_request = buildHttpHealthCheck();
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.HttpHealthCheck.fromJson(json);
|
| + checkHttpHealthCheck(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -11752,30 +13768,28 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildForwardingRuleAggregatedList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleAggregatedList response) {
|
| - checkForwardingRuleAggregatedList(response);
|
| + res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRules;
|
| + api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks;
|
| var arg_project = "foo";
|
| - var arg_region = "foo";
|
| - var arg_forwardingRule = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -11800,27 +13814,34 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildHttpHealthCheckList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_region, arg_forwardingRule).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpHealthCheckList response) {
|
| + checkHttpHealthCheckList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--patch", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRules;
|
| + api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks;
|
| + var arg_request = buildHttpHealthCheck();
|
| var arg_project = "foo";
|
| - var arg_region = "foo";
|
| - var arg_forwardingRule = "foo";
|
| + var arg_httpHealthCheck = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.HttpHealthCheck.fromJson(json);
|
| + checkHttpHealthCheck(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -11849,24 +13870,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildForwardingRule());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_region, arg_forwardingRule).then(unittest.expectAsync(((api.ForwardingRule response) {
|
| - checkForwardingRule(response);
|
| + res.patch(arg_request, arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRules;
|
| - var arg_request = buildForwardingRule();
|
| + api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks;
|
| + var arg_request = buildHttpHealthCheck();
|
| var arg_project = "foo";
|
| - var arg_region = "foo";
|
| + var arg_httpHealthCheck = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.ForwardingRule.fromJson(json);
|
| - checkForwardingRule(obj);
|
| + var obj = new api.HttpHealthCheck.fromJson(json);
|
| + checkHttpHealthCheck(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -11899,21 +13920,21 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) {
|
| + res.update(arg_request, arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-HttpsHealthChecksResourceApi", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRules;
|
| + api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks;
|
| var arg_project = "foo";
|
| - var arg_region = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_httpsHealthCheck = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -11938,35 +13959,26 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildForwardingRuleList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) {
|
| - checkForwardingRuleList(response);
|
| + res.delete(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--setTarget", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRules;
|
| - var arg_request = buildTargetReference();
|
| + api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks;
|
| var arg_project = "foo";
|
| - var arg_region = "foo";
|
| - var arg_forwardingRule = "foo";
|
| + var arg_httpsHealthCheck = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.TargetReference.fromJson(json);
|
| - checkTargetReference(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -11995,25 +14007,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildHttpsHealthCheck());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.setTarget(arg_request, arg_project, arg_region, arg_forwardingRule).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.get(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api.HttpsHealthCheck response) {
|
| + checkHttpsHealthCheck(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-GlobalAddressesResourceApi", () {
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddresses;
|
| + api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks;
|
| + var arg_request = buildHttpsHealthCheck();
|
| var arg_project = "foo";
|
| - var arg_address = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.HttpsHealthCheck.fromJson(json);
|
| + checkHttpsHealthCheck(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -12045,17 +14056,20 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_address).then(unittest.expectAsync(((api.Operation response) {
|
| + res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddresses;
|
| + api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks;
|
| var arg_project = "foo";
|
| - var arg_address = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12080,28 +14094,33 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildAddress());
|
| + var resp = convert.JSON.encode(buildHttpsHealthCheckList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_address).then(unittest.expectAsync(((api.Address response) {
|
| - checkAddress(response);
|
| + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpsHealthCheckList response) {
|
| + checkHttpsHealthCheckList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + unittest.test("method--patch", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddresses;
|
| - var arg_request = buildAddress();
|
| + api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks;
|
| + var arg_request = buildHttpsHealthCheck();
|
| var arg_project = "foo";
|
| + var arg_httpsHealthCheck = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Address.fromJson(json);
|
| - checkAddress(obj);
|
| + var obj = new api.HttpsHealthCheck.fromJson(json);
|
| + checkHttpsHealthCheck(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12134,21 +14153,22 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| + res.patch(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddresses;
|
| + api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks;
|
| + var arg_request = buildHttpsHealthCheck();
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_httpsHealthCheck = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.HttpsHealthCheck.fromJson(json);
|
| + checkHttpsHealthCheck(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -12172,33 +14192,29 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildAddressList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) {
|
| - checkAddressList(response);
|
| + res.update(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| });
|
|
|
|
|
| - unittest.group("resource-GlobalForwardingRulesResourceApi", () {
|
| + unittest.group("resource-ImagesResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules;
|
| + api.ImagesResourceApi res = new api.ComputeApi(mock).images;
|
| var arg_project = "foo";
|
| - var arg_forwardingRule = "foo";
|
| + var arg_image = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12231,18 +14247,22 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_project, arg_image).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--deprecate", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules;
|
| + api.ImagesResourceApi res = new api.ComputeApi(mock).images;
|
| + var arg_request = buildDeprecationStatus();
|
| var arg_project = "foo";
|
| - var arg_forwardingRule = "foo";
|
| + var arg_image = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.DeprecationStatus.fromJson(json);
|
| + checkDeprecationStatus(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -12271,24 +14291,21 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildForwardingRule());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.ForwardingRule response) {
|
| - checkForwardingRule(response);
|
| + res.deprecate(arg_request, arg_project, arg_image).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules;
|
| - var arg_request = buildForwardingRule();
|
| + api.ImagesResourceApi res = new api.ComputeApi(mock).images;
|
| var arg_project = "foo";
|
| + var arg_image = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.ForwardingRule.fromJson(json);
|
| - checkForwardingRule(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -12317,23 +14334,20 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildImage());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.get(arg_project, arg_image).then(unittest.expectAsync(((api.Image response) {
|
| + checkImage(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--getFromFamily", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules;
|
| + api.ImagesResourceApi res = new api.ComputeApi(mock).images;
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_family = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12358,33 +14372,28 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildForwardingRuleList());
|
| + var resp = convert.JSON.encode(buildImage());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) {
|
| - checkForwardingRuleList(response);
|
| + res.getFromFamily(arg_project, arg_family).then(unittest.expectAsync(((api.Image response) {
|
| + checkImage(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--setTarget", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).globalForwardingRules;
|
| - var arg_request = buildTargetReference();
|
| + api.ImagesResourceApi res = new api.ComputeApi(mock).images;
|
| + var arg_request = buildImage();
|
| var arg_project = "foo";
|
| - var arg_forwardingRule = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.TargetReference.fromJson(json);
|
| - checkTargetReference(obj);
|
| + var obj = new api.Image.fromJson(json);
|
| + checkImage(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12417,19 +14426,15 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.setTarget(arg_request, arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.Operation response) {
|
| + res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-GlobalOperationsResourceApi", () {
|
| - unittest.test("method--aggregatedList", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOperations;
|
| + api.ImagesResourceApi res = new api.ComputeApi(mock).images;
|
| var arg_project = "foo";
|
| var arg_filter = "foo";
|
| var arg_maxResults = 42;
|
| @@ -12468,21 +14473,30 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperationAggregatedList());
|
| + var resp = convert.JSON.encode(buildImageList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationAggregatedList response) {
|
| - checkOperationAggregatedList(response);
|
| + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ImageList response) {
|
| + checkImageList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--delete", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-InstanceGroupManagersResourceApi", () {
|
| + unittest.test("method--abandonInstances", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOperations;
|
| + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| + var arg_request = buildInstanceGroupManagersAbandonInstancesRequest();
|
| var arg_project = "foo";
|
| - var arg_operation = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.InstanceGroupManagersAbandonInstancesRequest.fromJson(json);
|
| + checkInstanceGroupManagersAbandonInstancesRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -12511,18 +14525,23 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = "";
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_operation).then(unittest.expectAsync((_) {}));
|
| + res.abandonInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--aggregatedList", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOperations;
|
| + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| var arg_project = "foo";
|
| - var arg_operation = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12547,28 +14566,30 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildInstanceGroupManagerAggregatedList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_operation).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerAggregatedList response) {
|
| + checkInstanceGroupManagerAggregatedList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOperations;
|
| + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12593,34 +14614,31 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperationList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) {
|
| - checkOperationList(response);
|
| + res.delete(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-HealthChecksResourceApi", () {
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--deleteInstances", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks;
|
| + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| + var arg_request = buildInstanceGroupManagersDeleteInstancesRequest();
|
| var arg_project = "foo";
|
| - var arg_healthCheck = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.InstanceGroupManagersDeleteInstancesRequest.fromJson(json);
|
| + checkInstanceGroupManagersDeleteInstancesRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -12652,7 +14670,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| + res.deleteInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -12660,9 +14678,10 @@ main() {
|
| unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks;
|
| + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| var arg_project = "foo";
|
| - var arg_healthCheck = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12692,23 +14711,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildHealthCheck());
|
| + var resp = convert.JSON.encode(buildInstanceGroupManager());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.HealthCheck response) {
|
| - checkHealthCheck(response);
|
| + res.get(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.InstanceGroupManager response) {
|
| + checkInstanceGroupManager(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks;
|
| - var arg_request = buildHealthCheck();
|
| + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| + var arg_request = buildInstanceGroupManager();
|
| var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.HealthCheck.fromJson(json);
|
| - checkHealthCheck(obj);
|
| + var obj = new api.InstanceGroupManager.fromJson(json);
|
| + checkInstanceGroupManager(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12741,7 +14761,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| + res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -12749,8 +14769,9 @@ main() {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks;
|
| + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| var arg_filter = "foo";
|
| var arg_maxResults = 42;
|
| var arg_orderBy = "foo";
|
| @@ -12788,25 +14809,22 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildHealthCheckList());
|
| + var resp = convert.JSON.encode(buildInstanceGroupManagerList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HealthCheckList response) {
|
| - checkHealthCheckList(response);
|
| + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerList response) {
|
| + checkInstanceGroupManagerList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--patch", () {
|
| + unittest.test("method--listManagedInstances", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks;
|
| - var arg_request = buildHealthCheck();
|
| + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| var arg_project = "foo";
|
| - var arg_healthCheck = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.HealthCheck.fromJson(json);
|
| - checkHealthCheck(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -12835,24 +14853,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildInstanceGroupManagersListManagedInstancesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.listManagedInstances(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.InstanceGroupManagersListManagedInstancesResponse response) {
|
| + checkInstanceGroupManagersListManagedInstancesResponse(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--update", () {
|
| + unittest.test("method--recreateInstances", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks;
|
| - var arg_request = buildHealthCheck();
|
| + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| + var arg_request = buildInstanceGroupManagersRecreateInstancesRequest();
|
| var arg_project = "foo";
|
| - var arg_healthCheck = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.HealthCheck.fromJson(json);
|
| - checkHealthCheck(obj);
|
| + var obj = new api.InstanceGroupManagersRecreateInstancesRequest.fromJson(json);
|
| + checkInstanceGroupManagersRecreateInstancesRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12885,21 +14904,19 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| + res.recreateInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-HttpHealthChecksResourceApi", () {
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--resize", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks;
|
| + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| var arg_project = "foo";
|
| - var arg_httpHealthCheck = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| + var arg_size = 42;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -12924,6 +14941,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(core.int.parse(queryMap["size"].first), unittest.equals(arg_size));
|
|
|
|
|
| var h = {
|
| @@ -12932,18 +14950,23 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| + res.resize(arg_project, arg_zone, arg_instanceGroupManager, arg_size).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--setInstanceTemplate", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks;
|
| + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| + var arg_request = buildInstanceGroupManagersSetInstanceTemplateRequest();
|
| var arg_project = "foo";
|
| - var arg_httpHealthCheck = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.InstanceGroupManagersSetInstanceTemplateRequest.fromJson(json);
|
| + checkInstanceGroupManagersSetInstanceTemplateRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -12972,23 +14995,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildHttpHealthCheck());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.HttpHealthCheck response) {
|
| - checkHttpHealthCheck(response);
|
| + res.setInstanceTemplate(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + unittest.test("method--setTargetPools", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks;
|
| - var arg_request = buildHttpHealthCheck();
|
| + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| + var arg_request = buildInstanceGroupManagersSetTargetPoolsRequest();
|
| var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.HttpHealthCheck.fromJson(json);
|
| - checkHttpHealthCheck(obj);
|
| + var obj = new api.InstanceGroupManagersSetTargetPoolsRequest.fromJson(json);
|
| + checkInstanceGroupManagersSetTargetPoolsRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -13021,21 +15046,27 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| + res.setTargetPools(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-InstanceGroupsResourceApi", () {
|
| + unittest.test("method--addInstances", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks;
|
| + api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| + var arg_request = buildInstanceGroupsAddInstancesRequest();
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroup = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.InstanceGroupsAddInstancesRequest.fromJson(json);
|
| + checkInstanceGroupsAddInstancesRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -13059,34 +15090,29 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildHttpHealthCheckList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpHealthCheckList response) {
|
| - checkHttpHealthCheckList(response);
|
| + res.addInstances(arg_request, arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--patch", () {
|
| + unittest.test("method--aggregatedList", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks;
|
| - var arg_request = buildHttpHealthCheck();
|
| + api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| var arg_project = "foo";
|
| - var arg_httpHealthCheck = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.HttpHealthCheck.fromJson(json);
|
| - checkHttpHealthCheck(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -13110,30 +15136,31 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildInstanceGroupAggregatedList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupAggregatedList response) {
|
| + checkInstanceGroupAggregatedList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--update", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthChecks;
|
| - var arg_request = buildHttpHealthCheck();
|
| + api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| var arg_project = "foo";
|
| - var arg_httpHealthCheck = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroup = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.HttpHealthCheck.fromJson(json);
|
| - checkHttpHealthCheck(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -13165,21 +15192,18 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-HttpsHealthChecksResourceApi", () {
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks;
|
| + api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| var arg_project = "foo";
|
| - var arg_httpsHealthCheck = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroup = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -13209,21 +15233,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildInstanceGroup());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.get(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.InstanceGroup response) {
|
| + checkInstanceGroup(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks;
|
| + api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| + var arg_request = buildInstanceGroup();
|
| var arg_project = "foo";
|
| - var arg_httpsHealthCheck = "foo";
|
| + var arg_zone = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.InstanceGroup.fromJson(json);
|
| + checkInstanceGroup(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -13252,24 +15280,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildHttpsHealthCheck());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api.HttpsHealthCheck response) {
|
| - checkHttpsHealthCheck(response);
|
| + res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks;
|
| - var arg_request = buildHttpsHealthCheck();
|
| + api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.HttpsHealthCheck.fromJson(json);
|
| - checkHttpsHealthCheck(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -13293,29 +15322,39 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildInstanceGroupList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupList response) {
|
| + checkInstanceGroupList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--listInstances", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks;
|
| + api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| + var arg_request = buildInstanceGroupsListInstancesRequest();
|
| var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroup = "foo";
|
| var arg_filter = "foo";
|
| var arg_maxResults = 42;
|
| var arg_orderBy = "foo";
|
| var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.InstanceGroupsListInstancesRequest.fromJson(json);
|
| + checkInstanceGroupsListInstancesRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -13348,24 +15387,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildHttpsHealthCheckList());
|
| + var resp = convert.JSON.encode(buildInstanceGroupsListInstances());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpsHealthCheckList response) {
|
| - checkHttpsHealthCheckList(response);
|
| + res.listInstances(arg_request, arg_project, arg_zone, arg_instanceGroup, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupsListInstances response) {
|
| + checkInstanceGroupsListInstances(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--patch", () {
|
| + unittest.test("method--removeInstances", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks;
|
| - var arg_request = buildHttpsHealthCheck();
|
| + api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| + var arg_request = buildInstanceGroupsRemoveInstancesRequest();
|
| var arg_project = "foo";
|
| - var arg_httpsHealthCheck = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroup = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.HttpsHealthCheck.fromJson(json);
|
| - checkHttpsHealthCheck(obj);
|
| + var obj = new api.InstanceGroupsRemoveInstancesRequest.fromJson(json);
|
| + checkInstanceGroupsRemoveInstancesRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -13398,21 +15438,22 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| + res.removeInstances(arg_request, arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--update", () {
|
| + unittest.test("method--setNamedPorts", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealthChecks;
|
| - var arg_request = buildHttpsHealthCheck();
|
| + api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| + var arg_request = buildInstanceGroupsSetNamedPortsRequest();
|
| var arg_project = "foo";
|
| - var arg_httpsHealthCheck = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instanceGroup = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.HttpsHealthCheck.fromJson(json);
|
| - checkHttpsHealthCheck(obj);
|
| + var obj = new api.InstanceGroupsSetNamedPortsRequest.fromJson(json);
|
| + checkInstanceGroupsSetNamedPortsRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -13445,7 +15486,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.update(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api.Operation response) {
|
| + res.setNamedPorts(arg_request, arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -13453,13 +15494,13 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-ImagesResourceApi", () {
|
| + unittest.group("resource-InstanceTemplatesResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ImagesResourceApi res = new api.ComputeApi(mock).images;
|
| + api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTemplates;
|
| var arg_project = "foo";
|
| - var arg_image = "foo";
|
| + var arg_instanceTemplate = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -13492,22 +15533,18 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_image).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--deprecate", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ImagesResourceApi res = new api.ComputeApi(mock).images;
|
| - var arg_request = buildDeprecationStatus();
|
| + api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTemplates;
|
| var arg_project = "foo";
|
| - var arg_image = "foo";
|
| + var arg_instanceTemplate = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.DeprecationStatus.fromJson(json);
|
| - checkDeprecationStatus(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -13536,21 +15573,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildInstanceTemplate());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.deprecate(arg_request, arg_project, arg_image).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.get(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((api.InstanceTemplate response) {
|
| + checkInstanceTemplate(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ImagesResourceApi res = new api.ComputeApi(mock).images;
|
| + api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTemplates;
|
| + var arg_request = buildInstanceTemplate();
|
| var arg_project = "foo";
|
| - var arg_image = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.InstanceTemplate.fromJson(json);
|
| + checkInstanceTemplate(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -13579,20 +15619,23 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildImage());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_image).then(unittest.expectAsync(((api.Image response) {
|
| - checkImage(response);
|
| + res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--getFromFamily", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ImagesResourceApi res = new api.ComputeApi(mock).images;
|
| + api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTemplates;
|
| var arg_project = "foo";
|
| - var arg_family = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -13617,28 +15660,39 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildImage());
|
| + var resp = convert.JSON.encode(buildInstanceTemplateList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.getFromFamily(arg_project, arg_family).then(unittest.expectAsync(((api.Image response) {
|
| - checkImage(response);
|
| + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceTemplateList response) {
|
| + checkInstanceTemplateList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-InstancesResourceApi", () {
|
| + unittest.test("method--addAccessConfig", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ImagesResourceApi res = new api.ComputeApi(mock).images;
|
| - var arg_request = buildImage();
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + var arg_request = buildAccessConfig();
|
| var arg_project = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instance = "foo";
|
| + var arg_networkInterface = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Image.fromJson(json);
|
| - checkImage(obj);
|
| + var obj = new api.AccessConfig.fromJson(json);
|
| + checkAccessConfig(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -13663,6 +15717,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_networkInterface));
|
|
|
|
|
| var h = {
|
| @@ -13671,15 +15726,15 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| + res.addAccessConfig(arg_request, arg_project, arg_zone, arg_instance, arg_networkInterface).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--aggregatedList", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ImagesResourceApi res = new api.ComputeApi(mock).images;
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| var arg_project = "foo";
|
| var arg_filter = "foo";
|
| var arg_maxResults = 42;
|
| @@ -13718,29 +15773,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildImageList());
|
| + var resp = convert.JSON.encode(buildInstanceAggregatedList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ImageList response) {
|
| - checkImageList(response);
|
| + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceAggregatedList response) {
|
| + checkInstanceAggregatedList(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-InstanceGroupManagersResourceApi", () {
|
| - unittest.test("method--abandonInstances", () {
|
| + unittest.test("method--attachDisk", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| - var arg_request = buildInstanceGroupManagersAbandonInstancesRequest();
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + var arg_request = buildAttachedDisk();
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroupManager = "foo";
|
| + var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceGroupManagersAbandonInstancesRequest.fromJson(json);
|
| - checkInstanceGroupManagersAbandonInstancesRequest(obj);
|
| + var obj = new api.AttachedDisk.fromJson(json);
|
| + checkAttachedDisk(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -13773,20 +15824,18 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.abandonInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| + res.attachDisk(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--aggregatedList", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -13811,30 +15860,28 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstanceGroupManagerAggregatedList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerAggregatedList response) {
|
| - checkInstanceGroupManagerAggregatedList(response);
|
| + res.delete(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--deleteAccessConfig", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroupManager = "foo";
|
| + var arg_instance = "foo";
|
| + var arg_accessConfig = "foo";
|
| + var arg_networkInterface = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -13859,6 +15906,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["accessConfig"].first, unittest.equals(arg_accessConfig));
|
| + unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_networkInterface));
|
|
|
|
|
| var h = {
|
| @@ -13867,23 +15916,20 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| + res.deleteAccessConfig(arg_project, arg_zone, arg_instance, arg_accessConfig, arg_networkInterface).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--deleteInstances", () {
|
| + unittest.test("method--detachDisk", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| - var arg_request = buildInstanceGroupManagersDeleteInstancesRequest();
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroupManager = "foo";
|
| + var arg_instance = "foo";
|
| + var arg_deviceName = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceGroupManagersDeleteInstancesRequest.fromJson(json);
|
| - checkInstanceGroupManagersDeleteInstancesRequest(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -13907,6 +15953,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_deviceName));
|
|
|
|
|
| var h = {
|
| @@ -13915,7 +15962,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.deleteInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| + res.detachDisk(arg_project, arg_zone, arg_instance, arg_deviceName).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -13923,10 +15970,10 @@ main() {
|
| unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroupManager = "foo";
|
| + var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -13956,25 +16003,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstanceGroupManager());
|
| + var resp = convert.JSON.encode(buildInstance());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.InstanceGroupManager response) {
|
| - checkInstanceGroupManager(response);
|
| + res.get(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Instance response) {
|
| + checkInstance(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + unittest.test("method--getSerialPortOutput", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| - var arg_request = buildInstanceGroupManager();
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| + var arg_instance = "foo";
|
| + var arg_port = 42;
|
| + var arg_start_1 = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceGroupManager.fromJson(json);
|
| - checkInstanceGroupManager(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -13998,30 +16044,32 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(core.int.parse(queryMap["port"].first), unittest.equals(arg_port));
|
| + unittest.expect(queryMap["start"].first, unittest.equals(arg_start_1));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildSerialPortOutput());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.getSerialPortOutput(arg_project, arg_zone, arg_instance, port: arg_port, start_1: arg_start_1).then(unittest.expectAsync(((api.SerialPortOutput response) {
|
| + checkSerialPortOutput(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + var arg_request = buildInstance();
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Instance.fromJson(json);
|
| + checkInstance(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -14045,32 +16093,28 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstanceGroupManagerList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerList response) {
|
| - checkInstanceGroupManagerList(response);
|
| + res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--listManagedInstances", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroupManager = "foo";
|
| var arg_filter = "foo";
|
| var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| @@ -14098,32 +16142,29 @@ main() {
|
| }
|
| unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstanceGroupManagersListManagedInstancesResponse());
|
| + var resp = convert.JSON.encode(buildInstanceList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.listManagedInstances(arg_project, arg_zone, arg_instanceGroupManager, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagersListManagedInstancesResponse response) {
|
| - checkInstanceGroupManagersListManagedInstancesResponse(response);
|
| + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceList response) {
|
| + checkInstanceList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--recreateInstances", () {
|
| + unittest.test("method--reset", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| - var arg_request = buildInstanceGroupManagersRecreateInstancesRequest();
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroupManager = "foo";
|
| + var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceGroupManagersRecreateInstancesRequest.fromJson(json);
|
| - checkInstanceGroupManagersRecreateInstancesRequest(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -14155,19 +16196,20 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.recreateInstances(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| + res.reset(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--resize", () {
|
| + unittest.test("method--setDiskAutoDelete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroupManager = "foo";
|
| - var arg_size = 42;
|
| + var arg_instance = "foo";
|
| + var arg_autoDelete = true;
|
| + var arg_deviceName = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -14192,7 +16234,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(core.int.parse(queryMap["size"].first), unittest.equals(arg_size));
|
| + unittest.expect(queryMap["autoDelete"].first, unittest.equals("$arg_autoDelete"));
|
| + unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_deviceName));
|
|
|
|
|
| var h = {
|
| @@ -14201,22 +16244,22 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.resize(arg_project, arg_zone, arg_instanceGroupManager, arg_size).then(unittest.expectAsync(((api.Operation response) {
|
| + res.setDiskAutoDelete(arg_project, arg_zone, arg_instance, arg_autoDelete, arg_deviceName).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--setInstanceTemplate", () {
|
| + unittest.test("method--setMachineType", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| - var arg_request = buildInstanceGroupManagersSetInstanceTemplateRequest();
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + var arg_request = buildInstancesSetMachineTypeRequest();
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroupManager = "foo";
|
| + var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceGroupManagersSetInstanceTemplateRequest.fromJson(json);
|
| - checkInstanceGroupManagersSetInstanceTemplateRequest(obj);
|
| + var obj = new api.InstancesSetMachineTypeRequest.fromJson(json);
|
| + checkInstancesSetMachineTypeRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -14249,22 +16292,22 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.setInstanceTemplate(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| + res.setMachineType(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--setTargetPools", () {
|
| + unittest.test("method--setMetadata", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers;
|
| - var arg_request = buildInstanceGroupManagersSetTargetPoolsRequest();
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + var arg_request = buildMetadata();
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroupManager = "foo";
|
| + var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceGroupManagersSetTargetPoolsRequest.fromJson(json);
|
| - checkInstanceGroupManagersSetTargetPoolsRequest(obj);
|
| + var obj = new api.Metadata.fromJson(json);
|
| + checkMetadata(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -14297,26 +16340,22 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.setTargetPools(arg_request, arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| + res.setMetadata(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-InstanceGroupsResourceApi", () {
|
| - unittest.test("method--addInstances", () {
|
| + unittest.test("method--setScheduling", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| - var arg_request = buildInstanceGroupsAddInstancesRequest();
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + var arg_request = buildScheduling();
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroup = "foo";
|
| + var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceGroupsAddInstancesRequest.fromJson(json);
|
| - checkInstanceGroupsAddInstancesRequest(obj);
|
| + var obj = new api.Scheduling.fromJson(json);
|
| + checkScheduling(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -14349,21 +16388,23 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.addInstances(arg_request, arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) {
|
| + res.setScheduling(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--aggregatedList", () {
|
| + unittest.test("method--setTags", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + var arg_request = buildTags();
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_zone = "foo";
|
| + var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Tags.fromJson(json);
|
| + checkTags(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -14387,30 +16428,26 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstanceGroupAggregatedList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupAggregatedList response) {
|
| - checkInstanceGroupAggregatedList(response);
|
| + res.setTags(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--start", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroup = "foo";
|
| + var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -14443,19 +16480,23 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) {
|
| + res.start(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--startWithEncryptionKey", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + var arg_request = buildInstancesStartWithEncryptionKeyRequest();
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroup = "foo";
|
| + var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.InstancesStartWithEncryptionKeyRequest.fromJson(json);
|
| + checkInstancesStartWithEncryptionKeyRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -14484,25 +16525,22 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstanceGroup());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.InstanceGroup response) {
|
| - checkInstanceGroup(response);
|
| + res.startWithEncryptionKey(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + unittest.test("method--stop", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| - var arg_request = buildInstanceGroup();
|
| + api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| + var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceGroup.fromJson(json);
|
| - checkInstanceGroup(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -14534,21 +16572,21 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) {
|
| + res.stop(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-LicensesResourceApi", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| + api.LicensesResourceApi res = new api.ComputeApi(mock).licenses;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_license = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -14573,39 +16611,33 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstanceGroupList());
|
| + var resp = convert.JSON.encode(buildLicense());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupList response) {
|
| - checkInstanceGroupList(response);
|
| + res.get(arg_project, arg_license).then(unittest.expectAsync(((api.License response) {
|
| + checkLicense(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--listInstances", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-MachineTypesResourceApi", () {
|
| + unittest.test("method--aggregatedList", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| - var arg_request = buildInstanceGroupsListInstancesRequest();
|
| + api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instanceGroup = "foo";
|
| var arg_filter = "foo";
|
| var arg_maxResults = 42;
|
| var arg_orderBy = "foo";
|
| var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceGroupsListInstancesRequest.fromJson(json);
|
| - checkInstanceGroupsListInstancesRequest(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -14638,26 +16670,22 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstanceGroupsListInstances());
|
| + var resp = convert.JSON.encode(buildMachineTypeAggregatedList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.listInstances(arg_request, arg_project, arg_zone, arg_instanceGroup, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupsListInstances response) {
|
| - checkInstanceGroupsListInstances(response);
|
| + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeAggregatedList response) {
|
| + checkMachineTypeAggregatedList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--removeInstances", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| - var arg_request = buildInstanceGroupsRemoveInstancesRequest();
|
| + api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes;
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroup = "foo";
|
| + var arg_machineType = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceGroupsRemoveInstancesRequest.fromJson(json);
|
| - checkInstanceGroupsRemoveInstancesRequest(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -14686,26 +16714,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildMachineType());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.removeInstances(arg_request, arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.get(arg_project, arg_zone, arg_machineType).then(unittest.expectAsync(((api.MachineType response) {
|
| + checkMachineType(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--setNamedPorts", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroups;
|
| - var arg_request = buildInstanceGroupsSetNamedPortsRequest();
|
| + api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes;
|
| var arg_project = "foo";
|
| var arg_zone = "foo";
|
| - var arg_instanceGroup = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceGroupsSetNamedPortsRequest.fromJson(json);
|
| - checkInstanceGroupsSetNamedPortsRequest(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -14729,29 +16756,33 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildMachineTypeList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.setNamedPorts(arg_request, arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeList response) {
|
| + checkMachineTypeList(response);
|
| })));
|
| });
|
|
|
| });
|
|
|
|
|
| - unittest.group("resource-InstanceTemplatesResourceApi", () {
|
| + unittest.group("resource-NetworksResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTemplates;
|
| + api.NetworksResourceApi res = new api.ComputeApi(mock).networks;
|
| var arg_project = "foo";
|
| - var arg_instanceTemplate = "foo";
|
| + var arg_network = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -14784,7 +16815,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_project, arg_network).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -14792,9 +16823,9 @@ main() {
|
| unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTemplates;
|
| + api.NetworksResourceApi res = new api.ComputeApi(mock).networks;
|
| var arg_project = "foo";
|
| - var arg_instanceTemplate = "foo";
|
| + var arg_network = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -14824,23 +16855,23 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstanceTemplate());
|
| + var resp = convert.JSON.encode(buildNetwork());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((api.InstanceTemplate response) {
|
| - checkInstanceTemplate(response);
|
| + res.get(arg_project, arg_network).then(unittest.expectAsync(((api.Network response) {
|
| + checkNetwork(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTemplates;
|
| - var arg_request = buildInstanceTemplate();
|
| + api.NetworksResourceApi res = new api.ComputeApi(mock).networks;
|
| + var arg_request = buildNetwork();
|
| var arg_project = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceTemplate.fromJson(json);
|
| - checkInstanceTemplate(obj);
|
| + var obj = new api.Network.fromJson(json);
|
| + checkNetwork(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -14881,7 +16912,7 @@ main() {
|
| unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTemplates;
|
| + api.NetworksResourceApi res = new api.ComputeApi(mock).networks;
|
| var arg_project = "foo";
|
| var arg_filter = "foo";
|
| var arg_maxResults = 42;
|
| @@ -14920,31 +16951,67 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstanceTemplateList());
|
| + var resp = convert.JSON.encode(buildNetworkList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceTemplateList response) {
|
| - checkInstanceTemplateList(response);
|
| + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.NetworkList response) {
|
| + checkNetworkList(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-InstancesResourceApi", () {
|
| - unittest.test("method--addAccessConfig", () {
|
| + unittest.test("method--switchToCustomMode", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| - var arg_request = buildAccessConfig();
|
| + api.NetworksResourceApi res = new api.ComputeApi(mock).networks;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| - var arg_networkInterface = "foo";
|
| + var arg_network = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.AccessConfig.fromJson(json);
|
| - checkAccessConfig(obj);
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.switchToCustomMode(arg_project, arg_network).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| + });
|
|
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-ProjectsResourceApi", () {
|
| + unittest.test("method--get", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.ProjectsResourceApi res = new api.ComputeApi(mock).projects;
|
| + var arg_project = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -14968,30 +17035,29 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_networkInterface));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildProject());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.addAccessConfig(arg_request, arg_project, arg_zone, arg_instance, arg_networkInterface).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.get(arg_project).then(unittest.expectAsync(((api.Project response) {
|
| + checkProject(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--aggregatedList", () {
|
| + unittest.test("method--moveDisk", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + api.ProjectsResourceApi res = new api.ComputeApi(mock).projects;
|
| + var arg_request = buildDiskMoveRequest();
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.DiskMoveRequest.fromJson(json);
|
| + checkDiskMoveRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -15015,34 +17081,28 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstanceAggregatedList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceAggregatedList response) {
|
| - checkInstanceAggregatedList(response);
|
| + res.moveDisk(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--attachDisk", () {
|
| + unittest.test("method--moveInstance", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| - var arg_request = buildAttachedDisk();
|
| + api.ProjectsResourceApi res = new api.ComputeApi(mock).projects;
|
| + var arg_request = buildInstanceMoveRequest();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.AttachedDisk.fromJson(json);
|
| - checkAttachedDisk(obj);
|
| + var obj = new api.InstanceMoveRequest.fromJson(json);
|
| + checkInstanceMoveRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -15075,19 +17135,21 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.attachDisk(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| + res.moveInstance(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--setCommonInstanceMetadata", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + api.ProjectsResourceApi res = new api.ComputeApi(mock).projects;
|
| + var arg_request = buildMetadata();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Metadata.fromJson(json);
|
| + checkMetadata(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -15119,21 +17181,21 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| + res.setCommonInstanceMetadata(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--deleteAccessConfig", () {
|
| + unittest.test("method--setUsageExportBucket", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + api.ProjectsResourceApi res = new api.ComputeApi(mock).projects;
|
| + var arg_request = buildUsageExportLocation();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| - var arg_accessConfig = "foo";
|
| - var arg_networkInterface = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.UsageExportLocation.fromJson(json);
|
| + checkUsageExportLocation(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -15157,8 +17219,6 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["accessConfig"].first, unittest.equals(arg_accessConfig));
|
| - unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_networkInterface));
|
|
|
|
|
| var h = {
|
| @@ -15167,19 +17227,22 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.deleteAccessConfig(arg_project, arg_zone, arg_instance, arg_accessConfig, arg_networkInterface).then(unittest.expectAsync(((api.Operation response) {
|
| + res.setUsageExportBucket(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--detachDisk", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-RegionAutoscalersResourceApi", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAutoscalers;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| - var arg_deviceName = "foo";
|
| + var arg_region = "foo";
|
| + var arg_autoscaler = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -15204,7 +17267,6 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_deviceName));
|
|
|
|
|
| var h = {
|
| @@ -15213,7 +17275,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.detachDisk(arg_project, arg_zone, arg_instance, arg_deviceName).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_project, arg_region, arg_autoscaler).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -15221,10 +17283,10 @@ main() {
|
| unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAutoscalers;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| + var arg_region = "foo";
|
| + var arg_autoscaler = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -15254,23 +17316,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstance());
|
| + var resp = convert.JSON.encode(buildAutoscaler());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Instance response) {
|
| - checkInstance(response);
|
| + res.get(arg_project, arg_region, arg_autoscaler).then(unittest.expectAsync(((api.Autoscaler response) {
|
| + checkAutoscaler(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--getSerialPortOutput", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAutoscalers;
|
| + var arg_request = buildAutoscaler();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| - var arg_port = 42;
|
| + var arg_region = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Autoscaler.fromJson(json);
|
| + checkAutoscaler(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -15294,31 +17358,30 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(core.int.parse(queryMap["port"].first), unittest.equals(arg_port));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildSerialPortOutput());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.getSerialPortOutput(arg_project, arg_zone, arg_instance, port: arg_port).then(unittest.expectAsync(((api.SerialPortOutput response) {
|
| - checkSerialPortOutput(response);
|
| + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| - var arg_request = buildInstance();
|
| + api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAutoscalers;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| + var arg_region = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Instance.fromJson(json);
|
| - checkInstance(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -15342,30 +17405,35 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildRegionAutoscalerList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionAutoscalerList response) {
|
| + checkRegionAutoscalerList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--patch", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAutoscalers;
|
| + var arg_request = buildAutoscaler();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_region = "foo";
|
| + var arg_autoscaler = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Autoscaler.fromJson(json);
|
| + checkAutoscaler(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -15389,31 +17457,32 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autoscaler));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildInstanceList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceList response) {
|
| - checkInstanceList(response);
|
| + res.patch(arg_request, arg_project, arg_region, arg_autoscaler).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--reset", () {
|
| + unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAutoscalers;
|
| + var arg_request = buildAutoscaler();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| + var arg_region = "foo";
|
| + var arg_autoscaler = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Autoscaler.fromJson(json);
|
| + checkAutoscaler(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -15437,6 +17506,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autoscaler));
|
|
|
|
|
| var h = {
|
| @@ -15445,20 +17515,22 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.reset(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| + res.update(arg_request, arg_project, arg_region, autoscaler: arg_autoscaler).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--setDiskAutoDelete", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-RegionBackendServicesResourceApi", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| - var arg_autoDelete = true;
|
| - var arg_deviceName = "foo";
|
| + var arg_region = "foo";
|
| + var arg_backendService = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -15483,8 +17555,6 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["autoDelete"].first, unittest.equals("$arg_autoDelete"));
|
| - unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_deviceName));
|
|
|
|
|
| var h = {
|
| @@ -15493,23 +17563,19 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.setDiskAutoDelete(arg_project, arg_zone, arg_instance, arg_autoDelete, arg_deviceName).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--setMachineType", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| - var arg_request = buildInstancesSetMachineTypeRequest();
|
| + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| + var arg_region = "foo";
|
| + var arg_backendService = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstancesSetMachineTypeRequest.fromJson(json);
|
| - checkInstancesSetMachineTypeRequest(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -15538,25 +17604,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildBackendService());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.setMachineType(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.get(arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.BackendService response) {
|
| + checkBackendService(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--setMetadata", () {
|
| + unittest.test("method--getHealth", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| - var arg_request = buildMetadata();
|
| + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices;
|
| + var arg_request = buildResourceGroupReference();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| + var arg_region = "foo";
|
| + var arg_backendService = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Metadata.fromJson(json);
|
| - checkMetadata(obj);
|
| + var obj = new api.ResourceGroupReference.fromJson(json);
|
| + checkResourceGroupReference(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -15586,25 +17652,24 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildBackendServiceGroupHealth());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.setMetadata(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.getHealth(arg_request, arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.BackendServiceGroupHealth response) {
|
| + checkBackendServiceGroupHealth(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--setScheduling", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| - var arg_request = buildScheduling();
|
| + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices;
|
| + var arg_request = buildBackendService();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| + var arg_region = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Scheduling.fromJson(json);
|
| - checkScheduling(obj);
|
| + var obj = new api.BackendService.fromJson(json);
|
| + checkBackendService(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -15637,23 +17702,22 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.setScheduling(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--setTags", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| - var arg_request = buildTags();
|
| + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| + var arg_region = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Tags.fromJson(json);
|
| - checkTags(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -15677,27 +17741,35 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildBackendServiceList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.setTags(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + }), true);
|
| + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceList response) {
|
| + checkBackendServiceList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--start", () {
|
| + unittest.test("method--patch", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices;
|
| + var arg_request = buildBackendService();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| + var arg_region = "foo";
|
| + var arg_backendService = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.BackendService.fromJson(json);
|
| + checkBackendService(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -15729,22 +17801,22 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.start(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| + res.patch(arg_request, arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--startWithEncryptionKey", () {
|
| + unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| - var arg_request = buildInstancesStartWithEncryptionKeyRequest();
|
| + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices;
|
| + var arg_request = buildBackendService();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| + var arg_region = "foo";
|
| + var arg_backendService = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstancesStartWithEncryptionKeyRequest.fromJson(json);
|
| - checkInstancesStartWithEncryptionKeyRequest(obj);
|
| + var obj = new api.BackendService.fromJson(json);
|
| + checkBackendService(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -15777,19 +17849,27 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.startWithEncryptionKey(arg_request, arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| + res.update(arg_request, arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--stop", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-RegionInstanceGroupManagersResourceApi", () {
|
| + unittest.test("method--abandonInstances", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.InstancesResourceApi res = new api.ComputeApi(mock).instances;
|
| + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers;
|
| + var arg_request = buildRegionInstanceGroupManagersAbandonInstancesRequest();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_instance = "foo";
|
| + var arg_region = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.RegionInstanceGroupManagersAbandonInstancesRequest.fromJson(json);
|
| + checkRegionInstanceGroupManagersAbandonInstancesRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -15821,21 +17901,18 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.stop(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| + res.abandonInstances(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-LicensesResourceApi", () {
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--delete", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.LicensesResourceApi res = new api.ComputeApi(mock).licenses;
|
| + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers;
|
| var arg_project = "foo";
|
| - var arg_license = "foo";
|
| + var arg_region = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -15865,28 +17942,26 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildLicense());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_license).then(unittest.expectAsync(((api.License response) {
|
| - checkLicense(response);
|
| + res.delete(arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-MachineTypesResourceApi", () {
|
| - unittest.test("method--aggregatedList", () {
|
| + unittest.test("method--deleteInstances", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes;
|
| + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers;
|
| + var arg_request = buildRegionInstanceGroupManagersDeleteInstancesRequest();
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_region = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.RegionInstanceGroupManagersDeleteInstancesRequest.fromJson(json);
|
| + checkRegionInstanceGroupManagersDeleteInstancesRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -15910,30 +17985,26 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildMachineTypeAggregatedList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeAggregatedList response) {
|
| - checkMachineTypeAggregatedList(response);
|
| + res.deleteInstances(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes;
|
| + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers;
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_machineType = "foo";
|
| + var arg_region = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -15963,25 +18034,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildMachineType());
|
| + var resp = convert.JSON.encode(buildInstanceGroupManager());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_zone, arg_machineType).then(unittest.expectAsync(((api.MachineType response) {
|
| - checkMachineType(response);
|
| + res.get(arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.InstanceGroupManager response) {
|
| + checkInstanceGroupManager(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--insert", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes;
|
| + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers;
|
| + var arg_request = buildInstanceGroupManager();
|
| var arg_project = "foo";
|
| - var arg_zone = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_region = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.InstanceGroupManager.fromJson(json);
|
| + checkInstanceGroupManager(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -16005,33 +18076,29 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildMachineTypeList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeList response) {
|
| - checkMachineTypeList(response);
|
| + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-NetworksResourceApi", () {
|
| - unittest.test("method--delete", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.NetworksResourceApi res = new api.ComputeApi(mock).networks;
|
| + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers;
|
| var arg_project = "foo";
|
| - var arg_network = "foo";
|
| + var arg_region = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -16056,25 +18123,30 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildRegionInstanceGroupManagerList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_project, arg_network).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionInstanceGroupManagerList response) {
|
| + checkRegionInstanceGroupManagerList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--listManagedInstances", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.NetworksResourceApi res = new api.ComputeApi(mock).networks;
|
| + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers;
|
| var arg_project = "foo";
|
| - var arg_network = "foo";
|
| + var arg_region = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -16104,23 +18176,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildNetwork());
|
| + var resp = convert.JSON.encode(buildRegionInstanceGroupManagersListInstancesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project, arg_network).then(unittest.expectAsync(((api.Network response) {
|
| - checkNetwork(response);
|
| + res.listManagedInstances(arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.RegionInstanceGroupManagersListInstancesResponse response) {
|
| + checkRegionInstanceGroupManagersListInstancesResponse(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--insert", () {
|
| + unittest.test("method--recreateInstances", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.NetworksResourceApi res = new api.ComputeApi(mock).networks;
|
| - var arg_request = buildNetwork();
|
| + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers;
|
| + var arg_request = buildRegionInstanceGroupManagersRecreateRequest();
|
| var arg_project = "foo";
|
| + var arg_region = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Network.fromJson(json);
|
| - checkNetwork(obj);
|
| + var obj = new api.RegionInstanceGroupManagersRecreateRequest.fromJson(json);
|
| + checkRegionInstanceGroupManagersRecreateRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -16153,20 +18227,19 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| + res.recreateInstances(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--list", () {
|
| + unittest.test("method--resize", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.NetworksResourceApi res = new api.ComputeApi(mock).networks;
|
| + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers;
|
| var arg_project = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_maxResults = 42;
|
| - var arg_orderBy = "foo";
|
| - var arg_pageToken = "foo";
|
| + var arg_region = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| + var arg_size = 42;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -16191,30 +18264,32 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["size"].first), unittest.equals(arg_size));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildNetworkList());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.NetworkList response) {
|
| - checkNetworkList(response);
|
| + res.resize(arg_project, arg_region, arg_instanceGroupManager, arg_size).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--switchToCustomMode", () {
|
| + unittest.test("method--setInstanceTemplate", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.NetworksResourceApi res = new api.ComputeApi(mock).networks;
|
| + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers;
|
| + var arg_request = buildRegionInstanceGroupManagersSetTemplateRequest();
|
| var arg_project = "foo";
|
| - var arg_network = "foo";
|
| + var arg_region = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.RegionInstanceGroupManagersSetTemplateRequest.fromJson(json);
|
| + checkRegionInstanceGroupManagersSetTemplateRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -16246,21 +18321,23 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.switchToCustomMode(arg_project, arg_network).then(unittest.expectAsync(((api.Operation response) {
|
| + res.setInstanceTemplate(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-ProjectsResourceApi", () {
|
| - unittest.test("method--get", () {
|
| + unittest.test("method--setTargetPools", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ProjectsResourceApi res = new api.ComputeApi(mock).projects;
|
| + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers;
|
| + var arg_request = buildRegionInstanceGroupManagersSetTargetPoolsRequest();
|
| var arg_project = "foo";
|
| + var arg_region = "foo";
|
| + var arg_instanceGroupManager = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.RegionInstanceGroupManagersSetTargetPoolsRequest.fromJson(json);
|
| + checkRegionInstanceGroupManagersSetTargetPoolsRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -16289,24 +18366,26 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildProject());
|
| + var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_project).then(unittest.expectAsync(((api.Project response) {
|
| - checkProject(response);
|
| + res.setTargetPools(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--moveDisk", () {
|
| + });
|
| +
|
| +
|
| + unittest.group("resource-RegionInstanceGroupsResourceApi", () {
|
| + unittest.test("method--get", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ProjectsResourceApi res = new api.ComputeApi(mock).projects;
|
| - var arg_request = buildDiskMoveRequest();
|
| + api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionInstanceGroups;
|
| var arg_project = "foo";
|
| + var arg_region = "foo";
|
| + var arg_instanceGroup = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.DiskMoveRequest.fromJson(json);
|
| - checkDiskMoveRequest(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -16335,24 +18414,25 @@ main() {
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildInstanceGroup());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.moveDisk(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.get(arg_project, arg_region, arg_instanceGroup).then(unittest.expectAsync(((api.InstanceGroup response) {
|
| + checkInstanceGroup(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--moveInstance", () {
|
| + unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ProjectsResourceApi res = new api.ComputeApi(mock).projects;
|
| - var arg_request = buildInstanceMoveRequest();
|
| + api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionInstanceGroups;
|
| var arg_project = "foo";
|
| + var arg_region = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.InstanceMoveRequest.fromJson(json);
|
| - checkInstanceMoveRequest(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -16376,28 +18456,38 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildRegionInstanceGroupList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.moveInstance(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionInstanceGroupList response) {
|
| + checkRegionInstanceGroupList(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--setCommonInstanceMetadata", () {
|
| + unittest.test("method--listInstances", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ProjectsResourceApi res = new api.ComputeApi(mock).projects;
|
| - var arg_request = buildMetadata();
|
| + api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionInstanceGroups;
|
| + var arg_request = buildRegionInstanceGroupsListInstancesRequest();
|
| var arg_project = "foo";
|
| + var arg_region = "foo";
|
| + var arg_instanceGroup = "foo";
|
| + var arg_filter = "foo";
|
| + var arg_maxResults = 42;
|
| + var arg_orderBy = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Metadata.fromJson(json);
|
| - checkMetadata(obj);
|
| + var obj = new api.RegionInstanceGroupsListInstancesRequest.fromJson(json);
|
| + checkRegionInstanceGroupsListInstancesRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -16422,28 +18512,34 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults));
|
| + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildRegionInstanceGroupsListInstances());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.setCommonInstanceMetadata(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| - checkOperation(response);
|
| + res.listInstances(arg_request, arg_project, arg_region, arg_instanceGroup, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionInstanceGroupsListInstances response) {
|
| + checkRegionInstanceGroupsListInstances(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--setUsageExportBucket", () {
|
| + unittest.test("method--setNamedPorts", () {
|
|
|
| var mock = new HttpServerMock();
|
| - api.ProjectsResourceApi res = new api.ComputeApi(mock).projects;
|
| - var arg_request = buildUsageExportLocation();
|
| + api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionInstanceGroups;
|
| + var arg_request = buildRegionInstanceGroupsSetNamedPortsRequest();
|
| var arg_project = "foo";
|
| + var arg_region = "foo";
|
| + var arg_instanceGroup = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.UsageExportLocation.fromJson(json);
|
| - checkUsageExportLocation(obj);
|
| + var obj = new api.RegionInstanceGroupsSetNamedPortsRequest.fromJson(json);
|
| + checkRegionInstanceGroupsSetNamedPortsRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -16476,7 +18572,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.setUsageExportBucket(arg_request, arg_project).then(unittest.expectAsync(((api.Operation response) {
|
| + res.setNamedPorts(arg_request, arg_project, arg_region, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|