| 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 1a5c6a52d0149100fbf520b7e2ab22823708218b..db09d5a467a75837dd0afc539291796cc11b33ad 100644
|
| --- a/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart
|
| +++ b/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart
|
| @@ -142,14 +142,14 @@ checkBackupRun(api.BackupRun o) {
|
| buildCounterBackupRun--;
|
| }
|
|
|
| -buildUnnamed3596() {
|
| +buildUnnamed3590() {
|
| var o = new core.List<api.BackupRun>();
|
| o.add(buildBackupRun());
|
| o.add(buildBackupRun());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3596(core.List<api.BackupRun> o) {
|
| +checkUnnamed3590(core.List<api.BackupRun> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBackupRun(o[0]);
|
| checkBackupRun(o[1]);
|
| @@ -160,7 +160,7 @@ buildBackupRunsListResponse() {
|
| var o = new api.BackupRunsListResponse();
|
| buildCounterBackupRunsListResponse++;
|
| if (buildCounterBackupRunsListResponse < 3) {
|
| - o.items = buildUnnamed3596();
|
| + o.items = buildUnnamed3590();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -171,7 +171,7 @@ buildBackupRunsListResponse() {
|
| checkBackupRunsListResponse(api.BackupRunsListResponse o) {
|
| buildCounterBackupRunsListResponse++;
|
| if (buildCounterBackupRunsListResponse < 3) {
|
| - checkUnnamed3596(o.items);
|
| + checkUnnamed3590(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -299,40 +299,40 @@ checkDatabaseInstanceFailoverReplica(api.DatabaseInstanceFailoverReplica o) {
|
| buildCounterDatabaseInstanceFailoverReplica--;
|
| }
|
|
|
| -buildUnnamed3597() {
|
| +buildUnnamed3591() {
|
| var o = new core.List<api.IpMapping>();
|
| o.add(buildIpMapping());
|
| o.add(buildIpMapping());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3597(core.List<api.IpMapping> o) {
|
| +checkUnnamed3591(core.List<api.IpMapping> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkIpMapping(o[0]);
|
| checkIpMapping(o[1]);
|
| }
|
|
|
| -buildUnnamed3598() {
|
| +buildUnnamed3592() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3598(core.List<core.String> o) {
|
| +checkUnnamed3592(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'));
|
| }
|
|
|
| -buildUnnamed3599() {
|
| +buildUnnamed3593() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3599(core.List<core.String> o) {
|
| +checkUnnamed3593(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'));
|
| @@ -350,7 +350,7 @@ buildDatabaseInstance() {
|
| o.etag = "foo";
|
| o.failoverReplica = buildDatabaseInstanceFailoverReplica();
|
| o.instanceType = "foo";
|
| - o.ipAddresses = buildUnnamed3597();
|
| + o.ipAddresses = buildUnnamed3591();
|
| o.ipv6Address = "foo";
|
| o.kind = "foo";
|
| o.masterInstanceName = "foo";
|
| @@ -360,13 +360,13 @@ buildDatabaseInstance() {
|
| o.project = "foo";
|
| o.region = "foo";
|
| o.replicaConfiguration = buildReplicaConfiguration();
|
| - o.replicaNames = buildUnnamed3598();
|
| + o.replicaNames = buildUnnamed3592();
|
| o.selfLink = "foo";
|
| o.serverCaCert = buildSslCert();
|
| o.serviceAccountEmailAddress = "foo";
|
| o.settings = buildSettings();
|
| o.state = "foo";
|
| - o.suspensionReason = buildUnnamed3599();
|
| + o.suspensionReason = buildUnnamed3593();
|
| }
|
| buildCounterDatabaseInstance--;
|
| return o;
|
| @@ -382,7 +382,7 @@ checkDatabaseInstance(api.DatabaseInstance o) {
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| checkDatabaseInstanceFailoverReplica(o.failoverReplica);
|
| unittest.expect(o.instanceType, unittest.equals('foo'));
|
| - checkUnnamed3597(o.ipAddresses);
|
| + checkUnnamed3591(o.ipAddresses);
|
| unittest.expect(o.ipv6Address, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.masterInstanceName, unittest.equals('foo'));
|
| @@ -392,25 +392,25 @@ checkDatabaseInstance(api.DatabaseInstance o) {
|
| unittest.expect(o.project, unittest.equals('foo'));
|
| unittest.expect(o.region, unittest.equals('foo'));
|
| checkReplicaConfiguration(o.replicaConfiguration);
|
| - checkUnnamed3598(o.replicaNames);
|
| + checkUnnamed3592(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'));
|
| - checkUnnamed3599(o.suspensionReason);
|
| + checkUnnamed3593(o.suspensionReason);
|
| }
|
| buildCounterDatabaseInstance--;
|
| }
|
|
|
| -buildUnnamed3600() {
|
| +buildUnnamed3594() {
|
| var o = new core.List<api.Database>();
|
| o.add(buildDatabase());
|
| o.add(buildDatabase());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3600(core.List<api.Database> o) {
|
| +checkUnnamed3594(core.List<api.Database> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDatabase(o[0]);
|
| checkDatabase(o[1]);
|
| @@ -421,7 +421,7 @@ buildDatabasesListResponse() {
|
| var o = new api.DatabasesListResponse();
|
| buildCounterDatabasesListResponse++;
|
| if (buildCounterDatabasesListResponse < 3) {
|
| - o.items = buildUnnamed3600();
|
| + o.items = buildUnnamed3594();
|
| o.kind = "foo";
|
| }
|
| buildCounterDatabasesListResponse--;
|
| @@ -431,7 +431,7 @@ buildDatabasesListResponse() {
|
| checkDatabasesListResponse(api.DatabasesListResponse o) {
|
| buildCounterDatabasesListResponse++;
|
| if (buildCounterDatabasesListResponse < 3) {
|
| - checkUnnamed3600(o.items);
|
| + checkUnnamed3594(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterDatabasesListResponse--;
|
| @@ -456,27 +456,27 @@ checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) {
|
| buildCounterExportContextCsvExportOptions--;
|
| }
|
|
|
| -buildUnnamed3601() {
|
| +buildUnnamed3595() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3601(core.List<core.String> o) {
|
| +checkUnnamed3595(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'));
|
| }
|
|
|
| -buildUnnamed3602() {
|
| +buildUnnamed3596() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3602(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'));
|
| @@ -488,7 +488,7 @@ buildExportContextSqlExportOptions() {
|
| buildCounterExportContextSqlExportOptions++;
|
| if (buildCounterExportContextSqlExportOptions < 3) {
|
| o.schemaOnly = true;
|
| - o.tables = buildUnnamed3602();
|
| + o.tables = buildUnnamed3596();
|
| }
|
| buildCounterExportContextSqlExportOptions--;
|
| return o;
|
| @@ -498,7 +498,7 @@ checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) {
|
| buildCounterExportContextSqlExportOptions++;
|
| if (buildCounterExportContextSqlExportOptions < 3) {
|
| unittest.expect(o.schemaOnly, unittest.isTrue);
|
| - checkUnnamed3602(o.tables);
|
| + checkUnnamed3596(o.tables);
|
| }
|
| buildCounterExportContextSqlExportOptions--;
|
| }
|
| @@ -509,7 +509,7 @@ buildExportContext() {
|
| buildCounterExportContext++;
|
| if (buildCounterExportContext < 3) {
|
| o.csvExportOptions = buildExportContextCsvExportOptions();
|
| - o.databases = buildUnnamed3601();
|
| + o.databases = buildUnnamed3595();
|
| o.fileType = "foo";
|
| o.kind = "foo";
|
| o.sqlExportOptions = buildExportContextSqlExportOptions();
|
| @@ -523,7 +523,7 @@ checkExportContext(api.ExportContext o) {
|
| buildCounterExportContext++;
|
| if (buildCounterExportContext < 3) {
|
| checkExportContextCsvExportOptions(o.csvExportOptions);
|
| - checkUnnamed3601(o.databases);
|
| + checkUnnamed3595(o.databases);
|
| unittest.expect(o.fileType, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| checkExportContextSqlExportOptions(o.sqlExportOptions);
|
| @@ -553,27 +553,27 @@ checkFailoverContext(api.FailoverContext o) {
|
| buildCounterFailoverContext--;
|
| }
|
|
|
| -buildUnnamed3603() {
|
| +buildUnnamed3597() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3603(core.List<core.String> o) {
|
| +checkUnnamed3597(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'));
|
| }
|
|
|
| -buildUnnamed3604() {
|
| +buildUnnamed3598() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3604(core.List<core.String> o) {
|
| +checkUnnamed3598(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'));
|
| @@ -584,8 +584,8 @@ buildFlag() {
|
| var o = new api.Flag();
|
| buildCounterFlag++;
|
| if (buildCounterFlag < 3) {
|
| - o.allowedStringValues = buildUnnamed3603();
|
| - o.appliesTo = buildUnnamed3604();
|
| + o.allowedStringValues = buildUnnamed3597();
|
| + o.appliesTo = buildUnnamed3598();
|
| o.kind = "foo";
|
| o.maxValue = "foo";
|
| o.minValue = "foo";
|
| @@ -600,8 +600,8 @@ buildFlag() {
|
| checkFlag(api.Flag o) {
|
| buildCounterFlag++;
|
| if (buildCounterFlag < 3) {
|
| - checkUnnamed3603(o.allowedStringValues);
|
| - checkUnnamed3604(o.appliesTo);
|
| + checkUnnamed3597(o.allowedStringValues);
|
| + checkUnnamed3598(o.appliesTo);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.maxValue, unittest.equals('foo'));
|
| unittest.expect(o.minValue, unittest.equals('foo'));
|
| @@ -612,14 +612,14 @@ checkFlag(api.Flag o) {
|
| buildCounterFlag--;
|
| }
|
|
|
| -buildUnnamed3605() {
|
| +buildUnnamed3599() {
|
| var o = new core.List<api.Flag>();
|
| o.add(buildFlag());
|
| o.add(buildFlag());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3605(core.List<api.Flag> o) {
|
| +checkUnnamed3599(core.List<api.Flag> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFlag(o[0]);
|
| checkFlag(o[1]);
|
| @@ -630,7 +630,7 @@ buildFlagsListResponse() {
|
| var o = new api.FlagsListResponse();
|
| buildCounterFlagsListResponse++;
|
| if (buildCounterFlagsListResponse < 3) {
|
| - o.items = buildUnnamed3605();
|
| + o.items = buildUnnamed3599();
|
| o.kind = "foo";
|
| }
|
| buildCounterFlagsListResponse--;
|
| @@ -640,20 +640,20 @@ buildFlagsListResponse() {
|
| checkFlagsListResponse(api.FlagsListResponse o) {
|
| buildCounterFlagsListResponse++;
|
| if (buildCounterFlagsListResponse < 3) {
|
| - checkUnnamed3605(o.items);
|
| + checkUnnamed3599(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterFlagsListResponse--;
|
| }
|
|
|
| -buildUnnamed3606() {
|
| +buildUnnamed3600() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3606(core.List<core.String> o) {
|
| +checkUnnamed3600(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'));
|
| @@ -664,7 +664,7 @@ buildImportContextCsvImportOptions() {
|
| var o = new api.ImportContextCsvImportOptions();
|
| buildCounterImportContextCsvImportOptions++;
|
| if (buildCounterImportContextCsvImportOptions < 3) {
|
| - o.columns = buildUnnamed3606();
|
| + o.columns = buildUnnamed3600();
|
| o.table = "foo";
|
| }
|
| buildCounterImportContextCsvImportOptions--;
|
| @@ -674,7 +674,7 @@ buildImportContextCsvImportOptions() {
|
| checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) {
|
| buildCounterImportContextCsvImportOptions++;
|
| if (buildCounterImportContextCsvImportOptions < 3) {
|
| - checkUnnamed3606(o.columns);
|
| + checkUnnamed3600(o.columns);
|
| unittest.expect(o.table, unittest.equals('foo'));
|
| }
|
| buildCounterImportContextCsvImportOptions--;
|
| @@ -783,14 +783,14 @@ checkInstancesImportRequest(api.InstancesImportRequest o) {
|
| buildCounterInstancesImportRequest--;
|
| }
|
|
|
| -buildUnnamed3607() {
|
| +buildUnnamed3601() {
|
| var o = new core.List<api.DatabaseInstance>();
|
| o.add(buildDatabaseInstance());
|
| o.add(buildDatabaseInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3607(core.List<api.DatabaseInstance> o) {
|
| +checkUnnamed3601(core.List<api.DatabaseInstance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDatabaseInstance(o[0]);
|
| checkDatabaseInstance(o[1]);
|
| @@ -801,7 +801,7 @@ buildInstancesListResponse() {
|
| var o = new api.InstancesListResponse();
|
| buildCounterInstancesListResponse++;
|
| if (buildCounterInstancesListResponse < 3) {
|
| - o.items = buildUnnamed3607();
|
| + o.items = buildUnnamed3601();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -812,7 +812,7 @@ buildInstancesListResponse() {
|
| checkInstancesListResponse(api.InstancesListResponse o) {
|
| buildCounterInstancesListResponse++;
|
| if (buildCounterInstancesListResponse < 3) {
|
| - checkUnnamed3607(o.items);
|
| + checkUnnamed3601(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -838,14 +838,33 @@ checkInstancesRestoreBackupRequest(api.InstancesRestoreBackupRequest o) {
|
| buildCounterInstancesRestoreBackupRequest--;
|
| }
|
|
|
| -buildUnnamed3608() {
|
| +core.int buildCounterInstancesTruncateLogRequest = 0;
|
| +buildInstancesTruncateLogRequest() {
|
| + var o = new api.InstancesTruncateLogRequest();
|
| + buildCounterInstancesTruncateLogRequest++;
|
| + if (buildCounterInstancesTruncateLogRequest < 3) {
|
| + o.truncateLogContext = buildTruncateLogContext();
|
| + }
|
| + buildCounterInstancesTruncateLogRequest--;
|
| + return o;
|
| +}
|
| +
|
| +checkInstancesTruncateLogRequest(api.InstancesTruncateLogRequest o) {
|
| + buildCounterInstancesTruncateLogRequest++;
|
| + if (buildCounterInstancesTruncateLogRequest < 3) {
|
| + checkTruncateLogContext(o.truncateLogContext);
|
| + }
|
| + buildCounterInstancesTruncateLogRequest--;
|
| +}
|
| +
|
| +buildUnnamed3602() {
|
| var o = new core.List<api.AclEntry>();
|
| o.add(buildAclEntry());
|
| o.add(buildAclEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3608(core.List<api.AclEntry> o) {
|
| +checkUnnamed3602(core.List<api.AclEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAclEntry(o[0]);
|
| checkAclEntry(o[1]);
|
| @@ -856,7 +875,7 @@ buildIpConfiguration() {
|
| var o = new api.IpConfiguration();
|
| buildCounterIpConfiguration++;
|
| if (buildCounterIpConfiguration < 3) {
|
| - o.authorizedNetworks = buildUnnamed3608();
|
| + o.authorizedNetworks = buildUnnamed3602();
|
| o.ipv4Enabled = true;
|
| o.requireSsl = true;
|
| }
|
| @@ -867,7 +886,7 @@ buildIpConfiguration() {
|
| checkIpConfiguration(api.IpConfiguration o) {
|
| buildCounterIpConfiguration++;
|
| if (buildCounterIpConfiguration < 3) {
|
| - checkUnnamed3608(o.authorizedNetworks);
|
| + checkUnnamed3602(o.authorizedNetworks);
|
| unittest.expect(o.ipv4Enabled, unittest.isTrue);
|
| unittest.expect(o.requireSsl, unittest.isTrue);
|
| }
|
| @@ -1075,14 +1094,14 @@ checkOperationError(api.OperationError o) {
|
| buildCounterOperationError--;
|
| }
|
|
|
| -buildUnnamed3609() {
|
| +buildUnnamed3603() {
|
| var o = new core.List<api.OperationError>();
|
| o.add(buildOperationError());
|
| o.add(buildOperationError());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3609(core.List<api.OperationError> o) {
|
| +checkUnnamed3603(core.List<api.OperationError> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperationError(o[0]);
|
| checkOperationError(o[1]);
|
| @@ -1093,7 +1112,7 @@ buildOperationErrors() {
|
| var o = new api.OperationErrors();
|
| buildCounterOperationErrors++;
|
| if (buildCounterOperationErrors < 3) {
|
| - o.errors = buildUnnamed3609();
|
| + o.errors = buildUnnamed3603();
|
| o.kind = "foo";
|
| }
|
| buildCounterOperationErrors--;
|
| @@ -1103,20 +1122,20 @@ buildOperationErrors() {
|
| checkOperationErrors(api.OperationErrors o) {
|
| buildCounterOperationErrors++;
|
| if (buildCounterOperationErrors < 3) {
|
| - checkUnnamed3609(o.errors);
|
| + checkUnnamed3603(o.errors);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterOperationErrors--;
|
| }
|
|
|
| -buildUnnamed3610() {
|
| +buildUnnamed3604() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3610(core.List<api.Operation> o) {
|
| +checkUnnamed3604(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -1127,7 +1146,7 @@ buildOperationsListResponse() {
|
| var o = new api.OperationsListResponse();
|
| buildCounterOperationsListResponse++;
|
| if (buildCounterOperationsListResponse < 3) {
|
| - o.items = buildUnnamed3610();
|
| + o.items = buildUnnamed3604();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -1138,7 +1157,7 @@ buildOperationsListResponse() {
|
| checkOperationsListResponse(api.OperationsListResponse o) {
|
| buildCounterOperationsListResponse++;
|
| if (buildCounterOperationsListResponse < 3) {
|
| - checkUnnamed3610(o.items);
|
| + checkUnnamed3604(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -1191,27 +1210,27 @@ checkRestoreBackupContext(api.RestoreBackupContext o) {
|
| buildCounterRestoreBackupContext--;
|
| }
|
|
|
| -buildUnnamed3611() {
|
| +buildUnnamed3605() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3611(core.List<core.String> o) {
|
| +checkUnnamed3605(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'));
|
| }
|
|
|
| -buildUnnamed3612() {
|
| +buildUnnamed3606() {
|
| var o = new core.List<api.DatabaseFlags>();
|
| o.add(buildDatabaseFlags());
|
| o.add(buildDatabaseFlags());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3612(core.List<api.DatabaseFlags> o) {
|
| +checkUnnamed3606(core.List<api.DatabaseFlags> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDatabaseFlags(o[0]);
|
| checkDatabaseFlags(o[1]);
|
| @@ -1223,12 +1242,12 @@ buildSettings() {
|
| buildCounterSettings++;
|
| if (buildCounterSettings < 3) {
|
| o.activationPolicy = "foo";
|
| - o.authorizedGaeApplications = buildUnnamed3611();
|
| + o.authorizedGaeApplications = buildUnnamed3605();
|
| o.backupConfiguration = buildBackupConfiguration();
|
| o.crashSafeReplicationEnabled = true;
|
| o.dataDiskSizeGb = "foo";
|
| o.dataDiskType = "foo";
|
| - o.databaseFlags = buildUnnamed3612();
|
| + o.databaseFlags = buildUnnamed3606();
|
| o.databaseReplicationEnabled = true;
|
| o.ipConfiguration = buildIpConfiguration();
|
| o.kind = "foo";
|
| @@ -1248,12 +1267,12 @@ checkSettings(api.Settings o) {
|
| buildCounterSettings++;
|
| if (buildCounterSettings < 3) {
|
| unittest.expect(o.activationPolicy, unittest.equals('foo'));
|
| - checkUnnamed3611(o.authorizedGaeApplications);
|
| + checkUnnamed3605(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'));
|
| - checkUnnamed3612(o.databaseFlags);
|
| + checkUnnamed3606(o.databaseFlags);
|
| unittest.expect(o.databaseReplicationEnabled, unittest.isTrue);
|
| checkIpConfiguration(o.ipConfiguration);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| @@ -1387,14 +1406,14 @@ checkSslCertsInsertResponse(api.SslCertsInsertResponse o) {
|
| buildCounterSslCertsInsertResponse--;
|
| }
|
|
|
| -buildUnnamed3613() {
|
| +buildUnnamed3607() {
|
| var o = new core.List<api.SslCert>();
|
| o.add(buildSslCert());
|
| o.add(buildSslCert());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3613(core.List<api.SslCert> o) {
|
| +checkUnnamed3607(core.List<api.SslCert> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSslCert(o[0]);
|
| checkSslCert(o[1]);
|
| @@ -1405,7 +1424,7 @@ buildSslCertsListResponse() {
|
| var o = new api.SslCertsListResponse();
|
| buildCounterSslCertsListResponse++;
|
| if (buildCounterSslCertsListResponse < 3) {
|
| - o.items = buildUnnamed3613();
|
| + o.items = buildUnnamed3607();
|
| o.kind = "foo";
|
| }
|
| buildCounterSslCertsListResponse--;
|
| @@ -1415,20 +1434,20 @@ buildSslCertsListResponse() {
|
| checkSslCertsListResponse(api.SslCertsListResponse o) {
|
| buildCounterSslCertsListResponse++;
|
| if (buildCounterSslCertsListResponse < 3) {
|
| - checkUnnamed3613(o.items);
|
| + checkUnnamed3607(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterSslCertsListResponse--;
|
| }
|
|
|
| -buildUnnamed3614() {
|
| +buildUnnamed3608() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3614(core.List<core.String> o) {
|
| +checkUnnamed3608(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'));
|
| @@ -1442,7 +1461,7 @@ buildTier() {
|
| o.DiskQuota = "foo";
|
| o.RAM = "foo";
|
| o.kind = "foo";
|
| - o.region = buildUnnamed3614();
|
| + o.region = buildUnnamed3608();
|
| o.tier = "foo";
|
| }
|
| buildCounterTier--;
|
| @@ -1455,20 +1474,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'));
|
| - checkUnnamed3614(o.region);
|
| + checkUnnamed3608(o.region);
|
| unittest.expect(o.tier, unittest.equals('foo'));
|
| }
|
| buildCounterTier--;
|
| }
|
|
|
| -buildUnnamed3615() {
|
| +buildUnnamed3609() {
|
| var o = new core.List<api.Tier>();
|
| o.add(buildTier());
|
| o.add(buildTier());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3615(core.List<api.Tier> o) {
|
| +checkUnnamed3609(core.List<api.Tier> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTier(o[0]);
|
| checkTier(o[1]);
|
| @@ -1479,7 +1498,7 @@ buildTiersListResponse() {
|
| var o = new api.TiersListResponse();
|
| buildCounterTiersListResponse++;
|
| if (buildCounterTiersListResponse < 3) {
|
| - o.items = buildUnnamed3615();
|
| + o.items = buildUnnamed3609();
|
| o.kind = "foo";
|
| }
|
| buildCounterTiersListResponse--;
|
| @@ -1489,12 +1508,33 @@ buildTiersListResponse() {
|
| checkTiersListResponse(api.TiersListResponse o) {
|
| buildCounterTiersListResponse++;
|
| if (buildCounterTiersListResponse < 3) {
|
| - checkUnnamed3615(o.items);
|
| + checkUnnamed3609(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterTiersListResponse--;
|
| }
|
|
|
| +core.int buildCounterTruncateLogContext = 0;
|
| +buildTruncateLogContext() {
|
| + var o = new api.TruncateLogContext();
|
| + buildCounterTruncateLogContext++;
|
| + if (buildCounterTruncateLogContext < 3) {
|
| + o.kind = "foo";
|
| + o.logType = "foo";
|
| + }
|
| + buildCounterTruncateLogContext--;
|
| + return o;
|
| +}
|
| +
|
| +checkTruncateLogContext(api.TruncateLogContext o) {
|
| + buildCounterTruncateLogContext++;
|
| + if (buildCounterTruncateLogContext < 3) {
|
| + unittest.expect(o.kind, unittest.equals('foo'));
|
| + unittest.expect(o.logType, unittest.equals('foo'));
|
| + }
|
| + buildCounterTruncateLogContext--;
|
| +}
|
| +
|
| core.int buildCounterUser = 0;
|
| buildUser() {
|
| var o = new api.User();
|
| @@ -1526,14 +1566,14 @@ checkUser(api.User o) {
|
| buildCounterUser--;
|
| }
|
|
|
| -buildUnnamed3616() {
|
| +buildUnnamed3610() {
|
| var o = new core.List<api.User>();
|
| o.add(buildUser());
|
| o.add(buildUser());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3616(core.List<api.User> o) {
|
| +checkUnnamed3610(core.List<api.User> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUser(o[0]);
|
| checkUser(o[1]);
|
| @@ -1544,7 +1584,7 @@ buildUsersListResponse() {
|
| var o = new api.UsersListResponse();
|
| buildCounterUsersListResponse++;
|
| if (buildCounterUsersListResponse < 3) {
|
| - o.items = buildUnnamed3616();
|
| + o.items = buildUnnamed3610();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -1555,7 +1595,7 @@ buildUsersListResponse() {
|
| checkUsersListResponse(api.UsersListResponse o) {
|
| buildCounterUsersListResponse++;
|
| if (buildCounterUsersListResponse < 3) {
|
| - checkUnnamed3616(o.items);
|
| + checkUnnamed3610(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -1789,6 +1829,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-InstancesTruncateLogRequest", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildInstancesTruncateLogRequest();
|
| + var od = new api.InstancesTruncateLogRequest.fromJson(o.toJson());
|
| + checkInstancesTruncateLogRequest(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-IpConfiguration", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildIpConfiguration();
|
| @@ -1978,6 +2027,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-TruncateLogContext", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildTruncateLogContext();
|
| + var od = new api.TruncateLogContext.fromJson(o.toJson());
|
| + checkTruncateLogContext(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-User", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildUser();
|
| @@ -3627,6 +3685,71 @@ main() {
|
| })));
|
| });
|
|
|
| + unittest.test("method--truncateLog", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.InstancesResourceApi res = new api.SqladminApi(mock).instances;
|
| + var arg_request = buildInstancesTruncateLogRequest();
|
| + var arg_project = "foo";
|
| + var arg_instance = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.InstancesTruncateLogRequest.fromJson(json);
|
| + checkInstancesTruncateLogRequest(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("/truncateLog", 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 + 12), unittest.equals("/truncateLog"));
|
| + pathOffset += 12;
|
| +
|
| + 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.truncateLog(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| + });
|
| +
|
| unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
|
|