From a38cbcca1660bc40fe137acb973bf62f3c55754e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 23 Nov 2020 12:16:51 -0800 Subject: [PATCH] fix(browser): check for fetch on window (#824) --- protos/protos.json | 743 +++++++++++++++++++++-- src/v2/bigtable_client.ts | 52 +- src/v2/bigtable_instance_admin_client.ts | 210 ++++--- src/v2/bigtable_table_admin_client.ts | 248 ++++---- synth.metadata | 8 +- 5 files changed, 959 insertions(+), 302 deletions(-) diff --git a/protos/protos.json b/protos/protos.json index 160098287..9195990e1 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -32,7 +32,24 @@ "(google.api.method_signature)": "parent,instance_id,instance,clusters", "(google.longrunning.operation_info).response_type": "Instance", "(google.longrunning.operation_info).metadata_type": "CreateInstanceMetadata" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{parent=projects/*}/instances", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,instance_id,instance,clusters" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Instance", + "metadata_type": "CreateInstanceMetadata" + } + } + ] }, "GetInstance": { "requestType": "GetInstanceRequest", @@ -40,7 +57,17 @@ "options": { "(google.api.http).get": "/v2/{name=projects/*/instances/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{name=projects/*/instances/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ListInstances": { "requestType": "ListInstancesRequest", @@ -48,7 +75,17 @@ "options": { "(google.api.http).get": "/v2/{parent=projects/*}/instances", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{parent=projects/*}/instances" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "UpdateInstance": { "requestType": "Instance", @@ -56,7 +93,15 @@ "options": { "(google.api.http).put": "/v2/{name=projects/*/instances/*}", "(google.api.http).body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "put": "/v2/{name=projects/*/instances/*}", + "body": "*" + } + } + ] }, "PartialUpdateInstance": { "requestType": "PartialUpdateInstanceRequest", @@ -67,7 +112,24 @@ "(google.api.method_signature)": "instance,update_mask", "(google.longrunning.operation_info).response_type": "Instance", "(google.longrunning.operation_info).metadata_type": "UpdateInstanceMetadata" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v2/{instance.name=projects/*/instances/*}", + "body": "instance" + } + }, + { + "(google.api.method_signature)": "instance,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Instance", + "metadata_type": "UpdateInstanceMetadata" + } + } + ] }, "DeleteInstance": { "requestType": "DeleteInstanceRequest", @@ -75,7 +137,17 @@ "options": { "(google.api.http).delete": "/v2/{name=projects/*/instances/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v2/{name=projects/*/instances/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CreateCluster": { "requestType": "CreateClusterRequest", @@ -86,7 +158,24 @@ "(google.api.method_signature)": "parent,cluster_id,cluster", "(google.longrunning.operation_info).response_type": "Cluster", "(google.longrunning.operation_info).metadata_type": "CreateClusterMetadata" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{parent=projects/*/instances/*}/clusters", + "body": "cluster" + } + }, + { + "(google.api.method_signature)": "parent,cluster_id,cluster" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Cluster", + "metadata_type": "CreateClusterMetadata" + } + } + ] }, "GetCluster": { "requestType": "GetClusterRequest", @@ -94,7 +183,17 @@ "options": { "(google.api.http).get": "/v2/{name=projects/*/instances/*/clusters/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{name=projects/*/instances/*/clusters/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ListClusters": { "requestType": "ListClustersRequest", @@ -102,7 +201,17 @@ "options": { "(google.api.http).get": "/v2/{parent=projects/*/instances/*}/clusters", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{parent=projects/*/instances/*}/clusters" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "UpdateCluster": { "requestType": "Cluster", @@ -112,7 +221,21 @@ "(google.api.http).body": "*", "(google.longrunning.operation_info).response_type": "Cluster", "(google.longrunning.operation_info).metadata_type": "UpdateClusterMetadata" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "put": "/v2/{name=projects/*/instances/*/clusters/*}", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Cluster", + "metadata_type": "UpdateClusterMetadata" + } + } + ] }, "DeleteCluster": { "requestType": "DeleteClusterRequest", @@ -120,7 +243,17 @@ "options": { "(google.api.http).delete": "/v2/{name=projects/*/instances/*/clusters/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v2/{name=projects/*/instances/*/clusters/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CreateAppProfile": { "requestType": "CreateAppProfileRequest", @@ -129,7 +262,18 @@ "(google.api.http).post": "/v2/{parent=projects/*/instances/*}/appProfiles", "(google.api.http).body": "app_profile", "(google.api.method_signature)": "parent,app_profile_id,app_profile" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{parent=projects/*/instances/*}/appProfiles", + "body": "app_profile" + } + }, + { + "(google.api.method_signature)": "parent,app_profile_id,app_profile" + } + ] }, "GetAppProfile": { "requestType": "GetAppProfileRequest", @@ -137,7 +281,17 @@ "options": { "(google.api.http).get": "/v2/{name=projects/*/instances/*/appProfiles/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{name=projects/*/instances/*/appProfiles/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ListAppProfiles": { "requestType": "ListAppProfilesRequest", @@ -145,7 +299,17 @@ "options": { "(google.api.http).get": "/v2/{parent=projects/*/instances/*}/appProfiles", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{parent=projects/*/instances/*}/appProfiles" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "UpdateAppProfile": { "requestType": "UpdateAppProfileRequest", @@ -156,7 +320,24 @@ "(google.api.method_signature)": "app_profile,update_mask", "(google.longrunning.operation_info).response_type": "AppProfile", "(google.longrunning.operation_info).metadata_type": "UpdateAppProfileMetadata" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}", + "body": "app_profile" + } + }, + { + "(google.api.method_signature)": "app_profile,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "AppProfile", + "metadata_type": "UpdateAppProfileMetadata" + } + } + ] }, "DeleteAppProfile": { "requestType": "DeleteAppProfileRequest", @@ -164,7 +345,17 @@ "options": { "(google.api.http).delete": "/v2/{name=projects/*/instances/*/appProfiles/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v2/{name=projects/*/instances/*/appProfiles/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "GetIamPolicy": { "requestType": "google.iam.v1.GetIamPolicyRequest", @@ -173,7 +364,18 @@ "(google.api.http).post": "/v2/{resource=projects/*/instances/*}:getIamPolicy", "(google.api.http).body": "*", "(google.api.method_signature)": "resource" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{resource=projects/*/instances/*}:getIamPolicy", + "body": "*" + } + }, + { + "(google.api.method_signature)": "resource" + } + ] }, "SetIamPolicy": { "requestType": "google.iam.v1.SetIamPolicyRequest", @@ -182,7 +384,18 @@ "(google.api.http).post": "/v2/{resource=projects/*/instances/*}:setIamPolicy", "(google.api.http).body": "*", "(google.api.method_signature)": "resource,policy" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{resource=projects/*/instances/*}:setIamPolicy", + "body": "*" + } + }, + { + "(google.api.method_signature)": "resource,policy" + } + ] }, "TestIamPermissions": { "requestType": "google.iam.v1.TestIamPermissionsRequest", @@ -191,7 +404,18 @@ "(google.api.http).post": "/v2/{resource=projects/*/instances/*}:testIamPermissions", "(google.api.http).body": "*", "(google.api.method_signature)": "resource,permissions" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{resource=projects/*/instances/*}:testIamPermissions", + "body": "*" + } + }, + { + "(google.api.method_signature)": "resource,permissions" + } + ] } } }, @@ -768,7 +992,18 @@ "(google.api.http).post": "/v2/{parent=projects/*/instances/*}/tables", "(google.api.http).body": "*", "(google.api.method_signature)": "parent,table_id,table" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{parent=projects/*/instances/*}/tables", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,table_id,table" + } + ] }, "CreateTableFromSnapshot": { "requestType": "CreateTableFromSnapshotRequest", @@ -779,7 +1014,24 @@ "(google.api.method_signature)": "parent,table_id,source_snapshot", "(google.longrunning.operation_info).response_type": "Table", "(google.longrunning.operation_info).metadata_type": "CreateTableFromSnapshotMetadata" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,table_id,source_snapshot" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Table", + "metadata_type": "CreateTableFromSnapshotMetadata" + } + } + ] }, "ListTables": { "requestType": "ListTablesRequest", @@ -787,7 +1039,17 @@ "options": { "(google.api.http).get": "/v2/{parent=projects/*/instances/*}/tables", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{parent=projects/*/instances/*}/tables" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "GetTable": { "requestType": "GetTableRequest", @@ -795,7 +1057,17 @@ "options": { "(google.api.http).get": "/v2/{name=projects/*/instances/*/tables/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{name=projects/*/instances/*/tables/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "DeleteTable": { "requestType": "DeleteTableRequest", @@ -803,7 +1075,17 @@ "options": { "(google.api.http).delete": "/v2/{name=projects/*/instances/*/tables/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v2/{name=projects/*/instances/*/tables/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ModifyColumnFamilies": { "requestType": "ModifyColumnFamiliesRequest", @@ -812,7 +1094,18 @@ "(google.api.http).post": "/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies", "(google.api.http).body": "*", "(google.api.method_signature)": "name,modifications" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name,modifications" + } + ] }, "DropRowRange": { "requestType": "DropRowRangeRequest", @@ -820,7 +1113,15 @@ "options": { "(google.api.http).post": "/v2/{name=projects/*/instances/*/tables/*}:dropRowRange", "(google.api.http).body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{name=projects/*/instances/*/tables/*}:dropRowRange", + "body": "*" + } + } + ] }, "GenerateConsistencyToken": { "requestType": "GenerateConsistencyTokenRequest", @@ -829,7 +1130,18 @@ "(google.api.http).post": "/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken", "(google.api.http).body": "*", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CheckConsistency": { "requestType": "CheckConsistencyRequest", @@ -838,7 +1150,18 @@ "(google.api.http).post": "/v2/{name=projects/*/instances/*/tables/*}:checkConsistency", "(google.api.http).body": "*", "(google.api.method_signature)": "name,consistency_token" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{name=projects/*/instances/*/tables/*}:checkConsistency", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name,consistency_token" + } + ] }, "SnapshotTable": { "requestType": "SnapshotTableRequest", @@ -849,7 +1172,24 @@ "(google.api.method_signature)": "name,cluster,snapshot_id,description", "(google.longrunning.operation_info).response_type": "Snapshot", "(google.longrunning.operation_info).metadata_type": "SnapshotTableMetadata" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{name=projects/*/instances/*/tables/*}:snapshot", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name,cluster,snapshot_id,description" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Snapshot", + "metadata_type": "SnapshotTableMetadata" + } + } + ] }, "GetSnapshot": { "requestType": "GetSnapshotRequest", @@ -857,7 +1197,17 @@ "options": { "(google.api.http).get": "/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ListSnapshots": { "requestType": "ListSnapshotsRequest", @@ -865,7 +1215,17 @@ "options": { "(google.api.http).get": "/v2/{parent=projects/*/instances/*/clusters/*}/snapshots", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{parent=projects/*/instances/*/clusters/*}/snapshots" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "DeleteSnapshot": { "requestType": "DeleteSnapshotRequest", @@ -873,7 +1233,17 @@ "options": { "(google.api.http).delete": "/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CreateBackup": { "requestType": "CreateBackupRequest", @@ -884,7 +1254,24 @@ "(google.api.method_signature)": "parent,backup_id,backup", "(google.longrunning.operation_info).response_type": "Backup", "(google.longrunning.operation_info).metadata_type": "CreateBackupMetadata" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{parent=projects/*/instances/*/clusters/*}/backups", + "body": "backup" + } + }, + { + "(google.api.method_signature)": "parent,backup_id,backup" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Backup", + "metadata_type": "CreateBackupMetadata" + } + } + ] }, "GetBackup": { "requestType": "GetBackupRequest", @@ -892,7 +1279,17 @@ "options": { "(google.api.http).get": "/v2/{name=projects/*/instances/*/clusters/*/backups/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{name=projects/*/instances/*/clusters/*/backups/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "UpdateBackup": { "requestType": "UpdateBackupRequest", @@ -901,7 +1298,18 @@ "(google.api.http).patch": "/v2/{backup.name=projects/*/instances/*/clusters/*/backups/*}", "(google.api.http).body": "backup", "(google.api.method_signature)": "backup,update_mask" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v2/{backup.name=projects/*/instances/*/clusters/*/backups/*}", + "body": "backup" + } + }, + { + "(google.api.method_signature)": "backup,update_mask" + } + ] }, "DeleteBackup": { "requestType": "DeleteBackupRequest", @@ -909,7 +1317,17 @@ "options": { "(google.api.http).delete": "/v2/{name=projects/*/instances/*/clusters/*/backups/*}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v2/{name=projects/*/instances/*/clusters/*/backups/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ListBackups": { "requestType": "ListBackupsRequest", @@ -917,7 +1335,17 @@ "options": { "(google.api.http).get": "/v2/{parent=projects/*/instances/*/clusters/*}/backups", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{parent=projects/*/instances/*/clusters/*}/backups" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "RestoreTable": { "requestType": "RestoreTableRequest", @@ -927,7 +1355,21 @@ "(google.api.http).body": "*", "(google.longrunning.operation_info).response_type": "Table", "(google.longrunning.operation_info).metadata_type": "RestoreTableMetadata" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{parent=projects/*/instances/*}/tables:restore", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Table", + "metadata_type": "RestoreTableMetadata" + } + } + ] }, "GetIamPolicy": { "requestType": "google.iam.v1.GetIamPolicyRequest", @@ -938,7 +1380,22 @@ "(google.api.http).additional_bindings.post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:getIamPolicy", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "resource" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy", + "body": "*", + "additional_bindings": { + "post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:getIamPolicy", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "resource" + } + ] }, "SetIamPolicy": { "requestType": "google.iam.v1.SetIamPolicyRequest", @@ -949,7 +1406,22 @@ "(google.api.http).additional_bindings.post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:setIamPolicy", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "resource,policy" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy", + "body": "*", + "additional_bindings": { + "post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:setIamPolicy", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "resource,policy" + } + ] }, "TestIamPermissions": { "requestType": "google.iam.v1.TestIamPermissionsRequest", @@ -960,7 +1432,22 @@ "(google.api.http).additional_bindings.post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:testIamPermissions", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "resource,permissions" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions", + "body": "*", + "additional_bindings": { + "post": "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:testIamPermissions", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "resource,permissions" + } + ] } } }, @@ -1876,7 +2363,21 @@ "(google.api.http).post": "/v2/{table_name=projects/*/instances/*/tables/*}:readRows", "(google.api.http).body": "*", "(google.api.method_signature)": "table_name,app_profile_id" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{table_name=projects/*/instances/*/tables/*}:readRows", + "body": "*" + } + }, + { + "(google.api.method_signature)": "table_name" + }, + { + "(google.api.method_signature)": "table_name,app_profile_id" + } + ] }, "SampleRowKeys": { "requestType": "SampleRowKeysRequest", @@ -1885,7 +2386,20 @@ "options": { "(google.api.http).get": "/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys", "(google.api.method_signature)": "table_name,app_profile_id" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys" + } + }, + { + "(google.api.method_signature)": "table_name" + }, + { + "(google.api.method_signature)": "table_name,app_profile_id" + } + ] }, "MutateRow": { "requestType": "MutateRowRequest", @@ -1894,7 +2408,21 @@ "(google.api.http).post": "/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow", "(google.api.http).body": "*", "(google.api.method_signature)": "table_name,row_key,mutations,app_profile_id" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow", + "body": "*" + } + }, + { + "(google.api.method_signature)": "table_name,row_key,mutations" + }, + { + "(google.api.method_signature)": "table_name,row_key,mutations,app_profile_id" + } + ] }, "MutateRows": { "requestType": "MutateRowsRequest", @@ -1904,7 +2432,21 @@ "(google.api.http).post": "/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows", "(google.api.http).body": "*", "(google.api.method_signature)": "table_name,entries,app_profile_id" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows", + "body": "*" + } + }, + { + "(google.api.method_signature)": "table_name,entries" + }, + { + "(google.api.method_signature)": "table_name,entries,app_profile_id" + } + ] }, "CheckAndMutateRow": { "requestType": "CheckAndMutateRowRequest", @@ -1913,7 +2455,21 @@ "(google.api.http).post": "/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow", "(google.api.http).body": "*", "(google.api.method_signature)": "table_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow", + "body": "*" + } + }, + { + "(google.api.method_signature)": "table_name,row_key,predicate_filter,true_mutations,false_mutations" + }, + { + "(google.api.method_signature)": "table_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id" + } + ] }, "ReadModifyWriteRow": { "requestType": "ReadModifyWriteRowRequest", @@ -1922,7 +2478,21 @@ "(google.api.http).post": "/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow", "(google.api.http).body": "*", "(google.api.method_signature)": "table_name,row_key,rules,app_profile_id" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow", + "body": "*" + } + }, + { + "(google.api.method_signature)": "table_name,row_key,rules" + }, + { + "(google.api.method_signature)": "table_name,row_key,rules,app_profile_id" + } + ] } } }, @@ -3907,7 +4477,15 @@ "options": { "(google.api.http).post": "/v1/{resource=**}:setIamPolicy", "(google.api.http).body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{resource=**}:setIamPolicy", + "body": "*" + } + } + ] }, "GetIamPolicy": { "requestType": "GetIamPolicyRequest", @@ -3915,7 +4493,15 @@ "options": { "(google.api.http).post": "/v1/{resource=**}:getIamPolicy", "(google.api.http).body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{resource=**}:getIamPolicy", + "body": "*" + } + } + ] }, "TestIamPermissions": { "requestType": "TestIamPermissionsRequest", @@ -3923,7 +4509,15 @@ "options": { "(google.api.http).post": "/v1/{resource=**}:testIamPermissions", "(google.api.http).body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{resource=**}:testIamPermissions", + "body": "*" + } + } + ] } } }, @@ -4167,7 +4761,17 @@ "options": { "(google.api.http).get": "/v1/{name=operations}", "(google.api.method_signature)": "name,filter" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=operations}" + } + }, + { + "(google.api.method_signature)": "name,filter" + } + ] }, "GetOperation": { "requestType": "GetOperationRequest", @@ -4175,7 +4779,17 @@ "options": { "(google.api.http).get": "/v1/{name=operations/**}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=operations/**}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "DeleteOperation": { "requestType": "DeleteOperationRequest", @@ -4183,7 +4797,17 @@ "options": { "(google.api.http).delete": "/v1/{name=operations/**}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=operations/**}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CancelOperation": { "requestType": "CancelOperationRequest", @@ -4192,7 +4816,18 @@ "(google.api.http).post": "/v1/{name=operations/**}:cancel", "(google.api.http).body": "*", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=operations/**}:cancel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, "WaitOperation": { "requestType": "WaitOperationRequest", diff --git a/src/v2/bigtable_client.ts b/src/v2/bigtable_client.ts index b8c3243d8..d98c600dc 100644 --- a/src/v2/bigtable_client.ts +++ b/src/v2/bigtable_client.ts @@ -16,11 +16,17 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v2/bigtable_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './bigtable_client_config.json'; const version = require('../../../package.json').version; @@ -74,9 +80,9 @@ export class BigtableClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -89,7 +95,9 @@ export class BigtableClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -310,7 +318,7 @@ export class BigtableClient { // ------------------- mutateRow( request: protos.google.bigtable.v2.IMutateRowRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.v2.IMutateRowResponse, @@ -320,7 +328,7 @@ export class BigtableClient { >; mutateRow( request: protos.google.bigtable.v2.IMutateRowRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.v2.IMutateRowResponse, protos.google.bigtable.v2.IMutateRowRequest | null | undefined, @@ -367,7 +375,7 @@ export class BigtableClient { mutateRow( request: protos.google.bigtable.v2.IMutateRowRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.v2.IMutateRowResponse, protos.google.bigtable.v2.IMutateRowRequest | null | undefined, @@ -386,12 +394,12 @@ export class BigtableClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -406,7 +414,7 @@ export class BigtableClient { } checkAndMutateRow( request: protos.google.bigtable.v2.ICheckAndMutateRowRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.v2.ICheckAndMutateRowResponse, @@ -416,7 +424,7 @@ export class BigtableClient { >; checkAndMutateRow( request: protos.google.bigtable.v2.ICheckAndMutateRowRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.v2.ICheckAndMutateRowResponse, protos.google.bigtable.v2.ICheckAndMutateRowRequest | null | undefined, @@ -476,7 +484,7 @@ export class BigtableClient { checkAndMutateRow( request: protos.google.bigtable.v2.ICheckAndMutateRowRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.v2.ICheckAndMutateRowResponse, | protos.google.bigtable.v2.ICheckAndMutateRowRequest @@ -497,12 +505,12 @@ export class BigtableClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -517,7 +525,7 @@ export class BigtableClient { } readModifyWriteRow( request: protos.google.bigtable.v2.IReadModifyWriteRowRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.v2.IReadModifyWriteRowResponse, @@ -527,7 +535,7 @@ export class BigtableClient { >; readModifyWriteRow( request: protos.google.bigtable.v2.IReadModifyWriteRowRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.v2.IReadModifyWriteRowResponse, protos.google.bigtable.v2.IReadModifyWriteRowRequest | null | undefined, @@ -578,7 +586,7 @@ export class BigtableClient { readModifyWriteRow( request: protos.google.bigtable.v2.IReadModifyWriteRowRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.v2.IReadModifyWriteRowResponse, | protos.google.bigtable.v2.IReadModifyWriteRowRequest @@ -599,12 +607,12 @@ export class BigtableClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -656,7 +664,7 @@ export class BigtableClient { */ readRows( request?: protos.google.bigtable.v2.IReadRowsRequest, - options?: gax.CallOptions + options?: CallOptions ): gax.CancellableStream { request = request || {}; options = options || {}; @@ -700,7 +708,7 @@ export class BigtableClient { */ sampleRowKeys( request?: protos.google.bigtable.v2.ISampleRowKeysRequest, - options?: gax.CallOptions + options?: CallOptions ): gax.CancellableStream { request = request || {}; options = options || {}; @@ -747,7 +755,7 @@ export class BigtableClient { */ mutateRows( request?: protos.google.bigtable.v2.IMutateRowsRequest, - options?: gax.CallOptions + options?: CallOptions ): gax.CancellableStream { request = request || {}; options = options || {}; diff --git a/src/v2/bigtable_instance_admin_client.ts b/src/v2/bigtable_instance_admin_client.ts index 6882bb00b..fd39b1dbe 100644 --- a/src/v2/bigtable_instance_admin_client.ts +++ b/src/v2/bigtable_instance_admin_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,6 +32,11 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v2/bigtable_instance_admin_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './bigtable_instance_admin_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; @@ -87,9 +93,9 @@ export class BigtableInstanceAdminClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -103,7 +109,9 @@ export class BigtableInstanceAdminClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -433,7 +441,7 @@ export class BigtableInstanceAdminClient { // ------------------- getInstance( request: protos.google.bigtable.admin.v2.IGetInstanceRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.IInstance, @@ -443,7 +451,7 @@ export class BigtableInstanceAdminClient { >; getInstance( request: protos.google.bigtable.admin.v2.IGetInstanceRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.IInstance, protos.google.bigtable.admin.v2.IGetInstanceRequest | null | undefined, @@ -479,7 +487,7 @@ export class BigtableInstanceAdminClient { getInstance( request: protos.google.bigtable.admin.v2.IGetInstanceRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.IInstance, | protos.google.bigtable.admin.v2.IGetInstanceRequest @@ -500,12 +508,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -520,7 +528,7 @@ export class BigtableInstanceAdminClient { } listInstances( request: protos.google.bigtable.admin.v2.IListInstancesRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.IListInstancesResponse, @@ -530,7 +538,7 @@ export class BigtableInstanceAdminClient { >; listInstances( request: protos.google.bigtable.admin.v2.IListInstancesRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.IListInstancesResponse, protos.google.bigtable.admin.v2.IListInstancesRequest | null | undefined, @@ -568,7 +576,7 @@ export class BigtableInstanceAdminClient { listInstances( request: protos.google.bigtable.admin.v2.IListInstancesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.IListInstancesResponse, | protos.google.bigtable.admin.v2.IListInstancesRequest @@ -589,12 +597,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -609,7 +617,7 @@ export class BigtableInstanceAdminClient { } updateInstance( request: protos.google.bigtable.admin.v2.IInstance, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.IInstance, @@ -619,7 +627,7 @@ export class BigtableInstanceAdminClient { >; updateInstance( request: protos.google.bigtable.admin.v2.IInstance, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.IInstance, protos.google.bigtable.admin.v2.IInstance | null | undefined, @@ -678,7 +686,7 @@ export class BigtableInstanceAdminClient { updateInstance( request: protos.google.bigtable.admin.v2.IInstance, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.IInstance, protos.google.bigtable.admin.v2.IInstance | null | undefined, @@ -697,12 +705,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -717,7 +725,7 @@ export class BigtableInstanceAdminClient { } deleteInstance( request: protos.google.bigtable.admin.v2.IDeleteInstanceRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -727,7 +735,7 @@ export class BigtableInstanceAdminClient { >; deleteInstance( request: protos.google.bigtable.admin.v2.IDeleteInstanceRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, protos.google.bigtable.admin.v2.IDeleteInstanceRequest | null | undefined, @@ -763,7 +771,7 @@ export class BigtableInstanceAdminClient { deleteInstance( request: protos.google.bigtable.admin.v2.IDeleteInstanceRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.bigtable.admin.v2.IDeleteInstanceRequest @@ -784,12 +792,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -804,7 +812,7 @@ export class BigtableInstanceAdminClient { } getCluster( request: protos.google.bigtable.admin.v2.IGetClusterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.ICluster, @@ -814,7 +822,7 @@ export class BigtableInstanceAdminClient { >; getCluster( request: protos.google.bigtable.admin.v2.IGetClusterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.ICluster, protos.google.bigtable.admin.v2.IGetClusterRequest | null | undefined, @@ -850,7 +858,7 @@ export class BigtableInstanceAdminClient { getCluster( request: protos.google.bigtable.admin.v2.IGetClusterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.ICluster, protos.google.bigtable.admin.v2.IGetClusterRequest | null | undefined, @@ -869,12 +877,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -889,7 +897,7 @@ export class BigtableInstanceAdminClient { } listClusters( request: protos.google.bigtable.admin.v2.IListClustersRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.IListClustersResponse, @@ -899,7 +907,7 @@ export class BigtableInstanceAdminClient { >; listClusters( request: protos.google.bigtable.admin.v2.IListClustersRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.IListClustersResponse, protos.google.bigtable.admin.v2.IListClustersRequest | null | undefined, @@ -939,7 +947,7 @@ export class BigtableInstanceAdminClient { listClusters( request: protos.google.bigtable.admin.v2.IListClustersRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.IListClustersResponse, | protos.google.bigtable.admin.v2.IListClustersRequest @@ -960,12 +968,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -980,7 +988,7 @@ export class BigtableInstanceAdminClient { } deleteCluster( request: protos.google.bigtable.admin.v2.IDeleteClusterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -990,7 +998,7 @@ export class BigtableInstanceAdminClient { >; deleteCluster( request: protos.google.bigtable.admin.v2.IDeleteClusterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, protos.google.bigtable.admin.v2.IDeleteClusterRequest | null | undefined, @@ -1026,7 +1034,7 @@ export class BigtableInstanceAdminClient { deleteCluster( request: protos.google.bigtable.admin.v2.IDeleteClusterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.bigtable.admin.v2.IDeleteClusterRequest @@ -1047,12 +1055,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1067,7 +1075,7 @@ export class BigtableInstanceAdminClient { } createAppProfile( request: protos.google.bigtable.admin.v2.ICreateAppProfileRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.IAppProfile, @@ -1077,7 +1085,7 @@ export class BigtableInstanceAdminClient { >; createAppProfile( request: protos.google.bigtable.admin.v2.ICreateAppProfileRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.IAppProfile, | protos.google.bigtable.admin.v2.ICreateAppProfileRequest @@ -1127,7 +1135,7 @@ export class BigtableInstanceAdminClient { createAppProfile( request: protos.google.bigtable.admin.v2.ICreateAppProfileRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.IAppProfile, | protos.google.bigtable.admin.v2.ICreateAppProfileRequest @@ -1150,12 +1158,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1170,7 +1178,7 @@ export class BigtableInstanceAdminClient { } getAppProfile( request: protos.google.bigtable.admin.v2.IGetAppProfileRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.IAppProfile, @@ -1180,7 +1188,7 @@ export class BigtableInstanceAdminClient { >; getAppProfile( request: protos.google.bigtable.admin.v2.IGetAppProfileRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.IAppProfile, protos.google.bigtable.admin.v2.IGetAppProfileRequest | null | undefined, @@ -1216,7 +1224,7 @@ export class BigtableInstanceAdminClient { getAppProfile( request: protos.google.bigtable.admin.v2.IGetAppProfileRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.IAppProfile, | protos.google.bigtable.admin.v2.IGetAppProfileRequest @@ -1237,12 +1245,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1257,7 +1265,7 @@ export class BigtableInstanceAdminClient { } deleteAppProfile( request: protos.google.bigtable.admin.v2.IDeleteAppProfileRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -1267,7 +1275,7 @@ export class BigtableInstanceAdminClient { >; deleteAppProfile( request: protos.google.bigtable.admin.v2.IDeleteAppProfileRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, | protos.google.bigtable.admin.v2.IDeleteAppProfileRequest @@ -1309,7 +1317,7 @@ export class BigtableInstanceAdminClient { deleteAppProfile( request: protos.google.bigtable.admin.v2.IDeleteAppProfileRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.bigtable.admin.v2.IDeleteAppProfileRequest @@ -1332,12 +1340,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1352,7 +1360,7 @@ export class BigtableInstanceAdminClient { } getIamPolicy( request: protos.google.iam.v1.IGetIamPolicyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.iam.v1.IPolicy, @@ -1362,7 +1370,7 @@ export class BigtableInstanceAdminClient { >; getIamPolicy( request: protos.google.iam.v1.IGetIamPolicyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, @@ -1402,7 +1410,7 @@ export class BigtableInstanceAdminClient { getIamPolicy( request: protos.google.iam.v1.IGetIamPolicyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, @@ -1421,12 +1429,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1441,7 +1449,7 @@ export class BigtableInstanceAdminClient { } setIamPolicy( request: protos.google.iam.v1.ISetIamPolicyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.iam.v1.IPolicy, @@ -1451,7 +1459,7 @@ export class BigtableInstanceAdminClient { >; setIamPolicy( request: protos.google.iam.v1.ISetIamPolicyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, @@ -1493,7 +1501,7 @@ export class BigtableInstanceAdminClient { setIamPolicy( request: protos.google.iam.v1.ISetIamPolicyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, @@ -1512,12 +1520,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1532,7 +1540,7 @@ export class BigtableInstanceAdminClient { } testIamPermissions( request: protos.google.iam.v1.ITestIamPermissionsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.iam.v1.ITestIamPermissionsResponse, @@ -1542,7 +1550,7 @@ export class BigtableInstanceAdminClient { >; testIamPermissions( request: protos.google.iam.v1.ITestIamPermissionsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, @@ -1583,7 +1591,7 @@ export class BigtableInstanceAdminClient { testIamPermissions( request: protos.google.iam.v1.ITestIamPermissionsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, @@ -1602,12 +1610,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1623,7 +1631,7 @@ export class BigtableInstanceAdminClient { createInstance( request: protos.google.bigtable.admin.v2.ICreateInstanceRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -1636,7 +1644,7 @@ export class BigtableInstanceAdminClient { >; createInstance( request: protos.google.bigtable.admin.v2.ICreateInstanceRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.bigtable.admin.v2.IInstance, @@ -1694,7 +1702,7 @@ export class BigtableInstanceAdminClient { createInstance( request: protos.google.bigtable.admin.v2.ICreateInstanceRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.bigtable.admin.v2.IInstance, @@ -1722,12 +1730,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1779,7 +1787,7 @@ export class BigtableInstanceAdminClient { } partialUpdateInstance( request: protos.google.bigtable.admin.v2.IPartialUpdateInstanceRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -1792,7 +1800,7 @@ export class BigtableInstanceAdminClient { >; partialUpdateInstance( request: protos.google.bigtable.admin.v2.IPartialUpdateInstanceRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.bigtable.admin.v2.IInstance, @@ -1840,7 +1848,7 @@ export class BigtableInstanceAdminClient { partialUpdateInstance( request: protos.google.bigtable.admin.v2.IPartialUpdateInstanceRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.bigtable.admin.v2.IInstance, @@ -1868,12 +1876,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1925,7 +1933,7 @@ export class BigtableInstanceAdminClient { } createCluster( request: protos.google.bigtable.admin.v2.ICreateClusterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -1938,7 +1946,7 @@ export class BigtableInstanceAdminClient { >; createCluster( request: protos.google.bigtable.admin.v2.ICreateClusterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.bigtable.admin.v2.ICluster, @@ -1991,7 +1999,7 @@ export class BigtableInstanceAdminClient { createCluster( request: protos.google.bigtable.admin.v2.ICreateClusterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.bigtable.admin.v2.ICluster, @@ -2019,12 +2027,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2076,7 +2084,7 @@ export class BigtableInstanceAdminClient { } updateCluster( request: protos.google.bigtable.admin.v2.ICluster, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -2089,7 +2097,7 @@ export class BigtableInstanceAdminClient { >; updateCluster( request: protos.google.bigtable.admin.v2.ICluster, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.bigtable.admin.v2.ICluster, @@ -2149,7 +2157,7 @@ export class BigtableInstanceAdminClient { updateCluster( request: protos.google.bigtable.admin.v2.ICluster, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.bigtable.admin.v2.ICluster, @@ -2177,12 +2185,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2234,7 +2242,7 @@ export class BigtableInstanceAdminClient { } updateAppProfile( request: protos.google.bigtable.admin.v2.IUpdateAppProfileRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -2247,7 +2255,7 @@ export class BigtableInstanceAdminClient { >; updateAppProfile( request: protos.google.bigtable.admin.v2.IUpdateAppProfileRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.bigtable.admin.v2.IAppProfile, @@ -2296,7 +2304,7 @@ export class BigtableInstanceAdminClient { updateAppProfile( request: protos.google.bigtable.admin.v2.IUpdateAppProfileRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.bigtable.admin.v2.IAppProfile, @@ -2324,12 +2332,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2381,7 +2389,7 @@ export class BigtableInstanceAdminClient { } listAppProfiles( request: protos.google.bigtable.admin.v2.IListAppProfilesRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.IAppProfile[], @@ -2391,7 +2399,7 @@ export class BigtableInstanceAdminClient { >; listAppProfiles( request: protos.google.bigtable.admin.v2.IListAppProfilesRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.bigtable.admin.v2.IListAppProfilesRequest, | protos.google.bigtable.admin.v2.IListAppProfilesResponse @@ -2449,7 +2457,7 @@ export class BigtableInstanceAdminClient { listAppProfiles( request: protos.google.bigtable.admin.v2.IListAppProfilesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.bigtable.admin.v2.IListAppProfilesRequest, | protos.google.bigtable.admin.v2.IListAppProfilesResponse @@ -2472,12 +2480,12 @@ export class BigtableInstanceAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2527,7 +2535,7 @@ export class BigtableInstanceAdminClient { */ listAppProfilesStream( request?: protos.google.bigtable.admin.v2.IListAppProfilesRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -2589,7 +2597,7 @@ export class BigtableInstanceAdminClient { */ listAppProfilesAsync( request?: protos.google.bigtable.admin.v2.IListAppProfilesRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; diff --git a/src/v2/bigtable_table_admin_client.ts b/src/v2/bigtable_table_admin_client.ts index c268a863f..b63c88f66 100644 --- a/src/v2/bigtable_table_admin_client.ts +++ b/src/v2/bigtable_table_admin_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,6 +32,11 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v2/bigtable_table_admin_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './bigtable_table_admin_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; @@ -89,9 +95,9 @@ export class BigtableTableAdminClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -104,7 +110,9 @@ export class BigtableTableAdminClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -434,7 +442,7 @@ export class BigtableTableAdminClient { // ------------------- createTable( request: protos.google.bigtable.admin.v2.ICreateTableRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.ITable, @@ -444,7 +452,7 @@ export class BigtableTableAdminClient { >; createTable( request: protos.google.bigtable.admin.v2.ICreateTableRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.ITable, protos.google.bigtable.admin.v2.ICreateTableRequest | null | undefined, @@ -505,7 +513,7 @@ export class BigtableTableAdminClient { createTable( request: protos.google.bigtable.admin.v2.ICreateTableRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.ITable, | protos.google.bigtable.admin.v2.ICreateTableRequest @@ -526,12 +534,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -546,7 +554,7 @@ export class BigtableTableAdminClient { } getTable( request: protos.google.bigtable.admin.v2.IGetTableRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.ITable, @@ -556,7 +564,7 @@ export class BigtableTableAdminClient { >; getTable( request: protos.google.bigtable.admin.v2.IGetTableRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.ITable, protos.google.bigtable.admin.v2.IGetTableRequest | null | undefined, @@ -596,7 +604,7 @@ export class BigtableTableAdminClient { getTable( request: protos.google.bigtable.admin.v2.IGetTableRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.ITable, protos.google.bigtable.admin.v2.IGetTableRequest | null | undefined, @@ -615,12 +623,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -635,7 +643,7 @@ export class BigtableTableAdminClient { } deleteTable( request: protos.google.bigtable.admin.v2.IDeleteTableRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -645,7 +653,7 @@ export class BigtableTableAdminClient { >; deleteTable( request: protos.google.bigtable.admin.v2.IDeleteTableRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, protos.google.bigtable.admin.v2.IDeleteTableRequest | null | undefined, @@ -682,7 +690,7 @@ export class BigtableTableAdminClient { deleteTable( request: protos.google.bigtable.admin.v2.IDeleteTableRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.bigtable.admin.v2.IDeleteTableRequest @@ -703,12 +711,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -723,7 +731,7 @@ export class BigtableTableAdminClient { } modifyColumnFamilies( request: protos.google.bigtable.admin.v2.IModifyColumnFamiliesRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.ITable, @@ -733,7 +741,7 @@ export class BigtableTableAdminClient { >; modifyColumnFamilies( request: protos.google.bigtable.admin.v2.IModifyColumnFamiliesRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.ITable, | protos.google.bigtable.admin.v2.IModifyColumnFamiliesRequest @@ -782,7 +790,7 @@ export class BigtableTableAdminClient { modifyColumnFamilies( request: protos.google.bigtable.admin.v2.IModifyColumnFamiliesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.ITable, | protos.google.bigtable.admin.v2.IModifyColumnFamiliesRequest @@ -805,12 +813,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -825,7 +833,7 @@ export class BigtableTableAdminClient { } dropRowRange( request: protos.google.bigtable.admin.v2.IDropRowRangeRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -835,7 +843,7 @@ export class BigtableTableAdminClient { >; dropRowRange( request: protos.google.bigtable.admin.v2.IDropRowRangeRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, protos.google.bigtable.admin.v2.IDropRowRangeRequest | null | undefined, @@ -879,7 +887,7 @@ export class BigtableTableAdminClient { dropRowRange( request: protos.google.bigtable.admin.v2.IDropRowRangeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.bigtable.admin.v2.IDropRowRangeRequest @@ -900,12 +908,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -920,7 +928,7 @@ export class BigtableTableAdminClient { } generateConsistencyToken( request: protos.google.bigtable.admin.v2.IGenerateConsistencyTokenRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.IGenerateConsistencyTokenResponse, @@ -933,7 +941,7 @@ export class BigtableTableAdminClient { >; generateConsistencyToken( request: protos.google.bigtable.admin.v2.IGenerateConsistencyTokenRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.IGenerateConsistencyTokenResponse, | protos.google.bigtable.admin.v2.IGenerateConsistencyTokenRequest @@ -977,7 +985,7 @@ export class BigtableTableAdminClient { generateConsistencyToken( request: protos.google.bigtable.admin.v2.IGenerateConsistencyTokenRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.IGenerateConsistencyTokenResponse, | protos.google.bigtable.admin.v2.IGenerateConsistencyTokenRequest @@ -1003,12 +1011,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1027,7 +1035,7 @@ export class BigtableTableAdminClient { } checkConsistency( request: protos.google.bigtable.admin.v2.ICheckConsistencyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.ICheckConsistencyResponse, @@ -1037,7 +1045,7 @@ export class BigtableTableAdminClient { >; checkConsistency( request: protos.google.bigtable.admin.v2.ICheckConsistencyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.ICheckConsistencyResponse, | protos.google.bigtable.admin.v2.ICheckConsistencyRequest @@ -1082,7 +1090,7 @@ export class BigtableTableAdminClient { checkConsistency( request: protos.google.bigtable.admin.v2.ICheckConsistencyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.ICheckConsistencyResponse, | protos.google.bigtable.admin.v2.ICheckConsistencyRequest @@ -1105,12 +1113,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1125,7 +1133,7 @@ export class BigtableTableAdminClient { } getSnapshot( request: protos.google.bigtable.admin.v2.IGetSnapshotRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.ISnapshot, @@ -1135,7 +1143,7 @@ export class BigtableTableAdminClient { >; getSnapshot( request: protos.google.bigtable.admin.v2.IGetSnapshotRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.ISnapshot, protos.google.bigtable.admin.v2.IGetSnapshotRequest | null | undefined, @@ -1178,7 +1186,7 @@ export class BigtableTableAdminClient { getSnapshot( request: protos.google.bigtable.admin.v2.IGetSnapshotRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.ISnapshot, | protos.google.bigtable.admin.v2.IGetSnapshotRequest @@ -1199,12 +1207,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1219,7 +1227,7 @@ export class BigtableTableAdminClient { } deleteSnapshot( request: protos.google.bigtable.admin.v2.IDeleteSnapshotRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -1229,7 +1237,7 @@ export class BigtableTableAdminClient { >; deleteSnapshot( request: protos.google.bigtable.admin.v2.IDeleteSnapshotRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, protos.google.bigtable.admin.v2.IDeleteSnapshotRequest | null | undefined, @@ -1272,7 +1280,7 @@ export class BigtableTableAdminClient { deleteSnapshot( request: protos.google.bigtable.admin.v2.IDeleteSnapshotRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.bigtable.admin.v2.IDeleteSnapshotRequest @@ -1293,12 +1301,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1313,7 +1321,7 @@ export class BigtableTableAdminClient { } getBackup( request: protos.google.bigtable.admin.v2.IGetBackupRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.IBackup, @@ -1323,7 +1331,7 @@ export class BigtableTableAdminClient { >; getBackup( request: protos.google.bigtable.admin.v2.IGetBackupRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.IBackup, protos.google.bigtable.admin.v2.IGetBackupRequest | null | undefined, @@ -1360,7 +1368,7 @@ export class BigtableTableAdminClient { getBackup( request: protos.google.bigtable.admin.v2.IGetBackupRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.IBackup, protos.google.bigtable.admin.v2.IGetBackupRequest | null | undefined, @@ -1379,12 +1387,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1399,7 +1407,7 @@ export class BigtableTableAdminClient { } updateBackup( request: protos.google.bigtable.admin.v2.IUpdateBackupRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.IBackup, @@ -1409,7 +1417,7 @@ export class BigtableTableAdminClient { >; updateBackup( request: protos.google.bigtable.admin.v2.IUpdateBackupRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.bigtable.admin.v2.IBackup, protos.google.bigtable.admin.v2.IUpdateBackupRequest | null | undefined, @@ -1453,7 +1461,7 @@ export class BigtableTableAdminClient { updateBackup( request: protos.google.bigtable.admin.v2.IUpdateBackupRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.bigtable.admin.v2.IBackup, | protos.google.bigtable.admin.v2.IUpdateBackupRequest @@ -1474,12 +1482,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1494,7 +1502,7 @@ export class BigtableTableAdminClient { } deleteBackup( request: protos.google.bigtable.admin.v2.IDeleteBackupRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -1504,7 +1512,7 @@ export class BigtableTableAdminClient { >; deleteBackup( request: protos.google.bigtable.admin.v2.IDeleteBackupRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, protos.google.bigtable.admin.v2.IDeleteBackupRequest | null | undefined, @@ -1541,7 +1549,7 @@ export class BigtableTableAdminClient { deleteBackup( request: protos.google.bigtable.admin.v2.IDeleteBackupRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, | protos.google.bigtable.admin.v2.IDeleteBackupRequest @@ -1562,12 +1570,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1582,7 +1590,7 @@ export class BigtableTableAdminClient { } getIamPolicy( request: protos.google.iam.v1.IGetIamPolicyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.iam.v1.IPolicy, @@ -1592,7 +1600,7 @@ export class BigtableTableAdminClient { >; getIamPolicy( request: protos.google.iam.v1.IGetIamPolicyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, @@ -1633,7 +1641,7 @@ export class BigtableTableAdminClient { getIamPolicy( request: protos.google.iam.v1.IGetIamPolicyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, @@ -1652,12 +1660,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1672,7 +1680,7 @@ export class BigtableTableAdminClient { } setIamPolicy( request: protos.google.iam.v1.ISetIamPolicyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.iam.v1.IPolicy, @@ -1682,7 +1690,7 @@ export class BigtableTableAdminClient { >; setIamPolicy( request: protos.google.iam.v1.ISetIamPolicyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, @@ -1724,7 +1732,7 @@ export class BigtableTableAdminClient { setIamPolicy( request: protos.google.iam.v1.ISetIamPolicyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, @@ -1743,12 +1751,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1763,7 +1771,7 @@ export class BigtableTableAdminClient { } testIamPermissions( request: protos.google.iam.v1.ITestIamPermissionsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.iam.v1.ITestIamPermissionsResponse, @@ -1773,7 +1781,7 @@ export class BigtableTableAdminClient { >; testIamPermissions( request: protos.google.iam.v1.ITestIamPermissionsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, @@ -1814,7 +1822,7 @@ export class BigtableTableAdminClient { testIamPermissions( request: protos.google.iam.v1.ITestIamPermissionsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, @@ -1833,12 +1841,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1854,7 +1862,7 @@ export class BigtableTableAdminClient { createTableFromSnapshot( request: protos.google.bigtable.admin.v2.ICreateTableFromSnapshotRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -1867,7 +1875,7 @@ export class BigtableTableAdminClient { >; createTableFromSnapshot( request: protos.google.bigtable.admin.v2.ICreateTableFromSnapshotRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.bigtable.admin.v2.ITable, @@ -1927,7 +1935,7 @@ export class BigtableTableAdminClient { createTableFromSnapshot( request: protos.google.bigtable.admin.v2.ICreateTableFromSnapshotRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.bigtable.admin.v2.ITable, @@ -1955,12 +1963,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2016,7 +2024,7 @@ export class BigtableTableAdminClient { } snapshotTable( request: protos.google.bigtable.admin.v2.ISnapshotTableRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -2029,7 +2037,7 @@ export class BigtableTableAdminClient { >; snapshotTable( request: protos.google.bigtable.admin.v2.ISnapshotTableRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.bigtable.admin.v2.ISnapshot, @@ -2098,7 +2106,7 @@ export class BigtableTableAdminClient { snapshotTable( request: protos.google.bigtable.admin.v2.ISnapshotTableRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.bigtable.admin.v2.ISnapshot, @@ -2126,12 +2134,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2183,7 +2191,7 @@ export class BigtableTableAdminClient { } createBackup( request: protos.google.bigtable.admin.v2.ICreateBackupRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -2196,7 +2204,7 @@ export class BigtableTableAdminClient { >; createBackup( request: protos.google.bigtable.admin.v2.ICreateBackupRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.bigtable.admin.v2.IBackup, @@ -2258,7 +2266,7 @@ export class BigtableTableAdminClient { createBackup( request: protos.google.bigtable.admin.v2.ICreateBackupRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.bigtable.admin.v2.IBackup, @@ -2286,12 +2294,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2343,7 +2351,7 @@ export class BigtableTableAdminClient { } restoreTable( request: protos.google.bigtable.admin.v2.IRestoreTableRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ LROperation< @@ -2356,7 +2364,7 @@ export class BigtableTableAdminClient { >; restoreTable( request: protos.google.bigtable.admin.v2.IRestoreTableRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< LROperation< protos.google.bigtable.admin.v2.ITable, @@ -2417,7 +2425,7 @@ export class BigtableTableAdminClient { restoreTable( request: protos.google.bigtable.admin.v2.IRestoreTableRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.bigtable.admin.v2.ITable, @@ -2445,12 +2453,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2502,7 +2510,7 @@ export class BigtableTableAdminClient { } listTables( request: protos.google.bigtable.admin.v2.IListTablesRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.ITable[], @@ -2512,7 +2520,7 @@ export class BigtableTableAdminClient { >; listTables( request: protos.google.bigtable.admin.v2.IListTablesRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.bigtable.admin.v2.IListTablesRequest, protos.google.bigtable.admin.v2.IListTablesResponse | null | undefined, @@ -2566,7 +2574,7 @@ export class BigtableTableAdminClient { listTables( request: protos.google.bigtable.admin.v2.IListTablesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.bigtable.admin.v2.IListTablesRequest, | protos.google.bigtable.admin.v2.IListTablesResponse @@ -2587,12 +2595,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2642,7 +2650,7 @@ export class BigtableTableAdminClient { */ listTablesStream( request?: protos.google.bigtable.admin.v2.IListTablesRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -2704,7 +2712,7 @@ export class BigtableTableAdminClient { */ listTablesAsync( request?: protos.google.bigtable.admin.v2.IListTablesRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -2726,7 +2734,7 @@ export class BigtableTableAdminClient { } listSnapshots( request: protos.google.bigtable.admin.v2.IListSnapshotsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.ISnapshot[], @@ -2736,7 +2744,7 @@ export class BigtableTableAdminClient { >; listSnapshots( request: protos.google.bigtable.admin.v2.IListSnapshotsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.bigtable.admin.v2.IListSnapshotsRequest, protos.google.bigtable.admin.v2.IListSnapshotsResponse | null | undefined, @@ -2789,7 +2797,7 @@ export class BigtableTableAdminClient { listSnapshots( request: protos.google.bigtable.admin.v2.IListSnapshotsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.bigtable.admin.v2.IListSnapshotsRequest, | protos.google.bigtable.admin.v2.IListSnapshotsResponse @@ -2810,12 +2818,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2858,7 +2866,7 @@ export class BigtableTableAdminClient { */ listSnapshotsStream( request?: protos.google.bigtable.admin.v2.IListSnapshotsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -2913,7 +2921,7 @@ export class BigtableTableAdminClient { */ listSnapshotsAsync( request?: protos.google.bigtable.admin.v2.IListSnapshotsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; @@ -2935,7 +2943,7 @@ export class BigtableTableAdminClient { } listBackups( request: protos.google.bigtable.admin.v2.IListBackupsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.bigtable.admin.v2.IBackup[], @@ -2945,7 +2953,7 @@ export class BigtableTableAdminClient { >; listBackups( request: protos.google.bigtable.admin.v2.IListBackupsRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.bigtable.admin.v2.IListBackupsRequest, protos.google.bigtable.admin.v2.IListBackupsResponse | null | undefined, @@ -3049,7 +3057,7 @@ export class BigtableTableAdminClient { listBackups( request: protos.google.bigtable.admin.v2.IListBackupsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.bigtable.admin.v2.IListBackupsRequest, | protos.google.bigtable.admin.v2.IListBackupsResponse @@ -3070,12 +3078,12 @@ export class BigtableTableAdminClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3174,7 +3182,7 @@ export class BigtableTableAdminClient { */ listBackupsStream( request?: protos.google.bigtable.admin.v2.IListBackupsRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -3285,7 +3293,7 @@ export class BigtableTableAdminClient { */ listBackupsAsync( request?: protos.google.bigtable.admin.v2.IListBackupsRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; diff --git a/synth.metadata b/synth.metadata index 7f15bb152..1b7264086 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-bigtable.git", - "sha": "49102b4ac63c28c46aea7f27e85efd67035dc399" + "sha": "59a0d269d5196991dd395e671d7d5f54ce449005" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "ccd6462d31e6422fd188b6590aa8d0ad03e7d9a3", - "internalRef": "339464550" + "sha": "5587028631d4d743fd906c4eb4e4e4649a7ee5ce", + "internalRef": "343187793" } }, { @@ -96,7 +96,6 @@ "README.md", "api-extractor.json", "linkinator.config.json", - "package-lock.json.1955001207", "protos/google/bigtable/admin/v2/bigtable_instance_admin.proto", "protos/google/bigtable/admin/v2/bigtable_table_admin.proto", "protos/google/bigtable/admin/v2/common.proto", @@ -109,7 +108,6 @@ "protos/protos.json", "renovate.json", "samples/README.md", - "samples/package-lock.json.1658066032", "src/v2/bigtable_client.ts", "src/v2/bigtable_client_config.json", "src/v2/bigtable_instance_admin_client.ts",