| 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 c89ce8e2d065a7c6c7bb602717982fe1bd917cba..95226861b96f6cb7afb20a20524e9def6add1023 100644
|
| --- a/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart
|
| +++ b/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart
|
| @@ -138,14 +138,14 @@ checkBackupRun(api.BackupRun o) {
|
| buildCounterBackupRun--;
|
| }
|
|
|
| -buildUnnamed2601() {
|
| +buildUnnamed2570() {
|
| var o = new core.List<api.BackupRun>();
|
| o.add(buildBackupRun());
|
| o.add(buildBackupRun());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2601(core.List<api.BackupRun> o) {
|
| +checkUnnamed2570(core.List<api.BackupRun> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBackupRun(o[0]);
|
| checkBackupRun(o[1]);
|
| @@ -156,7 +156,7 @@ buildBackupRunsListResponse() {
|
| var o = new api.BackupRunsListResponse();
|
| buildCounterBackupRunsListResponse++;
|
| if (buildCounterBackupRunsListResponse < 3) {
|
| - o.items = buildUnnamed2601();
|
| + o.items = buildUnnamed2570();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -167,7 +167,7 @@ buildBackupRunsListResponse() {
|
| checkBackupRunsListResponse(api.BackupRunsListResponse o) {
|
| buildCounterBackupRunsListResponse++;
|
| if (buildCounterBackupRunsListResponse < 3) {
|
| - checkUnnamed2601(o.items);
|
| + checkUnnamed2570(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -274,27 +274,27 @@ checkDatabaseFlags(api.DatabaseFlags o) {
|
| buildCounterDatabaseFlags--;
|
| }
|
|
|
| -buildUnnamed2602() {
|
| +buildUnnamed2571() {
|
| var o = new core.List<api.IpMapping>();
|
| o.add(buildIpMapping());
|
| o.add(buildIpMapping());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2602(core.List<api.IpMapping> o) {
|
| +checkUnnamed2571(core.List<api.IpMapping> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkIpMapping(o[0]);
|
| checkIpMapping(o[1]);
|
| }
|
|
|
| -buildUnnamed2603() {
|
| +buildUnnamed2572() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2603(core.List<core.String> o) {
|
| +checkUnnamed2572(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'));
|
| @@ -309,7 +309,7 @@ buildDatabaseInstance() {
|
| o.databaseVersion = "foo";
|
| o.etag = "foo";
|
| o.instanceType = "foo";
|
| - o.ipAddresses = buildUnnamed2602();
|
| + o.ipAddresses = buildUnnamed2571();
|
| o.ipv6Address = "foo";
|
| o.kind = "foo";
|
| o.masterInstanceName = "foo";
|
| @@ -319,7 +319,7 @@ buildDatabaseInstance() {
|
| o.project = "foo";
|
| o.region = "foo";
|
| o.replicaConfiguration = buildReplicaConfiguration();
|
| - o.replicaNames = buildUnnamed2603();
|
| + o.replicaNames = buildUnnamed2572();
|
| o.selfLink = "foo";
|
| o.serverCaCert = buildSslCert();
|
| o.serviceAccountEmailAddress = "foo";
|
| @@ -337,7 +337,7 @@ checkDatabaseInstance(api.DatabaseInstance o) {
|
| unittest.expect(o.databaseVersion, unittest.equals('foo'));
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.instanceType, unittest.equals('foo'));
|
| - checkUnnamed2602(o.ipAddresses);
|
| + checkUnnamed2571(o.ipAddresses);
|
| unittest.expect(o.ipv6Address, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.masterInstanceName, unittest.equals('foo'));
|
| @@ -347,7 +347,7 @@ checkDatabaseInstance(api.DatabaseInstance o) {
|
| unittest.expect(o.project, unittest.equals('foo'));
|
| unittest.expect(o.region, unittest.equals('foo'));
|
| checkReplicaConfiguration(o.replicaConfiguration);
|
| - checkUnnamed2603(o.replicaNames);
|
| + checkUnnamed2572(o.replicaNames);
|
| unittest.expect(o.selfLink, unittest.equals('foo'));
|
| checkSslCert(o.serverCaCert);
|
| unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo'));
|
| @@ -357,14 +357,14 @@ checkDatabaseInstance(api.DatabaseInstance o) {
|
| buildCounterDatabaseInstance--;
|
| }
|
|
|
| -buildUnnamed2604() {
|
| +buildUnnamed2573() {
|
| var o = new core.List<api.Database>();
|
| o.add(buildDatabase());
|
| o.add(buildDatabase());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2604(core.List<api.Database> o) {
|
| +checkUnnamed2573(core.List<api.Database> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDatabase(o[0]);
|
| checkDatabase(o[1]);
|
| @@ -375,7 +375,7 @@ buildDatabasesListResponse() {
|
| var o = new api.DatabasesListResponse();
|
| buildCounterDatabasesListResponse++;
|
| if (buildCounterDatabasesListResponse < 3) {
|
| - o.items = buildUnnamed2604();
|
| + o.items = buildUnnamed2573();
|
| o.kind = "foo";
|
| }
|
| buildCounterDatabasesListResponse--;
|
| @@ -385,7 +385,7 @@ buildDatabasesListResponse() {
|
| checkDatabasesListResponse(api.DatabasesListResponse o) {
|
| buildCounterDatabasesListResponse++;
|
| if (buildCounterDatabasesListResponse < 3) {
|
| - checkUnnamed2604(o.items);
|
| + checkUnnamed2573(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterDatabasesListResponse--;
|
| @@ -410,27 +410,27 @@ checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) {
|
| buildCounterExportContextCsvExportOptions--;
|
| }
|
|
|
| -buildUnnamed2605() {
|
| +buildUnnamed2574() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2605(core.List<core.String> o) {
|
| +checkUnnamed2574(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'));
|
| }
|
|
|
| -buildUnnamed2606() {
|
| +buildUnnamed2575() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2606(core.List<core.String> o) {
|
| +checkUnnamed2575(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'));
|
| @@ -441,7 +441,7 @@ buildExportContextSqlExportOptions() {
|
| var o = new api.ExportContextSqlExportOptions();
|
| buildCounterExportContextSqlExportOptions++;
|
| if (buildCounterExportContextSqlExportOptions < 3) {
|
| - o.tables = buildUnnamed2606();
|
| + o.tables = buildUnnamed2575();
|
| }
|
| buildCounterExportContextSqlExportOptions--;
|
| return o;
|
| @@ -450,7 +450,7 @@ buildExportContextSqlExportOptions() {
|
| checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) {
|
| buildCounterExportContextSqlExportOptions++;
|
| if (buildCounterExportContextSqlExportOptions < 3) {
|
| - checkUnnamed2606(o.tables);
|
| + checkUnnamed2575(o.tables);
|
| }
|
| buildCounterExportContextSqlExportOptions--;
|
| }
|
| @@ -461,7 +461,7 @@ buildExportContext() {
|
| buildCounterExportContext++;
|
| if (buildCounterExportContext < 3) {
|
| o.csvExportOptions = buildExportContextCsvExportOptions();
|
| - o.databases = buildUnnamed2605();
|
| + o.databases = buildUnnamed2574();
|
| o.fileType = "foo";
|
| o.kind = "foo";
|
| o.sqlExportOptions = buildExportContextSqlExportOptions();
|
| @@ -475,7 +475,7 @@ checkExportContext(api.ExportContext o) {
|
| buildCounterExportContext++;
|
| if (buildCounterExportContext < 3) {
|
| checkExportContextCsvExportOptions(o.csvExportOptions);
|
| - checkUnnamed2605(o.databases);
|
| + checkUnnamed2574(o.databases);
|
| unittest.expect(o.fileType, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| checkExportContextSqlExportOptions(o.sqlExportOptions);
|
| @@ -484,27 +484,27 @@ checkExportContext(api.ExportContext o) {
|
| buildCounterExportContext--;
|
| }
|
|
|
| -buildUnnamed2607() {
|
| +buildUnnamed2576() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2607(core.List<core.String> o) {
|
| +checkUnnamed2576(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'));
|
| }
|
|
|
| -buildUnnamed2608() {
|
| +buildUnnamed2577() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2608(core.List<core.String> o) {
|
| +checkUnnamed2577(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'));
|
| @@ -515,8 +515,8 @@ buildFlag() {
|
| var o = new api.Flag();
|
| buildCounterFlag++;
|
| if (buildCounterFlag < 3) {
|
| - o.allowedStringValues = buildUnnamed2607();
|
| - o.appliesTo = buildUnnamed2608();
|
| + o.allowedStringValues = buildUnnamed2576();
|
| + o.appliesTo = buildUnnamed2577();
|
| o.kind = "foo";
|
| o.maxValue = "foo";
|
| o.minValue = "foo";
|
| @@ -530,8 +530,8 @@ buildFlag() {
|
| checkFlag(api.Flag o) {
|
| buildCounterFlag++;
|
| if (buildCounterFlag < 3) {
|
| - checkUnnamed2607(o.allowedStringValues);
|
| - checkUnnamed2608(o.appliesTo);
|
| + checkUnnamed2576(o.allowedStringValues);
|
| + checkUnnamed2577(o.appliesTo);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.maxValue, unittest.equals('foo'));
|
| unittest.expect(o.minValue, unittest.equals('foo'));
|
| @@ -541,14 +541,14 @@ checkFlag(api.Flag o) {
|
| buildCounterFlag--;
|
| }
|
|
|
| -buildUnnamed2609() {
|
| +buildUnnamed2578() {
|
| var o = new core.List<api.Flag>();
|
| o.add(buildFlag());
|
| o.add(buildFlag());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2609(core.List<api.Flag> o) {
|
| +checkUnnamed2578(core.List<api.Flag> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFlag(o[0]);
|
| checkFlag(o[1]);
|
| @@ -559,7 +559,7 @@ buildFlagsListResponse() {
|
| var o = new api.FlagsListResponse();
|
| buildCounterFlagsListResponse++;
|
| if (buildCounterFlagsListResponse < 3) {
|
| - o.items = buildUnnamed2609();
|
| + o.items = buildUnnamed2578();
|
| o.kind = "foo";
|
| }
|
| buildCounterFlagsListResponse--;
|
| @@ -569,20 +569,20 @@ buildFlagsListResponse() {
|
| checkFlagsListResponse(api.FlagsListResponse o) {
|
| buildCounterFlagsListResponse++;
|
| if (buildCounterFlagsListResponse < 3) {
|
| - checkUnnamed2609(o.items);
|
| + checkUnnamed2578(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterFlagsListResponse--;
|
| }
|
|
|
| -buildUnnamed2610() {
|
| +buildUnnamed2579() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2610(core.List<core.String> o) {
|
| +checkUnnamed2579(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -593,7 +593,7 @@ buildImportContextCsvImportOptions() {
|
| var o = new api.ImportContextCsvImportOptions();
|
| buildCounterImportContextCsvImportOptions++;
|
| if (buildCounterImportContextCsvImportOptions < 3) {
|
| - o.columns = buildUnnamed2610();
|
| + o.columns = buildUnnamed2579();
|
| o.table = "foo";
|
| }
|
| buildCounterImportContextCsvImportOptions--;
|
| @@ -603,7 +603,7 @@ buildImportContextCsvImportOptions() {
|
| checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) {
|
| buildCounterImportContextCsvImportOptions++;
|
| if (buildCounterImportContextCsvImportOptions < 3) {
|
| - checkUnnamed2610(o.columns);
|
| + checkUnnamed2579(o.columns);
|
| unittest.expect(o.table, unittest.equals('foo'));
|
| }
|
| buildCounterImportContextCsvImportOptions--;
|
| @@ -693,14 +693,14 @@ checkInstancesImportRequest(api.InstancesImportRequest o) {
|
| buildCounterInstancesImportRequest--;
|
| }
|
|
|
| -buildUnnamed2611() {
|
| +buildUnnamed2580() {
|
| var o = new core.List<api.DatabaseInstance>();
|
| o.add(buildDatabaseInstance());
|
| o.add(buildDatabaseInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2611(core.List<api.DatabaseInstance> o) {
|
| +checkUnnamed2580(core.List<api.DatabaseInstance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDatabaseInstance(o[0]);
|
| checkDatabaseInstance(o[1]);
|
| @@ -711,7 +711,7 @@ buildInstancesListResponse() {
|
| var o = new api.InstancesListResponse();
|
| buildCounterInstancesListResponse++;
|
| if (buildCounterInstancesListResponse < 3) {
|
| - o.items = buildUnnamed2611();
|
| + o.items = buildUnnamed2580();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -722,7 +722,7 @@ buildInstancesListResponse() {
|
| checkInstancesListResponse(api.InstancesListResponse o) {
|
| buildCounterInstancesListResponse++;
|
| if (buildCounterInstancesListResponse < 3) {
|
| - checkUnnamed2611(o.items);
|
| + checkUnnamed2580(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -748,14 +748,14 @@ checkInstancesRestoreBackupRequest(api.InstancesRestoreBackupRequest o) {
|
| buildCounterInstancesRestoreBackupRequest--;
|
| }
|
|
|
| -buildUnnamed2612() {
|
| +buildUnnamed2581() {
|
| var o = new core.List<api.AclEntry>();
|
| o.add(buildAclEntry());
|
| o.add(buildAclEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2612(core.List<api.AclEntry> o) {
|
| +checkUnnamed2581(core.List<api.AclEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAclEntry(o[0]);
|
| checkAclEntry(o[1]);
|
| @@ -766,7 +766,7 @@ buildIpConfiguration() {
|
| var o = new api.IpConfiguration();
|
| buildCounterIpConfiguration++;
|
| if (buildCounterIpConfiguration < 3) {
|
| - o.authorizedNetworks = buildUnnamed2612();
|
| + o.authorizedNetworks = buildUnnamed2581();
|
| o.ipv4Enabled = true;
|
| o.requireSsl = true;
|
| }
|
| @@ -777,7 +777,7 @@ buildIpConfiguration() {
|
| checkIpConfiguration(api.IpConfiguration o) {
|
| buildCounterIpConfiguration++;
|
| if (buildCounterIpConfiguration < 3) {
|
| - checkUnnamed2612(o.authorizedNetworks);
|
| + checkUnnamed2581(o.authorizedNetworks);
|
| unittest.expect(o.ipv4Enabled, unittest.isTrue);
|
| unittest.expect(o.requireSsl, unittest.isTrue);
|
| }
|
| @@ -958,14 +958,14 @@ checkOperationError(api.OperationError o) {
|
| buildCounterOperationError--;
|
| }
|
|
|
| -buildUnnamed2613() {
|
| +buildUnnamed2582() {
|
| var o = new core.List<api.OperationError>();
|
| o.add(buildOperationError());
|
| o.add(buildOperationError());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2613(core.List<api.OperationError> o) {
|
| +checkUnnamed2582(core.List<api.OperationError> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperationError(o[0]);
|
| checkOperationError(o[1]);
|
| @@ -976,7 +976,7 @@ buildOperationErrors() {
|
| var o = new api.OperationErrors();
|
| buildCounterOperationErrors++;
|
| if (buildCounterOperationErrors < 3) {
|
| - o.errors = buildUnnamed2613();
|
| + o.errors = buildUnnamed2582();
|
| o.kind = "foo";
|
| }
|
| buildCounterOperationErrors--;
|
| @@ -986,20 +986,20 @@ buildOperationErrors() {
|
| checkOperationErrors(api.OperationErrors o) {
|
| buildCounterOperationErrors++;
|
| if (buildCounterOperationErrors < 3) {
|
| - checkUnnamed2613(o.errors);
|
| + checkUnnamed2582(o.errors);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterOperationErrors--;
|
| }
|
|
|
| -buildUnnamed2614() {
|
| +buildUnnamed2583() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2614(core.List<api.Operation> o) {
|
| +checkUnnamed2583(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -1010,7 +1010,7 @@ buildOperationsListResponse() {
|
| var o = new api.OperationsListResponse();
|
| buildCounterOperationsListResponse++;
|
| if (buildCounterOperationsListResponse < 3) {
|
| - o.items = buildUnnamed2614();
|
| + o.items = buildUnnamed2583();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -1021,7 +1021,7 @@ buildOperationsListResponse() {
|
| checkOperationsListResponse(api.OperationsListResponse o) {
|
| buildCounterOperationsListResponse++;
|
| if (buildCounterOperationsListResponse < 3) {
|
| - checkUnnamed2614(o.items);
|
| + checkUnnamed2583(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -1072,27 +1072,27 @@ checkRestoreBackupContext(api.RestoreBackupContext o) {
|
| buildCounterRestoreBackupContext--;
|
| }
|
|
|
| -buildUnnamed2615() {
|
| +buildUnnamed2584() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2615(core.List<core.String> o) {
|
| +checkUnnamed2584(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'));
|
| }
|
|
|
| -buildUnnamed2616() {
|
| +buildUnnamed2585() {
|
| var o = new core.List<api.DatabaseFlags>();
|
| o.add(buildDatabaseFlags());
|
| o.add(buildDatabaseFlags());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2616(core.List<api.DatabaseFlags> o) {
|
| +checkUnnamed2585(core.List<api.DatabaseFlags> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDatabaseFlags(o[0]);
|
| checkDatabaseFlags(o[1]);
|
| @@ -1104,10 +1104,10 @@ buildSettings() {
|
| buildCounterSettings++;
|
| if (buildCounterSettings < 3) {
|
| o.activationPolicy = "foo";
|
| - o.authorizedGaeApplications = buildUnnamed2615();
|
| + o.authorizedGaeApplications = buildUnnamed2584();
|
| o.backupConfiguration = buildBackupConfiguration();
|
| o.crashSafeReplicationEnabled = true;
|
| - o.databaseFlags = buildUnnamed2616();
|
| + o.databaseFlags = buildUnnamed2585();
|
| o.databaseReplicationEnabled = true;
|
| o.ipConfiguration = buildIpConfiguration();
|
| o.kind = "foo";
|
| @@ -1125,10 +1125,10 @@ checkSettings(api.Settings o) {
|
| buildCounterSettings++;
|
| if (buildCounterSettings < 3) {
|
| unittest.expect(o.activationPolicy, unittest.equals('foo'));
|
| - checkUnnamed2615(o.authorizedGaeApplications);
|
| + checkUnnamed2584(o.authorizedGaeApplications);
|
| checkBackupConfiguration(o.backupConfiguration);
|
| unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue);
|
| - checkUnnamed2616(o.databaseFlags);
|
| + checkUnnamed2585(o.databaseFlags);
|
| unittest.expect(o.databaseReplicationEnabled, unittest.isTrue);
|
| checkIpConfiguration(o.ipConfiguration);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| @@ -1239,14 +1239,14 @@ checkSslCertsInsertResponse(api.SslCertsInsertResponse o) {
|
| buildCounterSslCertsInsertResponse--;
|
| }
|
|
|
| -buildUnnamed2617() {
|
| +buildUnnamed2586() {
|
| var o = new core.List<api.SslCert>();
|
| o.add(buildSslCert());
|
| o.add(buildSslCert());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2617(core.List<api.SslCert> o) {
|
| +checkUnnamed2586(core.List<api.SslCert> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSslCert(o[0]);
|
| checkSslCert(o[1]);
|
| @@ -1257,7 +1257,7 @@ buildSslCertsListResponse() {
|
| var o = new api.SslCertsListResponse();
|
| buildCounterSslCertsListResponse++;
|
| if (buildCounterSslCertsListResponse < 3) {
|
| - o.items = buildUnnamed2617();
|
| + o.items = buildUnnamed2586();
|
| o.kind = "foo";
|
| }
|
| buildCounterSslCertsListResponse--;
|
| @@ -1267,20 +1267,39 @@ buildSslCertsListResponse() {
|
| checkSslCertsListResponse(api.SslCertsListResponse o) {
|
| buildCounterSslCertsListResponse++;
|
| if (buildCounterSslCertsListResponse < 3) {
|
| - checkUnnamed2617(o.items);
|
| + checkUnnamed2586(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterSslCertsListResponse--;
|
| }
|
|
|
| -buildUnnamed2618() {
|
| +core.int buildCounterSslCertsSignRequest = 0;
|
| +buildSslCertsSignRequest() {
|
| + var o = new api.SslCertsSignRequest();
|
| + buildCounterSslCertsSignRequest++;
|
| + if (buildCounterSslCertsSignRequest < 3) {
|
| + o.publicKey = "foo";
|
| + }
|
| + buildCounterSslCertsSignRequest--;
|
| + return o;
|
| +}
|
| +
|
| +checkSslCertsSignRequest(api.SslCertsSignRequest o) {
|
| + buildCounterSslCertsSignRequest++;
|
| + if (buildCounterSslCertsSignRequest < 3) {
|
| + unittest.expect(o.publicKey, unittest.equals('foo'));
|
| + }
|
| + buildCounterSslCertsSignRequest--;
|
| +}
|
| +
|
| +buildUnnamed2587() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2618(core.List<core.String> o) {
|
| +checkUnnamed2587(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'));
|
| @@ -1294,7 +1313,7 @@ buildTier() {
|
| o.DiskQuota = "foo";
|
| o.RAM = "foo";
|
| o.kind = "foo";
|
| - o.region = buildUnnamed2618();
|
| + o.region = buildUnnamed2587();
|
| o.tier = "foo";
|
| }
|
| buildCounterTier--;
|
| @@ -1307,20 +1326,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'));
|
| - checkUnnamed2618(o.region);
|
| + checkUnnamed2587(o.region);
|
| unittest.expect(o.tier, unittest.equals('foo'));
|
| }
|
| buildCounterTier--;
|
| }
|
|
|
| -buildUnnamed2619() {
|
| +buildUnnamed2588() {
|
| var o = new core.List<api.Tier>();
|
| o.add(buildTier());
|
| o.add(buildTier());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2619(core.List<api.Tier> o) {
|
| +checkUnnamed2588(core.List<api.Tier> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTier(o[0]);
|
| checkTier(o[1]);
|
| @@ -1331,7 +1350,7 @@ buildTiersListResponse() {
|
| var o = new api.TiersListResponse();
|
| buildCounterTiersListResponse++;
|
| if (buildCounterTiersListResponse < 3) {
|
| - o.items = buildUnnamed2619();
|
| + o.items = buildUnnamed2588();
|
| o.kind = "foo";
|
| }
|
| buildCounterTiersListResponse--;
|
| @@ -1341,7 +1360,7 @@ buildTiersListResponse() {
|
| checkTiersListResponse(api.TiersListResponse o) {
|
| buildCounterTiersListResponse++;
|
| if (buildCounterTiersListResponse < 3) {
|
| - checkUnnamed2619(o.items);
|
| + checkUnnamed2588(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterTiersListResponse--;
|
| @@ -1378,14 +1397,14 @@ checkUser(api.User o) {
|
| buildCounterUser--;
|
| }
|
|
|
| -buildUnnamed2620() {
|
| +buildUnnamed2589() {
|
| var o = new core.List<api.User>();
|
| o.add(buildUser());
|
| o.add(buildUser());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2620(core.List<api.User> o) {
|
| +checkUnnamed2589(core.List<api.User> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUser(o[0]);
|
| checkUser(o[1]);
|
| @@ -1396,7 +1415,7 @@ buildUsersListResponse() {
|
| var o = new api.UsersListResponse();
|
| buildCounterUsersListResponse++;
|
| if (buildCounterUsersListResponse < 3) {
|
| - o.items = buildUnnamed2620();
|
| + o.items = buildUnnamed2589();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -1407,7 +1426,7 @@ buildUsersListResponse() {
|
| checkUsersListResponse(api.UsersListResponse o) {
|
| buildCounterUsersListResponse++;
|
| if (buildCounterUsersListResponse < 3) {
|
| - checkUnnamed2620(o.items);
|
| + checkUnnamed2589(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -1767,6 +1786,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-SslCertsSignRequest", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildSslCertsSignRequest();
|
| + var od = new api.SslCertsSignRequest.fromJson(o.toJson());
|
| + checkSslCertsSignRequest(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-Tier", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildTier();
|
| @@ -3680,6 +3708,71 @@ main() {
|
| })));
|
| });
|
|
|
| + unittest.test("method--sign", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.SslCertsResourceApi res = new api.SqladminApi(mock).sslCerts;
|
| + var arg_request = buildSslCertsSignRequest();
|
| + var arg_project = "foo";
|
| + var arg_instance = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.SslCertsSignRequest.fromJson(json);
|
| + checkSslCertsSignRequest(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("/certSign", 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 + 9), unittest.equals("/certSign"));
|
| + pathOffset += 9;
|
| +
|
| + 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(buildSslCert());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.sign(arg_request, arg_project, arg_instance).then(unittest.expectAsync(((api.SslCert response) {
|
| + checkSslCert(response);
|
| + })));
|
| + });
|
| +
|
| });
|
|
|
|
|
|
|