19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_ADMIN_BIGTABLE_TABLE_ADMIN_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_ADMIN_BIGTABLE_TABLE_ADMIN_CLIENT_H
22#include "google/cloud/bigtable/admin/bigtable_table_admin_connection.h"
23#include "google/cloud/future.h"
24#include "google/cloud/iam_updater.h"
25#include "google/cloud/options.h"
26#include "google/cloud/polling_policy.h"
27#include "google/cloud/status_or.h"
28#include "google/cloud/version.h"
29#include <google/longrunning/operations.grpc.pb.h>
36GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
88 return a.connection_ == b.connection_;
127 std::string
const& parent, std::string
const& table_id,
161 google::bigtable::admin::v2::CreateTableRequest
const& request,
198 std::string
const& parent,
Options opts
= {});
238 google::bigtable::admin::v2::ListTablesRequest request,
266 StatusOr<
google::bigtable::admin::v2::Table>
GetTable(std::string
const& name,
298 google::bigtable::admin::v2::GetTableRequest
const& request,
344 google::bigtable::admin::v2::Table
const& table,
382 google::bigtable::admin::v2::UpdateTableRequest
const& request,
435 google::bigtable::admin::v2::DeleteTableRequest
const& request,
507 google::bigtable::admin::v2::UndeleteTableRequest
const& request,
543 std::string
const& name,
544 std::vector<
google::bigtable::admin::v2::ModifyColumnFamiliesRequest::
545 Modification>
const& modifications,
580 google::bigtable::admin::v2::ModifyColumnFamiliesRequest
const& request,
611 google::bigtable::admin::v2::DropRowRangeRequest
const& request,
642 StatusOr<
google::bigtable::admin::v2::GenerateConsistencyTokenResponse>
676 StatusOr<
google::bigtable::admin::v2::GenerateConsistencyTokenResponse>
678 google::bigtable::admin::v2::GenerateConsistencyTokenRequest
const&
710 StatusOr<
google::bigtable::admin::v2::CheckConsistencyResponse>
712 std::string
const& consistency_token,
Options opts
= {});
744 StatusOr<
google::bigtable::admin::v2::CheckConsistencyResponse>
746 google::bigtable::admin::v2::CheckConsistencyRequest
const& request,
799 std::string
const& parent, std::string
const& backup_id,
848 google::bigtable::admin::v2::CreateBackupRequest
const& request,
908 google::bigtable::admin::v2::GetBackupRequest
const& request,
943 google::bigtable::admin::v2::Backup
const& backup,
975 google::bigtable::admin::v2::UpdateBackupRequest
const& request,
1028 google::bigtable::admin::v2::DeleteBackupRequest
const& request,
1068 std::string
const& parent,
Options opts
= {});
1109 google::bigtable::admin::v2::ListBackupsRequest request,
1157 google::bigtable::admin::v2::RestoreTableRequest
const& request,
1252 std::string
const& resource,
google::iam::v1::Policy
const& policy,
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1276 IamUpdater
const& updater,
1340 std::string
const& resource, std::vector<std::string>
const& permissions,
1372 google::iam::v1::TestIamPermissionsRequest
const& request,
1403 future<StatusOr<
google::bigtable::admin::v2::CheckConsistencyResponse>>
1405 std::string
const& consistency_token,
1438 future<StatusOr<
google::bigtable::admin::v2::CheckConsistencyResponse>>
1440 google::bigtable::admin::v2::CheckConsistencyRequest
const& request,
1448GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Service for creating, configuring, and deleting Cloud Bigtable tables.
Definition: bigtable_table_admin_client.h:68
StatusOr< google::bigtable::admin::v2::CheckConsistencyResponse > CheckConsistency(std::string const &name, std::string const &consistency_token, Options opts={})
Checks replication consistency based on a consistency token, that is, if replication has caught up ba...
StatusOr< google::bigtable::admin::v2::Backup > UpdateBackup(google::bigtable::admin::v2::UpdateBackupRequest const &request, Options opts={})
Updates a pending or completed Cloud Bigtable Backup.
future< StatusOr< google::bigtable::admin::v2::Backup > > CreateBackup(std::string const &parent, std::string const &backup_id, google::bigtable::admin::v2::Backup const &backup, Options opts={})
Starts creating a new Cloud Bigtable Backup.
StatusOr< google::bigtable::admin::v2::Table > ModifyColumnFamilies(std::string const &name, std::vector< google::bigtable::admin::v2::ModifyColumnFamiliesRequest::Modification > const &modifications, Options opts={})
Performs a series of column family modifications on the specified table.
BigtableTableAdminClient(BigtableTableAdminClient &&)=default
future< StatusOr< google::bigtable::admin::v2::CheckConsistencyResponse > > AsyncCheckConsistency(std::string const &name, std::string const &consistency_token, Options opts={})
Checks replication consistency based on a consistency token, that is, if replication has caught up ba...
StatusOr< google::iam::v1::Policy > GetIamPolicy(std::string const &resource, Options opts={})
Gets the access control policy for a Table or Backup resource.
BigtableTableAdminClient(BigtableTableAdminClient const &)=default
StatusOr< google::bigtable::admin::v2::Table > GetTable(google::bigtable::admin::v2::GetTableRequest const &request, Options opts={})
Gets metadata information about the specified table.
StatusOr< google::bigtable::admin::v2::Table > ModifyColumnFamilies(google::bigtable::admin::v2::ModifyColumnFamiliesRequest const &request, Options opts={})
Performs a series of column family modifications on the specified table.
BigtableTableAdminClient & operator=(BigtableTableAdminClient &&)=default
StatusOr< google::bigtable::admin::v2::CheckConsistencyResponse > CheckConsistency(google::bigtable::admin::v2::CheckConsistencyRequest const &request, Options opts={})
Checks replication consistency based on a consistency token, that is, if replication has caught up ba...
BigtableTableAdminClient & operator=(BigtableTableAdminClient const &)=default
StatusOr< google::bigtable::admin::v2::GenerateConsistencyTokenResponse > GenerateConsistencyToken(google::bigtable::admin::v2::GenerateConsistencyTokenRequest const &request, Options opts={})
Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mut...
Status DropRowRange(google::bigtable::admin::v2::DropRowRangeRequest const &request, Options opts={})
Permanently drop/delete a row range from a specified table.
StatusOr< google::bigtable::admin::v2::Backup > GetBackup(std::string const &name, Options opts={})
Gets metadata on a pending or completed Cloud Bigtable Backup.
future< StatusOr< google::bigtable::admin::v2::Table > > UpdateTable(google::bigtable::admin::v2::UpdateTableRequest const &request, Options opts={})
Updates a specified table.
StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &request, Options opts={})
Returns permissions that the caller has on the specified Table or Backup resource.
StatusOr< google::bigtable::admin::v2::GenerateConsistencyTokenResponse > GenerateConsistencyToken(std::string const &name, Options opts={})
Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mut...
future< StatusOr< google::bigtable::admin::v2::CheckConsistencyResponse > > AsyncCheckConsistency(google::bigtable::admin::v2::CheckConsistencyRequest const &request, Options opts={})
Checks replication consistency based on a consistency token, that is, if replication has caught up ba...
Status DeleteBackup(std::string const &name, Options opts={})
Deletes a pending or completed Cloud Bigtable backup.
StreamRange< google::bigtable::admin::v2::Backup > ListBackups(google::bigtable::admin::v2::ListBackupsRequest request, Options opts={})
Lists Cloud Bigtable backups.
StreamRange< google::bigtable::admin::v2::Table > ListTables(std::string const &parent, Options opts={})
Lists all tables served from a specified instance.
StatusOr< google::iam::v1::Policy > SetIamPolicy(std::string const &resource, google::iam::v1::Policy const &policy, Options opts={})
Sets the access control policy on a Table or Backup resource.
future< StatusOr< google::bigtable::admin::v2::Table > > UndeleteTable(std::string const &name, Options opts={})
Restores a specified table which was accidentally deleted.
StatusOr< google::bigtable::admin::v2::Table > GetTable(std::string const &name, Options opts={})
Gets metadata information about the specified table.
future< StatusOr< google::bigtable::admin::v2::Backup > > CreateBackup(google::bigtable::admin::v2::CreateBackupRequest const &request, Options opts={})
Starts creating a new Cloud Bigtable Backup.
friend bool operator==(BigtableTableAdminClient const &a, BigtableTableAdminClient const &b)
Definition: bigtable_table_admin_client.h:86
future< StatusOr< google::bigtable::admin::v2::Table > > UndeleteTable(google::bigtable::admin::v2::UndeleteTableRequest const &request, Options opts={})
Restores a specified table which was accidentally deleted.
Status DeleteBackup(google::bigtable::admin::v2::DeleteBackupRequest const &request, Options opts={})
Deletes a pending or completed Cloud Bigtable backup.
StatusOr< google::iam::v1::Policy > SetIamPolicy(std::string const &resource, IamUpdater const &updater, Options opts={})
Updates the IAM policy for resource using an optimistic concurrency control loop.
StreamRange< google::bigtable::admin::v2::Backup > ListBackups(std::string const &parent, Options opts={})
Lists Cloud Bigtable backups.
Status DeleteTable(std::string const &name, Options opts={})
Permanently deletes a specified table and all of its data.
future< StatusOr< google::bigtable::admin::v2::Table > > UpdateTable(google::bigtable::admin::v2::Table const &table, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates a specified table.
StatusOr< google::iam::v1::Policy > GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &request, Options opts={})
Gets the access control policy for a Table or Backup resource.
friend bool operator!=(BigtableTableAdminClient const &a, BigtableTableAdminClient const &b)
Definition: bigtable_table_admin_client.h:90
StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions(std::string const &resource, std::vector< std::string > const &permissions, Options opts={})
Returns permissions that the caller has on the specified Table or Backup resource.
Status DeleteTable(google::bigtable::admin::v2::DeleteTableRequest const &request, Options opts={})
Permanently deletes a specified table and all of its data.
StatusOr< google::bigtable::admin::v2::Table > CreateTable(std::string const &parent, std::string const &table_id, google::bigtable::admin::v2::Table const &table, Options opts={})
Creates a new table in the specified instance.
BigtableTableAdminClient(std::shared_ptr< BigtableTableAdminConnection > connection, Options opts={})
StatusOr< google::bigtable::admin::v2::Backup > GetBackup(google::bigtable::admin::v2::GetBackupRequest const &request, Options opts={})
Gets metadata on a pending or completed Cloud Bigtable Backup.
future< StatusOr< google::bigtable::admin::v2::Table > > RestoreTable(google::bigtable::admin::v2::RestoreTableRequest const &request, Options opts={})
Create a new table by restoring from a completed backup.
StatusOr< google::bigtable::admin::v2::Table > CreateTable(google::bigtable::admin::v2::CreateTableRequest const &request, Options opts={})
Creates a new table in the specified instance.
StatusOr< google::bigtable::admin::v2::Backup > UpdateBackup(google::bigtable::admin::v2::Backup const &backup, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates a pending or completed Cloud Bigtable Backup.
StatusOr< google::iam::v1::Policy > SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &request, Options opts={})
Sets the access control policy on a Table or Backup resource.
StreamRange< google::bigtable::admin::v2::Table > ListTables(google::bigtable::admin::v2::ListTablesRequest request, Options opts={})
Lists all tables served from a specified instance.
~BigtableTableAdminClient()
The BigtableTableAdminConnection object for BigtableTableAdminClient.
Definition: bigtable_table_admin_connection.h:64
friend friend class future
Definition: bigtable_instance_admin_client.h:35