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

docs: samples and tests for admin database APIs #1099

Merged
merged 13 commits into from
Feb 26, 2024
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
rahul2393 committed Feb 22, 2024
commit 2d8a5289c1dc2cb5ec0c4151f3090143e4aea0d7
4 changes: 2 additions & 2 deletions samples/samples/admin/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def create_instance(instance_id):
)

operation = spanner_client.instance_admin_api.create_instance(
parent="projects/{}".format(spanner_client.project_name),
parent=spanner_client.project_name,
instance_id=instance_id,
instance=spanner_instance_admin.Instance(
config=config_name,
Expand Down Expand Up @@ -75,7 +75,7 @@ def create_instance_with_processing_units(instance_id, processing_units):
)

request = spanner_instance_admin.CreateInstanceRequest(
parent="projects/{}".format(spanner_client.project_name),
parent=spanner_client.project_name,
instance_id=instance_id,
instance=spanner_instance_admin.Instance(
config=config_name,
harshachinta marked this conversation as resolved.
Show resolved Hide resolved
Expand Down