Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(spanner): tweak the tag name of a FGAC sample #10266

Merged
merged 1 commit into from
Nov 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions google/cloud/spanner/samples/samples.cc
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,8 @@ void GetDatabaseDdl(google::cloud::spanner_admin::DatabaseAdminClient client,
}
//! [END spanner_get_database_ddl] [get-database-ddl]

//! [START spanner_add_and_drop_database_roles]
void AddAndDropDatabaseRoles(
//! [START spanner_add_and_drop_database_role]
void AddAndDropDatabaseRole(
google::cloud::spanner_admin::DatabaseAdminClient client,
std::string const& project_id, std::string const& instance_id,
std::string const& database_id, std::string const& role_parent,
Expand Down Expand Up @@ -840,7 +840,7 @@ void AddAndDropDatabaseRoles(
if (!metadata) throw std::move(metadata).status();
std::cout << "Revoked privileges and dropped role " << role_child << "\n";
}
//! [END spanner_add_and_drop_database_roles]
//! [END spanner_add_and_drop_database_role]

//! [START spanner_read_data_with_database_role]
void ReadDataWithDatabaseRole(std::string const& project_id,
Expand Down Expand Up @@ -4371,9 +4371,9 @@ void RunAll(bool emulator) {
GetDatabaseDdl(database_admin_client, project_id, instance_id, database_id);

if (!emulator) {
SampleBanner("spanner_add_and_drop_database_roles");
AddAndDropDatabaseRoles(database_admin_client, project_id, instance_id,
database_id, "new_parent", "new_child");
SampleBanner("spanner_add_and_drop_database_role");
AddAndDropDatabaseRole(database_admin_client, project_id, instance_id,
database_id, "new_parent", "new_child");

SampleBanner("spanner_read_data_with_database_role");
ReadDataWithDatabaseRole(project_id, instance_id, database_id,
Expand Down