| 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 a6db8fa8a282262ef85b17a589f6d9a6180c362c..70c747daf96798894043a33a13cd66c09b697ba6 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--;
|
| }
|
|
|
| -buildUnnamed3682() {
|
| +buildUnnamed3263() {
|
| var o = new core.List<api.BackupRun>();
|
| o.add(buildBackupRun());
|
| o.add(buildBackupRun());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3682(core.List<api.BackupRun> o) {
|
| +checkUnnamed3263(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 = buildUnnamed3682();
|
| + o.items = buildUnnamed3263();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -171,7 +171,7 @@ buildBackupRunsListResponse() {
|
| checkBackupRunsListResponse(api.BackupRunsListResponse o) {
|
| buildCounterBackupRunsListResponse++;
|
| if (buildCounterBackupRunsListResponse < 3) {
|
| - checkUnnamed3682(o.items);
|
| + checkUnnamed3263(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--;
|
| }
|
|
|
| -buildUnnamed3683() {
|
| +buildUnnamed3264() {
|
| var o = new core.List<api.IpMapping>();
|
| o.add(buildIpMapping());
|
| o.add(buildIpMapping());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3683(core.List<api.IpMapping> o) {
|
| +checkUnnamed3264(core.List<api.IpMapping> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkIpMapping(o[0]);
|
| checkIpMapping(o[1]);
|
| }
|
|
|
| -buildUnnamed3684() {
|
| +buildUnnamed3265() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3684(core.List<core.String> o) {
|
| +checkUnnamed3265(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'));
|
| }
|
|
|
| -buildUnnamed3685() {
|
| +buildUnnamed3266() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3685(core.List<core.String> o) {
|
| +checkUnnamed3266(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 = buildUnnamed3683();
|
| + o.ipAddresses = buildUnnamed3264();
|
| 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 = buildUnnamed3684();
|
| + o.replicaNames = buildUnnamed3265();
|
| o.selfLink = "foo";
|
| o.serverCaCert = buildSslCert();
|
| o.serviceAccountEmailAddress = "foo";
|
| o.settings = buildSettings();
|
| o.state = "foo";
|
| - o.suspensionReason = buildUnnamed3685();
|
| + o.suspensionReason = buildUnnamed3266();
|
| }
|
| 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'));
|
| - checkUnnamed3683(o.ipAddresses);
|
| + checkUnnamed3264(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);
|
| - checkUnnamed3684(o.replicaNames);
|
| + checkUnnamed3265(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'));
|
| - checkUnnamed3685(o.suspensionReason);
|
| + checkUnnamed3266(o.suspensionReason);
|
| }
|
| buildCounterDatabaseInstance--;
|
| }
|
|
|
| -buildUnnamed3686() {
|
| +buildUnnamed3267() {
|
| var o = new core.List<api.Database>();
|
| o.add(buildDatabase());
|
| o.add(buildDatabase());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3686(core.List<api.Database> o) {
|
| +checkUnnamed3267(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 = buildUnnamed3686();
|
| + o.items = buildUnnamed3267();
|
| o.kind = "foo";
|
| }
|
| buildCounterDatabasesListResponse--;
|
| @@ -431,7 +431,7 @@ buildDatabasesListResponse() {
|
| checkDatabasesListResponse(api.DatabasesListResponse o) {
|
| buildCounterDatabasesListResponse++;
|
| if (buildCounterDatabasesListResponse < 3) {
|
| - checkUnnamed3686(o.items);
|
| + checkUnnamed3267(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterDatabasesListResponse--;
|
| @@ -456,27 +456,27 @@ checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) {
|
| buildCounterExportContextCsvExportOptions--;
|
| }
|
|
|
| -buildUnnamed3687() {
|
| +buildUnnamed3268() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3687(core.List<core.String> o) {
|
| +checkUnnamed3268(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'));
|
| }
|
|
|
| -buildUnnamed3688() {
|
| +buildUnnamed3269() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3688(core.List<core.String> o) {
|
| +checkUnnamed3269(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 = buildUnnamed3688();
|
| + o.tables = buildUnnamed3269();
|
| }
|
| buildCounterExportContextSqlExportOptions--;
|
| return o;
|
| @@ -498,7 +498,7 @@ checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) {
|
| buildCounterExportContextSqlExportOptions++;
|
| if (buildCounterExportContextSqlExportOptions < 3) {
|
| unittest.expect(o.schemaOnly, unittest.isTrue);
|
| - checkUnnamed3688(o.tables);
|
| + checkUnnamed3269(o.tables);
|
| }
|
| buildCounterExportContextSqlExportOptions--;
|
| }
|
| @@ -509,7 +509,7 @@ buildExportContext() {
|
| buildCounterExportContext++;
|
| if (buildCounterExportContext < 3) {
|
| o.csvExportOptions = buildExportContextCsvExportOptions();
|
| - o.databases = buildUnnamed3687();
|
| + o.databases = buildUnnamed3268();
|
| o.fileType = "foo";
|
| o.kind = "foo";
|
| o.sqlExportOptions = buildExportContextSqlExportOptions();
|
| @@ -523,7 +523,7 @@ checkExportContext(api.ExportContext o) {
|
| buildCounterExportContext++;
|
| if (buildCounterExportContext < 3) {
|
| checkExportContextCsvExportOptions(o.csvExportOptions);
|
| - checkUnnamed3687(o.databases);
|
| + checkUnnamed3268(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--;
|
| }
|
|
|
| -buildUnnamed3689() {
|
| +buildUnnamed3270() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3689(core.List<core.String> o) {
|
| +checkUnnamed3270(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'));
|
| }
|
|
|
| -buildUnnamed3690() {
|
| +buildUnnamed3271() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3690(core.List<core.String> o) {
|
| +checkUnnamed3271(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 = buildUnnamed3689();
|
| - o.appliesTo = buildUnnamed3690();
|
| + o.allowedStringValues = buildUnnamed3270();
|
| + o.appliesTo = buildUnnamed3271();
|
| o.kind = "foo";
|
| o.maxValue = "foo";
|
| o.minValue = "foo";
|
| @@ -600,8 +600,8 @@ buildFlag() {
|
| checkFlag(api.Flag o) {
|
| buildCounterFlag++;
|
| if (buildCounterFlag < 3) {
|
| - checkUnnamed3689(o.allowedStringValues);
|
| - checkUnnamed3690(o.appliesTo);
|
| + checkUnnamed3270(o.allowedStringValues);
|
| + checkUnnamed3271(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--;
|
| }
|
|
|
| -buildUnnamed3691() {
|
| +buildUnnamed3272() {
|
| var o = new core.List<api.Flag>();
|
| o.add(buildFlag());
|
| o.add(buildFlag());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3691(core.List<api.Flag> o) {
|
| +checkUnnamed3272(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 = buildUnnamed3691();
|
| + o.items = buildUnnamed3272();
|
| o.kind = "foo";
|
| }
|
| buildCounterFlagsListResponse--;
|
| @@ -640,20 +640,20 @@ buildFlagsListResponse() {
|
| checkFlagsListResponse(api.FlagsListResponse o) {
|
| buildCounterFlagsListResponse++;
|
| if (buildCounterFlagsListResponse < 3) {
|
| - checkUnnamed3691(o.items);
|
| + checkUnnamed3272(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterFlagsListResponse--;
|
| }
|
|
|
| -buildUnnamed3692() {
|
| +buildUnnamed3273() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3692(core.List<core.String> o) {
|
| +checkUnnamed3273(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 = buildUnnamed3692();
|
| + o.columns = buildUnnamed3273();
|
| o.table = "foo";
|
| }
|
| buildCounterImportContextCsvImportOptions--;
|
| @@ -674,7 +674,7 @@ buildImportContextCsvImportOptions() {
|
| checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) {
|
| buildCounterImportContextCsvImportOptions++;
|
| if (buildCounterImportContextCsvImportOptions < 3) {
|
| - checkUnnamed3692(o.columns);
|
| + checkUnnamed3273(o.columns);
|
| unittest.expect(o.table, unittest.equals('foo'));
|
| }
|
| buildCounterImportContextCsvImportOptions--;
|
| @@ -783,14 +783,14 @@ checkInstancesImportRequest(api.InstancesImportRequest o) {
|
| buildCounterInstancesImportRequest--;
|
| }
|
|
|
| -buildUnnamed3693() {
|
| +buildUnnamed3274() {
|
| var o = new core.List<api.DatabaseInstance>();
|
| o.add(buildDatabaseInstance());
|
| o.add(buildDatabaseInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3693(core.List<api.DatabaseInstance> o) {
|
| +checkUnnamed3274(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 = buildUnnamed3693();
|
| + o.items = buildUnnamed3274();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -812,7 +812,7 @@ buildInstancesListResponse() {
|
| checkInstancesListResponse(api.InstancesListResponse o) {
|
| buildCounterInstancesListResponse++;
|
| if (buildCounterInstancesListResponse < 3) {
|
| - checkUnnamed3693(o.items);
|
| + checkUnnamed3274(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -857,14 +857,14 @@ checkInstancesTruncateLogRequest(api.InstancesTruncateLogRequest o) {
|
| buildCounterInstancesTruncateLogRequest--;
|
| }
|
|
|
| -buildUnnamed3694() {
|
| +buildUnnamed3275() {
|
| var o = new core.List<api.AclEntry>();
|
| o.add(buildAclEntry());
|
| o.add(buildAclEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3694(core.List<api.AclEntry> o) {
|
| +checkUnnamed3275(core.List<api.AclEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAclEntry(o[0]);
|
| checkAclEntry(o[1]);
|
| @@ -875,7 +875,7 @@ buildIpConfiguration() {
|
| var o = new api.IpConfiguration();
|
| buildCounterIpConfiguration++;
|
| if (buildCounterIpConfiguration < 3) {
|
| - o.authorizedNetworks = buildUnnamed3694();
|
| + o.authorizedNetworks = buildUnnamed3275();
|
| o.ipv4Enabled = true;
|
| o.requireSsl = true;
|
| }
|
| @@ -886,7 +886,7 @@ buildIpConfiguration() {
|
| checkIpConfiguration(api.IpConfiguration o) {
|
| buildCounterIpConfiguration++;
|
| if (buildCounterIpConfiguration < 3) {
|
| - checkUnnamed3694(o.authorizedNetworks);
|
| + checkUnnamed3275(o.authorizedNetworks);
|
| unittest.expect(o.ipv4Enabled, unittest.isTrue);
|
| unittest.expect(o.requireSsl, unittest.isTrue);
|
| }
|
| @@ -916,6 +916,27 @@ checkIpMapping(api.IpMapping o) {
|
| buildCounterIpMapping--;
|
| }
|
|
|
| +core.int buildCounterLabels = 0;
|
| +buildLabels() {
|
| + var o = new api.Labels();
|
| + buildCounterLabels++;
|
| + if (buildCounterLabels < 3) {
|
| + o.key = "foo";
|
| + o.value = "foo";
|
| + }
|
| + buildCounterLabels--;
|
| + return o;
|
| +}
|
| +
|
| +checkLabels(api.Labels o) {
|
| + buildCounterLabels++;
|
| + if (buildCounterLabels < 3) {
|
| + unittest.expect(o.key, unittest.equals('foo'));
|
| + unittest.expect(o.value, unittest.equals('foo'));
|
| + }
|
| + buildCounterLabels--;
|
| +}
|
| +
|
| core.int buildCounterLocationPreference = 0;
|
| buildLocationPreference() {
|
| var o = new api.LocationPreference();
|
| @@ -1094,14 +1115,14 @@ checkOperationError(api.OperationError o) {
|
| buildCounterOperationError--;
|
| }
|
|
|
| -buildUnnamed3695() {
|
| +buildUnnamed3276() {
|
| var o = new core.List<api.OperationError>();
|
| o.add(buildOperationError());
|
| o.add(buildOperationError());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3695(core.List<api.OperationError> o) {
|
| +checkUnnamed3276(core.List<api.OperationError> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperationError(o[0]);
|
| checkOperationError(o[1]);
|
| @@ -1112,7 +1133,7 @@ buildOperationErrors() {
|
| var o = new api.OperationErrors();
|
| buildCounterOperationErrors++;
|
| if (buildCounterOperationErrors < 3) {
|
| - o.errors = buildUnnamed3695();
|
| + o.errors = buildUnnamed3276();
|
| o.kind = "foo";
|
| }
|
| buildCounterOperationErrors--;
|
| @@ -1122,20 +1143,20 @@ buildOperationErrors() {
|
| checkOperationErrors(api.OperationErrors o) {
|
| buildCounterOperationErrors++;
|
| if (buildCounterOperationErrors < 3) {
|
| - checkUnnamed3695(o.errors);
|
| + checkUnnamed3276(o.errors);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterOperationErrors--;
|
| }
|
|
|
| -buildUnnamed3696() {
|
| +buildUnnamed3277() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3696(core.List<api.Operation> o) {
|
| +checkUnnamed3277(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -1146,7 +1167,7 @@ buildOperationsListResponse() {
|
| var o = new api.OperationsListResponse();
|
| buildCounterOperationsListResponse++;
|
| if (buildCounterOperationsListResponse < 3) {
|
| - o.items = buildUnnamed3696();
|
| + o.items = buildUnnamed3277();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -1157,7 +1178,7 @@ buildOperationsListResponse() {
|
| checkOperationsListResponse(api.OperationsListResponse o) {
|
| buildCounterOperationsListResponse++;
|
| if (buildCounterOperationsListResponse < 3) {
|
| - checkUnnamed3696(o.items);
|
| + checkUnnamed3277(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -1210,48 +1231,62 @@ checkRestoreBackupContext(api.RestoreBackupContext o) {
|
| buildCounterRestoreBackupContext--;
|
| }
|
|
|
| -buildUnnamed3697() {
|
| +buildUnnamed3278() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3697(core.List<core.String> o) {
|
| +checkUnnamed3278(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'));
|
| }
|
|
|
| -buildUnnamed3698() {
|
| +buildUnnamed3279() {
|
| var o = new core.List<api.DatabaseFlags>();
|
| o.add(buildDatabaseFlags());
|
| o.add(buildDatabaseFlags());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3698(core.List<api.DatabaseFlags> o) {
|
| +checkUnnamed3279(core.List<api.DatabaseFlags> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDatabaseFlags(o[0]);
|
| checkDatabaseFlags(o[1]);
|
| }
|
|
|
| +buildUnnamed3280() {
|
| + var o = new core.List<api.Labels>();
|
| + o.add(buildLabels());
|
| + o.add(buildLabels());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed3280(core.List<api.Labels> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkLabels(o[0]);
|
| + checkLabels(o[1]);
|
| +}
|
| +
|
| core.int buildCounterSettings = 0;
|
| buildSettings() {
|
| var o = new api.Settings();
|
| buildCounterSettings++;
|
| if (buildCounterSettings < 3) {
|
| o.activationPolicy = "foo";
|
| - o.authorizedGaeApplications = buildUnnamed3697();
|
| + o.authorizedGaeApplications = buildUnnamed3278();
|
| o.availabilityType = "foo";
|
| o.backupConfiguration = buildBackupConfiguration();
|
| o.crashSafeReplicationEnabled = true;
|
| o.dataDiskSizeGb = "foo";
|
| o.dataDiskType = "foo";
|
| - o.databaseFlags = buildUnnamed3698();
|
| + o.databaseFlags = buildUnnamed3279();
|
| o.databaseReplicationEnabled = true;
|
| o.ipConfiguration = buildIpConfiguration();
|
| o.kind = "foo";
|
| + o.labels = buildUnnamed3280();
|
| o.locationPreference = buildLocationPreference();
|
| o.maintenanceWindow = buildMaintenanceWindow();
|
| o.pricingPlan = "foo";
|
| @@ -1269,16 +1304,17 @@ checkSettings(api.Settings o) {
|
| buildCounterSettings++;
|
| if (buildCounterSettings < 3) {
|
| unittest.expect(o.activationPolicy, unittest.equals('foo'));
|
| - checkUnnamed3697(o.authorizedGaeApplications);
|
| + checkUnnamed3278(o.authorizedGaeApplications);
|
| unittest.expect(o.availabilityType, unittest.equals('foo'));
|
| checkBackupConfiguration(o.backupConfiguration);
|
| unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue);
|
| unittest.expect(o.dataDiskSizeGb, unittest.equals('foo'));
|
| unittest.expect(o.dataDiskType, unittest.equals('foo'));
|
| - checkUnnamed3698(o.databaseFlags);
|
| + checkUnnamed3279(o.databaseFlags);
|
| unittest.expect(o.databaseReplicationEnabled, unittest.isTrue);
|
| checkIpConfiguration(o.ipConfiguration);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| + checkUnnamed3280(o.labels);
|
| checkLocationPreference(o.locationPreference);
|
| checkMaintenanceWindow(o.maintenanceWindow);
|
| unittest.expect(o.pricingPlan, unittest.equals('foo'));
|
| @@ -1410,14 +1446,14 @@ checkSslCertsInsertResponse(api.SslCertsInsertResponse o) {
|
| buildCounterSslCertsInsertResponse--;
|
| }
|
|
|
| -buildUnnamed3699() {
|
| +buildUnnamed3281() {
|
| var o = new core.List<api.SslCert>();
|
| o.add(buildSslCert());
|
| o.add(buildSslCert());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3699(core.List<api.SslCert> o) {
|
| +checkUnnamed3281(core.List<api.SslCert> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSslCert(o[0]);
|
| checkSslCert(o[1]);
|
| @@ -1428,7 +1464,7 @@ buildSslCertsListResponse() {
|
| var o = new api.SslCertsListResponse();
|
| buildCounterSslCertsListResponse++;
|
| if (buildCounterSslCertsListResponse < 3) {
|
| - o.items = buildUnnamed3699();
|
| + o.items = buildUnnamed3281();
|
| o.kind = "foo";
|
| }
|
| buildCounterSslCertsListResponse--;
|
| @@ -1438,20 +1474,20 @@ buildSslCertsListResponse() {
|
| checkSslCertsListResponse(api.SslCertsListResponse o) {
|
| buildCounterSslCertsListResponse++;
|
| if (buildCounterSslCertsListResponse < 3) {
|
| - checkUnnamed3699(o.items);
|
| + checkUnnamed3281(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterSslCertsListResponse--;
|
| }
|
|
|
| -buildUnnamed3700() {
|
| +buildUnnamed3282() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3700(core.List<core.String> o) {
|
| +checkUnnamed3282(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'));
|
| @@ -1465,7 +1501,7 @@ buildTier() {
|
| o.DiskQuota = "foo";
|
| o.RAM = "foo";
|
| o.kind = "foo";
|
| - o.region = buildUnnamed3700();
|
| + o.region = buildUnnamed3282();
|
| o.tier = "foo";
|
| }
|
| buildCounterTier--;
|
| @@ -1478,20 +1514,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'));
|
| - checkUnnamed3700(o.region);
|
| + checkUnnamed3282(o.region);
|
| unittest.expect(o.tier, unittest.equals('foo'));
|
| }
|
| buildCounterTier--;
|
| }
|
|
|
| -buildUnnamed3701() {
|
| +buildUnnamed3283() {
|
| var o = new core.List<api.Tier>();
|
| o.add(buildTier());
|
| o.add(buildTier());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3701(core.List<api.Tier> o) {
|
| +checkUnnamed3283(core.List<api.Tier> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTier(o[0]);
|
| checkTier(o[1]);
|
| @@ -1502,7 +1538,7 @@ buildTiersListResponse() {
|
| var o = new api.TiersListResponse();
|
| buildCounterTiersListResponse++;
|
| if (buildCounterTiersListResponse < 3) {
|
| - o.items = buildUnnamed3701();
|
| + o.items = buildUnnamed3283();
|
| o.kind = "foo";
|
| }
|
| buildCounterTiersListResponse--;
|
| @@ -1512,7 +1548,7 @@ buildTiersListResponse() {
|
| checkTiersListResponse(api.TiersListResponse o) {
|
| buildCounterTiersListResponse++;
|
| if (buildCounterTiersListResponse < 3) {
|
| - checkUnnamed3701(o.items);
|
| + checkUnnamed3283(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterTiersListResponse--;
|
| @@ -1570,14 +1606,14 @@ checkUser(api.User o) {
|
| buildCounterUser--;
|
| }
|
|
|
| -buildUnnamed3702() {
|
| +buildUnnamed3284() {
|
| var o = new core.List<api.User>();
|
| o.add(buildUser());
|
| o.add(buildUser());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3702(core.List<api.User> o) {
|
| +checkUnnamed3284(core.List<api.User> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUser(o[0]);
|
| checkUser(o[1]);
|
| @@ -1588,7 +1624,7 @@ buildUsersListResponse() {
|
| var o = new api.UsersListResponse();
|
| buildCounterUsersListResponse++;
|
| if (buildCounterUsersListResponse < 3) {
|
| - o.items = buildUnnamed3702();
|
| + o.items = buildUnnamed3284();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -1599,7 +1635,7 @@ buildUsersListResponse() {
|
| checkUsersListResponse(api.UsersListResponse o) {
|
| buildCounterUsersListResponse++;
|
| if (buildCounterUsersListResponse < 3) {
|
| - checkUnnamed3702(o.items);
|
| + checkUnnamed3284(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -1860,6 +1896,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-Labels", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildLabels();
|
| + var od = new api.Labels.fromJson(o.toJson());
|
| + checkLabels(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-LocationPreference", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildLocationPreference();
|
| @@ -2725,6 +2770,7 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.FlagsResourceApi res = new api.SqladminApi(mock).flags;
|
| + var arg_databaseVersion = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -2753,6 +2799,7 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["databaseVersion"].first, unittest.equals(arg_databaseVersion));
|
|
|
|
|
| var h = {
|
| @@ -2761,7 +2808,7 @@ main() {
|
| var resp = convert.JSON.encode(buildFlagsListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list().then(unittest.expectAsync(((api.FlagsListResponse response) {
|
| + res.list(databaseVersion: arg_databaseVersion).then(unittest.expectAsync(((api.FlagsListResponse response) {
|
| checkFlagsListResponse(response);
|
| })));
|
| });
|
| @@ -3206,6 +3253,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.InstancesResourceApi res = new api.SqladminApi(mock).instances;
|
| var arg_project = "foo";
|
| + var arg_filter = "foo";
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -3243,6 +3291,7 @@ 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["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
| @@ -3253,7 +3302,7 @@ main() {
|
| var resp = convert.JSON.encode(buildInstancesListResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_project, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstancesListResponse response) {
|
| + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstancesListResponse response) {
|
| checkInstancesListResponse(response);
|
| })));
|
| });
|
|
|