| Index: generated/googleapis_beta/test/sqladmin/v1beta4_test.dart
|
| diff --git a/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart b/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart
|
| index 10ae093d46ef8c32214f97c69c423585b1f0ecaa..6d481e681458b04a97ede2748e260fd07fce1f56 100644
|
| --- a/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart
|
| +++ b/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart
|
| @@ -106,6 +106,7 @@ buildBackupRun() {
|
| var o = new api.BackupRun();
|
| buildCounterBackupRun++;
|
| if (buildCounterBackupRun < 3) {
|
| + o.description = "foo";
|
| o.endTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.error = buildOperationError();
|
| @@ -115,6 +116,7 @@ buildBackupRun() {
|
| o.selfLink = "foo";
|
| o.startTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| o.status = "foo";
|
| + o.type = "foo";
|
| o.windowStartTime = core.DateTime.parse("2002-02-27T14:01:02");
|
| }
|
| buildCounterBackupRun--;
|
| @@ -124,6 +126,7 @@ buildBackupRun() {
|
| checkBackupRun(api.BackupRun o) {
|
| buildCounterBackupRun++;
|
| if (buildCounterBackupRun < 3) {
|
| + unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| checkOperationError(o.error);
|
| @@ -133,19 +136,20 @@ checkBackupRun(api.BackupRun o) {
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| + unittest.expect(o.type, unittest.equals('foo'));
|
| unittest.expect(o.windowStartTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| }
|
| buildCounterBackupRun--;
|
| }
|
|
|
| -buildUnnamed3725() {
|
| +buildUnnamed3581() {
|
| var o = new core.List<api.BackupRun>();
|
| o.add(buildBackupRun());
|
| o.add(buildBackupRun());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3725(core.List<api.BackupRun> o) {
|
| +checkUnnamed3581(core.List<api.BackupRun> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBackupRun(o[0]);
|
| checkBackupRun(o[1]);
|
| @@ -156,7 +160,7 @@ buildBackupRunsListResponse() {
|
| var o = new api.BackupRunsListResponse();
|
| buildCounterBackupRunsListResponse++;
|
| if (buildCounterBackupRunsListResponse < 3) {
|
| - o.items = buildUnnamed3725();
|
| + o.items = buildUnnamed3581();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -167,7 +171,7 @@ buildBackupRunsListResponse() {
|
| checkBackupRunsListResponse(api.BackupRunsListResponse o) {
|
| buildCounterBackupRunsListResponse++;
|
| if (buildCounterBackupRunsListResponse < 3) {
|
| - checkUnnamed3725(o.items);
|
| + checkUnnamed3581(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -295,40 +299,40 @@ checkDatabaseInstanceFailoverReplica(api.DatabaseInstanceFailoverReplica o) {
|
| buildCounterDatabaseInstanceFailoverReplica--;
|
| }
|
|
|
| -buildUnnamed3726() {
|
| +buildUnnamed3582() {
|
| var o = new core.List<api.IpMapping>();
|
| o.add(buildIpMapping());
|
| o.add(buildIpMapping());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3726(core.List<api.IpMapping> o) {
|
| +checkUnnamed3582(core.List<api.IpMapping> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkIpMapping(o[0]);
|
| checkIpMapping(o[1]);
|
| }
|
|
|
| -buildUnnamed3727() {
|
| +buildUnnamed3583() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3727(core.List<core.String> o) {
|
| +checkUnnamed3583(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'));
|
| }
|
|
|
| -buildUnnamed3728() {
|
| +buildUnnamed3584() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3728(core.List<core.String> o) {
|
| +checkUnnamed3584(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'));
|
| @@ -345,7 +349,7 @@ buildDatabaseInstance() {
|
| o.etag = "foo";
|
| o.failoverReplica = buildDatabaseInstanceFailoverReplica();
|
| o.instanceType = "foo";
|
| - o.ipAddresses = buildUnnamed3726();
|
| + o.ipAddresses = buildUnnamed3582();
|
| o.ipv6Address = "foo";
|
| o.kind = "foo";
|
| o.masterInstanceName = "foo";
|
| @@ -355,13 +359,13 @@ buildDatabaseInstance() {
|
| o.project = "foo";
|
| o.region = "foo";
|
| o.replicaConfiguration = buildReplicaConfiguration();
|
| - o.replicaNames = buildUnnamed3727();
|
| + o.replicaNames = buildUnnamed3583();
|
| o.selfLink = "foo";
|
| o.serverCaCert = buildSslCert();
|
| o.serviceAccountEmailAddress = "foo";
|
| o.settings = buildSettings();
|
| o.state = "foo";
|
| - o.suspensionReason = buildUnnamed3728();
|
| + o.suspensionReason = buildUnnamed3584();
|
| }
|
| buildCounterDatabaseInstance--;
|
| return o;
|
| @@ -376,7 +380,7 @@ checkDatabaseInstance(api.DatabaseInstance o) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| checkDatabaseInstanceFailoverReplica(o.failoverReplica);
|
| unittest.expect(o.instanceType, unittest.equals('foo'));
|
| - checkUnnamed3726(o.ipAddresses);
|
| + checkUnnamed3582(o.ipAddresses);
|
| unittest.expect(o.ipv6Address, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.masterInstanceName, unittest.equals('foo'));
|
| @@ -386,25 +390,25 @@ checkDatabaseInstance(api.DatabaseInstance o) {
|
| unittest.expect(o.project, unittest.equals('foo'));
|
| unittest.expect(o.region, unittest.equals('foo'));
|
| checkReplicaConfiguration(o.replicaConfiguration);
|
| - checkUnnamed3727(o.replicaNames);
|
| + checkUnnamed3583(o.replicaNames);
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| checkSslCert(o.serverCaCert);
|
| unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo'));
|
| checkSettings(o.settings);
|
| unittest.expect(o.state, unittest.equals('foo'));
|
| - checkUnnamed3728(o.suspensionReason);
|
| + checkUnnamed3584(o.suspensionReason);
|
| }
|
| buildCounterDatabaseInstance--;
|
| }
|
|
|
| -buildUnnamed3729() {
|
| +buildUnnamed3585() {
|
| var o = new core.List<api.Database>();
|
| o.add(buildDatabase());
|
| o.add(buildDatabase());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3729(core.List<api.Database> o) {
|
| +checkUnnamed3585(core.List<api.Database> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDatabase(o[0]);
|
| checkDatabase(o[1]);
|
| @@ -415,7 +419,7 @@ buildDatabasesListResponse() {
|
| var o = new api.DatabasesListResponse();
|
| buildCounterDatabasesListResponse++;
|
| if (buildCounterDatabasesListResponse < 3) {
|
| - o.items = buildUnnamed3729();
|
| + o.items = buildUnnamed3585();
|
| o.kind = "foo";
|
| }
|
| buildCounterDatabasesListResponse--;
|
| @@ -425,7 +429,7 @@ buildDatabasesListResponse() {
|
| checkDatabasesListResponse(api.DatabasesListResponse o) {
|
| buildCounterDatabasesListResponse++;
|
| if (buildCounterDatabasesListResponse < 3) {
|
| - checkUnnamed3729(o.items);
|
| + checkUnnamed3585(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterDatabasesListResponse--;
|
| @@ -450,27 +454,27 @@ checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) {
|
| buildCounterExportContextCsvExportOptions--;
|
| }
|
|
|
| -buildUnnamed3730() {
|
| +buildUnnamed3586() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3730(core.List<core.String> o) {
|
| +checkUnnamed3586(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'));
|
| }
|
|
|
| -buildUnnamed3731() {
|
| +buildUnnamed3587() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3731(core.List<core.String> o) {
|
| +checkUnnamed3587(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'));
|
| @@ -482,7 +486,7 @@ buildExportContextSqlExportOptions() {
|
| buildCounterExportContextSqlExportOptions++;
|
| if (buildCounterExportContextSqlExportOptions < 3) {
|
| o.schemaOnly = true;
|
| - o.tables = buildUnnamed3731();
|
| + o.tables = buildUnnamed3587();
|
| }
|
| buildCounterExportContextSqlExportOptions--;
|
| return o;
|
| @@ -492,7 +496,7 @@ checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) {
|
| buildCounterExportContextSqlExportOptions++;
|
| if (buildCounterExportContextSqlExportOptions < 3) {
|
| unittest.expect(o.schemaOnly, unittest.isTrue);
|
| - checkUnnamed3731(o.tables);
|
| + checkUnnamed3587(o.tables);
|
| }
|
| buildCounterExportContextSqlExportOptions--;
|
| }
|
| @@ -503,7 +507,7 @@ buildExportContext() {
|
| buildCounterExportContext++;
|
| if (buildCounterExportContext < 3) {
|
| o.csvExportOptions = buildExportContextCsvExportOptions();
|
| - o.databases = buildUnnamed3730();
|
| + o.databases = buildUnnamed3586();
|
| o.fileType = "foo";
|
| o.kind = "foo";
|
| o.sqlExportOptions = buildExportContextSqlExportOptions();
|
| @@ -517,7 +521,7 @@ checkExportContext(api.ExportContext o) {
|
| buildCounterExportContext++;
|
| if (buildCounterExportContext < 3) {
|
| checkExportContextCsvExportOptions(o.csvExportOptions);
|
| - checkUnnamed3730(o.databases);
|
| + checkUnnamed3586(o.databases);
|
| unittest.expect(o.fileType, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| checkExportContextSqlExportOptions(o.sqlExportOptions);
|
| @@ -547,27 +551,27 @@ checkFailoverContext(api.FailoverContext o) {
|
| buildCounterFailoverContext--;
|
| }
|
|
|
| -buildUnnamed3732() {
|
| +buildUnnamed3588() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3732(core.List<core.String> o) {
|
| +checkUnnamed3588(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'));
|
| }
|
|
|
| -buildUnnamed3733() {
|
| +buildUnnamed3589() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3733(core.List<core.String> o) {
|
| +checkUnnamed3589(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'));
|
| @@ -578,8 +582,8 @@ buildFlag() {
|
| var o = new api.Flag();
|
| buildCounterFlag++;
|
| if (buildCounterFlag < 3) {
|
| - o.allowedStringValues = buildUnnamed3732();
|
| - o.appliesTo = buildUnnamed3733();
|
| + o.allowedStringValues = buildUnnamed3588();
|
| + o.appliesTo = buildUnnamed3589();
|
| o.kind = "foo";
|
| o.maxValue = "foo";
|
| o.minValue = "foo";
|
| @@ -594,8 +598,8 @@ buildFlag() {
|
| checkFlag(api.Flag o) {
|
| buildCounterFlag++;
|
| if (buildCounterFlag < 3) {
|
| - checkUnnamed3732(o.allowedStringValues);
|
| - checkUnnamed3733(o.appliesTo);
|
| + checkUnnamed3588(o.allowedStringValues);
|
| + checkUnnamed3589(o.appliesTo);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.maxValue, unittest.equals('foo'));
|
| unittest.expect(o.minValue, unittest.equals('foo'));
|
| @@ -606,14 +610,14 @@ checkFlag(api.Flag o) {
|
| buildCounterFlag--;
|
| }
|
|
|
| -buildUnnamed3734() {
|
| +buildUnnamed3590() {
|
| var o = new core.List<api.Flag>();
|
| o.add(buildFlag());
|
| o.add(buildFlag());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3734(core.List<api.Flag> o) {
|
| +checkUnnamed3590(core.List<api.Flag> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFlag(o[0]);
|
| checkFlag(o[1]);
|
| @@ -624,7 +628,7 @@ buildFlagsListResponse() {
|
| var o = new api.FlagsListResponse();
|
| buildCounterFlagsListResponse++;
|
| if (buildCounterFlagsListResponse < 3) {
|
| - o.items = buildUnnamed3734();
|
| + o.items = buildUnnamed3590();
|
| o.kind = "foo";
|
| }
|
| buildCounterFlagsListResponse--;
|
| @@ -634,20 +638,20 @@ buildFlagsListResponse() {
|
| checkFlagsListResponse(api.FlagsListResponse o) {
|
| buildCounterFlagsListResponse++;
|
| if (buildCounterFlagsListResponse < 3) {
|
| - checkUnnamed3734(o.items);
|
| + checkUnnamed3590(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterFlagsListResponse--;
|
| }
|
|
|
| -buildUnnamed3735() {
|
| +buildUnnamed3591() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3735(core.List<core.String> o) {
|
| +checkUnnamed3591(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'));
|
| @@ -658,7 +662,7 @@ buildImportContextCsvImportOptions() {
|
| var o = new api.ImportContextCsvImportOptions();
|
| buildCounterImportContextCsvImportOptions++;
|
| if (buildCounterImportContextCsvImportOptions < 3) {
|
| - o.columns = buildUnnamed3735();
|
| + o.columns = buildUnnamed3591();
|
| o.table = "foo";
|
| }
|
| buildCounterImportContextCsvImportOptions--;
|
| @@ -668,7 +672,7 @@ buildImportContextCsvImportOptions() {
|
| checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) {
|
| buildCounterImportContextCsvImportOptions++;
|
| if (buildCounterImportContextCsvImportOptions < 3) {
|
| - checkUnnamed3735(o.columns);
|
| + checkUnnamed3591(o.columns);
|
| unittest.expect(o.table, unittest.equals('foo'));
|
| }
|
| buildCounterImportContextCsvImportOptions--;
|
| @@ -777,14 +781,14 @@ checkInstancesImportRequest(api.InstancesImportRequest o) {
|
| buildCounterInstancesImportRequest--;
|
| }
|
|
|
| -buildUnnamed3736() {
|
| +buildUnnamed3592() {
|
| var o = new core.List<api.DatabaseInstance>();
|
| o.add(buildDatabaseInstance());
|
| o.add(buildDatabaseInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3736(core.List<api.DatabaseInstance> o) {
|
| +checkUnnamed3592(core.List<api.DatabaseInstance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDatabaseInstance(o[0]);
|
| checkDatabaseInstance(o[1]);
|
| @@ -795,7 +799,7 @@ buildInstancesListResponse() {
|
| var o = new api.InstancesListResponse();
|
| buildCounterInstancesListResponse++;
|
| if (buildCounterInstancesListResponse < 3) {
|
| - o.items = buildUnnamed3736();
|
| + o.items = buildUnnamed3592();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -806,7 +810,7 @@ buildInstancesListResponse() {
|
| checkInstancesListResponse(api.InstancesListResponse o) {
|
| buildCounterInstancesListResponse++;
|
| if (buildCounterInstancesListResponse < 3) {
|
| - checkUnnamed3736(o.items);
|
| + checkUnnamed3592(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -832,14 +836,14 @@ checkInstancesRestoreBackupRequest(api.InstancesRestoreBackupRequest o) {
|
| buildCounterInstancesRestoreBackupRequest--;
|
| }
|
|
|
| -buildUnnamed3737() {
|
| +buildUnnamed3593() {
|
| var o = new core.List<api.AclEntry>();
|
| o.add(buildAclEntry());
|
| o.add(buildAclEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3737(core.List<api.AclEntry> o) {
|
| +checkUnnamed3593(core.List<api.AclEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAclEntry(o[0]);
|
| checkAclEntry(o[1]);
|
| @@ -850,7 +854,7 @@ buildIpConfiguration() {
|
| var o = new api.IpConfiguration();
|
| buildCounterIpConfiguration++;
|
| if (buildCounterIpConfiguration < 3) {
|
| - o.authorizedNetworks = buildUnnamed3737();
|
| + o.authorizedNetworks = buildUnnamed3593();
|
| o.ipv4Enabled = true;
|
| o.requireSsl = true;
|
| }
|
| @@ -861,7 +865,7 @@ buildIpConfiguration() {
|
| checkIpConfiguration(api.IpConfiguration o) {
|
| buildCounterIpConfiguration++;
|
| if (buildCounterIpConfiguration < 3) {
|
| - checkUnnamed3737(o.authorizedNetworks);
|
| + checkUnnamed3593(o.authorizedNetworks);
|
| unittest.expect(o.ipv4Enabled, unittest.isTrue);
|
| unittest.expect(o.requireSsl, unittest.isTrue);
|
| }
|
| @@ -1067,14 +1071,14 @@ checkOperationError(api.OperationError o) {
|
| buildCounterOperationError--;
|
| }
|
|
|
| -buildUnnamed3738() {
|
| +buildUnnamed3594() {
|
| var o = new core.List<api.OperationError>();
|
| o.add(buildOperationError());
|
| o.add(buildOperationError());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3738(core.List<api.OperationError> o) {
|
| +checkUnnamed3594(core.List<api.OperationError> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperationError(o[0]);
|
| checkOperationError(o[1]);
|
| @@ -1085,7 +1089,7 @@ buildOperationErrors() {
|
| var o = new api.OperationErrors();
|
| buildCounterOperationErrors++;
|
| if (buildCounterOperationErrors < 3) {
|
| - o.errors = buildUnnamed3738();
|
| + o.errors = buildUnnamed3594();
|
| o.kind = "foo";
|
| }
|
| buildCounterOperationErrors--;
|
| @@ -1095,20 +1099,20 @@ buildOperationErrors() {
|
| checkOperationErrors(api.OperationErrors o) {
|
| buildCounterOperationErrors++;
|
| if (buildCounterOperationErrors < 3) {
|
| - checkUnnamed3738(o.errors);
|
| + checkUnnamed3594(o.errors);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterOperationErrors--;
|
| }
|
|
|
| -buildUnnamed3739() {
|
| +buildUnnamed3595() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3739(core.List<api.Operation> o) {
|
| +checkUnnamed3595(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -1119,7 +1123,7 @@ buildOperationsListResponse() {
|
| var o = new api.OperationsListResponse();
|
| buildCounterOperationsListResponse++;
|
| if (buildCounterOperationsListResponse < 3) {
|
| - o.items = buildUnnamed3739();
|
| + o.items = buildUnnamed3595();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -1130,7 +1134,7 @@ buildOperationsListResponse() {
|
| checkOperationsListResponse(api.OperationsListResponse o) {
|
| buildCounterOperationsListResponse++;
|
| if (buildCounterOperationsListResponse < 3) {
|
| - checkUnnamed3739(o.items);
|
| + checkUnnamed3595(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -1183,27 +1187,27 @@ checkRestoreBackupContext(api.RestoreBackupContext o) {
|
| buildCounterRestoreBackupContext--;
|
| }
|
|
|
| -buildUnnamed3740() {
|
| +buildUnnamed3596() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3740(core.List<core.String> o) {
|
| +checkUnnamed3596(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'));
|
| }
|
|
|
| -buildUnnamed3741() {
|
| +buildUnnamed3597() {
|
| var o = new core.List<api.DatabaseFlags>();
|
| o.add(buildDatabaseFlags());
|
| o.add(buildDatabaseFlags());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3741(core.List<api.DatabaseFlags> o) {
|
| +checkUnnamed3597(core.List<api.DatabaseFlags> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDatabaseFlags(o[0]);
|
| checkDatabaseFlags(o[1]);
|
| @@ -1215,12 +1219,12 @@ buildSettings() {
|
| buildCounterSettings++;
|
| if (buildCounterSettings < 3) {
|
| o.activationPolicy = "foo";
|
| - o.authorizedGaeApplications = buildUnnamed3740();
|
| + o.authorizedGaeApplications = buildUnnamed3596();
|
| o.backupConfiguration = buildBackupConfiguration();
|
| o.crashSafeReplicationEnabled = true;
|
| o.dataDiskSizeGb = "foo";
|
| o.dataDiskType = "foo";
|
| - o.databaseFlags = buildUnnamed3741();
|
| + o.databaseFlags = buildUnnamed3597();
|
| o.databaseReplicationEnabled = true;
|
| o.ipConfiguration = buildIpConfiguration();
|
| o.kind = "foo";
|
| @@ -1240,12 +1244,12 @@ checkSettings(api.Settings o) {
|
| buildCounterSettings++;
|
| if (buildCounterSettings < 3) {
|
| unittest.expect(o.activationPolicy, unittest.equals('foo'));
|
| - checkUnnamed3740(o.authorizedGaeApplications);
|
| + checkUnnamed3596(o.authorizedGaeApplications);
|
| checkBackupConfiguration(o.backupConfiguration);
|
| unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue);
|
| unittest.expect(o.dataDiskSizeGb, unittest.equals('foo'));
|
| unittest.expect(o.dataDiskType, unittest.equals('foo'));
|
| - checkUnnamed3741(o.databaseFlags);
|
| + checkUnnamed3597(o.databaseFlags);
|
| unittest.expect(o.databaseReplicationEnabled, unittest.isTrue);
|
| checkIpConfiguration(o.ipConfiguration);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| @@ -1379,14 +1383,14 @@ checkSslCertsInsertResponse(api.SslCertsInsertResponse o) {
|
| buildCounterSslCertsInsertResponse--;
|
| }
|
|
|
| -buildUnnamed3742() {
|
| +buildUnnamed3598() {
|
| var o = new core.List<api.SslCert>();
|
| o.add(buildSslCert());
|
| o.add(buildSslCert());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3742(core.List<api.SslCert> o) {
|
| +checkUnnamed3598(core.List<api.SslCert> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSslCert(o[0]);
|
| checkSslCert(o[1]);
|
| @@ -1397,7 +1401,7 @@ buildSslCertsListResponse() {
|
| var o = new api.SslCertsListResponse();
|
| buildCounterSslCertsListResponse++;
|
| if (buildCounterSslCertsListResponse < 3) {
|
| - o.items = buildUnnamed3742();
|
| + o.items = buildUnnamed3598();
|
| o.kind = "foo";
|
| }
|
| buildCounterSslCertsListResponse--;
|
| @@ -1407,20 +1411,20 @@ buildSslCertsListResponse() {
|
| checkSslCertsListResponse(api.SslCertsListResponse o) {
|
| buildCounterSslCertsListResponse++;
|
| if (buildCounterSslCertsListResponse < 3) {
|
| - checkUnnamed3742(o.items);
|
| + checkUnnamed3598(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterSslCertsListResponse--;
|
| }
|
|
|
| -buildUnnamed3743() {
|
| +buildUnnamed3599() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3743(core.List<core.String> o) {
|
| +checkUnnamed3599(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'));
|
| @@ -1434,7 +1438,7 @@ buildTier() {
|
| o.DiskQuota = "foo";
|
| o.RAM = "foo";
|
| o.kind = "foo";
|
| - o.region = buildUnnamed3743();
|
| + o.region = buildUnnamed3599();
|
| o.tier = "foo";
|
| }
|
| buildCounterTier--;
|
| @@ -1447,20 +1451,20 @@ checkTier(api.Tier o) {
|
| unittest.expect(o.DiskQuota, unittest.equals('foo'));
|
| unittest.expect(o.RAM, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed3743(o.region);
|
| + checkUnnamed3599(o.region);
|
| unittest.expect(o.tier, unittest.equals('foo'));
|
| }
|
| buildCounterTier--;
|
| }
|
|
|
| -buildUnnamed3744() {
|
| +buildUnnamed3600() {
|
| var o = new core.List<api.Tier>();
|
| o.add(buildTier());
|
| o.add(buildTier());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3744(core.List<api.Tier> o) {
|
| +checkUnnamed3600(core.List<api.Tier> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTier(o[0]);
|
| checkTier(o[1]);
|
| @@ -1471,7 +1475,7 @@ buildTiersListResponse() {
|
| var o = new api.TiersListResponse();
|
| buildCounterTiersListResponse++;
|
| if (buildCounterTiersListResponse < 3) {
|
| - o.items = buildUnnamed3744();
|
| + o.items = buildUnnamed3600();
|
| o.kind = "foo";
|
| }
|
| buildCounterTiersListResponse--;
|
| @@ -1481,7 +1485,7 @@ buildTiersListResponse() {
|
| checkTiersListResponse(api.TiersListResponse o) {
|
| buildCounterTiersListResponse++;
|
| if (buildCounterTiersListResponse < 3) {
|
| - checkUnnamed3744(o.items);
|
| + checkUnnamed3600(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterTiersListResponse--;
|
| @@ -1518,14 +1522,14 @@ checkUser(api.User o) {
|
| buildCounterUser--;
|
| }
|
|
|
| -buildUnnamed3745() {
|
| +buildUnnamed3601() {
|
| var o = new core.List<api.User>();
|
| o.add(buildUser());
|
| o.add(buildUser());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3745(core.List<api.User> o) {
|
| +checkUnnamed3601(core.List<api.User> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUser(o[0]);
|
| checkUser(o[1]);
|
| @@ -1536,7 +1540,7 @@ buildUsersListResponse() {
|
| var o = new api.UsersListResponse();
|
| buildCounterUsersListResponse++;
|
| if (buildCounterUsersListResponse < 3) {
|
| - o.items = buildUnnamed3745();
|
| + o.items = buildUnnamed3601();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -1547,7 +1551,7 @@ buildUsersListResponse() {
|
| checkUsersListResponse(api.UsersListResponse o) {
|
| buildCounterUsersListResponse++;
|
| if (buildCounterUsersListResponse < 3) {
|
| - checkUnnamed3745(o.items);
|
| + checkUnnamed3601(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -2119,6 +2123,71 @@ main() {
|
| })));
|
| });
|
|
|
| + unittest.test("method--insert", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.BackupRunsResourceApi res = new api.SqladminApi(mock).backupRuns;
|
| + var arg_request = buildBackupRun();
|
| + var arg_project = "foo";
|
| + var arg_instance = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.BackupRun.fromJson(json);
|
| + checkBackupRun(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.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("sql/v1beta4/"));
|
| + pathOffset += 12;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("projects/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/instances/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_project"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/instances/"));
|
| + pathOffset += 11;
|
| + index = path.indexOf("/backupRuns", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_instance"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/backupRuns"));
|
| + pathOffset += 11;
|
| +
|
| + 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.insert(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| + });
|
| +
|
| unittest.test("method--list", () {
|
|
|
| var mock = new HttpServerMock();
|
|
|